Closed krokhale closed 6 years ago
Tried creating a barebones app and used the code in example and the app is crashing again. I am guessing, not entirely sure, it's an issue with the android versions supported by react-native-opentok.
This is a snapshot of the Android logs
I'm seeing this as well:
12-04 14:18:25.211 19185-19264/com.test D/opentok: *********************** ANDROID SDK android-2.8.2 ********************************
12-04 14:18:25.211 19185-19264/com.test D/opentok: **** Lib built on May 27 2016 at 14:36:41
12-04 14:18:25.211 19185-19264/com.test D/opentok: **** OpenTok Android SDK : cf6e19e891637298d5995f1f877b10199f23b2ba
12-04 14:18:25.211 19185-19264/com.test D/opentok: **** OpenTok OTKIT : 66748264e5260729efd4fde5ec2480d31666b5d0
12-04 14:18:25.211 19185-19264/com.test D/opentok: **** WEBRTC REVISION : 49-001 -8ccf77319e08b86330c0e5b195697fd738c80931-Release-13a6ada2fe817802eddf037c2a525f5439668077
12-04 14:18:25.211 19185-19264/com.test D/opentok: **** Copyright 2014 TokBox, Inc.
12-04 14:18:25.211 19185-19264/com.test D/opentok: **** Licensed under the Apache License, Version 2.0
12-04 14:18:25.211 19185-19264/com.test D/opentok: ************************************************************************
12-04 14:18:25.217 19185-19264/com.test I/opentok-session: Connecting to the session. SessionID: 1_MX40NTkyNDk2Mn5-MTUxMjQxODM3NTI4MH5wSkR3QkhnQ0dOcGdQN0VxTlplT2Iyazl-fg Token: T1==cGFydG5lcl9pZD00NTkyNDk2MiZzaWc9ZjJkNGQ4ZWY3MzkwYjRkNjk4NjI3Mjg1NzU5N2U5NjI3MGUwYzY3ZTpzZXNzaW9uX2lkPTFfTVg0ME5Ua3lORGsyTW41LU1UVXhNalF4T0RNM05USTRNSDV3U2tSM1FraG5RMGRPY0dkUU4wVnhUbHBsVDJJeWF6bC1mZyZjcmVhdGVfdGltZT0xNTEyNDE4NzA1Jm5vbmNlPTI3ODMzNTMyNSZyb2xlPXB1Ymxpc2hlciZpbml0aWFsX2xheW91dF9jbGFzc19saXN0PWZ1bGwmZXhwaXJlX3RpbWU9MTUxMjUwNTEwNQ== ApiKey: 45924962
12-04 14:18:26.060 19185-19275/com.test I/opentok-session: Session is connected
12-04 14:18:26.060 19185-19275/com.test I/opentok-session: New session connection is created. ConnectionId: 4a204dd3-83b2-4867-acc0-af72a36e4868
12-04 14:18:26.060 19185-19275/com.test I/opentok-session: New session stream is created. StreamId: d8a2ba07-6d33-4257-9114-98c9d58c7cce
12-04 14:18:26.064 19185-19185/com.test W/unknown:ReactNative: Calling JS function after bridge has been destroyed: RCTDeviceEventEmitter.emit(["onSessionDidConnect",{"sessionId":"1_MX40NTkyNDk2Mn5-MTUxMjQxODM3NTI4MH5wSkR3QkhnQ0dOcGdQN0VxTlplT2Iyazl-fg"}])
12-04 14:18:26.065 19185-19185/com.test W/unknown:ReactNative: Calling JS function after bridge has been destroyed: RCTDeviceEventEmitter.emit(["onSessionStreamCreated",{"streamId":"d8a2ba07-6d33-4257-9114-98c9d58c7cce","sessionId":"1_MX40NTkyNDk2Mn5-MTUxMjQxODM3NTI4MH5wSkR3QkhnQ0dOcGdQN0VxTlplT2Iyazl-fg"}])
12-04 14:18:29.155 19185-19190/com.test I/zygote: Do full code cache collection, code=246KB, data=191KB
12-04 14:18:29.159 19185-19190/com.test I/zygote: After code cache collection, code=240KB, data=149KB
12-04 14:18:29.928 19185-19190/com.test I/zygote: Do partial code cache collection, code=242KB, data=153KB
12-04 14:18:29.929 19185-19190/com.test I/zygote: After code cache collection, code=242KB, data=153KB
12-04 14:18:29.929 19185-19190/com.test I/zygote: Increasing code cache capacity to 1024KB
12-04 14:18:35.788 19185-19226/com.test D/EGL_emulation: eglMakeCurrent: 0xa7d86500: ver 2 0 (tinfo 0x9753caa0)
12-04 14:18:35.834 19185-19226/com.test D/EGL_emulation: eglMakeCurrent: 0xa7d86500: ver 2 0 (tinfo 0x9753caa0)
12-04 14:18:37.113 19185-19226/com.test D/EGL_emulation: eglMakeCurrent: 0xa7d86500: ver 2 0 (tinfo 0x9753caa0)
12-04 14:18:37.130 19185-19226/com.test D/EGL_emulation: eglMakeCurrent: 0xa7d86500: ver 2 0 (tinfo 0x9753caa0)
12-04 14:18:37.135 19185-19264/com.test I/opentok-session: Disconnecting to the session
12-04 14:18:37.161 19185-19275/com.test I/opentok-session: Session is disconnected
12-04 14:18:37.173 19185-19226/com.test D/EGL_emulation: eglMakeCurrent: 0xa7d86500: ver 2 0 (tinfo 0x9753caa0)
12-04 14:18:37.177 19185-19185/com.test W/unknown:ReactNative: Calling JS function after bridge has been destroyed: RCTDeviceEventEmitter.emit(["onSessionDidDisconnect",{"sessionId":"1_MX40NTkyNDk2Mn5-MTUxMjQxODM3NTI4MH5wSkR3QkhnQ0dOcGdQN0VxTlplT2Iyazl-fg"}])
12-04 14:18:37.202 19185-19190/com.test I/zygote: JIT allocated 56KB for compiled code of void android.view.View.<init>(android.content.Context, android.util.AttributeSet, int, int)
12-04 14:18:42.031 19185-19264/com.test I/opentok-session: Checking hardware decoding support: Android SDK built for x86
12-04 14:18:42.031 19185-19264/com.test D/opentok-session: HW decoding enabled? : false
12-04 14:18:42.032 19185-19264/com.test I/opentok-session: Connecting to the session. SessionID: 1_MX40NTkyNDk2Mn5-MTUxMjQxODM3NTI4MH5wSkR3QkhnQ0dOcGdQN0VxTlplT2Iyazl-fg Token: T1==cGFydG5lcl9pZD00NTkyNDk2MiZzaWc9MDZiODM5Y2U2ZTZmYzA1MmI2ZTQxMDhjZDE3NWE1ZTM0NzAxNTQ0MjpzZXNzaW9uX2lkPTFfTVg0ME5Ua3lORGsyTW41LU1UVXhNalF4T0RNM05USTRNSDV3U2tSM1FraG5RMGRPY0dkUU4wVnhUbHBsVDJJeWF6bC1mZyZjcmVhdGVfdGltZT0xNTEyNDE4NzIyJm5vbmNlPS01NjUyODQxNTMmcm9sZT1wdWJsaXNoZXImaW5pdGlhbF9sYXlvdXRfY2xhc3NfbGlzdD1mdWxsJmV4cGlyZV90aW1lPTE1MTI1MDUxMjI= ApiKey: 45924962
12-04 14:18:42.791 19185-19275/com.test I/opentok-session: Session is connected
12-04 14:18:42.792 19185-19275/com.test I/opentok-session: New session connection is created. ConnectionId: 4a204dd3-83b2-4867-acc0-af72a36e4868
12-04 14:18:42.792 19185-19275/com.test I/opentok-session: New session stream is created. StreamId: d8a2ba07-6d33-4257-9114-98c9d58c7cce
12-04 14:18:42.800 19185-19185/com.test I/opentok-publisherkit: Setting publisher audio property to true
12-04 14:18:42.800 19185-19185/com.test I/opentok-publisherkit: Setting publisher video property to true
12-04 14:18:42.800 19185-19185/com.test I/opentok-session: Starting a Publisher streaming to the session
12-04 14:18:43.001 19185-19185/com.test W/unknown:ReactNative: Calling JS function after bridge has been destroyed: RCTDeviceEventEmitter.emit(["onSessionDidConnect",{"sessionId":"1_MX40NTkyNDk2Mn5-MTUxMjQxODM3NTI4MH5wSkR3QkhnQ0dOcGdQN0VxTlplT2Iyazl-fg"}])
12-04 14:18:43.007 19185-19185/com.test I/opentok-subscriberkit: Setting subscriber audio property to true
12-04 14:18:43.009 19185-19185/com.test I/opentok-subscriberkit: Setting subscriber video property to true
12-04 14:18:43.011 19185-19185/com.test I/opentok-session: Start subscribing to streamId: d8a2ba07-6d33-4257-9114-98c9d58c7cce in the session
12-04 14:18:43.063 19185-19185/com.test W/unknown:ReactNative: Calling JS function after bridge has been destroyed: RCTDeviceEventEmitter.emit(["onSessionStreamCreated",{"streamId":"d8a2ba07-6d33-4257-9114-98c9d58c7cce","sessionId":"1_MX40NTkyNDk2Mn5-MTUxMjQxODM3NTI4MH5wSkR3QkhnQ0dOcGdQN0VxTlplT2Iyazl-fg"}])
[ 12-04 14:18:43.111 19185:19342 D/ ]
HostConnection::get() New Host Connection established 0x97147400, tid 19342
[ 12-04 14:18:43.180 1418:19354 D/ ]
HostConnection::get() New Host Connection established 0xae20f240, tid 19354
12-04 14:18:43.311 19185-19342/com.test D/EGL_emulation: eglCreateContext: 0x8d28a200: maj 2 min 0 rcv 2
12-04 14:18:43.386 19185-19342/com.test D/EGL_emulation: eglMakeCurrent: 0x8d28a200: ver 2 0 (tinfo 0x8f40c780)
12-04 14:18:43.391 19185-19342/com.test D/opentok-nativerenderer: VideoRenderOpenGles20: id 0
12-04 14:18:43.406 19185-19342/com.test D/opentok-nativerenderer: Setup: number of textures 16, size 16384
12-04 14:18:43.778 19185-19358/com.test D/EGL_emulation: eglCreateContext: 0x91715620: maj 2 min 0 rcv 2
12-04 14:18:43.817 19185-19358/com.test D/EGL_emulation: eglMakeCurrent: 0x91715620: ver 2 0 (tinfo 0x9174cff0)
12-04 14:18:43.819 19185-19358/com.test D/opentok-nativerenderer: VideoRenderOpenGles20: id 0
12-04 14:18:43.828 19185-19358/com.test D/opentok-nativerenderer: Setup: number of textures 16, size 16384
12-04 14:18:44.044 19185-19344/com.test D/AudioTrack: Client defaulted notificationFrames to 1416 for frameCount 4248
12-04 14:18:44.052 19185-19344/com.test W/AudioTrack: Use of stream types is deprecated for operations other than volume control
12-04 14:18:44.052 19185-19344/com.test W/AudioTrack: See the documentation of AudioTrack() for what to use instead with android.media.AudioAttributes to qualify your playback use case
12-04 14:18:44.072 19185-19185/com.test D/opentok-defaultaudiodevice: Bluetooth disconnected
12-04 14:18:44.082 19185-19185/com.test D/opentok-defaultaudiodevice: Bluetooth connecting
12-04 14:18:44.092 19185-19185/com.test D/opentok-defaultaudiodevice: Bluetooth disconnected
12-04 14:18:44.746 19185-19275/com.test I/opentok-subscriberkit: Subscriber with streamId: d8a2ba07-6d33-4257-9114-98c9d58c7cce is connected
12-04 14:18:44.818 19185-19275/com.test A/libc: Fatal signal 11 (SIGSEGV), code 1, fault addr 0xc in tid 19275 (mqt_native_modu)
12-04 14:18:46.913 19185-19434/com.test W/AudioTrack: releaseBuffer() track 0x8d2efa00 disabled due to previous underrun, restarting
This is now resolved in the latest version.
I am unable to debug what's happening. iOS works great. Is there a restriction on the Android version that causes the crashes? Anyone else facing similar issue?