tca_correct fails with "expecting exactly one alpha band"

Bug #1529902 reported by Torsten Bronger
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Hugin
Fix Released
Undecided
Unassigned

Bug Description

Since revision 7033:5f45958ae420, tca_correct fails on my TIFFs with the following output:

$ tca_correct -o v tca_issue.tiff
...
ERROR: caught exception:
Precondition violation!
vigra::detail::read_image_bands_and_alpha: expecting exactly one alpha band
(/home/user/hugin/src/hugin_base/vigra_ext/impexalpha.hxx:113)

Revision history for this message
Torsten Bronger (bronger) wrote :

My TIFF can be downloaded here: https://bob.ipv.kfa-juelich.de/bronger/tca_issue.tiff.xz
(74 MB)

Revision history for this message
tduell (tduell-iinet) wrote :

I tried your file with hugin-7200:d185664c5ce1, and got this message...

Warning: no TIFFTAG_SAMPLEFORMAT or TIFFTAG_DATATYPE, guessing pixeltype 'UINT16'.
Warning: no TIFFTAG_SAMPLEFORMAT or TIFFTAG_DATATYPE, guessing pixeltype 'UINT16'.
Warning: no TIFFTAG_SAMPLEFORMAT or TIFFTAG_DATATYPE, guessing pixeltype 'UINT16'.
ERROR: caught exception:
Precondition violation!
vigra::detail::read_image_bands_and_alpha: expecting exactly one alpha band
(/home/terry/rpmbuild/BUILD/hugin-2015.1.0/src/hugin_base/vigra_ext/impexalpha.hxx:119)

I then loaded your image into Darktable, and exported as tif tried again, and got this message...

[terry@localhost Torsten]$ tca_correct -o v tca_issue_DT.tif
ERROR: caught exception:
Precondition violation!
vigra::detail::read_image_bands_and_alpha: expecting exactly one alpha band
(/home/terry/rpmbuild/BUILD/hugin-2015.1.0/src/hugin_base/vigra_ext/impexalpha.hxx:119)

so looks like the issue can be reproduced.

Cheers,
Terry

Revision history for this message
tmodes (tmodes) wrote :

Fixed in changeset c86f9b1d8c1c0d13a3e93574743ca965df17175d

PS: Next time please try if you can reproduce the issue with a smaller file and attach this smaller file.

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