← Back to team overview

hugin-devs team mailing list archive

[Bug 701165] Re: Fast preview window crashes complete Hugin on OSX after gsoc2010 panorama overview merge

 

Forgotten to mention: This also happened in the exact same manner during
gsoc2010 and wasn't solved at that time. It means that it's not
introduced by one of the other projects or by the trunk itself.

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

Title:
  Fast preview window crashes complete Hugin on OSX after gsoc2010 panorama overview merge

Status in Hugin - Panorama Tools GUI:
  New

Bug description:
  After the merge of the gsoc201 panorama overview into the trunk, the preview window crashes and takes Hugin down with it.

Error message as "captured" by OSXes debug system:
Exception Type:  EXC_BAD_ACCESS (SIGBUS)
Exception Codes: KERN_PROTECTION_FAILURE at 0x0000000000000008
Crashed Thread:  0  Dispatch queue: com.apple.main-thread

Thread 0 Crashed:  Dispatch queue: com.apple.main-thread
0   libwx_macu_gl-2.8.0.7.0.dylib 	0x01c81ec6 wxGLContext::SetCurrent() + 6
1   net.sourceforge.hugin.Hugin   	0x001944e4 GLViewer::SetUpContext() + 116
2   net.sourceforge.hugin.Hugin   	0x00194bcc GLViewer::RedrawE(wxPaintEvent&) + 236
3   libwx_macu-2.8.0.7.0.dylib    	0x0061dbb2 wxEvtHandler::ProcessEventIfMatches(wxEventTableEntryBase const&, wxEvtHandler*, wxEvent&) + 114
4   libwx_macu-2.8.0.7.0.dylib    	0x0061dd2f wxEventHashTable::HandleEvent(wxEvent&, wxEvtHandler*) + 111
5   libwx_macu-2.8.0.7.0.dylib    	0x0061e60f wxEvtHandler::ProcessEvent(wxEvent&) + 207
6   libwx_macu-2.8.0.7.0.dylib    	0x006b6718 wxWindow::MacDoRedraw(void*, long) + 1336
7   libwx_macu-2.8.0.7.0.dylib    	0x006b50ac wxWindow::wxWindow(wxWindow*, int, wxPoint const&, wxSize const&, long, wxString const&) + 1836
8   libwx_macu-2.8.0.7.0.dylib    	0x006b5493 wxMacWindowEventHandler(OpaqueEventHandlerCallRef*, OpaqueEventRef*, void*) + 339
9   com.apple.HIToolbox           	0x94871f2f DispatchEventToHandlers(EventTargetRec*, OpaqueEventRef*, HandlerCallRec*) + 1567
10  com.apple.HIToolbox           	0x948711f6 SendEventToEventTargetInternal(OpaqueEventRef*, OpaqueEventTargetRef*, HandlerCallRec*) + 411
11  com.apple.HIToolbox           	0x94871055 SendEventToEventTargetWithOptions + 58
12  com.apple.HIToolbox           	0x948990c5 HIView::SendDraw(short, OpaqueGrafPtr*, __HIShape const*, CGContext*) + 475
13  com.apple.HIToolbox           	0x94898a19 HIView::RecursiveDrawComposited(__HIShape const*, unsigned long, HIView*, CGContext*, unsigned char, float) + 713
14  com.apple.HIToolbox           	0x94898c8c HIView::RecursiveDrawComposited(__HIShape const*, unsigned long, HIView*, CGContext*, unsigned char, float) + 1340
15  com.apple.HIToolbox           	0x94898c8c HIView::RecursiveDrawComposited(__HIShape const*, unsigned long, HIView*, CGContext*, unsigned char, float) + 1340
16  com.apple.HIToolbox           	0x94898c8c HIView::RecursiveDrawComposited(__HIShape const*, unsigned long, HIView*, CGContext*, unsigned char, float) + 1340
17  com.apple.HIToolbox           	0x94898c8c HIView::RecursiveDrawComposited(__HIShape const*, unsigned long, HIView*, CGContext*, unsigned char, float) + 1340
18  com.apple.HIToolbox           	0x94897a3f HIView::DrawComposited(short, OpaqueGrafPtr*, __HIShape const*, unsigned long, HIView*, CGContext*) + 873
19  com.apple.HIToolbox           	0x94897685 HIView::Draw(short, OpaqueGrafPtr*, unsigned long) + 83
20  com.apple.HIToolbox           	0x948975d5 HIView::Render(unsigned long, CGContext*) + 45
21  com.apple.HIToolbox           	0x94896f1d WindowData::PrepareForVisibility() + 145
22  com.apple.HIToolbox           	0x948964d8 _ShowHideWindows + 291
23  com.apple.HIToolbox           	0x948f91fb ShowWindow + 79
24  libwx_macu-2.8.0.7.0.dylib    	0x006ae2fa wxTopLevelWindowMac::Show(bool) + 202
25  net.sourceforge.hugin.Hugin   	0x000e80e0 MainFrame::OnToggleGLPreviewFrame(wxCommandEvent&) + 80
26  libwx_macu-2.8.0.7.0.dylib    	0x0061dbb2 wxEvtHandler::ProcessEventIfMatches(wxEventTableEntryBase const&, wxEvtHandler*, wxEvent&) + 114
27  libwx_macu-2.8.0.7.0.dylib    	0x0061dd2f wxEventHashTable::HandleEvent(wxEvent&, wxEvtHandler*) + 111
28  libwx_macu-2.8.0.7.0.dylib    	0x0061e60f wxEvtHandler::ProcessEvent(wxEvent&) + 207
29  libwx_macu-2.8.0.7.0.dylib    	0x0075d879 wxWindowBase::TryParent(wxEvent&) + 105
30  libwx_macu-2.8.0.7.0.dylib    	0x0061e5bc wxEvtHandler::ProcessEvent(wxEvent&) + 124
31  libwx_macu-2.8.0.7.0.dylib    	0x00755928 wxToolBarBase::OnLeftClick(int, bool) + 88
32  libwx_macu-2.8.0.7.0.dylib    	0x006a58c6 wxToolBarTool::SetPosition(wxPoint const&) + 438
33  com.apple.HIToolbox           	0x94871f2f DispatchEventToHandlers(EventTargetRec*, OpaqueEventRef*, HandlerCallRec*) + 1567
34  com.apple.HIToolbox           	0x948711f6 SendEventToEventTargetInternal(OpaqueEventRef*, OpaqueEventTargetRef*, HandlerCallRec*) + 411
35  com.apple.HIToolbox           	0x94871055 SendEventToEventTargetWithOptions + 58
36  com.apple.HIToolbox           	0x94b14f24 HIToolbarItem::PerformAction() + 106
37  com.apple.HIToolbox           	0x94b18fc2 HIToolbarItemView::ControlHitSelf(OpaqueControlRef*, short, unsigned long) + 56
38  com.apple.HIToolbox           	0x948867a3 HIView::EventHandler(OpaqueEventHandlerCallRef*, OpaqueEventRef*, void*) + 9309
39  com.apple.HIToolbox           	0x94871f2f DispatchEventToHandlers(EventTargetRec*, OpaqueEventRef*, HandlerCallRec*) + 1567
40  com.apple.HIToolbox           	0x948711f6 SendEventToEventTargetInternal(OpaqueEventRef*, OpaqueEventTargetRef*, HandlerCallRec*) + 411
41  com.apple.HIToolbox           	0x948939bb SendEventToEventTarget + 52
42  com.apple.HIToolbox           	0x948e2e56 SendControlHit(HIView*, OpaqueEventRef*, short, unsigned long) + 296
43  com.apple.HIToolbox           	0x948e2cd7 HIView::NotifyControlHit(OpaqueEventRef*, short, unsigned long) + 45
44  com.apple.HIToolbox           	0x949476fb HIView::ClickInternal(CGPoint const&, unsigned long, void (*)(OpaqueControlRef*, short), OpaqueEventRef*, bool) + 245
45  com.apple.HIToolbox           	0x9494783c HandleControlClick + 199
46  libwx_macu-2.8.0.7.0.dylib    	0x006ac6b3 wxMacTopLevelMouseEventHandler(OpaqueEventHandlerCallRef*, OpaqueEventRef*, void*) + 1667
47  libwx_macu-2.8.0.7.0.dylib    	0x006acc96 wxMacTopLevelEventHandler(OpaqueEventHandlerCallRef*, OpaqueEventRef*, void*) + 1318
48  com.apple.HIToolbox           	0x94871f2f DispatchEventToHandlers(EventTargetRec*, OpaqueEventRef*, HandlerCallRec*) + 1567
49  com.apple.HIToolbox           	0x948711f6 SendEventToEventTargetInternal(OpaqueEventRef*, OpaqueEventTargetRef*, HandlerCallRec*) + 411
50  com.apple.HIToolbox           	0x948939bb SendEventToEventTarget + 52
51  com.apple.HIToolbox           	0x948a557b ToolboxEventDispatcherHandler(OpaqueEventHandlerCallRef*, OpaqueEventRef*, void*) + 1417
52  com.apple.HIToolbox           	0x94872380 DispatchEventToHandlers(EventTargetRec*, OpaqueEventRef*, HandlerCallRec*) + 2672
53  com.apple.HIToolbox           	0x948711f6 SendEventToEventTargetInternal(OpaqueEventRef*, OpaqueEventTargetRef*, HandlerCallRec*) + 411
54  com.apple.HIToolbox           	0x948939bb SendEventToEventTarget + 52
55  libwx_macu-2.8.0.7.0.dylib    	0x006431f6 wxApp::MacHandleOneEvent(void*) + 38
56  libwx_macu-2.8.0.7.0.dylib    	0x006432cd wxApp::MacDoOneEvent() + 125
57  libwx_macu-2.8.0.7.0.dylib    	0x00664922 wxEventLoop::Dispatch() + 34
58  libwx_macu-2.8.0.7.0.dylib    	0x00709bff wxEventLoopManual::Run() + 111
59  libwx_macu-2.8.0.7.0.dylib    	0x006e5a42 wxAppBase::MainLoop() + 82
60  libwx_macu-2.8.0.7.0.dylib    	0x005ca89a wxEntry(int&, wchar_t**) + 154
61  net.sourceforge.hugin.Hugin   	0x0000ef08 main + 24
62  net.sourceforge.hugin.Hugin   	0x0000ec96 start + 258
63  net.sourceforge.hugin.Hugin   	0x0000ebbd start + 41

I hope this error message makes clear what happens.


The (scripted) command to compile wxmac (wxwindows) is:

env \
  CC=$CC CXX=$CXX \
  CFLAGS="-isysroot $MACSDKDIR -arch $ARCH $ARCHARGs $OTHERARGs -O2 -dead_strip" \
  CXXFLAGS="-isysroot $MACSDKDIR -arch $ARCH $ARCHARGs $OTHERARGs -O2 -dead_strip" \
  CPPFLAGS="-isysroot $MACSDKDIR -arch $ARCH $ARCHARGs $OTHERARGs -O2 -dead_strip -I$REPOSITORYDIR/include" \
  OBJCFLAGS="-arch $ARCH" \
  OBJCXXFLAGS="-arch $ARCH" \
  LDFLAGS="-L$REPOSITORYDIR/lib -arch $ARCH -mmacosx-version-min=$OSVERSION -dead_strip -prebind" \
  ../configure --prefix="$REPOSITORYDIR" --exec-prefix=$REPOSITORYDIR/arch/$ARCH --disable-dependency-tracking \
    --host="$TARGET" --with-macosx-sdk=$MACSDKDIR --with-macosx-version-min=$OSVERSION \
    --enable-monolithic --enable-unicode --with-opengl --enable-compat26 --disable-graphics_ctx \
    --enable-shared --disable-debug --enable-aui || fail "configure step for $ARCH";

Note: that the variables are substituted per run per architecture.





References