"stitch now" aborts with error.

Bug #682891 reported by rew
10
This bug affects 2 people
Affects Status Importance Assigned to Milestone
Hugin
Fix Released
Wishlist
Unassigned

Bug Description

I got this error:

--------------------------------------------------------
Stitching panorama
===========================================================================
nona -z LZW -r ldr -m TIFF_m -o contour_pano1 -i 0 /tmp/huginpto_X1Gret
ContractViolation:
Precondition violation!
RemappedPanoImage<RemapImage,AlphaImage>::remapImage(): image sizes not consistent
(/home/wolff/hugin/wiki/hugin/hugin.hg/src/hugin_base/nona/RemappedPanoImage.h:450)

caught exception:
Precondition violation!
RemappedPanoImage<RemapImage,AlphaImage>::remapImage(): image sizes not consistent
(/home/wolff/hugin/wiki/hugin/hugin.hg/src/hugin_base/nona/RemappedPanoImage.h:450)

make: *** [contour_pano10000.tif] Error 1
-----------------------------------------------------

and then a question to submit the full bugreport. So here I am......

Turns out that when re-creating the source images (they were converted to JPG with a really low quality setting), I had forgotten to rotate them by 90 degrees. So all this blabla (and hugin claiming I found a bug), is caused by an image-size mismatch....

The error message should reflect this: "Image unexpectedly changed dimensions. "

Revision history for this message
Hans Blaauwbroek (hans-blaauwbroek) wrote :

I got a similar message. I'm busy stitching a lot of scans which were to large for a A4 scanner. The stitching worked fine for the first couple of scans but now the proces aborts. How can I fix it with other parameter settings?

===========================================================================
*************** Panorama makefile generated by Hugin ***************
===========================================================================
System information
===========================================================================
Operating System: Windows Vista (6.0 Service Pack 2)
Architecture: x86
Number of logical processors: 2
Physical memory: 3108840 kiB (67% occupied)
Free space on disc: 114556 MiB
Active codepage: 1252 (Western European Windows)
===========================================================================
Output options
===========================================================================
Hugin Version: 2010.4.0.854952d82c8f built by Matthew Petroff
Project file: C:\Users\Hans\AppData\Local\Temp\hugCE1C.tmp
Output prefix: Top 50 146_0003-Top 50 146_0004
Projection: Rectilinear (0)
Field of view: 38 x 10
Canvas dimensions: 7379 x 1875
Crop area: (1989,3) - (7379,1874)
Output exposure value: 0.00
Selected outputs
Normal panorama
* Blended panorama
===========================================================================
Input images
===========================================================================
Number of images in project file: 2
Number of active images: 2
Image 0: F:\Noordzee Top 50\1974\Top 50 146_0003.jpg
Image 0: Size 1875x3400, Exposure: 0.00
Image 1: F:\Noordzee Top 50\1974\Top 50 146_0004.jpg
Image 1: Size 1875x3400, Exposure: 0.00
===========================================================================
Testing programs
===========================================================================
Checking nona...
nona is ok
Checking enblend...
enblend is ok
Checking enfuse...
enfuse is ok
Checking hugin_hdrmerge...
hugin_hdrmerge is ok
Checking exiftool...
exiftool is ok
===========================================================================
Stitching panorama
===========================================================================
"C:/Program Files/Hugin/bin/nona" -z LZW -r ldr -m TIFF_m -o "Top 50 146_0003-Top 50 146_0004" -i 0 "C:/Users/Hans/AppData/Local/Temp/hugCE1C.tmp"
"C:/Program Files/Hugin/bin/nona" -z LZW -r ldr -m TIFF_m -o "Top 50 146_0003-Top 50 146_0004" -i 1 "C:/Users/Hans/AppData/Local/Temp/hugCE1C.tmp"
ContractViolation:
Precondition violation!
RemappedPanoImage<RemapImage,AlphaImage>::remapImage(): image sizes not consistent

caught exception:
Precondition violation!
RemappedPanoImage<RemapImage,AlphaImage>::remapImage(): image sizes not consistent

make: *** [Top 50 146_0003-Top 50 146_00040001.tif] Error 1

Revision history for this message
tmodes (tmodes) wrote :

Fixed in repository.

Changed in hugin:
milestone: none → 2017.0beta1
status: Triaged → Fix Committed
tmodes (tmodes)
Changed in hugin:
status: Fix Committed → 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.