← Back to team overview

hugin-devs team mailing list archive

[Bug 1016472] Re: Hugin segfaults without error message when doing 'photometric optimisation'.

 

I've not built hugin myself. Most software on this system is from the ubuntu package repositories.
Does it still seem likely that it's the build configuration?
I've not used gdb before.
I ran hugin through valgrind, following the same steps outlined above and got the console output. Here's the relevant section:

0x16ee2028: 30%
0x16ee2028: 32%
0x16ee2028: 34%
0x16ee2028: 36%
0x16ee2028: 38%
0x16ee2028: 40%
Iteration: 0, error: 12.792654: 40%
Iteration: 1, error: 12.791945: 40%
Iteration: 2, error: 12.791905: 40%
Iteration: 3, error: 12.791855: 40%
Iteration: 4, error: 12.791847: 40%
Iteration: 5, error: 12.791843: 40%
Iteration: 0, error: 12.791843: 40%
Iteration: 1, error: 12.791843: 40%
Iteration: 2, error: 12.791842: 40%
Iteration: 3, error: 12.791842: 40%
Iteration: 4, error: 12.791842: 40%
Iteration: 5, error: 12.791842: 40%
Iteration: 0, error: 12.791842: 40%
==32288== 
==32288== Process terminating with default action of signal 11 (SIGSEGV)
==32288==  General Protection Fault
==32288==    at 0xA918018: dscal_ (in /usr/lib/libblas/libblas.so.3gf.0)
==32288==    by 0x9F5A73D: dgetf2_ (in /usr/lib/lapack/liblapack.so.3gf.0)
==32288==    by 0x9F5B070: dgetrf_ (in /usr/lib/lapack/liblapack.so.3gf.0)
==32288==    by 0x55A57F0: dAx_eq_b_LU (in /usr/lib/hugin/libhuginbase.so.0.0)
==32288==    by 0x55A4159: dlevmar_dif (in /usr/lib/hugin/libhuginbase.so.0.0)
==32288==    by 0x5036276: HuginBase::PhotometricOptimizer::optimizePhotometric(HuginBase::PanoramaData&, std::vector<std::set<std::string, std::less<std::string>, std::allocator<std::string> >, std::allocator<std::set<std::string, std::less<std::string>, std::allocator<std::string> > > > const&, std::vector<vigra_ext::PointPairT<vigra::RGBValue<float, 0u, 1u, 2u> >, std::allocator<vigra_ext::PointPairT<vigra::RGBValue<float, 0u, 1u, 2u> > > > const&, AppBase::ProgressReporter&, double&) (in /usr/lib/hugin/libhuginbase.so.0.0)
==32288==    by 0x5036E81: HuginBase::SmartPhotometricOptimizer::smartOptimizePhotometric(HuginBase::PanoramaData&, HuginBase::SmartPhotometricOptimizer::PhotometricOptimizeMode, std::vector<vigra_ext::PointPairT<vigra::RGBValue<float, 0u, 1u, 2u> >, std::allocator<vigra_ext::PointPairT<vigra::RGBValue<float, 0u, 1u, 2u> > > > const&, AppBase::ProgressReporter&, double&) (in /usr/lib/hugin/libhuginbase.so.0.0)
==32288==    by 0x558D7D: OptimizePhotometricPanel::runOptimizer(std::set<unsigned int, std::less<unsigned int>, std::allocator<unsigned int> > const&) (in /usr/bin/hugin)
==32288==    by 0x55A428: OptimizePhotometricPanel::OnOptimizeButton(wxCommandEvent&) (in /usr/bin/hugin)
==32288==    by 0x7628EC4: wxEvtHandler::ProcessEventIfMatches(wxEventTableEntryBase const&, wxEvtHandler*, wxEvent&) (in /usr/lib/libwx_baseu-2.8.so.0.7.0)
==32288==    by 0x762902B: wxEventHashTable::HandleEvent(wxEvent&, wxEvtHandler*) (in /usr/lib/libwx_baseu-2.8.so.0.7.0)
==32288==    by 0x7629363: wxEvtHandler::ProcessEvent(wxEvent&) (in /usr/lib/libwx_baseu-2.8.so.0.7.0)
==32288== 
==32288== HEAP SUMMARY:
==32288==     in use at exit: 114,035,791 bytes in 133,018 blocks
==32288==   total heap usage: 1,240,179 allocs, 1,107,161 frees, 1,044,612,410 bytes allocated
==32288== 
==32288== LEAK SUMMARY:
==32288==    definitely lost: 67,482 bytes in 1,322 blocks
==32288==    indirectly lost: 101,324 bytes in 2,464 blocks
==32288==      possibly lost: 12,130,507 bytes in 63,106 blocks
==32288==    still reachable: 101,736,478 bytes in 66,126 blocks
==32288==         suppressed: 0 bytes in 0 blocks
==32288== Rerun with --leak-check=full to see details of leaked memory
==32288== 
==32288== For counts of detected and suppressed errors, rerun with: -v
==32288== Use --track-origins=yes to see where uninitialised values come from
==32288== ERROR SUMMARY: 3500182 errors from 249 contexts (suppressed: 47 from 9)
Killed

