Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

App frequently closing after update to 1.0.1 #610

Open
machiav3lli opened this issue May 15, 2024 Discussed in #607 · 19 comments
Open

App frequently closing after update to 1.0.1 #610

machiav3lli opened this issue May 15, 2024 Discussed in #607 · 19 comments
Labels
bug Something isn't working

Comments

@machiav3lli
Copy link
Member

Discussed in #607

Originally posted by gbakeman May 15, 2024
Just after updating to version 1.0.1 recently, the app has started closing frequently. Immediately after the update it closed as expected, then it would close while trying to update other apps as well. I left it alone but noticed it was periodically sending notifications indicating it was trying to update, so I force-closed it. Now I'm trying to open it, and it closes within one or two seconds. When manually looking through logs, I can see these lines that looks interesting:

05-15 12:55:14.232 E/PackageManager(  958): Attempt to invoke virtual method 'boolean android.os.Bundle.getBoolean(java.lang.String, boolean)' on a null object reference
05-15 12:55:14.232 I/ActivityManager(  958): Force stopping com.machiav3lli.fdroid appid=10122 user=-1: installPackageLI

I also attach an extended log here. Thanks in advance for any help!

neostore-log.txt

Edit: I tried clearing the cache only which has allowed me to start using the app, however now it is spamming me with a notification that says "Installed" and nothing else. It self-clears then adds its self back again, even if I manually clear it. Force stopping the app has halted the notifications for now.

@machiav3lli machiav3lli added the bug Something isn't working label May 15, 2024
@machiav3lli
Copy link
Member Author

Can you try to get a crashlog using Scoop? Also some helpful info would be:

  • Selected installer
  • Android version
  • Any Magisk/Xposed modules?
  • Updated 0.9.15 → 1.0.0 → 1.0.1 or jumped some versions?

@gbakeman
Copy link

Unfortunately, I'm no longer able to reproduce the crashing issue. I was able to successfully update an app through Neo Store without issue. That resulted in an expected "app Installed" notification, however the blank "Installed" popups persist. And I apologize for omitting the basic information! 😄

  • Installer: Root installer
  • Android version: 9.0
  • Magisk @ 27.0 w/ Always Trust User Certificates, MagiskHide Props Config, Systemless Hosts, Universal SafetyNet Fix, and Zygisk - LSPosed (XPosed framework) @ v1.9.2
    • Disable FLAG_SECURE, Scoop and XPrivacyLua modules installed.
  • I believe I followed the upgrade path you've specified above.

@machiav3lli
Copy link
Member Author

