-
Notifications
You must be signed in to change notification settings - Fork 159
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
App crash in native library: unpublishVideoTrack #447
Comments
|
Hey @palicka Are you able to reproduce this crash in any of the quickstart modules? |
|
I can reproduce this crash. When I open the app from notification, app crashes onPasue method. 2019-10-30 19:20:03.259 7039-7039/? A/DEBUG: backtrace: |
|
I'm also able reproduce that crash, is there any way how to eliminate that (Pixel 3, Android 10) |
|
I have found workaround for now. |
|
I too fixed this by being really careful about how I publish, unpublish and release tracks. What really helped was to migrate all my Twilio Room code from inside my Fragment over to a ViewModel. This made it a lot easier to manage because the ViewModel isn't affected by fragment lifecycle changes caused by rotation, task switching, etc. Another thing that helped was to increase the Twilio log levels. The log statement immediately before the crash (sorry I forget what it was) was very useful in finding the bug in my code: |
|
@aaalaniz this issue happens when How to fix
|
|
Hey @DmytroBatyuk Thank you for the detailed steps and workaround. I have filed a bug and we will get this fixed in the next release. Thanks! |
|
All, I am actively trying to debug this issue. Are you able to reproduce it with any of the Quickstart applications or is this only happening in your own applications? Do you have steps that actively cause this issue to occur? As of now, I am unable to cause the crash to occur. Thank you, Ryan |
|
All, It turns out my earlier testing was a bit flawed and I was easily able to reproduce this issue with an integration test. I have addressed the issue and hope to get it into a release soon. Thank you for your patience while working through this issue. Ryan |
|
This crash was resolved in the |
stack trace:
2019-10-18 15:34:45.947 16686-16686/? A/DEBUG: *** *** *** *** *** *** *** *** *** *** *** *** *** *** *** ***
2019-10-18 15:34:45.947 16686-16686/? A/DEBUG: Build fingerprint: 'samsung/heroltexx/herolte:8.0.0/R16NW/G930FXXS6ESI4:user/release-keys'
2019-10-18 15:34:45.947 16686-16686/? A/DEBUG: Revision: '9'
2019-10-18 15:34:45.947 16686-16686/? A/DEBUG: ABI: 'arm'
2019-10-18 15:34:45.947 16686-16686/? A/DEBUG: pid: 15124, tid: 15124, name: *** >>> <<<
2019-10-18 15:34:45.947 16686-16686/? A/DEBUG: signal 11 (SIGSEGV), code 1 (SEGV_MAPERR), fault addr 0x1
2019-10-18 15:34:45.947 16686-16686/? A/DEBUG: Cause: null pointer dereference
2019-10-18 15:34:45.947 16686-16686/? A/DEBUG: r0 db2bdb74 r1 00000001 r2 00000001 r3 00000000
2019-10-18 15:34:45.947 16686-16686/? A/DEBUG: r4 db2bdb78 r5 00000001 r6 db2bdb74 r7 db2bdb78
2019-10-18 15:34:45.947 16686-16686/? A/DEBUG: r8 00000000 r9 dd888000 sl fff1b520 fp fff1b4ac
2019-10-18 15:34:45.947 16686-16686/? A/DEBUG: ip 00000035 sp fff1b3b0 lr c14d1333 pc c14d1b28 cpsr 200e0030
2019-10-18 15:34:45.949 16686-16686/? A/DEBUG: backtrace:
2019-10-18 15:34:45.949 16686-16686/? A/DEBUG: #00 pc 0014eb28 /lib/arm/libjingle_peerconnection_so.so
2019-10-18 15:34:45.949 16686-16686/? A/DEBUG: #1 pc 0014e32f //lib/arm/libjingle_peerconnection_so.so (Java_com_twilio_video_LocalParticipant_nativeUnpublishVideoTrack+230)
2019-10-18 15:34:45.949 16686-16686/? A/DEBUG: #2 pc 00051e45 //oat/arm/base.odex (offset 0x45000)
tested on samsung/xiaomi - same result
it happens when localParticipant.unpublishTrack(localVideoTrack) is called in onPause(), and screen capture is active.. when screen capture is not active, it works fine...
The text was updated successfully, but these errors were encountered: