Gallery should handle big png-files better (gets OOM)
I just recently installed halftrail and downloaded Finnish topo-maps as png-files from kapsi.fi. Those files have typically size of several MB (i.e 1:20000 maps have files with 16 MB) and there can be in totakl few GB of those files. Later I noticed that gallery did not work any longer; it started and ran for a while and then disappeared from the screen. Running top-command showed it taking all the memory and dmesg showed lowmemorykiller doing its job: [132322.980203] lowmemorykiller: Killing 'jolla-gallery' (7946), adj 0, to free 468628kB on behalf of 'kswapd0' (50) because cache 3844kB is below limit 16384kB for oom_score_adj 0 Free memory is 11460kB above reserved
After deleting the png-files Gallery worked normally. Looks like memory leak to me. ,--- | SailfishOS 1.1.6.27 (Aaslakkajärvi) (armv7hl) '---
Where did you store the pngs? I think if you store it in a hidden folder, where the folder name starts with a dot (e.g.
wanderer ( 2015-07-26 19:12:34 +0200 )edit.tiles
), the pngs are not touched by the tracker and therefore don't show up in the gallery. I think you don't need to see them there anyway, do you?The files are stored in a directory structure defined by the application; in this case halftrail. Naming the folder differently could be a nice work-around, however it does not solve the original problem.
rsainio ( 2015-07-26 19:44:32 +0200 )edit