Skip to content
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 after Stopping Remote Stream #32

Closed
anilmaddala opened this issue Mar 24, 2015 · 9 comments
Closed

App Crashes after Stopping Remote Stream #32

anilmaddala opened this issue Mar 24, 2015 · 9 comments

Comments

@anilmaddala
Copy link

The Android Application is successfully able to connect to the ProjectRTC hosted application.

The application crashes if we hit back button on the application or if the user presses "Stop" button after the call has stated.

@VAdaihiep
Copy link

You have same issue with me: #24
But pchab say he can not maintaining this project because of unemployment :(

@pchab
Copy link
Owner

pchab commented Mar 27, 2015

Hi,
I'm currently working on it. I've updated the libs, and I added onPause onResume handling. Now if the user press the back button, he should be able to go back in the app without crashing it.
Still one bug left : when back in the app, the call is still going on but nothing appears on the android screen.

@pchab
Copy link
Owner

pchab commented Mar 28, 2015

App should now correctly pause resume et destroy.

@pchab pchab closed this as completed Mar 28, 2015
@anilmaddala
Copy link
Author

Thank you for fixing the bugs. I Want to make some changes to the libjingle for the commit ID: 08bfc8a . Could you please tell which version of libjingle you are using? Also could you please attach the version of libjingle and webRTC you are using in your future commit?

@pchab
Copy link
Owner

pchab commented Apr 8, 2015

I'm using rev 8871 of libjingle.
You can find it here : http://search.maven.org/#artifactdetails|io.pristine|libjingle|8871|pom

@azfarsiddiqui
Copy link

@pchab, I am using the latest AndroidRTC code. When I press the back button on RtcActivity, the app crashes on 'videoSource.dispose()' inside 'WebRtcClient->onDestroy()' method. Looking at this thread, this seems to be a fixed issue. 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<MediaSourceInterface*>(j_p))->Release() (0 vs. 1)
Unexpected refcount.

@azfarsiddiqui
Copy link

@anilmaddala , @VAdaihiep : Have you guys witnessed the back button crash again? Unfortunately, its still an issue for me. Please see my last comment. Can you give any pointers?

@pchab
Copy link
Owner

pchab commented Apr 28, 2015

I'll look into it.

@naumanb
Copy link

naumanb commented Sep 18, 2018

For anyone still using the app: I found out the app wasn't even getting to the onDestroy() function. In fact, it was just getting stuck at the removePeer function in the WebRtcClient class. Removing the 'peer.pc.close()' line worked for me.

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

5 participants