E / sinch-android-rtc:错误:sqlite无法执行'PRAGMA journal_mode = WAL',错误:数据库已锁定(代码:5,扩展代码:5)

时间:2018-11-07 12:34:41

标签: java android

我非常惊讶,因为我使用的代码之前运行良好。但是自从一周前突然,此代码不再起作用。 我基于https://www.sinch.com/docs/voice/android/

实现了Sinch语音通话

下面是我的CallActivity.java方法

private void registerSinch() {
        android.support.v4.app.ActivityCompat.requestPermissions(this,
                new String[]{android.Manifest.permission.RECORD_AUDIO},
                1);


        // Instantiate a SinchClient using the SinchClientBuilder.
        Context context = this.getApplicationContext();
        sinchClient = com.sinch.android.rtc.Sinch.getSinchClientBuilder().context(context)
                .applicationKey(APP_KEY)
                .applicationSecret(APP_SECRET)
                .environmentHost(HOST_NAME)
                .userId(mUserId)
                .build();

        sinchClient.checkManifest();
        sinchClient.setSupportMessaging(true);
        sinchClient.setSupportCalling(true);
        sinchClient.setSupportActiveConnectionInBackground(true);
        sinchClient.startListeningOnActiveConnection();
        sinchClient.start();

        sinchClient.getCallClient().addCallClientListener(new SinchCallClientListener());

        Log.e("callState", "sinch client registered");

        if (!isCaller){
            if (!sinchClient.isStarted()){
                sinchClient.start();
            }

            if (sinchClient.isStarted()){
                call = sinchClient.getCallClient().callUser(userId);
                call.addCallListener(new SinchCallClientListener());
                Log.e("callState", "sinch client started");
            }else{
                callEnded("disconnected");
            }
        }
    }

我对出现的错误代码感到非常沮丧

19:23:52.108 25764-26046/com.ciangproduction.sestyc E/sinch-android-rtc: ERROR: sqlite Failed to exec 'PRAGMA journal_mode=WAL', error: database is locked (code: 5, extended code: 5)
    ERROR: sqlite Failed to execute: PRAGMA journal_mode=WAL
    ERROR: sqlite Failed to execute PRAGMAs (IM)

11-07 19:23:52.113 25764-26046/com.ciangproduction.sestyc A/libc: Fatal signal 11 (SIGSEGV), code 1, fault addr 0x0 in tid 26046 (Sinch Worker Th)

请帮助。这是发生此问题以来的第三天。

0 个答案:

没有答案