-
Notifications
You must be signed in to change notification settings - Fork 1.2k
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
Crash when releasing the local stream on android #1257
Comments
Can you consistently reproduce this? I think I know what causes it, we need to run addSink / removeSink in the executor thread, since that's where we call dispose. |
It only happened twice and randomly when ending the call. |
If you no longer need the stream is ok to release it. |
Make sure add/removeSink operations run in the WebRTC thread, so it's safe to dispose and not get an error when concurrently modifying the sinks container, which happens inside WebRTC. Fixes: #1257
Will update the docs/handbook soon. Will also run some tests on #1258 👍🏻 |
Make sure add/removeSink operations run in the WebRTC thread, so it's safe to dispose and not get an error when concurrently modifying the sinks container, which happens inside WebRTC. Fixes: #1257
Make sure add/removeSink operations run in the WebRTC thread, so it's safe to dispose and not get an error when concurrently modifying the sinks container, which happens inside WebRTC. Fixes: react-native-webrtc/react-native-webrtc#1257
When releasing the local stream the app crashed on android and this is how we release the stream:
the crash report:
Possible solution:
Link
The line causing the issue is 59 in this file: org.webrtc
The issue happened to me only once while doing heavy testing on the video calls.
Expected Behavior
it shouldn't crash
Observed Behavior
it crashed
Steps to reproduce the issue
N/A
Platform Information
The text was updated successfully, but these errors were encountered: