# Crash during ZoomSDK.initialize()

**URL:** <https://devforum.zoom.us/t/crash-during-zoomsdk-initialize/46356>\
**Category:** Android\
**Created:** [March 23, 2021, 4:18pm UTC](https://devforum.zoom.us/t/crash-during-zoomsdk-initialize/46356 "2021-03-23T16:18:43Z")\
**Posts on this page:** 9\
**Page:** 1

<div class="post-metadata">

**Author:** ![vuzix\_greg](https://sea2.discourse-cdn.com/flex016/user_avatar/devforum.zoom.us/vuzix_greg/32/45663_2.png) [@vuzix\_greg](https://devforum.zoom.us/u/vuzix_greg)\
**Post date:** [March 23, 2021, 4:18pm UTC](https://devforum.zoom.us/t/crash-during-zoomsdk-initialize/46356/1 "2021-03-23T16:18:43Z")

</div>

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)
```

---

<div class="post-metadata">

**Author:** ![jon.zoom](https://sea2.discourse-cdn.com/flex016/user_avatar/devforum.zoom.us/jon.zoom/32/13495_2.png) [@jon.zoom](https://devforum.zoom.us/u/jon.zoom)\
**Post date:** [March 23, 2021, 5:14pm UTC](https://devforum.zoom.us/t/crash-during-zoomsdk-initialize/46356/2 "2021-03-23T17:14:24Z")

</div>

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!

---

<div class="post-metadata">

**Author:** ![vuzix\_greg](https://sea2.discourse-cdn.com/flex016/user_avatar/devforum.zoom.us/vuzix_greg/32/45663_2.png) [@vuzix\_greg](https://devforum.zoom.us/u/vuzix_greg)\
**Post date:** [March 23, 2021, 7:44pm UTC](https://devforum.zoom.us/t/crash-during-zoomsdk-initialize/46356/3 "2021-03-23T19:44:17Z")

</div>

@jon.zoom, 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.

---

<div class="post-metadata">

**Author:** ![jon.zoom](https://sea2.discourse-cdn.com/flex016/user_avatar/devforum.zoom.us/jon.zoom/32/13495_2.png) [@jon.zoom](https://devforum.zoom.us/u/jon.zoom)\
**Post date:** [March 23, 2021, 10:04pm UTC](https://devforum.zoom.us/t/crash-during-zoomsdk-initialize/46356/4 "2021-03-23T22:04:54Z")

</div>

Hi @vuzix_greg,

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

Thanks!

---

<div class="post-metadata">

**Author:** ![donny.bao](https://avatars.discourse-cdn.com/v4/letter/d/a587f6/32.png) [@donny.bao](https://devforum.zoom.us/u/donny.bao)\
**Post date:** [March 24, 2021, 6:26am UTC](https://devforum.zoom.us/t/crash-during-zoomsdk-initialize/46356/5 "2021-03-24T06:26:47Z")

</div>

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

Thanks!

---

<div class="post-metadata">

**Author:** ![vuzix\_greg](https://sea2.discourse-cdn.com/flex016/user_avatar/devforum.zoom.us/vuzix_greg/32/45663_2.png) [@vuzix\_greg](https://devforum.zoom.us/u/vuzix_greg)\
**Post date:** [March 24, 2021, 1:34pm UTC](https://devforum.zoom.us/t/crash-during-zoomsdk-initialize/46356/6 "2021-03-24T13:34:47Z")

</div>

@donny.bao that’s great! Thanks!

---

<div class="post-metadata">

**Author:** ![jon.zoom](https://sea2.discourse-cdn.com/flex016/user_avatar/devforum.zoom.us/jon.zoom/32/13495_2.png) [@jon.zoom](https://devforum.zoom.us/u/jon.zoom)\
**Post date:** [March 24, 2021, 5:20pm UTC](https://devforum.zoom.us/t/crash-during-zoomsdk-initialize/46356/7 "2021-03-24T17:20:02Z")

</div>

Glad we could help!

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

---

<div class="post-metadata">

**Author:** ![system](https://us1.discourse-cdn.com/flex016/uploads/zoomdeveloper/original/3X/6/1/614bdd549b610bbaa46ff934617683a02bdaa03c.png) [@system](https://devforum.zoom.us/u/system)\
**Post date:** [April 24, 2021, 3:20am UTC](https://devforum.zoom.us/t/crash-during-zoomsdk-initialize/46356/8 "2021-04-24T03:20:55Z")

</div>

Closed on April 24, 2021, 3:20am UTC

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

---

<div class="post-metadata">

**Author:** ![jon.zoom](https://sea2.discourse-cdn.com/flex016/user_avatar/devforum.zoom.us/jon.zoom/32/13495_2.png) [@jon.zoom](https://devforum.zoom.us/u/jon.zoom)\
**Post date:** [May 19, 2021, 10:41pm UTC](https://devforum.zoom.us/t/crash-during-zoomsdk-initialize/46356/9 "2021-05-19T22:41:45Z")

</div>

Hi @vuzix_greg,

Have you had a chance to verify that this was resolved in the latest SDK version?

Thanks!
