Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Disconnecting from a Room that is not connected sometimes results in crash #116

Closed
aaalaniz opened this issue May 10, 2017 · 0 comments

Comments

@aaalaniz
Copy link
Member

commented May 10, 2017

We are sometimes seeing crashes when disconnecting from a Room that has not reached the connected state.

Stacktrace

05-09 20:56:03.465: I/org.webrtc.Logging(14462): WebRtcAudioManager: dispose@[name=Thread-2278, id=2278]
05-09 20:56:03.465: I/org.webrtc.Logging(14462): --------- beginning of crash
05-09 20:56:03.468: A/libc(14462): heap corruption detected by dlfree
05-09 20:56:03.468: A/libc(14462): Fatal signal 6 (SIGABRT), code -6 in tid 27921 (Thread-2278)
05-09 20:56:03.550: I/DEBUG(202): *** *** *** *** *** *** *** *** *** *** *** *** *** *** *** ***
05-09 20:56:03.551: I/DEBUG(202): Build fingerprint: 'google/volantis/flounder:5.0.2/LRX22L/1816899:user/release-keys'
05-09 20:56:03.551: I/DEBUG(202): Revision: '0'
05-09 20:56:03.551: I/DEBUG(202): ABI: 'arm64'
05-09 20:56:03.551: I/DEBUG(202): pid: 14462, tid: 27921, name: Thread-2278  >>> com.twilio.video.test <<<
05-09 20:56:03.551: I/DEBUG(202): signal 6 (SIGABRT), code -6 (SI_TKILL), fault addr --------
05-09 20:56:03.626: I/DEBUG(202): Abort message: 'heap corruption detected by dlfree'
05-09 20:56:03.630: I/DEBUG(202):     x0   0000000000000000  x1   0000000000006d11  x2   0000000000000006  x3   00000055857f5030
05-09 20:56:03.630: I/DEBUG(202):     x4   00000055857f5030  x5   0000000000000005  x6   0000000000000001  x7   0000000000000020
05-09 20:56:03.630: I/DEBUG(202):     x8   0000000000000083  x9   fefeff7e66ff6464  x10  7f7f7f7f7f7f7f7f  x11  0000000000000001
05-09 20:56:03.630: I/DEBUG(202):     x12  0000000000000001  x13  0000000000000000  x14  0000000000000000  x15  001be7d789713de2
05-09 20:56:03.630: I/DEBUG(202):     x16  0000007f813a57d8  x17  0000007f8136a424  x18  0000000000000000  x19  00000055857f5030
05-09 20:56:03.630: I/DEBUG(202):     x20  0000007f68326bb0  x21  0000007f813ab000  x22  0000000000000058  x23  0000000000000006
05-09 20:56:03.630: I/DEBUG(202):     x24  0000000000000001  x25  0000007f68c1cdc8  x26  00000000ffffffff  x27  0000005585a7c100
05-09 20:56:03.630: I/DEBUG(202):     x28  000000000082e432  x29  0000007f68326300  x30  0000007f81328bb0
05-09 20:56:03.630: I/DEBUG(202):     sp   0000007f68326300  pc   0000007f8136a42c  pstate 0000000060000000
05-09 20:56:03.630: I/DEBUG(202): backtrace:
05-09 20:56:03.630: I/DEBUG(202):     #00 pc 000000000005f42c  /system/lib64/libc.so (tgkill+8)
05-09 20:56:03.630: I/DEBUG(202):     #01 pc 000000000001dbac  /system/lib64/libc.so (pthread_kill+160)
05-09 20:56:03.630: I/DEBUG(202):     #02 pc 000000000001f0e0  /system/lib64/libc.so (raise+28)
05-09 20:56:03.631: I/DEBUG(202):     #03 pc 00000000000189fc  /system/lib64/libc.so (abort+60)
05-09 20:56:03.631: I/DEBUG(202):     #04 pc 000000000001af88  /system/lib64/libc.so (__libc_fatal+128)
05-09 20:56:03.631: I/DEBUG(202):     #05 pc 000000000003e8c4  /system/lib64/libc.so (__bionic_heap_corruption_error+20)
05-09 20:56:03.631: I/DEBUG(202):     #06 pc 0000000000041d50  /system/lib64/libc.so (dlfree+1052)
05-09 20:56:03.631: I/DEBUG(202):     #07 pc 00000000000171c4  /system/lib64/libc.so (free+20)
05-09 20:56:03.631: I/DEBUG(202):     #08 pc 0000000000774e7c  /data/app/com.twilio.video.test-1/lib/arm64/libjingle_peerconnection_so.so
05-09 20:56:03.631: I/DEBUG(202):     #09 pc 0000000000777450  /data/app/com.twilio.video.test-1/lib/arm64/libjingle_peerconnection_so.so
05-09 20:56:03.631: I/DEBUG(202):     #10 pc 0000000000777604  /data/app/com.twilio.video.test-1/lib/arm64/libjingle_peerconnection_so.so
05-09 20:56:03.631: I/DEBUG(202):     #11 pc 00000000006d5288  /data/app/com.twilio.video.test-1/lib/arm64/libjingle_peerconnection_so.so
05-09 20:56:03.631: I/DEBUG(202):     #12 pc 00000000006d9d9c  /data/app/com.twilio.video.test-1/lib/arm64/libjingle_peerconnection_so.so
05-09 20:56:03.631: I/DEBUG(202):     #13 pc 00000000006d9e74  /data/app/com.twilio.video.test-1/lib/arm64/libjingle_peerconnection_so.so
05-09 20:56:03.631: I/DEBUG(202):     #14 pc 0000000000685100  /data/app/com.twilio.video.test-1/lib/arm64/libjingle_peerconnection_so.so
05-09 20:56:03.631: I/DEBUG(202):     #15 pc 0000000000670cac  /data/app/com.twilio.video.test-1/lib/arm64/libjingle_peerconnection_so.so
05-09 20:56:03.631: I/DEBUG(202):     #16 pc 000000000062f46c  /data/app/com.twilio.video.test-1/lib/arm64/libjingle_peerconnection_so.so
05-09 20:56:03.631: I/DEBUG(202):     #17 pc 000000000062f868  /data/app/com.twilio.video.test-1/lib/arm64/libjingle_peerconnection_so.so
05-09 20:56:03.631: I/DEBUG(202):     #18 pc 0000000000582160  /data/app/com.twilio.video.test-1/lib/arm64/libjingle_peerconnection_so.so
05-09 20:56:03.631: I/DEBUG(202):     #19 pc 000000000057db58  /data/app/com.twilio.video.test-1/lib/arm64/libjingle_peerconnection_so.so
05-09 20:56:03.631: I/DEBUG(202):     #20 pc 0000000000582350  /data/app/com.twilio.video.test-1/lib/arm64/libjingle_peerconnection_so.so
05-09 20:56:03.631: I/DEBUG(202):     #21 pc 0000000000582e28  /data/app/com.twilio.video.test-1/lib/arm64/libjingle_peerconnection_so.so
05-09 20:56:03.631: I/DEBUG(202):     #22 pc 000000000001ccc0  /system/lib64/libc.so (__pthread_start(void*)+52)
05-09 20:56:03.631: I/DEBUG(202):     #23 pc 0000000000018fc4  /system/lib64/libc.so (__start_thread+16)
05-09 20:56:03.968: I/DEBUG(202): Tombstone written to: /data/tombstones/tombstone_00

Workaround

The SDK should allow disconnecting from a Room before being connected, but if you are experiencing this issue we recommend waiting for the onConnected callback before calling disconnect.

@aaalaniz aaalaniz added the bug label May 10, 2017

@aaalaniz aaalaniz referenced this issue Sep 21, 2017

@aaalaniz aaalaniz closed this Sep 21, 2017

@aaalaniz aaalaniz self-assigned this Sep 27, 2017

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
1 participant
You can’t perform that action at this time.