Application is crashing while joining the session

Description
Application is crashing while joining the session. I am using zoom video sdk. and JWT, meeting id everything is correct.

Which Android Video SDK version?
V-1.3.0

To Reproduce(If applicable)
I am getting it every-time in sample I created. Logcat is full of JNI error and it starts with following

022-05-22 10:49:40.304 10112-10112/us.zoom.VideoSDKPlaygroud W/AndroidKeysetManager: keyset not found, will generate a new one
java.io.FileNotFoundException: can’t read keyset; the pref value androidx_security_crypto_encrypted_prefs_key_keyset does not exist

And it points to this line -
mZoomVideoSDK.initialize(context, params).

Smartphone (please complete the following information):

  • Device: Moto-G30
  • OS: 12

Log -

10112-10112/us.zoom.VideoSDKPlaygroud W/AndroidKeysetManager: keyset not found, will generate a new one
java.io.FileNotFoundException: can’t read keyset; the pref value androidx_security_crypto_encrypted_prefs_value_keyset does not exist
at com.google.crypto.tink.integration.android.SharedPrefKeysetReader.readPref(SharedPrefKeysetReader.java:71)
at com.google.crypto.tink.integration.android.SharedPrefKeysetReader.readEncrypted(SharedPrefKeysetReader.java:89)
at com.google.crypto.tink.KeysetHandle.read(KeysetHandle.java:105)
at com.google.crypto.tink.integration.android.AndroidKeysetManager$Builder.read(AndroidKeysetManager.java:311)
at com.google.crypto.tink.integration.android.AndroidKeysetManager$Builder.readOrGenerateNewKeyset(AndroidKeysetManager.java:287)
at com.google.crypto.tink.integration.android.AndroidKeysetManager$Builder.build(AndroidKeysetManager.java:238)
at com.zipow.videobox.util.ZMEncryptedSharedPreferences.a(ZMEncryptedSharedPreferences.java:16)
at com.zipow.videobox.util.ZMEncryptedSharedPreferences.a(ZMEncryptedSharedPreferences.java:2)
at com.zipow.videobox.util.PreferenceUtil.getSharedPreferences(PreferenceUtil.java:10)
at com.zipow.videobox.util.PreferenceUtil.readStringValue(PreferenceUtil.java:4)
at org.webrtc.voiceengine.VoiceEngineCompat.selectAudioDeviceAPIType(VoiceEngineCompat.java:1)
at org.webrtc.voiceengine.VoiceEngineCompat.isBluetoothScoSupported(VoiceEngineCompat.java:33)
at us.zoom.internal.SDKApplication.onSDKCreated(SDKApplication.java:50)
at us.zoom.internal.SDKApplication.initializeForSDK(SDKApplication.java:8)
at us.zoom.sdk.d.initialize(ZoomVideoSDKImpl.java:18)
at com.tribe.fitness.zoom.ConferenceClient.(ConferenceClient.kt:28)
at us.zoom.sdksample.MeetingActivity.onPermissionGranted(MeetingActivity.java:77)
at us.zoom.sdksample.MeetingActivity.onRequestPermissionsResult(MeetingActivity.java:71)
at android.app.Activity.dispatchRequestPermissionsResult(Activity.java:8716)
at android.app.Activity.dispatchActivityResult(Activity.java:8573)
at android.app.ActivityThread.deliverResults(ActivityThread.java:5416)
at android.app.ActivityThread.handleSendResult(ActivityThread.java:5462)
at android.app.servertransaction.ActivityResultItem.execute(ActivityResultItem.java:54)
at android.app.servertransaction.ActivityTransactionItem.execute(ActivityTransactionItem.java:45)
at android.app.servertransaction.TransactionExecutor.executeCallbacks(TransactionExecutor.java:135)
at android.app.servertransaction.TransactionExecutor.execute(TransactionExecutor.java:95)
at android.app.ActivityThread$H.handleMessage(ActivityThread.java:2293)
at android.os.Handler.dispatchMessage(Handler.java:106)
at android.os.Looper.loopOnce(Looper.java:226)
at android.os.Looper.loop(Looper.java:329)
at android.app.ActivityThread.main(ActivityThread.java:8058)
at java.lang.reflect.Method.invoke(Native Method)
at com.android.internal.os.RuntimeInit$MethodAndArgsCaller.run(RuntimeInit.java:548)
at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:1026)
2022-05-22 10:49:40.431 10112-10112/us.zoom.VideoSDKPlaygroud I/EngineFactory: Provider GmsCore_OpenSSL not available
2022-05-22 10:49:40.448 10112-10112/us.zoom.VideoSDKPlaygroud D/BluetoothHeadset: Binding service…
2022-05-22 10:49:40.795 10112-10112/us.zoom.VideoSDKPlaygroud W/AudioTrack: Use of stream types is deprecated for operations other than volume control
2022-05-22 10:49:40.795 10112-10112/us.zoom.VideoSDKPlaygroud W/AudioTrack: See the documentation of AudioTrack() for what to use instead with android.media.AudioAttributes to qualify your playback use case
2022-05-22 10:49:45.194 10112-10112/us.zoom.VideoSDKPlaygroud W/deoSDKPlaygroud: type=1400 audit(0.0:43306): avc: denied { ioctl } for path=“socket:[19672785]” dev=“sockfs” ino=19672785 ioctlcmd=0x8927 scontext=u:r:untrusted_app:s0:c75,c258,c512,c768 tcontext=u:r:untrusted_app:s0:c75,c258,c512,c768 tclass=udp_socket permissive=0 app=us.zoom.VideoSDKPlaygroud
2022-05-22 10:49:45.194 10112-10112/us.zoom.VideoSDKPlaygroud W/deoSDKPlaygroud: type=1400 audit(0.0:43307): avc: denied { ioctl } for path=“socket:[19672785]” dev=“sockfs” ino=19672785 ioctlcmd=0x8927 scontext=u:r:untrusted_app:s0:c75,c258,c512,c768 tcontext=u:r:untrusted_app:s0:c75,c258,c512,c768 tclass=udp_socket permissive=0 app=us.zoom.VideoSDKPlaygroud
2022-05-22 10:49:45.198 10112-10112/us.zoom.VideoSDKPlaygroud W/deoSDKPlaygroud: type=1400 audit(0.0:43308): avc: denied { ioctl } for path=“socket:[19672785]” dev=“sockfs” ino=19672785 ioctlcmd=0x8927 scontext=u:r:untrusted_app:s0:c75,c258,c512,c768 tcontext=u:r:untrusted_app:s0:c75,c258,c512,c768 tclass=udp_socket permissive=0 app=us.zoom.VideoSDKPlaygroud
2022-05-22 10:49:45.229 10112-10112/us.zoom.VideoSDKPlaygroud W/AudioTrack: Use of stream types is deprecated for operations other than volume control
2022-05-22 10:49:45.229 10112-10112/us.zoom.VideoSDKPlaygroud W/AudioTrack: See the documentation of AudioTrack() for what to use instead with android.media.AudioAttributes to qualify your playback use case
2022-05-22 10:49:45.954 10112-10112/us.zoom.VideoSDKPlaygroud D/ConferenceClient: onSessionJoin
2022-05-22 10:49:45.957 10112-10112/us.zoom.VideoSDKPlaygroud D/ConferenceClient: onUserAudioStatusChanged
2022-05-22 10:49:46.117 10112-10112/us.zoom.VideoSDKPlaygroud D/ConferenceClient: onUserVideoStatusChanged
2022-05-22 10:49:46.121 10112-10112/us.zoom.VideoSDKPlaygroud A/deoSDKPlaygrou: java_vm_ext.cc:579] JNI DETECTED ERROR IN APPLICATION: JNI CallBooleanMethodV called with pending exception java.lang.NullPointerException: Parameter specified as non-null is null: method kotlin.jvm.internal.Intrinsics.checkNotNullParameter, parameter videoView
java_vm_ext.cc:579] (Throwable with no stack trace)
java_vm_ext.cc:579]
java_vm_ext.cc:579] in call to CallBooleanMethodV
java_vm_ext.cc:579] from void us.zoom.internal.SDKEngine.heartBeatImpl()
2022-05-22 10:49:46.406 10112-10112/us.zoom.VideoSDKPlaygroud A/deoSDKPlaygrou: runtime.cc:669] Runtime aborting…
runtime.cc:669] Dumping all threads without mutator lock held
runtime.cc:669] All threads:
runtime.cc:669] DALVIK THREADS (23):
runtime.cc:669] “main” prio=10 tid=1 Runnable
runtime.cc:669] | group="" sCount=0 ucsCount=0 flags=0 obj=0x72791348 self=0xb400007701a51be0
runtime.cc:669] | sysTid=10112 nice=-10 cgrp=default sched=0/0 handle=0x78bffb04f8
runtime.cc:669] | state=R schedstat=( 1855451761 238244365 2201 ) utm=132 stm=53 core=4 HZ=100
runtime.cc:669] | stack=0x7ff8406000-0x7ff8408000 stackSize=8188KB
runtime.cc:669] | held mutexes= “abort lock” “mutator lock”(shared held)
runtime.cc:669] native: #00 pc 0000000000458f1c /apex/com.android.art/lib64/libart.so (art::DumpNativeStack(std::__1::basic_ostream<char, std::__1::char_traits >&, int, BacktraceMap*, char const*, art::ArtMethod*, void*, bool)+120)
runtime.cc:669] native: #01 pc 00000000006f98a8 /apex/com.android.art/lib64/libart.so (art::thread::DumpStack(std::__1::basic_ostream<char, std::__1::char_traits >&, bool, BacktraceMap*, bool) const+252)
runtime.cc:669] native: #02 pc 0000000000701380 /apex/com.android.art/lib64/libart.so (art::DumpCheckpoint::Run(art::Thread*)+304)
runtime.cc:669] native: #03 pc 0000000000311180 /apex/com.android.art/lib64/libart.so (art::ThreadList::RunCheckpoint(art::Closure*, art::Closure*)+628)
runtime.cc:669] native: #04 pc 00000000006e088c /apex/com.android.art/lib64/libart.so (art::ThreadList::Dump(std::__1::basic_ostream<char, std::__1::char_traits >&, bool)+476)
runtime.cc:669] native: #05 pc 00000000006d1bc0 /apex/com.android.art/lib64/libart.so (art::AbortState::Dump(std::__1::basic_ostream<char, std::__1::char_traits >&) const+204)
runtime.cc:669] native: #06 pc 00000000006d1968 /apex/com.android.art/lib64/libart.so (art::Runtime::Abort(char const*)+1672)
runtime.cc:669] native: #07 pc 000000000001695c /apex/com.android.art/lib64/libbase.so (android::base::SetAborter(std::__1::function<void (char const*)>&&)::$_3::__invoke(char const*)+76)
runtime.cc:669] native: #08 pc 0000000000015f8c /apex/com.android.art/lib64/libbase.so (android::base::LogMessage::~LogMessage()+364)
runtime.cc:669] native: #09 pc 00000000003cc880 /apex/com.android.art/lib64/libart.so (art::JavaVMExt::JniAbort(char const*, char const*)+2440)
runtime.cc:669] native: #10 pc 0000000000586e98 /apex/com.android.art/lib64/libart.so (art::JavaVMExt::JniAbortV(char const*, char const*, std::__va_list)+108)
runtime.cc:669] native: #11 pc 0000000000581f30 /apex/com.android.art/lib64/libart.so (art::(anonymous namespace)::ScopedCheck::AbortF(char const*, …)+140)
runtime.cc:669] native: #12 pc 0000000000586144 /apex/com.android.art/lib64/libart.so (art::(anonymous namespace)::ScopedCheck::CheckThread(_JNIEnv*)+440)
runtime.cc:669] native: #13 pc 0000000000563300 /apex/com.android.art/lib64/libart.so (art::(anonymous namespace)::ScopedCheck::Check(art::ScopedObjectAccess&, bool, char const*, art::(anonymous namespace)::JniValueType*)+568)
runtime.cc:669] native: #14 pc 00000000005870b8 /apex/com.android.art/lib64/libart.so (art::(anonymous namespace)::CheckJNI::CheckCallArgs(art::ScopedObjectAccess&, art::(anonymous namespace)::ScopedCheck&, _JNIEnv*, _jobject*, _jclass*, _jmethodID*, art::InvokeType, art::(anonymous namespace)::VarArgs const*)+136)
runtime.cc:669] native: #15 pc 000000000056f814 /apex/com.android.art/lib64/libart.so (art::(anonymous namespace)::CheckJNI::CallMethodV(char const*, _JNIEnv*, _jobject*, _jclass*, _jmethodID*, std::__va_list, art::Primitive::Type, art::InvokeType)+428)
runtime.cc:669] native: #16 pc 00000000005717dc /apex/com.android.art/lib64/libart.so (art::(anonymous namespace)::CheckJNI::CallBooleanMethodV(_JNIEnv*, _jobject*, _jmethodID*, std::__va_list) (.llvm.1466395401036201841)+72)
2022-05-22 10:49:46.407 10112-10112/us.zoom.VideoSDKPlaygroud A/deoSDKPlaygrou: runtime.cc:669] native: #17 pc 00000000000defe0 /data/app/~~ZAlMuprg0OPZPsTb0yZQEA==/us.zoom.VideoSDKPlaygroud-CaXaG4ybuDYyohPzz9mXsg==/lib/arm64/libzSdkCore.so (???)
runtime.cc:669] native: #18 pc 00000000000dfa68 /data/app/~~ZAlMuprg0OPZPsTb0yZQEA==/us.zoom.VideoSDKPlaygroud-CaXaG4ybuDYyohPzz9mXsg==/lib/arm64/libzSdkCore.so (???)
runtime.cc:669] native: #19 pc 00000000000880e8 /data/app/~~ZAlMuprg0OPZPsTb0yZQEA==/us.zoom.VideoSDKPlaygroud-CaXaG4ybuDYyohPzz9mXsg==/lib/arm64/libzSdkCore.so (???)
runtime.cc:669] native: #20 pc 0000000000044734 /data/app/~~ZAlMuprg0OPZPsTb0yZQEA==/us.zoom.VideoSDKPlaygroud-CaXaG4ybuDYyohPzz9mXsg==/lib/arm64/libzSdkCore.so (???)
runtime.cc:669] native: #21 pc 00000000000849f8 /data/app/~~ZAlMuprg0OPZPsTb0yZQEA==/us.zoom.VideoSDKPlaygroud-CaXaG4ybuDYyohPzz9mXsg==/lib/arm64/libzSdkCore.so (???)
runtime.cc:669] native: #22 pc 0000000000089ff8 /data/app/~~ZAlMuprg0OPZPsTb0yZQEA==/us.zoom.VideoSDKPlaygroud-CaXaG4ybuDYyohPzz9mXsg==/lib/arm64/libzSdkCore.so (???)
runtime.cc:669] native: #23 pc 00000000002d4044 /apex/com.android.art/lib64/libart.so (art_quick_generic_jni_trampoline+148)
runtime.cc:669] native: #24 pc 00000000002ca9e8 /apex/com.android.art/lib64/libart.so (art_quick_invoke_static_stub+568)
runtime.cc:669] native: #25 pc 00000000002ee6b8 /apex/com.android.art/lib64/libart.so (art::interpreter::ArtInterpreterToCompiledCodeBridge(art::Thread*, art::ArtMethod*, art::ShadowFrame*, unsigned short, art::JValue*)+320)
runtime.cc:669] native: #26 pc 000000000040ade4 /apex/com.android.art/lib64/libart.so (bool art::interpreter::DoCall<false, false>(art::ArtMethod*, art::Thread*, art::ShadowFrame&, art::Instruction const*, unsigned short, art::JValue*)+820)
runtime.cc:669] native: #27 pc 000000000076d4b8 /apex/com.android.art/lib64/libart.so (MterpInvokeStatic+3812)
runtime.cc:669] native: #28 pc 00000000002c5014 /apex/com.android.art/lib64/libart.so (mterp_op_invoke_static+20)
runtime.cc:669] native: #29 pc 0000000000042b18 [anon:dalvik-classes2.dex extracted in memory from /data/app/~~ZAlMuprg0OPZPsTb0yZQEA==/us.zoom.VideoSDKPlaygroud-CaXaG4ybuDYyohPzz9mXsg==/base.apk!classes2.dex] (us.zoom.internal.SDKEngine.heartBeat)
runtime.cc:669] native: #30 pc 000000000027d840 /apex/com.android.art/lib64/libart.so (art::interpreter::Execute(art::Thread*, art::CodeItemDataAccessor const&, art::ShadowFrame&, art::JValue, bool, bool) (.llvm.3351068054637636664)+644)
runtime.cc:669] native: #31 pc 000000000027c9e8 /apex/com.android.art/lib64/libart.so (artQuickToInterpreterBridge+1176)
runtime.cc:669] native: #32 pc 00000000002d4178 /apex/com.android.art/lib64/libart.so (art_quick_to_interpreter_bridge+88)
runtime.cc:669] native: #33 pc 0000000000209188 /apex/com.android.art/lib64/libart.so (nterp_helper+152)
runtime.cc:669] native: #34 pc 0000000000041c06 [anon:dalvik-classes2.dex extracted in memory from /data/app/~~ZAlMuprg0OPZPsTb0yZQEA==/us.zoom.VideoSDKPlaygroud-CaXaG4ybuDYyohPzz9mXsg==/base.apk!classes2.dex] (us.zoom.internal.SDKApplication$4.run+58)
runtime.cc:669] native: #35 pc 0000000002028f2c /memfd:jit-cache (deleted) (offset 2000000) (android.os.Handler.handleCallback+140)
runtime.cc:669] native: #36 pc 0000000002028748 /memfd:jit-cache (deleted) (offset 2000000) (android.os.Handler.dispatchMessage+104)
runtime.cc:669] native: #37 pc 000000000201ed78 /memfd:jit-cache (deleted) (offset 2000000) (android.os.Looper.loopOnce+2472)
runtime.cc:669] native: #38 pc 00000000002ca9e8 /apex/com.android.art/lib64/libart.so (art_quick_invoke_static_stub+568)
runtime.cc:669] native: #39 pc 00000000002ee6b8 /apex/com.android.art/lib64/libart.so (art::interpreter::ArtInterpreterToCompiledCodeBridge(art::Thread*, art::ArtMethod*, art::ShadowFrame*, unsigned short, art::JValue*)+320)
2022-05-22 10:49:46.407 10112-10112/us.zoom.VideoSDKPlaygroud A/deoSDKPlaygrou: runtime.cc:669] native: #40 pc 000000000035af60 /apex/com.android.art/lib64/libart.so (bool art::interpreter::DoCall<true, false>(art::ArtMethod*, art::Thread*, art::ShadowFrame&, art::Instruction const*, unsigned short, art::JValue*)+800)
runtime.cc:669] native: #41 pc 000000000076dc6c /apex/com.android.art/lib64/libart.so (MterpInvokeStaticRange+392)
runtime.cc:669] native: #42 pc 00000000002c5314 /apex/com.android.art/lib64/libart.so (mterp_op_invoke_static_range+20)
runtime.cc:669] native: #43 pc 000000000045cd7a /system/framework/framework.jar (offset 99c000) (android.os.Looper.loop+166)
runtime.cc:669] native: #44 pc 000000000076c840 /apex/com.android.art/lib64/libart.so (MterpInvokeStatic+620)
runtime.cc:669] native: #45 pc 00000000002c5014 /apex/com.android.art/lib64/libart.so (mterp_op_invoke_static+20)
runtime.cc:669] native: #46 pc 00000000001ca058 /system/framework/framework.jar (offset 5000) (android.app.ActivityThread.main+216)
runtime.cc:669] native: #47 pc 000000000027d840 /apex/com.android.art/lib64/libart.so (art::interpreter::Execute(art::Thread*, art::CodeItemDataAccessor const&, art::ShadowFrame&, art::JValue, bool, bool) (.llvm.3351068054637636664)+644)
runtime.cc:669] native: #48 pc 000000000027c9e8 /apex/com.android.art/lib64/libart.so (artQuickToInterpreterBridge+1176)
runtime.cc:669] native: #49 pc 00000000002d4178 /apex/com.android.art/lib64/libart.so (art_quick_to_interpreter_bridge+88)
runtime.cc:669] native: #50 pc 00000000002ca9e8 /apex/com.android.art/lib64/libart.so (art_quick_invoke_static_stub+568)
runtime.cc:669] native: #51 pc 000000000035b5d0 /apex/com.android.art/lib64/libart.so (_jobject* art::InvokeMethod<(art::PointerSize)8>(art::ScopedObjectAccessAlreadyRunnable const&, _jobject*, _jobject*, _jobject*, unsigned long)+608)
runtime.cc:669] native: #52 pc 000000000035b348 /apex/com.android.art/lib64/libart.so (art::Method_invoke(_JNIEnv*, _jobject*, _jobject*, _jobjectArray*)+52)
runtime.cc:669] at us.zoom.internal.SDKEngine.heartBeatImpl(Native method)
runtime.cc:669] at us.zoom.internal.SDKEngine.heartBeat(SDKEngine.java:1)
runtime.cc:669] at us.zoom.internal.SDKApplication$4.run(SDKApplication.java:8)
runtime.cc:669] at android.os.Handler.handleCallback(Handler.java:938)
runtime.cc:669] at android.os.Handler.dispatchMessage(Handler.java:99)
runtime.cc:669] at android.os.Looper.loopOnce(Looper.java:226)
runtime.cc:669] at android.os.Looper.loop(Looper.java:329)
runtime.cc:669] at android.app.ActivityThread.main(ActivityThread.java:8058)
runtime.cc:669] at java.lang.reflect.Method.invoke(Native method)
runtime.cc:669] at com.android.internal.os.RuntimeInit$MethodAndArgsCaller.run(RuntimeInit.java:548)
runtime.cc:669] at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:1026)
runtime.cc:669]

I tried to attach logcat’s screenshot but it didn’t let me.

Hi @irfan.ali1922, thanks for using our SDK.

Please note that I have moved this topic over to the #video-sdk:android category. :slightly_smiling_face:

Sorry to hear you’re running into a crash, although it looks like the stack trace you’ve provided is actually just a warning and not tied to a fatal exception. Can you please check the log output again and see if there is another exception in there that is causing the crash?

Thanks!

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.