Android InstantSDK (1.0.2) is not working (crashes) on Nexus 5

Description
App crashes on Nexus 5 whenever i try to initialize the SDK. I’d greatly appreciate any assistance in resolving this issue.

Which version?
zoom-instant-sdk-android-1.0.2

To Reproduce(If applicable)
Steps to reproduce the behavior:

**Demo App **

  1. Install the demo app on Nexus 5
  2. App crashes

**Integrated app **

  1. ZoomInstantSDK.getInstance().initialize(this.getApplicationContext(), params);
  2. App crashes

DEVICE
Nexus 5

Android Version
6.0.1

Exception arises from below code in Demo App

protected void initSDK() {
ZoomInstantSDKInitParams params = new ZoomInstantSDKInitParams();
params.domain = Constants.WEB_DOMAIN;
params.enableLog = true;
params.videoRawDataMemoryMode = ZoomInstantSDKRawDataMemoryMode.ZoomInstantSDKRawDataMemoryModeHeap;
params.audioRawDataMemoryMode = ZoomInstantSDKRawDataMemoryMode.ZoomInstantSDKRawDataMemoryModeHeap;
params.shareRawDataMemoryMode = ZoomInstantSDKRawDataMemoryMode.ZoomInstantSDKRawDataMemoryModeHeap;

int ret = ZoomInstantSDK.getInstance().initialize(this.getApplicationContext(), params);
if (ret != ZoomInstantSDKErrors.Errors_Success) {
    Toast.makeText(this, ErrorMsgUtil.getMsgByErrorCode(ret), Toast.LENGTH_LONG).show();
}else {
    ((TextView) findViewById(R.id.text_version)).setText(getString(R.string.launch_setting_version, ZoomInstantSDK.getInstance().getSDKVersion()));
}

}

**Logcat **

E/AndroidRuntime: FATAL EXCEPTION: preLoadCameraCapabilities
Process: us.zoom.InstantSDKPlaygroud, PID: 8380
java.lang.RuntimeException: Can’t create handler inside thread that has not called Looper.prepare()
at android.os.Handler.(Handler.java:200)
at android.os.Handler.(Handler.java:114)
at us.zoom.internal.audio.AudioSessionMgr.(AudioSessionMgr.java:34)
at us.zoom.internal.RTCConfSessionHelper.(RTCConfSessionHelper.java:17)
at us.zoom.internal.RTCConference.(RTCConference.java:69)
at us.zoom.internal.RTCConference.initRTCConference(RTCConference.java:101)
at com.zipow.videobox.util.ZMPolicyDataHelper.a(ZMPolicyDataHelper.java:3083)
at com.zipow.nydus.camera.ZMCameraMgr.loadCapabilitiesFromConfig(ZMCameraMgr.java:210)
at com.zipow.nydus.camera.ZMCameraMgr.preLoadCameraCapabilities(ZMCameraMgr.java:136)
at us.zoom.internal.SDKApplication$2.run(SDKApplication.java:152)
W/CameraBase: An error occurred while connecting to camera: 1
W/CameraBase: An error occurred while connecting to camera: 0

Screenshot

Hi @alam.ashraful, thanks for the post.

Sorry to hear you’re experiencing another crash. Can you please confirm whether or not this is being called from the main thread in your app? When you observe this behavior in the demo app, what changes have you made before running the app?

Thanks!

Hi @jon.lieblich , The exception occurs in our main thread. I changed nothing in the demo app before running. The previous(1.0.1) sdk(demo app) runs fine in Nexus 5 but the newer one crashes on startup.

Hi @alam.ashraful,

Thanks for confirming that. We will need to continue investigating this crash. Can you also please send the SDK logs over to developersupport@zoom.us?

Thanks!

Hi @jon.lieblich , Thanks for your response.
I have sent an email(developersupport@zoom.us) with full logs.

Hi @alam.ashraful,

Confirming that we have received your email. We will investigate this crash and let you know as soon as we have any updates.

Thanks!

Can we use zoom in to a website LMS for taking online classes and also will it work while using any VPN? Thanks in advance for your help.

Hi @apksclub, thanks for using Zoom.

Your question appears to be related to the Zoom client. This forum is meant to assist developers who are integrating our SDKs into their own applications. For help with the Zoom client, please visit our general support page. :slightly_smiling_face:

Thanks!

I had the same issue on a Pixel 2 XL running Android 11. The previous SDK version worked fine but the problem showed up after upgrading the SDK to 1.0.2. What I discovered was that the app needed permissions to file access during the Welcome screen startup. I then deleted the app’s cache and manually set the permissions under the app settings. If you ever delete the cache, the permissions are removed, so they need to be manually set. Simply running the app from Android Studio does not fix this problem.

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