mihon icon indicating copy to clipboard operation
mihon copied to clipboard

Mihon sometimes stops detecting installed extensions

Open lord-ne opened this issue 1 year ago • 10 comments

Steps to reproduce

Not sure yet. This just happens occasionally, and persists until app restart.

Expected behavior

When opening the app, installed extensions should be shown in the "extensions" tab.

Actual behavior

Installed extensions are not shown in the "extensions" tab (all extensions from repo show a download button instead of a gear icon), and "sources" tab only shows local source. "Migrate" tab shows "extension not installed" for every extension. Downloaded chapters are still readable, but non-downloaded chapters cannot be read.

Fixed by restarting app, but this has happened to me multiple times in the last few days.

Crash logs

No response

Mihon version

Observed in stable 0.16.0 through 0.16.3

Android version

Android 13 (EDIT: Specifically, MIUI 14, Xiaomi.eu build, rooted with Magisk, Shizuku installed)

Device

Poco F5

Other details

I know this isn't a lot of details, I'm mainly posting so someone can tell me which logs to pull next time this happens so we can actually diagnose this.

Acknowledgements

  • [X] I have searched the existing issues and this is a new ticket, NOT a duplicate or related to another open or closed issue.
  • [X] I have written a short but informative title.
  • [X] If this is an issue with an official extension, I should be opening an issue in the extensions repository.
  • [X] I have gone through the FAQ and troubleshooting guide.
  • [X] I have updated the app to version 0.16.1.
  • [X] I have updated all installed extensions.
  • [X] I will fill out all of the requested information in this form.

lord-ne avatar Jan 20 '24 01:01 lord-ne

Still experiencing in 0.16.3

lord-ne avatar Jan 31 '24 23:01 lord-ne

Are you still facing this? Can you check preview build?

AntsyLich avatar May 05 '24 10:05 AntsyLich

I'm still facing this (0.16.5). I'll check preview.

lord-ne avatar May 05 '24 13:05 lord-ne

Confirmed this is still happening on the latest preview (r6674)

lord-ne avatar May 06 '24 01:05 lord-ne

Have you tried turning MIUI Optimization off in your Phone Settings > Developer Options, if you're on HyperOS, it might be hidden & you can search online for guide to find it.

Also, some versions of HyperOS in certain regions might have an additional OS change, where you need to go to Mihon app info (not in-app) and give it permission to view all apps on your device.

Smol-Ame avatar May 06 '24 01:05 Smol-Ame

I'm on MIUI, not HyperOS. The battery optimizations were already disabled. I went into the permissions section and enabled Mihon to get info about installed apps "always" (the default was "only when running").

I'll update if I continue to see the issue, and if I don't see it within a few days I'll close this bug.

lord-ne avatar May 06 '24 02:05 lord-ne

Battery Optimization isn't the same as MIUI Optimization, while you should have battery optimization disabled for things to run, MIUI Optimization is a different thing that causes different issues (such as extension-related ones).

If the "info about installed apps" change to always doesn't work, then try turning off MIUI Optimization to see if it helps

Smol-Ame avatar May 06 '24 02:05 Smol-Ame

I also have the same issue on HyperOS

gogito avatar May 19 '24 07:05 gogito

I also have the same issue on HyperOS

Mihon 0.16.4 should've made extension installation/updating stable, and the issue usually comes down to Xiaomi devices & their "optimizations"

For anyone having issues on HyperOS, either:

  • Go to Mihon app info (not in-app), then in Permissions > Other Permissions > Access List of Installed Apps, set it to "Always Allow" (This extra permission only exists in certain versions of HyperOS, if you don't have this, do the steps below)

  • Go to Phone Settings > Developer Options, and turn off system optimization/MIUI Optimization (If you don't see this setting, scroll down to the bottom of Dev Options, tap multiple times on "Reset to default values", and it should appear)

Smol-Ame avatar May 19 '24 07:05 Smol-Ame

On MIUI 14 (at least on my build), the way to turn on "always allow" for accessing the app list is actually Settings -> Apps -> Permissions -> Permissions -> (Permissions tab) -> Get info about installed apps -> Mihon -> (Select "always allow"). That is, it doesn't show up under the app info permission settings, you have to go find the list of all the permissions instead.

After doing those steps the issue hasn't occured for me (it's been a few weeks), so I assume that fixed it.

lord-ne avatar May 19 '24 16:05 lord-ne