cpfind always fail on photos with long path
When run with long paths, cpfind always fails.
Impact : no automatic control points are available in hugin.
When hugin is instructed to work on photos that have a long absolute
filesystem path, hugin never finds any control point using cpfind.
Instead the default popup says :
> Warning n unconnected image groups found: (list of [imagenumber])
> Please create control points between unconnected images using the Control Points tab.
> After adding the points, press the "Align" button again
I figured out it was a path length problem because when making a minimal test case with shorter path, the bug disappears.
# How to reproduce
Make a directory with a long path, e.g.
* Copy at least two JPEGs from a digital camera there. Names can be e.g. 2012-09-
* Open hugin
* Import two photos from that directory
* Press "Align..."
* Some control points found, depending on photos.
* No control point found.
* cpfind log (obtained before window disappears, or by running it separately) says
--- Find matches ---
*** buffer overflow detected ***: cpfind terminated
======= Backtrace: =========
## Additional information
* When shortening path, problem disappears.
* (Separate issue) perhaps hugin should have spotted failure of cpfind instead of just saying no control point was found.
* I can provide some photos if needed.
1) The release of Ubuntu you are using, via 'lsb_release -rd' or System -> About Ubuntu
$ lsb_release -rd
Description: Ubuntu 12.04.1 LTS
2) The version of the package you are using, via 'apt-cache policy pkgname' or by checking in Software Center
$ LC_ALL=C apt-cache policy hugin
*** 2011.4.0+dfsg-1 0
DistroRelease: Ubuntu 12.04
Package: hugin 2011.4.0+dfsg-1
Uname: Linux 3.2.0-31-generic x86_64
Date: Wed Sep 26 16:34:42 2012
InstallationMedia: Ubuntu 12.04 LTS "Precise Pangolin" - Beta amd64 (20120419)
UpgradeStatus: No upgrade log present (probably fresh install)
|Changed in panotools:|
|status:||Fix Committed → Fix Released|