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
Can not catch all ExoPlayer errors leading to app crash #2592
Comments
Yes, there are a few cases where we don't correctly handle and propagate internal errors (which we don't expect to occur, but we should make sure to never cause process death). |
Ok, but what next? Can I do something? Or is there any time frame when this will be fixed? |
I'm actually quite confused by your post of stack overflow. There's no evidence there that the stack trace you've posted there actually caused your app to crash. It looks like it would have been caught and propagated to onPlayerError as expected. Please can you provide a proper bug report, or at least complete logcat showing the app crashing. If your app is actually crashing then I think you'd expect a corresponding logs to begin with FATAL EXCEPTION. Something like:
|
Ok, I added there full error message. |
Your app is crashing due to your own code:
Our Javadoc indicates that |
I see, so when I handle error by this, it should be ok, right?
|
Yes. Although if you don't care what type the cause is, you can just do this:
|
Thank you. |
Hello,
I described problem here.
Problem is that application crash on some (not all, some of them I can catch) random errors mainly with DRM, but I am not able to catch them with set listener. Even after I set listener, app still sometime crash, if there is bigger error.
Last crash I could observe, was this:
Caused by: com.google.android.exoplayer2.drm.DrmSession$DrmSessionException: com.google.android.exoplayer2.upstream.HttpDataSource$HttpDataSourceException: Unable to connect to https://...
Please help me to catch all errors to avoid app crashing.
Thank you.
The text was updated successfully, but these errors were encountered: