enblend : out of memory

Bug #679066 reported by gimli_the_dwarf
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Hugin
Fix Released
Critical
Unassigned

Bug Description

On a GNU/linux Ubuntu 8.10 system with hugin 7.0, enblend 3.2, I have 91Go of swap; 4Go ram (but 32bit processor)
I try to make a panorama with 70 pictures.
I reduce the output to 4000px width...
I looked at the amount of memory used by enblend and just before crashing, the use of memory rise in one time.

here is the log :
nona -z PACKBITS -r ldr -e 7 -m TIFF_m -o expo_4000_exposure_layers_ -i 0 /tmp/huginpto_aqJDcJ
enfuse -w -o expo_4000_stack_ldr_0000.tif expo_4000_exposure_layers_0000.tif
Loading next image: expo_4000_exposure_layers_0000.tif
enfuse: only one input file given. Enfuse needs two or more overlapping input images in order to do blending calculations. The output will be the same as the input.
Using 6 blending levels
Generating Gaussian pyramid: g0 g1 g2 g3 g4 g5
Generating Laplacian pyramid: l0 l1 l2 l3 l4 l5
Generating Gaussian pyramid: g0 g1 g2 g3 g4 g5
Collapsing Laplacian pyramid: l5 l4 l3 l2 l1 l0
exiftool -overwrite_original_in_place -TagsFromFile /home/navillot/Photos/albums/panoramas/expo/imgp1896.jpg -ImageDescription -Make -Model -Artist -WhitePoint -Copyright -GPS:all -DateTimeOriginal -CreateDate -UserComment -ColorSpace -OwnerName -SerialNumber expo_4000_stack_ldr_0000.tif
Warning: Too many values specified (2 required) for IFD0:WhitePoint - /home/navillot/Photos/albums/panoramas/expo/imgp1896.jpg
    1 image files updated
nona -z PACKBITS -r ldr -e 7.1378 -m TIFF_m -o expo_4000_exposure_layers_ -i 1 /tmp/huginpto_aqJDcJ
enfuse -w -o expo_4000_stack_ldr_0001.tif expo_4000_exposure_layers_0001.tif
Loading next image: expo_4000_exposure_layers_0001.tif
enfuse: only one input file given. Enfuse needs two or more overlapping input images in order to do blending calculations. The output will be the same as the input.
Using 6 blending levels
Generating Gaussian pyramid: g0 g1 g2 g3 g4 g5
Generating Laplacian pyramid: l0 l1 l2 l3 l4 l5
Generating Gaussian pyramid: g0 g1 g2 g3 g4 g5
Collapsing Laplacian pyramid: l5 l4 l3 l2 l1 l0
exiftool -overwrite_original_in_place -TagsFromFile /home/navillot/Photos/albums/panoramas/expo/imgp1896.jpg -ImageDescription -Make -Model -Artist -WhitePoint -Copyright -GPS:all -DateTimeOriginal -CreateDate -UserComment -ColorSpace -OwnerName -SerialNumber expo_4000_stack_ldr_0001.tif
    1 image files updated
nona -z PACKBITS -r ldr -e 6.93912 -m TIFF_m -o expo_4000_exposure_layers_ -i 2 /tmp/huginpto_aqJDcJ...

[Truncated; see "Full description" attachment]

Revision history for this message
gimli_the_dwarf (gimli-the-dwarf) wrote :
Revision history for this message
Bruno Postle (brunopostle) wrote :

This does look like a memory leak in enblend.

Though I notice that you are using 'exposure blending' output, but hugin has only identified 5 stacks out of 60.

With 'exposure blending' each image is passed through enfuse, which among other things removes any cropped_tiff offsets. This will increase memory usage, if you don't want exposure blending then you will get better results using 'normal' output.

Revision history for this message
gimli_the_dwarf (gimli-the-dwarf) wrote :

The file expo_bug.png was added: memory usage at crash

Revision history for this message
gimli_the_dwarf (gimli-the-dwarf) wrote :

Actually I need these 5 files for exposure blending (windows in a room from inside)
you can see one result here : http://farm4.static.flickr.com/3089/3150443144_acc1ef2714_b.jpg
I imagine that removing the crop by enfuse is something that should not be. Can't the crop be done once for all for the rest of the treatment ?
After posting this message I tried to create the panorama by the "normal way" with the "wizard" and it did the job (see my link).
But what is weird is the way the memory is needed (see the file I attached)...
And the most weird is the I succeed making one panorama 4000pxwidth once but not twice, and the same for a 1600px width... and now i doesn't want to work.

I'm happy that the normal way works and really happy to be able to use this kind of wonderful software, and if I can help, i'll be glad to !

Revision history for this message
nobody (nobody-users) wrote :
Download full text (4.1 KiB)

Following Error occurred when stitching 25 images.

