← Back to team overview

hugin-devs team mailing list archive

[Bug 718116] Re: Opening Fast Preview Window crashes Hugin

 

I posted this to hugin-ptx, maybe what I found is helpful:

Hi group!

I've recently been annoyed by the openGL preview crashing when I had
previously disabled the panosphere view and then restarted hugin. Hugin
would crash a few times, but sometimes after some blind trying this and
that would come round again. So I launched hugin under gdb from a
console window and got a hint at where the problem occurs:

Program received signal SIGSEGV, Segmentation fault.
PreviewIdentifyTool::UpdateWithNewImageSet (this=0x0, new_image_set=...)
    at /home/kfj/src/hugin/hugin_clean.hg/src/hugin1/hugin/PreviewIdentifyTool.cpp:567
567         std::vector<unsigned int> difference(new_image_set.size());

this = 0x0 definitely looks bad, but I also found that of
new_image_set.size() was zero. After a bit of trial and error I ended up
simply putting the whole body of code inside the method in question into
a conditional:

void PreviewIdentifyTool::UpdateWithNewImageSet(std::set<unsigned int> new_image_set)
{
    if ( new_image_set.size() )
     {
      ...
     }
}

now the error was gone. I might just have been lucky, but since then I
could not get the bug to occur. Since I haven't really got a clue what
the code does, I'm not sure if my quick shot will be a solution, but
maybe it's a start :)

Kay

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

Title:
  Opening Fast Preview Window crashes Hugin

Status in Hugin - Panorama Tools GUI:
  Confirmed

Bug description:
  Whenever I open the FPW, Hugin segfaults. I've attached the full
  backtrace of the segfault triggered by manually opening the FPW, but
  here are the top 19 lines (of 62):

  #0  0x00f7eae1 in wxWindow::DoSetSize(int, int, int, int, int) () from /usr/lib/libwx_gtk2u_core-2.8.so.0
  #1  0x01072584 in wxSizerItem::SetDimension(wxPoint const&, wxSize const&) () from /usr/lib/libwx_gtk2u_core-2.8.so.0
  #2  0x01072f6b in wxGridSizer::SetItemBounds(wxSizerItem*, int, int, int, int) () from /usr/lib/libwx_gtk2u_core-2.8.so.0
  #3  0x010740ff in wxFlexGridSizer::RecalcSizes() () from /usr/lib/libwx_gtk2u_core-2.8.so.0
  #4  0x010722d4 in wxSizer::Layout() () from /usr/lib/libwx_gtk2u_core-2.8.so.0
  #5  0x01072409 in wxSizer::SetDimension(int, int, int, int) () from /usr/lib/libwx_gtk2u_core-2.8.so.0
  #6  0x010725c1 in wxSizerItem::SetDimension(wxPoint const&, wxSize const&) () from /usr/lib/libwx_gtk2u_core-2.8.so.0
  #7  0x01073512 in wxBoxSizer::RecalcSizes() () from /usr/lib/libwx_gtk2u_core-2.8.so.0
  #8  0x010722d4 in wxSizer::Layout() () from /usr/lib/libwx_gtk2u_core-2.8.so.0
  #9  0x01072409 in wxSizer::SetDimension(int, int, int, int) () from /usr/lib/libwx_gtk2u_core-2.8.so.0
  #10 0x01084f55 in wxWindowBase::Layout() () from /usr/lib/libwx_gtk2u_core-2.8.so.0
  #11 0x0107ee45 in wxTopLevelWindowBase::DoLayout() () from /usr/lib/libwx_gtk2u_core-2.8.so.0
  #12 0x0107fd2d in wxTopLevelWindowBase::OnSize(wxSizeEvent&) () from /usr/lib/libwx_gtk2u_core-2.8.so.0
  #13 0x00d3dc2f in wxAppConsole::HandleEvent(wxEvtHandler*, void (wxEvtHandler::*)(wxEvent&), wxEvent&) const () from /usr/lib/libwx_baseu-2.8.so.0
  #14 0x00ddc089 in wxEvtHandler::ProcessEventIfMatches(wxEventTableEntryBase const&, wxEvtHandler*, wxEvent&) () from /usr/lib/libwx_baseu-2.8.so.0
  #15 0x00ddd134 in wxEventHashTable::HandleEvent(wxEvent&, wxEvtHandler*) () from /usr/lib/libwx_baseu-2.8.so.0
  #16 0x00ddd233 in wxEvtHandler::ProcessEvent(wxEvent&) () from /usr/lib/libwx_baseu-2.8.so.0
  #17 0x00fcaf65 in wxFrame::GtkOnSize() () from /usr/lib/libwx_gtk2u_core-2.8.so.0
  #18 0x00f73e03 in wxTopLevelWindowGTK::Show(bool) () from /usr/lib/libwx_gtk2u_core-2.8.so.0
  #19 0x080bb5f1 in MainFrame::OnToggleGLPreviewFrame(wxCommandEvent&) ()

  Running Ubuntu Maverick on an Intel DG45ID mobo with the G45 chipset
  and builtin GMA X4500HD GPU

  About→System says:

   Operating System: Linux 2.6.35-25-generic i686
   Architecture: 32 bit
   Free memory: -1738088 kiB

  Hugin
  Version: 2010.4.0.854952d82c8f
  Path to ressources: /usr/share/hugin/xrc/
  Path to data: /usr/share/hugin/data/

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


References