mihonapp / mihon

Free and open source manga reader for Android
Apache License 2.0
10.76k stars 495 forks source link

Startup crash screen #1197

Open Character95 opened 3 months ago

Character95 commented 3 months ago

Steps to reproduce

Just normal app startup

Expected behavior

Screen for biometrics or just app opened

Actual behavior

Android app crash screen: Mihon isn't responding (wait/ok)

Crash logs

mihon_crash_logs 06 09 2024.txt

Mihon version

App version: 0.16.5-6861 (standard, f22767d86, 7, 2024-09-03T13:03:50Z) Android version: 11 (SDK 30; build RP1A.200720.011) Device brand: Redmi Device manufacturer: Xiaomi Device name: begonia (begonia_eea) Device model: Redmi Note 8 Pro WebView: Android System WebView 129.0.6668.31

Android version

Android 11

Device

Redmi note 8 pro

Other details

No response

Acknowledgements

MajorTanya commented 3 months ago

That crash log file appears to be empty. Do you get some type of error/crash screen when you try to open the app?

nirodhvana commented 2 months ago

Im having a similar problem where the app just opens up to a crash screen with 'Whoops' and a crashlog and the 'share crashlog' and 'relaunch application' buttons then the screen keeps flashing forever

MajorTanya commented 2 months ago

That crash log file appears to be empty. Do you get some type of error/crash screen when you try to open the app?

The crash log seems to be not empty now

We prefer users asking for support in the Discord first. But if you think you have a non-empty crash log available for this issue, please share it as well as a screenshot of the crash screen.

Character95 commented 2 months ago

That crash log file appears to be empty. Do you get some type of error/crash screen when you try to open the app?

The crash log seems to be not empty now

We prefer users asking for support in the Discord first. But if you think you have a non-empty crash log available for this issue, please share it as well as a screenshot of the crash screen.

Screenshot_2024-09-11-18-53-28-628_app.mihon.debug.jpg

Screenshot_2024-09-11-18-53-54-343_app.mihon.debug_1.jpg

Character95 commented 2 months ago

mihon_crash_logs (16).txt

nirodhvana commented 2 months ago

i get this screen: Imagepipe_24 but it keeps flashing and i cant click either of the options.

Is there any other place where mihon stores crash logs?

MajorTanya commented 2 months ago

i get this screen: Imagepipe_24 but it keeps flashing and i cant click either of the options.

Is there any other place where mihon stores crash logs?

That should already prove helpful in case someone else has an idea about what's going on (I don't, sadly).

If you have some recent enough backups, you could try to remove Mihon from your phone and install it again. Note that this will incur data loss if you don't have backups of Mihon available, so make sure you do have them if you want to try this.

nirodhvana commented 2 months ago

i get this screen: Imagepipe_24 but it keeps flashing and i cant click either of the options. Is there any other place where mihon stores crash logs?

That should already prove helpful in case someone else has an idea about what's going on (I don't, sadly).

If you have some recent enough backups, you could try to remove Mihon from your phone and install it again. Note that this will incur data loss if you don't have backups of Mihon available, so make sure you do have them if you want to try this.

@MajorTanya interesting development here: So, the issue ceased and the app started behaving normally but i have no idea why?

Some other apps[Odysee and tutanota] that depended alot on android-system-webview were crashing so i guessed there was an issue with an update i installed for the webview so after i uninstalled updates for the webview and reverted to factory version, the apps started working properly and mihon as well

There seems to be a function that relates to webview in the crashlog in the screenshot i provided but i have no idea why webview would be related to this issue in mihon but can @Character95 try this out and see if this works.

Character95 commented 3 weeks ago

I finaly have fast (2 second) startup without crash at startup :)

Old startup time (30 second - 1 minute)

I think it's got something to do with restoring old backup file with entris to library from old add-ons that are not installed and not in repo anymore but will still show entris in migrate with missing addons

I started migrate entris from old missing to existing repo addons and removing old missing ones

there is still more to migrate about 60 entris but it sims that some entris without addons installed cosed startup crash

Startup crash was only in preview app not in stable app stable app was allways ok

This fix my preview app startup

Character95 commented 3 weeks ago

Screenshot_20241110-205119_Mihon.png

Screenshot_20241110-205055_Mihon.png