-
-
Notifications
You must be signed in to change notification settings - Fork 1.8k
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
Crash due to PlayerService #6905
Comments
Doc from context.startForegroundService(i) says:
And this is not true if we only try to stop playback as then directly onStop() is called in PlayerService. |
I'll look into this. |
#6908 I wrote a (failing) test for this. |
@tobiasKaminsky this will be very handy. |
I need to think a bit more about the possible fix. On newer API levels, interacting with services in the background is limited by the OS. Quite a lot of our code assumes that you can ping a background service at will. I need to take a closer look at the player state machine. I know that the previous PR #6798 addressed a similar issue in different code path, however we can consider what is the lesser evil here - keeping the fix or backing it out - by comparing the severity of those 2 bugs. I have no access to crash logs, but feel free to back out #6798 if you feel that previous bug was less serious. |
Also see #7189 (comment) |
Also see #7187 (comment) |
Also see #7191 (comment) |
Still can't play videos in 3.14.0 RC2 without crash. Will this be fixed for 3.14.0 final? |
Still crashes with RC2. |
There is an APK file in PR #7340, which you can install in parallel to your existing Nextcloud app. |
Auch mit der 3.14.0 stable crasht die App. Fehlerlog: ********** APP INFORMATION ********** ********** DEVICE INFORMATION ********** ********** FIRMWARE ********** |
Will be fixed with #7340 |
Error still exists. |
This should be fixed in 3.14.1 RC2 coming today. You can test it via play store beta program. |
Steps to reproduce
@ezaquarii this happens on latest dev, and it seems that it is from your foreground fix:
Upon file removed event, FileDisplayActivity onRemoveFileOperationFinish is called and this calls tryStopPlaying.
PR was #6798
The text was updated successfully, but these errors were encountered: