App suddenly won't start, worked 2 min before

asked 2019-11-26 14:53:45 +0200

kaktux gravatar image

updated 2019-11-26 15:47:51 +0200

Hi there,

i have a weird problem on my j1. From one minute to the other i can't start an app. The problem is with threema - so its an android app - which is the only one i installed by hand by downloading apk. All other android apps are downloaded via app store. Still it worked fine until it couldn't start for whatever reason - it shows loading and then just stops without the app opening. Already restarted several times.

I did no updates, didn't install or deinstall anything. Nothing. All i did was cleaning the micro usb port by hand from some dust. But if that would be the reason.... I read some others threads where they did start other android apps and not the problematic one as solution. Doesn't work either.

Anyone got an idea what i can do? Never had a problem like that. Starting problems with some apps - but nothing that a reboot didn't fix.

Edit 1: I tried emptying cache as suggested in the comments. No change

I also locked in via ssh from my desktop pc and looked how to start android apps. (browse to /usr/share/applications -> open the needed .desktop file via editor (i used nano) -> see the apkd-launcher entry) I tried starting 2 android apps via terminal from desktop with the info out of the .desktop files

  1. my rss-reader [nemo@Sailfish ~]$ apkd-launcher "/data/app/org.freshrss.easyrss-1.apk" org.freshrss.easyrss/org.freshrss.easyrss.Home Result: Parcel(00000000 '....') -> loads a few seconds - then the app starts on J1

  2. threema [nemo@Sailfish ~]$ apkd-launcher "/data/app/ch.threema.app-2.apk" ch.threema.app/ch.threema.app.activities.MainActivity Result: Parcel(00000000 '....') [nemo@Sailfish ~]$ -> jumps straight back to the prompt. no loading time at all.

edit retag flag offensive close delete

Comments

Try clearing app cache via Settings->Apps.

Giacomo Di Giacomo ( 2019-11-26 15:02:07 +0200 )edit

thanks for the suggestion - but this didn't work.

I also looked how to start apps via terminal - i added Edit1 to the post. Also no success with that so far. On the home screen it shows the loading for about 5 sec then just closes. Via terminal it immediatly goes back to command line - no loading time at all

kaktux ( 2019-11-26 15:40:46 +0200 )edit

Next step is cleaning app data, if you did not yet try, then uninstall and reinstall the app, then delete /home/.android (which will erase all of your Android apps).

Giacomo Di Giacomo ( 2019-11-26 15:43:05 +0200 )edit

happens to me from time to time with Android apps. In my case this usually can be solved by restarting the Android layer. Easy to do with "Aliendalvik toggle for Jolla Settings" from openrepos.

Spark ( 2019-11-26 15:56:44 +0200 )edit

well - the problem i have with trying that first is the backup. I did not have a chance to create one - and as i did not use the automatic (meaning google cloud) one this would mean my messages, pictures etc. would be gone. I'd like to safe that somehow. The threema page gives the smartass advice to use backup :P

I already did try one reinstall (without uninstall before) but that didnt work either.

BUT - as i was searching where threema stores stuff (which is /home/nemo/android_storage/Threema/) I saw a file debug_log.txt in there. And this says after trying to start the app via ssh-terminal: Tue Nov 26 14:54:46 MEZ 2019 INFO ThreemaApplication: * Lifecycle: App now created Tue Nov 26 14:54:46 MEZ 2019 INFO ThreemaApplication: OK, masterKeyFile exists Tue Nov 26 14:54:46 MEZ 2019 INFO j: check if v4 database migration is necessary Tue Nov 26 14:54:46 MEZ 2019 INFO j: No old database file found. No migration necessary Tue Nov 26 14:54:46 MEZ 2019 INFO j: New database file exists = true Tue Nov 26 14:54:46 MEZ 2019 INFO j: instantiated Tue Nov 26 14:54:46 MEZ 2019 INFO j: got masterkey Tue Nov 26 14:54:46 MEZ 2019 ERROR j: Database corrupted

And using that Database corrupted shows me there sadly seems no other way then to uninstall completly and lose the data. The only thing i found is an entry for iphone - but guess the result has to be the same.

"- Ensure that there is enough free space on your device (Settings > General > About); we recommend 1 GB or more. - Reboot your iPhone, enable flight mode and start Threema. - If the database update crashes again, it is likely that the message database is corrupted (e.g. due to prior crashes of the phone, manual closing of the app etc.). In this case, unfortunately only a reinstallation will help (delete the app and reinstall it from the App Store). Your Threema ID will stay the same; however saved messages/contacts will be lost. Don't forget to re-enable the contact synchronization in Threema privacy settings after reinstallation if desired."

kaktux ( 2019-11-26 16:33:21 +0200 )edit