Crash during ZoomSDK.initialize()

Upgrading from SDK 5.2.42043.1112 to v5.4.3.613 and I’m seeing the following crash during SDK initialization. So far I’ve only seen it on one device and that device is running Lollipop (API 22). Other devices initialize successfully.

03-23 12:08:20.266 4833-4833 E/AndroidRuntime: FATAL EXCEPTION: main
    PID: 4833
    java.lang.ExceptionInInitializerError
        at com.zipow.videobox.util.ZMEncryptedSharedPreferences.a(ZMEncryptedSharedPreferences.java:1160)
        at com.zipow.videobox.util.PreferenceUtil.getSharedPreferences(PreferenceUtil.java:355)
        at com.zipow.videobox.util.PreferenceUtil.readStringValue(PreferenceUtil.java:445)
        at org.webrtc.voiceengine.VoiceEngineCompat.selectAudioDeviceAPIType(VoiceEngineCompat.java:227)
        at org.webrtc.voiceengine.VoiceEngineCompat.isBluetoothScoSupported(VoiceEngineCompat.java:152)
        at com.zipow.videobox.VideoBoxApplication.onSDKCreated(VideoBoxApplication.java:2167)
        at com.zipow.videobox.VideoBoxApplication.initializeForSDK(VideoBoxApplication.java:2146)
        at us.zoom.sdk.ZoomSDK.initialize(ZoomSDK.java:492)
        at android.os.Handler.handleCallback(Handler.java:739)
        at android.os.Handler.dispatchMessage(Handler.java:95)
        at android.os.Looper.loop(Looper.java:135)
        at android.app.ActivityThread.main(ActivityThread.java:5254)
        at java.lang.reflect.Method.invoke(Native Method)
        at java.lang.reflect.Method.invoke(Method.java:372)
        at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:902)
        at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:697)
     Caused by: java.lang.ArrayIndexOutOfBoundsException: length=4; index=53
        at com.google.crypto.tink.shaded.protobuf.MessageSchema.newSchemaForRawMessageInfo(MessageSchema.java:507)
        at com.google.crypto.tink.shaded.protobuf.MessageSchema.newSchema(MessageSchema.java:221)
        at com.google.crypto.tink.shaded.protobuf.ManifestSchemaFactory.newSchema(ManifestSchemaFactory.java:85)
        at com.google.crypto.tink.shaded.protobuf.ManifestSchemaFactory.createSchema(ManifestSchemaFactory.java:71)
        at com.google.crypto.tink.shaded.protobuf.Protobuf.schemaFor(Protobuf.java:93)
        at com.google.crypto.tink.shaded.protobuf.Protobuf.schemaFor(Protobuf.java:107)
        at com.google.crypto.tink.shaded.protobuf.GeneratedMessageLite$Builder.mergeFromInstance(GeneratedMessageLite.java:419)
        at com.google.crypto.tink.shaded.protobuf.GeneratedMessageLite$Builder.mergeFrom(GeneratedMessageLite.java:414)
        at com.google.crypto.tink.config.TinkConfig.<clinit>(TinkConfig.java:46)
        at com.zipow.videobox.util.ZMEncryptedSharedPreferences.a(ZMEncryptedSharedPreferences.java:1160) 
        at com.zipow.videobox.util.PreferenceUtil.getSharedPreferences(PreferenceUtil.java:355) 
        at com.zipow.videobox.util.PreferenceUtil.readStringValue(PreferenceUtil.java:445) 
        at org.webrtc.voiceengine.VoiceEngineCompat.selectAudioDeviceAPIType(VoiceEngineCompat.java:227) 
        at org.webrtc.voiceengine.VoiceEngineCompat.isBluetoothScoSupported(VoiceEngineCompat.java:152) 
        at com.zipow.videobox.VideoBoxApplication.onSDKCreated(VideoBoxApplication.java:2167) 
        at com.zipow.videobox.VideoBoxApplication.initializeForSDK(VideoBoxApplication.java:2146) 
        at us.zoom.sdk.ZoomSDK.initialize(ZoomSDK.java:492) 
        at android.os.Handler.handleCallback(Handler.java:739) 
        at android.os.Handler.dispatchMessage(Handler.java:95) 
        at android.os.Looper.loop(Looper.java:135) 
        at android.app.ActivityThread.main(ActivityThread.java:5254) 
        at java.lang.reflect.Method.invoke(Native Method) 
        at java.lang.reflect.Method.invoke(Method.java:372) 
        at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:902) 
        at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:697)

Hi @vuzix_greg, thanks for the post.

Sorry to hear you are running into this crash. Can you please verify what the make/model of the device you are using is?

Thanks!

@jon.lieblich, seeing the crash on a pair of Vuzix Blade (Lollipop) smart glasses. No crashes on Vuzix M300 (Marshmallow) or M400 (Pie) smart glasses. If you’d like more detailed info, feel free to take this conversation private.

Hi @vuzix_greg,

Thanks for clarifying. We will investigate this and let you know if we need any more specific information.

Thanks!

Hi @vuzix_greg We will fix this issue in next release version.

Thanks!

1 Like

@donny.bao that’s great! Thanks!

Glad we could help!

Please don’t hesitate to reach back out in a new post if you encounter any new issues. :slightly_smiling_face: