Check write access of directory before stitching

Bug #679216 reported by nobody
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Hugin
Fix Released
Wishlist
Unassigned

Bug Description

was trying to do a panorama of pictures in a directory to which I have no write access. Instead of giving something like "please check your permissions" the following error came up together with a notice telling me to report it:

nona -z PACKBITS -r ldr -m TIFF_m -o map -i 0 /tmp/huginpto_izlwvT
nona -z PACKBITS -r ldr -m TIFF_m -o map -i 1 /tmp/huginpto_izlwvT
TIFFOpen: map0000.tif: Cannot open.
ContractViolation:
Precondition violation!
Unable to open file 'map0000.tif'.
(/build/buildd/hugin-0.7.0/src/foreign/vigra/vigra_impex/tiff.cxx:711)

Precondition violation!
Unable to open file 'map0000.tif'.
(/build/buildd/hugin-0.7.0/src/foreign/vigra/vigra_impex/tiff.cxx:711)
enblend --compression 100 -w -f290x145 -o map.jpg map0000.tif map0001.tif
TIFFOpen: map0001.tif: Cannot open.
ContractViolation:
Precondition violation!
Unable to open file 'map0001.tif'.
(/build/buildd/hugin-0.7.0/src/foreign/vigra/vigra_impex/tiff.cxx:711)

Precondition violation!
Unable to open file 'map0001.tif'.
(/build/buildd/hugin-0.7.0/src/foreign/vigra/vigra_impex/tiff.cxx:711)

enblend: error opening input file "map0000.tif":

Precondition violation!
Unable to open file 'map0000.tif'.

make: *** [map.jpg] Error 1

Revision history for this message
Seb Przd (sbprzd) wrote :

Usually images are created in the folder where you run nona and enblend. Do you have write permissions in this folder?
Also, you seem to be using 0.7.0. Could you try with a recent SVN version? we are very close to 0.8.0.

Revision history for this message
Yuv (yuv) wrote :

I wonder if the currently assigned group (enblend) is the right one, or if the makefile should check for permission before triggering the tools?

tmodes (tmodes)
summary: - Stitching fails without write access
+ Check write access of directory before stitching
Changed in hugin:
importance: Medium → Wishlist
status: New → Triaged
Revision history for this message
YunSheng.Meng (mengyunsheng) wrote :

===========================================================================
*************** Panorama makefile generated by Hugin ***************
===========================================================================
System information
===========================================================================
Operating System: Windows XP (5.1 Service Pack 3)
Architecture: x86
Number of logical processors: 2
Physical memory: 1038700 kiB (68% occupied)
Free space on disc: 4825 MiB
Active codepage: 936
===========================================================================
Output options
===========================================================================
Hugin Version: 2011.0.0.0fd3e119979c built by Matthew Petroff
Project file: C:\DOCUME~1\NEWUSE~1\LOCALS~1\Temp\hug131.tmp
Output prefix: 974-1-975-1
Projection: Rectilinear (0)
Field of view: 80 x 33
Canvas dimensions: 3000 x 1050
Crop area: (0,0) - (3000,1050)
Output exposure value: 13.62
Selected outputs
Normal panorama
* Blended panorama
===========================================================================
Input images
===========================================================================
Number of images in project file: 2
Number of active images: 2
Image 0: C:\Documents and Settings\New user\Image 1: Size 800x600, Exposure: 13.71
===========================================================================
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 "974-1-975-1" -i 0 "C:/DOCUME~1/NEWUSE~1/LOCALS~1/Temp/hug131.tmp"
ContractViolation:
Precondition violation!
Unable to open file 'C:\Documents and Settings\New user\make: *** [974-1-975-10000.tif] Error 1

Changed in hugin:
status: Triaged → Incomplete
status: Incomplete → Confirmed
Yuv (yuv)
Changed in hugin:
status: Confirmed → Triaged
Revision history for this message
tmodes (tmodes) wrote :

Implemented in changeset 6a190ed0a8cb.

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