Is this output useful at all? Does it point to a likely library causing
the problem?

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

Title:
  Hugin segfaults without error message when doing 'photometric
  optimisation'.

Status in Hugin - Panorama Tools GUI:
  New

Bug description:
  Hugin segfaults without error message when doing 'photometric
  optimisation'.

  I am using the latest hugin package from the ubuntu repository: 2011.4.0
  This is reproducable every time.
  This makes the program as a whole significantly less useful if not useless.

  Creating control points and quick optimisation complete successfully.
  Photometric optimisation segfaults.

  Here is an example of typical output from the console:
  --------------------------------------------------
  rob@SCKubuntu:~$ hugin
  MainFrame::RestoreLayoutOnNextResize()
  Optimizing Variables
  Strategy 1
  Average (rms) distance between Controlpoints 
  after 0 iteration(s):          191.175763083045 units
  Strategy 1
  Average (rms) distance between Controlpoints 
  after 1 iteration(s):          190.060439310407 units

  Optimizing Variables
  Strategy 2
  Average (rms) distance between Controlpoints 
  after 0 iteration(s):          28.8694840888088 units
  Strategy 2
  Average (rms) distance between Controlpoints 
  after 1 iteration(s):           28.556949233066 units
  Strategy 2
  Average (rms) distance between Controlpoints 
  after 2 iteration(s):          5.90278123329757 units
  Strategy 2
  Average (rms) distance between Controlpoints 
  after 3 iteration(s):          3.73065513754082 units
  Strategy 2
  Average (rms) distance between Controlpoints 
  after 4 iteration(s):          3.34986549580114 units
  Strategy 2
  Average (rms) distance between Controlpoints 
  after 5 iteration(s):           3.3102793335968 units
  Strategy 2
  Average (rms) distance between Controlpoints 
  after 6 iteration(s):          3.30613110881024 units
  Strategy 2
  Average (rms) distance between Controlpoints 
  after 7 iteration(s):          3.30577376989132 units
  Strategy 2
  Average (rms) distance between Controlpoints 
  after 8 iteration(s):          3.30573576664621 units
  Strategy 2
  Average (rms) distance between Controlpoints 
  after 9 iteration(s):          3.30573123609312 units                                                                                
  Strategy 2                                                                                                                           
  Average (rms) distance between Controlpoints                                                                                         
  after 10 iteration(s):          3.30573073713243 units                                                                               
                                                                                                                                       
  Optimizing Variables                                                                                                                 
  Strategy 1                                                                                                                           
  Average (rms) distance between Controlpoints                                                                                         
  after 0 iteration(s):          295.868079210197 units                                                                                
  Strategy 1                                                                                                                           
  Average (rms) distance between Controlpoints                                                                                         
  after 1 iteration(s):          295.773516799922 units                                                                                
  Strategy 1                                                                                                                           
  Average (rms) distance between Controlpoints                                                                                         
  after 2 iteration(s):          289.787270583921 units                                                                                
                                                                                                                                       
  Optimizing Variables                                                                                                                 
  Strategy 2                                                                                                                           
  Average (rms) distance between Controlpoints                                                                                         
  after 0 iteration(s):          33.1106827055407 units                                                                                
  Strategy 2                                                                                                                           
  Average (rms) distance between Controlpoints                                                                                         
  after 1 iteration(s):          32.9912617005289 units                                                                                
  Strategy 2                                                                                                                           
  Average (rms) distance between Controlpoints                                                                                         
  after 2 iteration(s):          9.02744677573805 units                                                                                
  Strategy 2
  Average (rms) distance between Controlpoints 
  after 3 iteration(s):          8.33644527031289 units
  Strategy 2
  Average (rms) distance between Controlpoints 
  after 4 iteration(s):          6.74727225937909 units
  Strategy 2
  Average (rms) distance between Controlpoints 
  after 5 iteration(s):          5.11794634967591 units
  Strategy 2
  Average (rms) distance between Controlpoints 
  after 6 iteration(s):          3.43677502597893 units
  Strategy 2
  Average (rms) distance between Controlpoints 
  after 7 iteration(s):          3.07747961571125 units
  Strategy 2
  Average (rms) distance between Controlpoints 
  after 8 iteration(s):          3.06004909392689 units
  Strategy 2
  Average (rms) distance between Controlpoints 
  after 9 iteration(s):          3.05880277993589 units
  Strategy 2
  Average (rms) distance between Controlpoints 
  after 10 iteration(s):          3.05870366947882 units
  Strategy 2
  Average (rms) distance between Controlpoints 
  after 11 iteration(s):          3.05869529321485 units
  Strategy 2
  Average (rms) distance between Controlpoints 
  after 12 iteration(s):           3.0586945639894 units

  Optimizing Variables
  Strategy 1
  Average (rms) distance between Controlpoints 
  after 0 iteration(s):          362.880401028013 units
  Strategy 1
  Average (rms) distance between Controlpoints 
  after 1 iteration(s):          356.517037710134 units

  Optimizing Variables
  Strategy 2
  Average (rms) distance between Controlpoints 
  after 0 iteration(s):          31.5754138270898 units
  Strategy 2
  Average (rms) distance between Controlpoints 
  after 1 iteration(s):          31.4606507459294 units
  Strategy 2
  Average (rms) distance between Controlpoints 
  after 2 iteration(s):          5.48585053369501 units
  Strategy 2
  Average (rms) distance between Controlpoints 
  after 3 iteration(s):          3.58978312616906 units
  Strategy 2
  Average (rms) distance between Controlpoints 
  after 4 iteration(s):          3.30851315106018 units
  Strategy 2
  Average (rms) distance between Controlpoints 
  after 5 iteration(s):          3.30462745217414 units
  Strategy 2
  Average (rms) distance between Controlpoints 
  after 6 iteration(s):          3.30437442355183 units
  Strategy 2
  Average (rms) distance between Controlpoints 
  after 7 iteration(s):          3.30436113485012 units
  Strategy 2
  Average (rms) distance between Controlpoints 
  after 8 iteration(s):          3.30436040658572 units

  Optimizing Variables
  Strategy 1
  Average (rms) distance between Controlpoints 
  after 0 iteration(s):          499.202868568667 units
  Strategy 1
  Average (rms) distance between Controlpoints 
  after 1 iteration(s):           492.74533529522 units

  Optimizing Variables
  Strategy 2
  Average (rms) distance between Controlpoints 
  after 0 iteration(s):          36.9051279572196 units
  Strategy 2
  Average (rms) distance between Controlpoints 
  after 1 iteration(s):           36.788294581778 units
  Strategy 2
  Average (rms) distance between Controlpoints 
  after 2 iteration(s):          3.91818408307526 units
  Strategy 2
  Average (rms) distance between Controlpoints 
  after 3 iteration(s):          3.33138678755494 units
  Strategy 2
  Average (rms) distance between Controlpoints 
  after 4 iteration(s):          3.30602029659701 units
  Strategy 2
  Average (rms) distance between Controlpoints 
  after 5 iteration(s):          3.30353439099806 units
  Strategy 2
  Average (rms) distance between Controlpoints 
  after 6 iteration(s):          3.30310478539105 units
  Strategy 2
  Average (rms) distance between Controlpoints 
  after 7 iteration(s):           3.3030259243128 units
  Strategy 2
  Average (rms) distance between Controlpoints 
  after 8 iteration(s):          3.30301255666529 units
  Strategy 2
  Average (rms) distance between Controlpoints 
  after 9 iteration(s):          3.30301040587421 units
  Strategy 2
  Average (rms) distance between Controlpoints 
  after 10 iteration(s):          3.30301006025524 units

  0x534aad8: 0%
  0x534aad8: 2%
  0x534aad8: 4%
  0x534aad8: 6%
  0x534aad8: 8%
  0x534aad8: 10%
  0x534aad8: 12%
  0x534aad8: 13%
  0x534aad8: 15%
  0x534aad8: 18%
  0x534aad8: 19%
  0x47f84b8: 19%
  0x47f84b8: 21%
  0x47f84b8: 23%
  0x47f84b8: 25%
  0x47f84b8: 27%
  0x47f84b8: 29%
  0x47f84b8: 31%
  0x47f84b8: 33%
  0x47f84b8: 35%
  0x47f84b8: 37%
  0x47f84b8: 39%
  Iteration: 0, error: 6.194024: 39%
  Iteration: 1, error: 6.109599: 39%
  Iteration: 2, error: 6.103825: 39%
  Iteration: 3, error: 6.102916: 39%
  Iteration: 4, error: 6.102898: 39%
  Iteration: 5, error: 6.102882: 39%
  Iteration: 0, error: 6.102882: 39%
  Segmentation fault
  rob@SCKubuntu:~$ 
  --------------------------------------------------
  Panorama stitching also fails if trying to use hugin via the digikam plugin, presumably for the same reason.

  Here is someone else having the same problem:
  http://forum.ubuntuusers.de/topic/digikam-kipi-panorama-creator-error-project-file/#post-4522757
  I regret it's in german, but could perhaps be translated by google...

  I've searched for duplicate bug reports but found none.

  Any help is appreciated.

  Rob

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


References