← Back to team overview

hugin-devs team mailing list archive

[Bug 733793] Re: About window crashes on OSX for 2011.0 beta versions

 

I see the crash (just a segfault with no other messages) on fedora 14
i386, 2011.0 branch, from 11th March, HG 5098:45dc653144f3. Deleting the
~/.hugin file makes no difference.

The same snapshot on fedora 13 x86_64 is ok. These are both built in
mock chroots, so they should be 'clean' installs. f13 and f14 have the
same version of wxwidgets. So I don't have any ideas, if nobody else can
reproduce on Linux then we can probably ignore this.

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

Title:
  About window crashes on OSX  for 2011.0 beta versions

Status in Hugin - Panorama Tools GUI:
  New

Bug description:
  The aboutdialog.cpp crashes hugin in the 2011 branch. The aboutdialog
  in the trunk works correctly.

  This is due to the fact that the aboutdialog.cpp within the 2011.0 (beta) branch is different from the trunk one.
  I have already been fiddling with the code the past couple of days but I'm obviously an even worse programmer than I expected to be as I can't repair it.

  Can this please be fixed?

  The trunk contains the code (This functions!):
  =====================================
  void AboutDialog::SetMode(int newMode)
  {
      if(m_mode==newMode){
          return;
      }
      if((newMode!=6)&&(m_mode!=6)){
          m_mode=newMode;
          return;
      }
      // image to be displayed on dedication tab
      if(newMode==6){
          m_logo.LoadFile(huginApp::Get()->GetXRCPath() +
                          wxT("data/") + wxT("logo.png"),
                          wxBITMAP_TYPE_PNG);
          m_logoImgCtrl->SetBitmap(m_logo);
          m_mode=newMode;
          return;
      }
      // image to be displayed on any other tab
      if(m_mode==6){
          m_logo.LoadFile(huginApp::Get()->GetXRCPath() +
                          wxT("data/") + wxT("logo.png"),
                          wxBITMAP_TYPE_PNG);
          m_logoImgCtrl->SetBitmap(m_logo);
          m_mode=newMode;
          return;
      }
  };
  =====================================

  
  The 2011.0 branch contains the code (This crashes hugin!):
  =====================================
  void AboutDialog::SetMode(int newMode)
  {
      if(m_mode==newMode){
          return;
      }

      switch ( newMode ) {

          case 0 :
              // about tab
  			wxString strFile = MacGetPathToBundledResourceFile(CFSTR("splash.png"));
  			SetLogo(wxT(strFile));
              break;

          case 6 :
              // dedication tab
  			strFile = MacGetPathToBundledResourceFile(CFSTR("dedication.png"));
  			SetLogo(wxT(strFile));
              break;

          default :
              // all other tabs
  			strFile = MacGetPathToBundledResourceFile(CFSTR("logo.png"));
  			SetLogo(wxT(strFile));

      }

      m_mode=newMode;
      return;
  };
  =====================================



References