-
Notifications
You must be signed in to change notification settings - Fork 574
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 crashes on pressing Back button #42
Comments
Got the same problem, and can't figure out, why it happens. |
@rimmer, @RyanRamchandar First of all the code crashes on videoSource.dispose(), when I comment out this line, the code does not crash. However, as a ripple effect, I cannot start the video source again as access to camera is not released. If the app is restarted, it all functions well. As a workaround, I had to release the camera by a non conventional way i.e. killing the activity the hard way:
|
Can someone test with videoSource.stop() ? (i've made a commit with the change) |
@pchab that seems to fix the problem for me. Will check once more. Thanks! |
@pchab That does remove the Force Close from happening though I don't think it's a good solution since the Activity instance now leaks because it still has a reference to Also, |
I'll follow https://code.google.com/p/webrtc/issues/detail?id=4303 and revert to videoSource.dispose() once it's been fixed |
@pchab @azfarsiddiqui Do you have the appropriate solution for this yet? |
@pchab I had the same problem. Have you had any solutions? |
Can any one know answer help me how to fix it? |
My current silly walk around is to start the call activity in a separate process then kill it onDestroy using @azfarsiddiqui code.
|
Hi guys, I have included this walk around @azfarsiddiqui to my code and is working as a charm, but I would like to know if there is any kind of patch or something related to solving this problem/bug. Also I would like to ask, what version of libjingle do you use in your projects? Best, |
When I press the back button on RtcActivity, the app crashes on 'videoSource.dispose()' inside 'WebRtcClient->onDestroy()' method. Looking at the issues list, this seems to be a fixed, but I am still witnessing this. I am using API level 21 and build tools 21.1.2. Following is the error message I see in Logcat:
Fatal error in ../../talk/app/webrtc/java/jni/peerconnection_jni.cc, line 926
Check failed: 0 == (reinterpret_cast(j_p))->Release() (0 vs. 1)
Unexpected refcount.
P.S: I did not choose any option to 'Call someone', I just pressed the back button to dismiss the chooser. Also, there was no inbound connection i.e. no one was viewing my stream.
The text was updated successfully, but these errors were encountered: