-
Notifications
You must be signed in to change notification settings - Fork 6k
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
PlaybackStatsListener causes crash #8772
Comments
Looks like the same issue as #8675, which may occur if you reset the same player with new media or use another player with the same listener attached, AND a seek happens just before the new playback starts. You said it's happening when you close your Activity? Can you check whether something in your code is attempting to seek just before you release the player? |
I can't see anything in the code that would be causing a seek and none of the available logging suggests any kind of seek is going on. |
If you have a way to reproduce, can you describe what we'd need to do to see the same problem here or upload a small example project showing the problem? Alternatively, it's probably quicker to wait until we uploaded the fix for #8675 and test against the ExoPlayer version with this fix to see if it's indeed the same problem. |
It looks like if I remove the PSL from the player before calling release then I don't get the crash (at least this seems to be working from the limited testing I've done so far) |
Yes, this is avoiding the issue, but I'm trying to find out whether there is something we need to fix here besides the fix for #8675. |
Well from what I've looked at today, what I've seen is:
|
This comment has been minimized.
This comment has been minimized.
Thank you @tonihei I'll verify and check. |
As an update to this: We attempted to do as much as we could to ensure the analytics listeners were removed before releasing the player. This resolved any crashing issues we were seeing locally. However out in the wild we were still seeing a huge volume of crashes related to this Assertion check, and nothing seemed to suggest a problem on our side. Eventual solution was to clone the repo, and compile with assertions disabled. Bingo - no more crashes. It was either this or revert to the previously stable version of ExoPlayer before the crashes started happening. |
Did you try to use the fix for #8675? It's now also been released as part of 2.14.0, so you should be able to upgrade to this version to get the fix as well. |
Hey @iNdieboyjeff. We need more information to resolve this issue but there hasn't been an update in 14 weekdays. I'm marking the issue as stale and if there are no new updates in the next 7 days I will close it automatically. If you have more information that will help us get to the bottom of this, just add a comment! |
Since there haven't been any recent updates here, I am going to close this issue. @iNdieboyjeff if you're still experiencing this problem and want to continue the discussion just leave a comment here and we are happy to re-open this. |
ExoPlayer 2.13.2
Upgrading from ExoPlayer 2.12.3 -> 2.13.2 I'm finding that everything works fine, but when I close my PlayerActivity my app is crashing. The error we get is:
I've noticed that in our code:
if I simply comment out the addAnalyticsListener call then the crash does not happen.
Is this crash a new problem with PlaybackStatsListener, and is there a fix for it?
A secondary question would be, given that we're not using a callback with PSL, is there any drawback to simple not adding the listener (at least until such time as the crash is fixed)?
I'm not sure if this counts as a separate issue to #8675 or not as we are using DRM protected Widevine-DASH VOD content, not a live stream.
The text was updated successfully, but these errors were encountered: