mihonapp / mihon

Free and open source manga reader for Android
Apache License 2.0
9.56k stars 424 forks source link

App crashes after a restore from backup (r6454) #185

Closed infyProductions closed 1 month ago

infyProductions commented 8 months ago

Steps to reproduce

  1. Create backup in phone and upload to cloud service (from Mihon Stable) The backup I created contains:
    • Library entries
    • Categories
    • Chapters
    • History

(Backup creation on my phone) Screenshot_2024-01-22-10-56-49-48_551f7f0ca926862b368845ce7ee433aa

  1. Download from cloud service and restore the backup (to Mihon Beta) I just restored the following:
    • Library (Restore operation on WSA)

Screenshot 2024-01-22 111856

  1. Once it reaches 100%, it just pops up an error on the app but it successfully restores without any errors.

Expected behavior

The crash screen shouldn't appear after finishing the restore process.

Actual behavior

It crashes when the notification for the backup appears (although the backup was successfully restored without errors) (Image: the notification of Mihon in Windows Action Center) Screenshot 2024-01-22 113002

Crash logs

(The problematic part starts at around line 25)

tachiyomi_crash_logs_1-22-2024.txt

Mihon version

Beta r6454

Android version

Android 13

Device

WSA version 2311.40000.5.0

Other details

The backup was created on a stable version of Mihon (0.16.1) using a phone (Realme 6i), the restore target is on my WSA with version 2311.40000.5.0 (GAPPS patched) utilizing a beta version of Mihon (r6454)

Acknowledgements

MajorTanya commented 8 months ago

Is this still an issue on newer beta/stable versions?

infyProductions commented 8 months ago

I'll try to test if it still crashes on a newer stable (0.16.3) and beta (r6499) combination.

Backup and restore test as of Jan/31/2024 with stable 0.16.4 and beta r6499:

Screenshot 1: Screenshot 2024-01-31 142933 Screenshot 2: image

Note: The backup and restore error in screenshot 2 is different since it's related to a chapter duplication in one of my entries but it's the only entry in my library in all categories.

AntsyLich commented 1 month ago

647