Sinch视频通话挂断崩溃android

Ali*_*ina 5 crash java-native-interface android sinch

您是否有关于此问题的想法:当我关闭收到的视频通话时,应用程序崩溃,出现以下错误:

11-13 16:59:00.341    6531-6531/appPackage E/SinchVideoService? stop
11-13 16:59:00.341    6531-6531/appPackage D/SinchClient? Degub: terminate()
11-13 16:59:00.351    6531-6698/appPackage E/rtc? #
    # Fatal error in ../../../talk/app/webrtc/androidvideocapturer.cc, line 195
    # Check failed: !running_
    #
    #
11-13 16:59:00.351    6531-6698/appPackage A/libc? Fatal signal 6 (SIGABRT), code -6 in tid 6698 (Sinch Worker Th)
Run Code Online (Sandbox Code Playgroud)

似乎是Sinch内部错误,有什么想法吗?

-----编辑------

当活动被销毁时会发生:

    @Override
    public void onDestroy()
    {
       if (getSinchServiceInterface() != null)
       {
           getSinchServiceInterface().removeMessageClientListener(this);
           getSinchServiceInterface().stopClient();
        }
        super.onDestroy();
    }
Run Code Online (Sandbox Code Playgroud)

从扩展Service的类中调用此方法(stop())时。

    private void stop()
    {
        if (mSinchClient != null)
        {
            mSinchClient.terminate();
            mSinchClient = null;
        }
    }
Run Code Online (Sandbox Code Playgroud)

-编辑-

这是我启动客户的地方:

    protected void onServiceConnected()
    {
        getSinchServiceInterface().setStartListener(this);
        PreferencesDataAccess prefs = new PreferencesDataAccess(this);
        getSinchServiceInterface().startClient("user-" + prefs.getCurrentUser().getUserID());
        getSinchServiceInterface().addMessageClientListener(this);
    }
Run Code Online (Sandbox Code Playgroud)

这是初始化的地方:

    private void start(String userName)
    {
        if (mSinchClient == null)
        {
            mUserId = userName;
            mSinchClient = Sinch.getSinchClientBuilder().context(getApplicationContext()).userId(userName)
                    .applicationKey(APP_KEY)
                    .applicationSecret(APP_SECRET)
                    .environmentHost(ENVIRONMENT).build();

            mSinchClient.setSupportCalling(true);
            mSinchClient.setSupportMessaging(true);
            mSinchClient.startListeningOnActiveConnection();

            mSinchClient.addSinchClientListener(new MySinchClientListener());
            mSinchClient.getCallClient().addCallClientListener(new SinchCallClientListener());
            mSinchClient.start();

        }
    }
Run Code Online (Sandbox Code Playgroud)