I am syncing several GB of data between phone and PC. After several minutes the RAM usage of libsyncthing.so increases to over 1GB and renders the phone unusable, even the Syncthing GUI is killed while syncing continues for a while until eventually the phone reboots.
This problem did not happen before since I use Syncthing.
Restarted the phone and Syncthing-Fork several times, each time same problem.
Samsung Galaxy S5 Plus (SM-G901F), LineageOS for microG 16 (Android 9)
Syncthing-Fork 18.104.22.168 with Syncthing 1.2.2
PC: SyncTrayzor 1.1.23 with Syncthing v1.3.0, Windows 7(64 bit)
This is a change in 1.3.0, while the OP reports 1.2.2. Also while I didn’t check thoroughly, from what I saw two buffer settings that were previously at 8MB were changed to 64MB for large dbs, so about an expected increase of ~110MB max.
F-Droid does not provide v1.3.0. I installed 22.214.171.124 APK from Syncthing-Fork website but that created a new app (…debug). That is the app I removed. The original one is the one I use.
LineageOS offers more permissions to withdraw than stock ROM. For all apps I don’t need after booting the phone (as Syncthing) the permission to start after booting is not granted.
The GUI crashes because of OOM. I killed the libsyncthing.so process to prevent the phone from rebooting.
If root access is not granted I don’t get synced read and write folders (cannot tell right now which ones).
After a short time when the RAM usage of libsyncthing.so has increased to several hundred MB the logs in Syncthing GUI are empty. Here is what I got before that (Android log). Syncthing log was empty already.
I updated Syncthing-Fork to v126.96.36.199 and reset database on both sides (phone and PC). The extreme RAM usage is still there.
This is only the case on my Samsung Galaxy S5 Plus (SM-G901F), LineageOS for microG 16 (Android 9), on my Samsung Galaxy S3 (GT-I9300), LineageOS for microG 14.1 (Android 7.1.2) RAM usage is when downloading up to 240MB, when downloading up to 140MB. On both phones the same Syncthing-Fork version, on PC SyncTrayzor with Syncthing 1.3.0. Until about a month ago there was no problem on both phones.
Can there be a current incompatibility of Syncthing with LineageOS (for microG) 16 (Android 9)?