Android app closes after 5 seconds

Operating system

Android

Joplin version

3.4.7

Sync target

WebDAV

What issue do you have?

Hi,
After I installed the app and finished the sync settings Joplin app disappears without any message. When I start it again I shortly can see my notes from the sync destination on my Synology NAS, so sync with WebDav seems to work fine but then the app closes without any message. Tried to do anything in it but 5 seconds are to short to get a log file or anything else. Deleted the cache already. Same. I already gave unrestricted battery usage. Same. Just had another idea to deactivate the media download before I activate the sync (set it to manual). But it also didn't work. Anyone another idea?
Using Galaxy S23+ One UI 8.0 Android 16
Thanks!

Happy to announce that I solved my problem after several hours.

I’ll write it down, perhaps it can help somebody else.
The problem were two big files in the sync folder, obviously from importing html files. I already had them converted into Markdown format and hadn’t thought about them anymore.
I found the first hint in a help article, that the Android app can’t open attachments bigger than 10 MB without crashing. I looked through my imported notes but couldn’t find anything bigger. But I found two big files in the sync folder. Didn’t want to delete them manually because I don’t know enough about this software. So, I created a backup file and deleted everything in the sync folder. Then I found the right idea in this help article about restoring backups Joplin Plugins - Backup

I created a second profile in the Windows app, imported the backup via file - import, then exported the notebooks as a Joplin export file, switched to the default profile, imported them via file - import and all big files in the sync folder were gone. The sync in the Android app worked without any problems. No crash anymore.

Now I use the second profile without any syncing only for every html import. Convert the import to Markdown, export the notebooks or notes, switch to the default profile and import them all. Works perfectly without any troubles in the Android app. :+1: :grinning_face:

1 Like

@Anam Thanks for the followup and glad you found a solution.

I’d like to know more if possible of what might have been the root cause of the issue, and I have a few questions:

  1. The 2 big files which you deleted, how big were they?
  2. Were those 2 big files in the root of the Joplin directory on the server, or were they in the .resources folder?
  3. Do you use E2E encryption in Joplin?
  4. Does your WebDAV server have a recycle bin? If so, would you be able to download those 2 large server items to aid with some analysis (you could likely find them easily by sorting by file size)? If you do have access to those files, my initial question would be if the content of those files contains a ‘item_type’ field, and if so, what is the value?

Hi Mrjo,

  1. It was originally a html export file from the app Diarium, size 84 MB and around this size I saw two of them in my NAS folder. Maybe one 86 MB.

  2. I saw them in the root folder. Haven't had a look into the other folders.

  3. Don't know. How can I find which encryption I use?

  4. It has, but I already emptied it. But I exported another small file of the same app, opened it in Firefox, activated the page source and let Firefox search for that expression. He couldn't find it. I'll attach the html file to this email.

Hope it helps :slight_smile:

Anam

(attachments)

Diarium_2025-11-26_2025-11-26.html (94.9 KB)

Thanks for the additional info. I actually deleted my post shortly afterward as I understood something different in what you wrote originally after re-reading it.

I guess there must be something in the logic for a html import which is storing the full import file on the server either by design or due to a bug, and the mobile app is not able to handle that properly when this is a large file.

OK, thanks for the explanation, I had already wondered about that.