← Back to team overview

hugin-bug-hunters team mailing list archive

[Bug 1057012] Re: cpfind always fail on photos with long path

 

Forwarded to
http://sourceforge.net/mailarchive/forum.php?thread_name=1b0ts9-269.ln1%40argenau.downhill.at.eu.org&forum_name
=panotools-devel

-- 
You received this bug notification because you are a member of Hugin Bug
Hunters, which is subscribed to Panotools.
https://bugs.launchpad.net/bugs/1057012

Title:
  cpfind always fail on photos with long path

Status in Panorama Tools:
  New
Status in “libpano13” package in Ubuntu:
  New

Bug description:
  # Summary

  When run with long paths, cpfind always fails.
  Impact : no automatic control points are available in hugin.

  # Symptom

  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.

  MP=~/AiHome/gros/tries/30_perso/image/PhotoNumerique/by_year/2012-01-02_11.46.57_2012-09-25_18.34.24_Annee_2012/panocuisine/2012-09-25_18.29.02_2012-09-25_18.29.07_correction_porte_fermee_NET
  ; mkdir -p $MP ; cd $MP

  * Copy at least two JPEGs from a digital camera there. Names can be e.g. 2012-09-25_18.29.03__DSC_3466.JPG
  * Open hugin
  * Import two photos from that directory
  * Press "Align..."

  ## Expected

  * Some control points found, depending on photos.

  ## Observed

  * No control point found.
  * cpfind log (obtained before window disappears, or by running it separately) says

  --- Find matches ---
  *** buffer overflow detected ***: cpfind terminated
  ======= Backtrace: =========
  /lib/x86_64-linux-gnu/libc.so.6(__fortify_fail+0x37)[0x2b29d619cee7]
  /lib/x86_64-linux-gnu/libc.so.6(+0x107de0)[0x2b29d619bde0]
  /lib/x86_64-linux-gnu/libc.so.6(+0x107249)[0x2b29d619b249]
  /lib/x86_64-linux-gnu/libc.so.6(_IO_default_xsputn+0xdd)[0x2b29d610faad]
  /lib/x86_64-linux-gnu/libc.so.6(_IO_vfprintf+0x256e)[0x2b29d60ddbae]
  /lib/x86_64-linux-gnu/libc.so.6(__vsprintf_chk+0x94)[0x2b29d619b2e4]
  /lib/x86_64-linux-gnu/libc.so.6(__sprintf_chk+0x7d)[0x2b29d619b22d]
  /usr/lib/libpano13.so.2(ParseScript+0x7f6)[0x2b29d51fe536]
  /usr/lib/hugin/libhuginbase.so.0.0(_ZN9HuginBase6PTools8optimizeERNS_12PanoramaDataEPKc+0x46)[0x2b29d4cbfcc6]
  /usr/lib/hugin/libhuginbase.so.0.0(_ZN6Ransac7computeIN9HuginBase14PTOptEstimatorESt6vectorIdSaIdEENS1_12ControlPointEEES3_IPKT1_SaIS9_EERT0_RS3_IiSaIiEERKT_RKS3_IS7_SaIS7_EEdd+0x124a)[0x2b29d477106a]
  /usr/lib/hugin/libhuginbase.so.0.0(_ZN9HuginBase15RANSACOptimizer11findInliersERNS_12PanoramaDataEiidNS0_4ModeE+0x166)[0x2b29d4769996]
  cpfind(_ZN12PanoDetector22RansacMatchesInPairCamERNS_9MatchDataERKS_+0x592)[0x44e7c2]
  cpfind(_ZN17MatchDataRunnable3runEv+0x35)[0x443805]
  /usr/lib/libZThread-2.3.so.2(+0x186ce)[0x2b29d3eee6ce]
  /usr/lib/libZThread-2.3.so.2(+0x17062)[0x2b29d3eed062]
  /usr/lib/libZThread-2.3.so.2(_ZN7ZThread10ThreadImpl8dispatchEPS0_S1_NS_4TaskE+0x2ed)[0x2b29d3efb66d]
  /usr/lib/libZThread-2.3.so.2(+0x25b26)[0x2b29d3efbb26]
  /usr/lib/libZThread-2.3.so.2(_dispatch+0xa)[0x2b29d3efefba]
  /lib/x86_64-linux-gnu/libpthread.so.0(+0x7e9a)[0x2b29d4111e9a]
  /lib/x86_64-linux-gnu/libc.so.6(clone+0x6d)[0x2b29d618639d]

  
  ## 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
  Release:	12.04

  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
  hugin:
    Installed: 2011.4.0+dfsg-1
    Candidate: 2011.4.0+dfsg-1
    Version table:
   *** 2011.4.0+dfsg-1 0
          500 http://fr.archive.ubuntu.com/ubuntu/ precise/universe amd64 Packages
          100 /var/lib/dpkg/status

  ProblemType: Bug
  DistroRelease: Ubuntu 12.04
  Package: hugin 2011.4.0+dfsg-1
  ProcVersionSignature: Ubuntu 3.2.0-31.50-generic 3.2.28
  Uname: Linux 3.2.0-31-generic x86_64
  ApportVersion: 2.0.1-0ubuntu13
  Architecture: amd64
  Date: Wed Sep 26 16:34:42 2012
  InstallationMedia: Ubuntu 12.04 LTS "Precise Pangolin" - Beta amd64 (20120419)
  SourcePackage: hugin
  UpgradeStatus: No upgrade log present (probably fresh install)

To manage notifications about this bug go to:
https://bugs.launchpad.net/panotools/+bug/1057012/+subscriptions