C:\Program\ Files\Hugin\bin\nona -z PACKBITS -r ldr -m TIFF_m -o Front\ Porch\ 8 -i 0 C:\DOCUME~1\Owner\LOCALS~1\Temp\hug13EA.tmp
C:\Program\ Files\Hugin\bin\nona -z PACKBITS -r ldr -m TIFF_m -o Front\ Porch\ 8 -i 1 C:\DOCUME~1\Owner\LOCALS~1\Temp\hug13EA.tmp
C:\Program\ Files\Hugin\bin\nona -z PACKBITS -r ldr -m TIFF_m -o Front\ Porch\ 8 -i 2 C:\DOCUME~1\Owner\LOCALS~1\Temp\hug13EA.tmp
C:\Program\ Files\Hugin\bin\nona -z PACKBITS -r ldr -m TIFF_m -o Front\ Porch\ 8 -i 3 C:\DOCUME~1\Owner\LOCALS~1\Temp\hug13EA.tmp
C:\Program\ Files\Hugin\bin\nona -z PACKBITS -r ldr -m TIFF_m -o Front\ Porch\ 8 -i 4 C:\DOCUME~1\Owner\LOCALS~1\Temp\hug13EA.tmp
C:\Program\ Files\Hugin\bin\nona -z PACKBITS -r ldr -m TIFF_m -o Front\ Porch\ 8 -i 5 C:\DOCUME~1\Owner\LOCALS~1\Temp\hug13EA.tmp
C:\Program\ Files\Hugin\bin\nona -z PACKBITS -r ldr -m TIFF_m -o Front\ Porch\ 8 -i 6 C:\DOCUME~1\Owner\LOCALS~1\Temp\hug13EA.tmp
C:\Program\ Files\Hugin\bin\nona -z PACKBITS -r ldr -m TIFF_m -o Front\ Porch\ 8 -i 7 C:\DOCUME~1\Owner\LOCALS~1\Temp\hug13EA.tmp
C:\Program\ Files\Hugin\bin\nona -z PACKBITS -r ldr -m TIFF_m -o Front\ Porch\ 8 -i 8 C:\DOCUME~1\Owner\LOCALS~1\Temp\hug13EA.tmp
C:\Program\ Files\Hugin\bin\nona -z PACKBITS -r ldr -m TIFF_m -o Front\ Porch\ 8 -i 9 C:\DOCUME~1\Owner\LOCALS~1\Temp\hug13EA.tmp
C:\Program\ Files\Hugin\bin\nona -z PACKBITS -r ldr -m TIFF_m -o Front\ Porch\ 8 -i 10 C:\DOCUME~1\Owner\LOCALS~1\Temp\hug13EA.tmp
C:\Program\ Files\Hugin\bin\nona -z PACKBITS -r ldr -m TIFF_m -o Front\ Porch\ 8 -i 11 C:\DOCUME~1\Owner\LOCALS~1\Temp\hug13EA.tmp
C:\Program\ Files\Hugin\bin\nona -z PACKBITS -r ldr -m TIFF_m -o Front\ Porch\ 8 -i 12 C:\DOCUME~1\Owner\LOCALS~1\Temp\hug13EA.tmp
C:\Program\ Files\Hugin\bin\nona -z PACKBITS -r ldr -m TIFF_m -o Front\ Porch\ 8 -i 13 C:\DOCUME~1\Owner\LOCALS~1\Temp\hug13EA.tmp
C:\Program\ Files\Hugin\bin\nona -z PACKBITS -r ldr -m TIFF_m -o Front\ Porch\ 8 -i 14 C:\DOCUME~1\Owner\LOCALS~1\Temp\hug13EA.tmp
C:\Program\ Files\Hugin\bin\nona -z PACKBITS -r ldr -m TIFF_m -o Front\ Porch\ 8 -i 15 C:\DOCUME~1\Owner\LOCALS~1\Temp\hug13EA.tmp
C:\Program\ Files\Hugin\bin\nona -z PACKBITS -r ldr -m TIFF_m -o Front\ Porch\ 8 -i 16 C:\DOCUME~1\Owner\LOCALS~1\Temp\hug13EA.tmp
C:\Program\ Files\Hugin\bin\nona -z PACKBITS -r ldr -m TIFF_m -o Front\ Porch\ 8 -i 17 C:\DOCUME~1\Owner\LOCALS~1\Temp\hug13EA.tmp
C:\Program\ Files\Hugin\bin\nona -z PACKBITS -r ldr -m TIFF_m -o Front\ Porch\ 8 -i 18 C:\DOCUME~1\Owner\LOCALS~1\Temp\hug13EA.tmp
C:\Program\ Files\Hugin\bin\nona -z PACKBITS -r ldr -m TIFF_m -o Front\ Porch\ 8 -i 19 C:\DOCUME~1\Owner\LOCALS~1\Temp\hug13EA.tmp
C:\Program\ Files\Hugin\bin\nona -z PACKBITS -r ldr -m TIFF_m -o Front\ Porch\ 8 -i 20 C:\DOCUME~1\Owner\LOCALS~1\Temp\hug13EA.tmp
C:\Program\ Files\Hugin\bin\nona -z PACKBITS -r ldr -m TIFF_m -o Front\ Porch\ 8 -i 21 C:\DOCUME~1\Owner\LOCALS~1\Temp\hug13EA.tmp
C:\Program\ Files\Hugin\bin\nona -z PACKBITS -r ldr -m TIFF_m -o Front\ Porch\ 8 -i 22 C:\DOCUME~1\Owner\LOCALS~1\Temp\hug13EA.tmp
C:\Program\ Files\Hugin\bin\nona -z PACKBITS -r ldr -m TIFF_m -o Front\ Porch\ 8 -i 23 C:\DOCUME~1\Owner\LOCALS~1\Temp\hug13EA.tmp
C:\Program\ Fi...

Read more...

Revision history for this message
Yuv (yuv) wrote :

try unsing the -a command line option (in the Stitcher tab, click on the Options button next to the Blender line).

Revision history for this message
rew (r-e-wolff) wrote :

Fixed.

Changed in hugin:
importance: Medium → Critical
status: New → Fix Released
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.