Closed simenm closed 1 year ago
@simenm Thank you for the bug report, yeah, the issue fixed in 7.10 was for audio tracks, not video tracks... Is onDispose being called on the same thread as the one calling Video.connect(..)?
Hi @afalls-twilio ! Are you aware about any plans to fix this issue? Or maybe you could suggest a workaround to avoid app crash? Thank you.
Hi all, sorry for the delayed response we have some large updates coming down the pipe and we will take a look at this as soon as we can. As for this issue regarding the video track crash, if the root cause is similar to the issue with the audio tracks crashing upon "unpublish & release", then a possible workaround is delay the release call... the simplest way to do this is to schedule the release on the ui thread after you have unpublished.
@inferpse @simenm We are having trouble reproducing the issue, I have created a test application which we can use to attempt to recreate the issue with. The application currently publishes/unpublishes in a loop. Please modify the test application to help us reproduce it.
PS: I ran it both on a Pixel 2 API 30 (x86) emulator & Pixel 4a device with API 31
https://drive.google.com/drive/folders/1Y-SMX8Op8xUbhtTP_kd4QPt1uuw1LASr?usp=sharing
@inferpse @simenm have you had a chance to test/reproduce with the test app & src provided?
@afalls-twilio sorry for the delay. I'm not actually an Android developer so I had to wait for an opportunity to reproduce this issue with the person who originally pointed me here.
Around a month ago we applied the workaround that you suggested in our application and it resolved the app crash for us. Today we've spent some time trying to reproduce the crash using both physical devices and emulators but we did not encounter that crash anymore.
So unfortunately I'm not sure that we could give more insights on this.
@inferpse Thank you for the update, if we don't hear back from @simenm about the issue, I'll just close it and assume it was fixed when we fixed a very similar issue in the recent past.
Description
After following the progress in https://github.com/twilio/video-quickstart-android/issues/692 I updated to 7.1.0, and my app is crashing when I try to dispose of my local video track. Interestingly it only seems to happen if I "have joined a twilio room", and am streaming video between two participants. I've so far only been able to reproduce on emulator, which is running Pixel 2 with API 30. Testing on an older device of mine does not produce the error.
See details below, please let me know if I can provide any other useful information.
Steps to Reproduce
step 1 create video track
step 2 join a twilio room
step 3 dispose the video upon disposing the view
Expected Behavior
Gracefully disposing of the video track
Actual Behavior
The app crashes with a
A/libc: Fatal signal 6 (SIGABRT), code -1 (SI_QUEUE) in tid 15065 (MediaFactoryImp), pid 14540 (droid.dev.debug)
Reproduces how Often
Every time
Logs
SEE PASTEBIN FOR COMPLETE LOGS
Video Android SDK
7.1.0
Android API
API 30
Android Device
Emulator running Pixel 2 API 30