mihonapp / mihon

Free and open source manga reader for Android
Apache License 2.0
10.18k stars 461 forks source link

Mihon crashes if the app is in the background too long and immediately bring it to the foreground #712

Open infyProductions opened 6 months ago

infyProductions commented 6 months ago

Steps to reproduce

  1. Open the Mihon app and let it sit in the background.
  2. Switch over the Mihon app after a few minutes/hours later.
  3. One or two things will happen:
    • Crash; or
    • Returns to the previous screen where you left off

Expected behavior

Returns to the previous screen where you left off (like Updates, Downloads, or in the app settings)

Actual behavior

Crashes with this instead: Screenshot 2024-04-26 141037

Crash logs

Note: Toggled verbose logging turned on More -> Settings -> Advanced. mihon_crash_logs_4-26-2024.txt

Mihon version

Beta r6648

Android version

Android 13

Device

WSA version 2311.40000.5.0

Other details

I'm not sure if "Window Focus" in WSA settings affects anything in terms of keeping the app up and running while running other apps on the host operating system (Windows 11)

Acknowledgements

Qulox commented 6 months ago

I've had this same issue since the first public version of Mihon. Exactly the same steps and the same log.

Dreiundachzig commented 3 months ago

Do you use gesture navigation? This bug exists since Tachiyomi introduced the new repository system.