Someusers had some issues with XPrivacyLua or hiding some apps (mainly Magisk related) before, so this maybe the cause of the crash (as it seems an injected "coverup" to an expected function call.

On the black-installed-notification thingy, I'm still not sure why it's so persistent… I can only guess that there's a work running, but even then it should be ended when notifying "installed"… did you try to clean install? maybe export extras (if you have any favorites and app preferences you'd like to keep) and repositories (if you have added any repositories that aren't by default in NS)

@opusforlife2
Copy link

opusforlife2 commented May 16, 2024

@machiav3lli Happened to me as well just after installing 1.0.1 and then trying to open it. My first attempt at a solution was to clear the app cache, and that worked perfectly.

Edit: I just did this on another device, and this exact solution worked. But to be fair, in my case the app crashed just 1 second after opening, so I didn't have the chance to do anything else within it. So maybe immediately clearing the cache without doing anything else is one solution.

@gbakeman
Copy link

gbakeman commented May 16, 2024

I just want to add that exporting settings, clearing all data, and reimporting settings seems to have fixed the remaining notification issue. Trying to install apps while it was still crashing probably caused that. Unfortunately it's only detected a small number of apps that I have installed compared to before (should've exported the installed apps too, didn't think I needed to do that.) Do you still want to keep this open?

Thank you for all of your help on this.

Edit: Despite importing the list of enabled repositories and refreshing repositories a few times, I was still missing a significant amount of apps. I had to disable the F-Droid repository, enable it again, then refresh repositories again, and that has restored my list of installed apps. All is well!

@machiav3lli
Copy link
Member Author

I would suggest using another mirror than the main for the official f-droid repo (I for once use FAU's, based in Germany)

@machiav3lli
Copy link
Member Author

@gbakeman I'll keep it for now, maybe we (with @opusforlife2 ) can guess the reason behind the issue?!

in my case the app crashed just 1 second after opening, so I didn't have the chance to do anything else within it.

That's surely an uncommon thing to happen… auto-fixing by clearing cache…

So here's my first guess: A question for you both, does these devices have (real) external storage (e.g. sd-card)?

@gbakeman
Copy link

So here's my first guess: A question for you both, does these devices have (real) external storage (e.g. sd-card)?

I honestly can't remember. I've looked through my settings, and I see no mention of external storage! I think everything, at least for NeoStore, is stored on phone storage. I'm sorry the log wasn't helpful, hopefully more people will come here.

If you don't mind my asking, why do you recommend against the official F-Droid repo?

@machiav3lli
Copy link
Member Author

I honestly can't remember. I've looked through my settings

So your device doesn't have an sd-card? So maybe it was only an API-change thingy (as many APIs were changed lately)

why do you recommend against the official F-Droid repo?

I don't recommend against the main repo, but I suggest using one of their mirrors (maybe the closest to your place, for better performance). This reduces the overload on the main mirror, as I guess this was the reason the sync failed for you at the start…

@gbakeman
Copy link

gbakeman commented May 16, 2024

I just double checked, and nope, no external card support. On your comment about an API change, I noticed several database-related messages in the log file, could there have been a schema change with NeoStore? And thank you for clearing up the F-Droid mirror situation, that makes a lot of sense to find a local one.

@opusforlife2
Copy link

I already use the Cloudflare mirror. And no device of mine has SD card support.

My guess is that when trying to compose the UI, the app was looking for existing settings instead of creating new defaults, causing the crash. Maybe there could be fallbacks created for when pre-update settings clash with post-update expectations of the app?

I remember a similar thing used to happen with Neo Backup on nearly every update, back when it wasn't yet mature. The layout got changed in some way or the other, and I had to uninstall/reinstall in order for the app to work properly.

@machiav3lli
Copy link
Member Author

But this is not really possible considering that no key have really changed in between, also cache shouldn't be causing such issue on 1.0.0→1.0.1, if so that should've happend already on 0.9.15→1.0.0

@opusforlife2
Copy link

Oh. Then I'm not sure about the cause. I guessed it was the layout because that was the only change I noticed in newer versions. Here, too, the app went from default alphabetical ascending sort to default last update descending sort.

Also, I had the Installed tab set as default, in case that's relevant.

@machiav3lli
Copy link
Member Author

The changes you mentioned are a 0.9.15→1.0.0 thing, and didn't come with 1.0.1. There was also no changes in the navigation items, so that also a default wouldn't break things… sometimes it's just some system caching magic…

@gbakeman
Copy link

gbakeman commented May 25, 2024

Unfortunately, the crashing and superuser toast popups have returned. As I was typing this, I also just received a notification that a new app update is available. I was able to open Neo-Store by tapping the notification, and then install the app update. I was then able to use Neo-Store without issue. I can also open it again without crashing now. However, I am still seeing superuser toasts. It seems like it was struggling to work through something, but eventually completely what it was doing? Either way, it seems like clearing data hasn't fixed it.

Edit: Scoop, for some reason, is not catching these app closures as crashes.

@opusforlife2
Copy link

However, I am still seeing superuser toasts.

I have also seen these far more frequently than before, despite not using the app. Not sure what the app is doing here.

@machiav3lli
Copy link
Member Author

Edit: Scoop, for some reason, is not catching these app closures as crashes.

I guess there's no real crashes (assuming you've setup Scoop after the last system restart).

I have also seen these far more frequently than before, despite not using the app. Not sure what the app is doing here.

Do you have the option to keep app updated notification after installation? Root calls - when root installer is the one selected - are only used in installing and uninstalling apps. That said, I guess depending on how the root checking method is implemented, magisk could interpret it as a call instead of a check. The root toasts are showing up on launches or syncs?

@gbakeman
Copy link

I guess there's no real crashes (assuming you've setup Scoop after the last system restart).

Correct, Scoop has caught a few other apps so I believe it's working.

Do you have the option to keep app updated notification after installation? Root calls - when root installer is the one selected - are only used in installing and uninstalling apps. That said, I guess depending on how the root checking method is implemented, magisk could interpret it as a call instead of a check. The root toasts are showing up on launches or syncs?

It looks like I had that option turned off. At the time, the root toasts were showing repeatedly before and after I installed the app update. After I made that post, I left it alone, which caused my phone to be quite warm throughout the day and drain the battery. Force stopping the app and enabling battery optimization seemed to help with that, although there's likely an underlying problem.

Screenshot_20240525-153713

@opusforlife2
Copy link

Do you have the option to keep app updated notification after installation?

I do.

The root toasts are showing up on launches or syncs?

Neither. Just randomly showing up while using other apps.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

3 participants