Hi everybody,

First of all, thank you all for contributing to the great piece of software
that DT is.

I've been experiencing OOM crashes during thumbnail creation in lighttable
mode. Typically, DT will complain about not being able to allocate memory
for thumbnail export, and will quickly become unresponsive and crash after
the app's memory footprint skyrockets.

I'm running git master (b62b6fdf1) on Linux 64bit with 4G RAM, and number
of background threads in core options is set to 1.

I think my issues may be related to mipmap cache generation for PNG and
TIFF images, both types of which I have in my library in some places, and
seem to correlate loosely with the crashes.

Here's a quick reproducer which seems to show a memory issue with thumbnail
generation for PNG and TIFF files:

1. I generated 3 directories named "jpg", "tif", "png". I populated each of
those with 100 identical images, 6000x4000, pure white, in the image format
corresponding to the directory name. I used the following bash script
(relying on ImageMagick) to do so:

#!/bin/bash
for ext in jpg tif png; do
mkdir $ext
cd $ext
convert -size 6000x4000 -compress LZW xc:white 0.$ext
for ((i=1; i<100; i++)); do cp 0.$ext $i.$ext; done
cd ..
done

2. I tried to import the jpg directory into DT as a new film roll. No
issues here: all thumbnails were quickly generated, and DT's memory
footprint stayed low.

3. Then I tried the same with the tif and png film rolls. Here, I only get
a couple of valid thumbnails before getting skull icons, and DT's memory
usage explodes.


Could it be that there is some memory leak in the code handling PNG or TIFF
files?


Thanks a lot for your help,

--Thomas
------------------------------------------------------------------------------
Subversion Kills Productivity. Get off Subversion & Make the Move to Perforce.
With Perforce, you get hassle-free workflows. Merge that actually works. 
Faster operations. Version large binaries.  Built-in WAN optimization and the
freedom to use Git, Perforce or both. Make the move to Perforce.
http://pubads.g.doubleclick.net/gampad/clk?id=122218951&iu=/4140/ostg.clktrk
_______________________________________________
darktable-devel mailing list
darktable-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/darktable-devel

Reply via email to