-
-
Notifications
You must be signed in to change notification settings - Fork 5.5k
Description
Hi, this has been talked about on #termux quite a bit, a while ago. But I'm opening an issue here, because it still affects me (on 3 different phones) and so it doesn't get forgotten and because it is quite severe.
On my phones, Termux would randomly close. This happens mostly in the middle of the night (on 2 out of 3 nights), but it has also happened multiple times while I was working with it over SSH.
Possible causes
FolderSync
At night my phone is running a few FolderSync tasks. There aren't a lot of files to be synced, but it does check a lot of files. I've checked and FolderSync isn't using up Memory or CPU.
Jekyll
In the cases of it closing while I'm working with it, it has happened noticably more frequent when working with Jekyll, while Jekyll is generating the website.
Speculation
It seems to happen during times of high filesystem activity. Is it maybe related to a filesystem interrupt? Like a file that needs to be read by the app which it can't do because the filesystem is overloaded?
All this happens with or without Wakelock held. Termux isn't entirely closing, it just seems to loose the session. The following screenshot shows "0 terminal sessions" and the Wakelock isn't held. As far as I know, Termux should only show 0 Sessions when a Wakelock is held.
I also once made termux do a continous logcat until it closed. https://gist.github.com/Neo-Oli/faa32ecb939c1f88cbcd7748a8377600
So far, this has only happened on marhmallow phones. It first appeared the day after I upgraded from KitKat.
Sadly, I can't produce a reproducible test case that doesn't involve waiting for 12 hours. I'm hoping someone else has the same issue as me. I'd be willing to run any test builds or do any debugging I can.