← Back to team overview

hugin-devs team mailing list archive

[Bug 688783] [NEW] Hugin crash when opening a series of img in Mac OSx

 

Public bug reported:

Hello,

When called from the command line under Mac OSx (10.6.5), Hugin (2010.2.0) fails like this:
================================================================
?> pwd
/Users/rostskadat/Desktop
?> ls -l DSC_2436.jpg DSC_2437.jpg 
-rw-r--r--  1 rostskadat  staff  2695364 Dec 10 23:05 DSC_2436.jpg
-rw-r--r--  1 rostskadat  staff  2756904 Dec 10 23:05 DSC_2437.jpg
?> /Applications/Graphics/Hugin.app/Contents/MacOS/Hugin DSC_2436.jpg DSC_2437.jpg
MainFrame::RestoreLayoutOnNextResize()
ContractViolation: 
Precondition violation!
Unable to open file ''.
(/Users/Shared/development/hugin_related/hugin-2010.2.0/mac/../src/foreign/vigra/vigra_impex/codecman:206)

FATAL: 23:14:44.582553 (/Users/Shared/development/hugin_related/hugin-2010.2.0/mac/../src/hugin_base/huginapp/ImageCache.cpp:653) getImage(): (): Error during image reading: 
Precondition violation!
Unable to open file ''.
(/Users/Shared/development/hugin_related/hugin-2010.2.0/mac/../src/foreign/vigra/vigra_impex/codecman:206)

Abort trap
================================================================

However I noticed that if I modify the files (change them in an external program such as paint)
And reopen them in Hugin, the first time I do that, Hugin starts ok, but the second time it fails
with the error message above. Furthermore, if I start Hugin without any image on the command 
line and use the UI to load them, all works fine. 
The event generated when Hugin crashed contains the followin (hopefully helpful) info:

================================================================
Thread 0 Crashed:  Dispatch queue: com.apple.main-thread
0   libSystem.B.dylib             	0x9389c176 __kill + 10
1   libSystem.B.dylib             	0x9389c168 kill$UNIX2003 + 32
2   libSystem.B.dylib             	0x9392e89d raise + 26
3   libSystem.B.dylib             	0x939449bc abort + 93
4   libSystem.B.dylib             	0x938c0f0b _Unwind_Resume + 59
5   libwx_macu-2.8.0.7.0.dylib    	0x006582e2 wxWindow::wxWindow(wxWindow*, int, wxPoint const&, wxSize const&, long, wxString const&) + 2402
6   libwx_macu-2.8.0.7.0.dylib    	0x00658493 wxMacWindowEventHandler(OpaqueEventHandlerCallRef*, OpaqueEventRef*, void*) + 339
7   com.apple.HIToolbox           	0x95b36f2f DispatchEventToHandlers(EventTargetRec*, OpaqueEventRef*, HandlerCallRec*) + 1567
8   com.apple.HIToolbox           	0x95b361f6 SendEventToEventTargetInternal(OpaqueEventRef*, OpaqueEventTargetRef*, HandlerCallRec*) + 411
9   com.apple.HIToolbox           	0x95b36055 SendEventToEventTargetWithOptions + 58
10  com.apple.HIToolbox           	0x95b5e0c5 HIView::SendDraw(short, OpaqueGrafPtr*, __HIShape const*, CGContext*) + 475
11  com.apple.HIToolbox           	0x95b5da19 HIView::RecursiveDrawComposited(__HIShape const*, unsigned long, HIView*, CGContext*, unsigned char, float) + 713
12  com.apple.HIToolbox           	0x95b5dc8c HIView::RecursiveDrawComposited(__HIShape const*, unsigned long, HIView*, CGContext*, unsigned char, float) + 1340
13  com.apple.HIToolbox           	0x95b5dc8c HIView::RecursiveDrawComposited(__HIShape const*, unsigned long, HIView*, CGContext*, unsigned char, float) + 1340
14  com.apple.HIToolbox           	0x95b5ca3f HIView::DrawComposited(short, OpaqueGrafPtr*, __HIShape const*, unsigned long, HIView*, CGContext*) + 873
15  com.apple.HIToolbox           	0x95b5c685 HIView::Draw(short, OpaqueGrafPtr*, unsigned long) + 83
16  com.apple.HIToolbox           	0x95b5c5d5 HIView::Render(unsigned long, CGContext*) + 45
17  com.apple.HIToolbox           	0x95b65a28 FlushWindowObject(WindowData*, void**, unsigned char) + 754
18  com.apple.HIToolbox           	0x95b69747 _FlushWindow + 78
19  com.apple.HIToolbox           	0x95b696f2 HIWindowFlush + 34
20  libwx_macu-2.8.0.7.0.dylib    	0x0064da11 wxTopLevelWindowMac::MacPerformUpdates() + 161
21  libwx_macu-2.8.0.7.0.dylib    	0x0063d2d0 wxStatusBar::SetStatusText(wxString const&, int) + 224
22  net.sourceforge.hugin.Hugin   	0x00150b31 GLPreviewFrame::panoramaChanged(PT::Panorama&) + 625
23  net.sourceforge.hugin.Hugin   	0x000239d4 PT::PanoramaObserver::panoramaChanged(HuginBase::PanoramaData&) + 68
24  net.sourceforge.hugin.base_wx 	0x014cd4ed HuginBase::Panorama::changeFinished(bool) + 381
25  net.sourceforge.hugin.Hugin   	0x0001f4d7 HuginBase::Panorama::changeFinished() + 23
26  net.sourceforge.hugin.Hugin   	0x0012f504 PT::wxAddImagesCmd::execute() + 10916
27  net.sourceforge.hugin.Hugin   	0x0003e508 CommandHistory::addCommand(AppBase::Command<std::string>*, bool) + 472
28  net.sourceforge.hugin.Hugin   	0x000ab6b7 huginApp::OnInit() + 8311
29  net.sourceforge.hugin.Hugin   	0x000ae0e1 wxAppConsole::CallOnInit() + 17
30  libwx_macu-2.8.0.7.0.dylib    	0x0056d870 wxEntry(int&, wchar_t**) + 112
================================================================

It is always reproductible. If you need for me to test something, that
could be arrange (I guess)...

BTW, thanks for Hugin, it rocks !

/Julien

** Affects: hugin
     Importance: Undecided
         Status: New


** Tags: argument cache command crash line mac

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

Title:
  Hugin crash when opening a series of img in Mac OSx

Status in Hugin - Panorama Tools GUI:
  New

Bug description:
  Hello,

When called from the command line under Mac OSx (10.6.5), Hugin (2010.2.0) fails like this:
================================================================
?> pwd
/Users/rostskadat/Desktop
?> ls -l DSC_2436.jpg DSC_2437.jpg 
-rw-r--r--  1 rostskadat  staff  2695364 Dec 10 23:05 DSC_2436.jpg
-rw-r--r--  1 rostskadat  staff  2756904 Dec 10 23:05 DSC_2437.jpg
?> /Applications/Graphics/Hugin.app/Contents/MacOS/Hugin DSC_2436.jpg DSC_2437.jpg
MainFrame::RestoreLayoutOnNextResize()
ContractViolation: 
Precondition violation!
Unable to open file ''.
(/Users/Shared/development/hugin_related/hugin-2010.2.0/mac/../src/foreign/vigra/vigra_impex/codecman:206)

FATAL: 23:14:44.582553 (/Users/Shared/development/hugin_related/hugin-2010.2.0/mac/../src/hugin_base/huginapp/ImageCache.cpp:653) getImage(): (): Error during image reading: 
Precondition violation!
Unable to open file ''.
(/Users/Shared/development/hugin_related/hugin-2010.2.0/mac/../src/foreign/vigra/vigra_impex/codecman:206)

Abort trap
================================================================

However I noticed that if I modify the files (change them in an external program such as paint)
And reopen them in Hugin, the first time I do that, Hugin starts ok, but the second time it fails
with the error message above. Furthermore, if I start Hugin without any image on the command 
line and use the UI to load them, all works fine. 
The event generated when Hugin crashed contains the followin (hopefully helpful) info:

================================================================
Thread 0 Crashed:  Dispatch queue: com.apple.main-thread
0   libSystem.B.dylib             	0x9389c176 __kill + 10
1   libSystem.B.dylib             	0x9389c168 kill$UNIX2003 + 32
2   libSystem.B.dylib             	0x9392e89d raise + 26
3   libSystem.B.dylib             	0x939449bc abort + 93
4   libSystem.B.dylib             	0x938c0f0b _Unwind_Resume + 59
5   libwx_macu-2.8.0.7.0.dylib    	0x006582e2 wxWindow::wxWindow(wxWindow*, int, wxPoint const&, wxSize const&, long, wxString const&) + 2402
6   libwx_macu-2.8.0.7.0.dylib    	0x00658493 wxMacWindowEventHandler(OpaqueEventHandlerCallRef*, OpaqueEventRef*, void*) + 339
7   com.apple.HIToolbox           	0x95b36f2f DispatchEventToHandlers(EventTargetRec*, OpaqueEventRef*, HandlerCallRec*) + 1567
8   com.apple.HIToolbox           	0x95b361f6 SendEventToEventTargetInternal(OpaqueEventRef*, OpaqueEventTargetRef*, HandlerCallRec*) + 411
9   com.apple.HIToolbox           	0x95b36055 SendEventToEventTargetWithOptions + 58
10  com.apple.HIToolbox           	0x95b5e0c5 HIView::SendDraw(short, OpaqueGrafPtr*, __HIShape const*, CGContext*) + 475
11  com.apple.HIToolbox           	0x95b5da19 HIView::RecursiveDrawComposited(__HIShape const*, unsigned long, HIView*, CGContext*, unsigned char, float) + 713
12  com.apple.HIToolbox           	0x95b5dc8c HIView::RecursiveDrawComposited(__HIShape const*, unsigned long, HIView*, CGContext*, unsigned char, float) + 1340
13  com.apple.HIToolbox           	0x95b5dc8c HIView::RecursiveDrawComposited(__HIShape const*, unsigned long, HIView*, CGContext*, unsigned char, float) + 1340
14  com.apple.HIToolbox           	0x95b5ca3f HIView::DrawComposited(short, OpaqueGrafPtr*, __HIShape const*, unsigned long, HIView*, CGContext*) + 873
15  com.apple.HIToolbox           	0x95b5c685 HIView::Draw(short, OpaqueGrafPtr*, unsigned long) + 83
16  com.apple.HIToolbox           	0x95b5c5d5 HIView::Render(unsigned long, CGContext*) + 45
17  com.apple.HIToolbox           	0x95b65a28 FlushWindowObject(WindowData*, void**, unsigned char) + 754
18  com.apple.HIToolbox           	0x95b69747 _FlushWindow + 78
19  com.apple.HIToolbox           	0x95b696f2 HIWindowFlush + 34
20  libwx_macu-2.8.0.7.0.dylib    	0x0064da11 wxTopLevelWindowMac::MacPerformUpdates() + 161
21  libwx_macu-2.8.0.7.0.dylib    	0x0063d2d0 wxStatusBar::SetStatusText(wxString const&, int) + 224
22  net.sourceforge.hugin.Hugin   	0x00150b31 GLPreviewFrame::panoramaChanged(PT::Panorama&) + 625
23  net.sourceforge.hugin.Hugin   	0x000239d4 PT::PanoramaObserver::panoramaChanged(HuginBase::PanoramaData&) + 68
24  net.sourceforge.hugin.base_wx 	0x014cd4ed HuginBase::Panorama::changeFinished(bool) + 381
25  net.sourceforge.hugin.Hugin   	0x0001f4d7 HuginBase::Panorama::changeFinished() + 23
26  net.sourceforge.hugin.Hugin   	0x0012f504 PT::wxAddImagesCmd::execute() + 10916
27  net.sourceforge.hugin.Hugin   	0x0003e508 CommandHistory::addCommand(AppBase::Command<std::string>*, bool) + 472
28  net.sourceforge.hugin.Hugin   	0x000ab6b7 huginApp::OnInit() + 8311
29  net.sourceforge.hugin.Hugin   	0x000ae0e1 wxAppConsole::CallOnInit() + 17
30  libwx_macu-2.8.0.7.0.dylib    	0x0056d870 wxEntry(int&, wchar_t**) + 112
================================================================

It is always reproductible. If you need for me to test something, that could be arrange (I guess)...

BTW, thanks for Hugin, it rocks !

/Julien





Follow ups

References