We have moved to a new Sailfish OS Forum. Please start new discussions there.

Gallery should handle big png-files better (gets OOM)

asked 2015-07-26 13:38:48 +0200

rsainio gravatar image

updated 2015-07-26 16:05:49 +0200

dulog gravatar image

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 (Aaslakkajärvi) (armv7hl) '---

edit retag flag offensive close delete


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. .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?

wanderer ( 2015-07-26 19:12:34 +0200 )edit

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

1 Answer

Sort by » oldest newest most voted

answered 2015-07-27 00:33:47 +0200

tigeli gravatar image

It seems that jolla-gallery is using rather large amount of the available memory. However I would need the url's for the PNG-files to reproduce the issue, could you (@rsainio) please provide them for us?

edit flag offensive delete publish link more



You can find some of those png-files in following URL:


rsainio ( 2015-07-27 09:19:19 +0200 )edit
Login/Signup to Answer

Question tools



Asked: 2015-07-26 13:38:48 +0200

Seen: 184 times

Last updated: Jul 27 '15