[BUG] crash in background, foreground service while app already closed #1462#1500
[BUG] crash in background, foreground service while app already closed #1462#1500MianMuzammil67 wants to merge 1 commit intoanilbeesetti:mainfrom
Conversation
|
Hi @MianMuzammil67, Did you manage to reproduce this crash? |
|
Yes, I was able to reproduce it, and the crash no longer occurs after the fix. |
81444c0 to
368d504
Compare
|
@anilbeesetti I’m new to contributing to open source and I noticed that my pull request #1462 was automatically closed. I’m not sure why this happened and wanted to check if there’s something I need to do to fix it or reopen it. Thank you for your time and guidance! |
Can you let me know how you reproduced this crash |
Don't know why it's automatically closed, I'm reopening it |
I was able to reproduce it by playing any video, pausing it, then pressing the Home button to close the app and switching to another app. Shortly after, Android shows a message saying that Next Player has crashed. |
|
@anilbeesetti Hi! Just checking in to see if there's anything else needed from my side to get this merged. All checks have passed and the changes were approved earlier. Let me know if there's anything else you'd like me to address. Thanks! |
|
Hey, I'm unable to reproduce this error, so I can't verify whether this fix resolves the issue. Additionally, I'm currently preparing a new version release and would like to check if this crash still occurs in the new version before proceeding with this PR. |
|
@anilbeesetti , thanks for the update! That makes sense. Since you’re preparing a new release and can’t reproduce the crash on your end, I’m totally fine with waiting until you’ve had a chance to verify it against the new version. For reference, I was able to reproduce the crash consistently on Android 11 redmi note 9 by:
Shortly after, the app would crash with a foreground service–related error. The fix prevents that behavior on my end. If there’s any additional logging, testing, or changes you’d like me to help with, I’m happy to do so. Thanks for taking a look, and good luck with the release! |
|
@MianMuzammil67, Can you check if the app is still crashing in 0.15.0. If yes can you please share a screen recording for me to look into. Thanks |
This PR fixes a crash that occurs when the app is closed while the foreground service is running.
Changes:
Related issue: #1462