8000 App randomly crashing when starting screen share and always crashing when going back to camera · Issue #820 · flutter-webrtc/flutter-webrtc · GitHub
[go: up one dir, main page]

Skip to content

App randomly crashing when starting screen share and always crashing when going back to camera #820

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

Closed
ghost opened this issue Dec 27, 2021 · 4 comments

Comments

@ghost
Copy link
ghost commented Dec 27, 2021

I've implemented the video call with an option to replace the camera stream with the screen record stream while in the call. Sometimes it happens that the application crashes as soon as I try to share the screen. When trying to go back to the camera stream it always crashes. This started happening when I started testing with an Android 11 device (was not happening with Android 7).

Error message: F/libc (15836): Fatal signal 11 (SIGSEGV), code 1 (SEGV_MAPERR), fault addr 0x0 in tid 18006 (Thread-5), pid 15836

  • Flutter version: 2.8.1
  • Plugin version: 0.8.0
  • OS: Android
  • OS version: 11
@ghost ghost closed this as completed Jan 10, 2022
@ycherniavskyi
Copy link
Member

@RobVR did you solve the issue?
It will be really great if you could leave some comments about your issue and the way how you overcome it.

@ghost
Copy link
Author
ghost commented Jan 10, 2022

@ycherniavskyi Still debugging this one. I'm not sure if my code has issues or it is a library issue. Closed it in order to not disturb anyone because I'm having double thoughts on my code. Will write again after finding the real issue.

@ghost
Copy link
Author
ghost commented Jan 10, 2022

I've narrowed down my issue. It appears that my crash happens when I reach this piece of code:

(await _sessions[_sessionId]?.pc?.getSenders())
          ?.where((element) => element.track?.kind == 'video')
          .first
          .replaceTrack(
            _localStream!.getTracks().where((element) => element.kind == 'video').first)

And I'm getting this error:
F/libc ( 9768): Fatal signal 11 (SIGSEGV), code 1 (SEGV_MAPERR), fault addr 0x0 in tid 10914 (Thread-5), pid 9768

The weird thing is that it sometimes happens, sometimes not (most of the time yes). Any ideas?

@ghost ghost reopened this Jan 10, 2022
@ghost
Copy link
Author
ghost commented Jan 14, 2022

Seems like the solution on issues 831 solves my problem.

@ghost ghost closed this as completed Mar 16, 2022
This issue was closed.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant
0