Uploaded image for project: 'GMAT'
  1. GMAT
  2. GMT-1846

On Linux, STC Editor crashes GMAT on Close

    Details

      Description

      The STC editor has a segmentation violation in the destructor on Linux when the editor window is closed, which crashes GMAT. The solution, of course, is to build without STC for now, but it is annoying.

      Here's the back-trace:

      Program received signal SIGSEGV, Segmentation fault.
      0x00000000006b48f2 in Editor::~Editor() ()
      (gdb) bt
      #0 0x00000000006b48f2 in Editor::~Editor() ()
      #1 0x00007ffff2109c78 in ScintillaWX::~ScintillaWX() ()
      from /usr/local/lib/libwx_gtk2_stc-2.8.so.0
      #2 0x00007ffff21133f8 in wxStyledTextCtrl::~wxStyledTextCtrl() ()
      from /usr/local/lib/libwx_gtk2_stc-2.8.so.0
      #3 0x00000000006b4767 in Editor::~Editor() ()
      #4 0x00000000006ba7e8 in EditorPanel::~EditorPanel() ()
      #5 0x00007ffff5de3053 in wxWindowBase::DestroyChildren() ()
      from /usr/local/lib/libwx_gtk2_core-2.8.so.0
      #6 0x00007ffff5d05922 in wxWindow::~wxWindow() ()
      from /usr/local/lib/libwx_gtk2_core-2.8.so.0
      #7 0x00007ffff5e124bc in wxScrolledWindow::~wxScrolledWindow() ()
      from /usr/local/lib/libwx_gtk2_core-2.8.so.0
      #8 0x00007ffff5de3053 in wxWindowBase::DestroyChildren() ()
      from /usr/local/lib/libwx_gtk2_core-2.8.so.0
      #9 0x00007ffff5d05922 in wxWindow::~wxWindow() ()
      from /usr/local/lib/libwx_gtk2_core-2.8.so.0
      #10 0x000000000054332a in GmatMdiChildFrame::~GmatMdiChildFrame() ()
      #11 0x000000000046be8f in GmatMainFrame::RemoveChild(wxString const&, GmatTree::ItemType, bool) ()
      #12 0x00000000005435c3 in GmatMdiChildFrame::OnClose(wxCloseEvent&) ()
      #13 0x00000000004683ef in GmatMainFrame::CloseChild(GmatMdiChildFrame*) ()
      #14 0x00000000006ba33b in EditorPanel::OnClosePanel(wxCommandEvent&) ()

        Gliffy Diagrams

          Attachments

            Activity

            Hide
            shughes Steven Hughes added a comment -

            Is this a bug in the third party code, or how we are using it?

            Show
            shughes Steven Hughes added a comment - Is this a bug in the third party code, or how we are using it?
            Hide
            djcinsb Darrel Conway added a comment -

            The example provided with wx for using STC works error free on Linux, but GMAT's usage crashes in the destructor as if we were deleting something that is already out of scope. If it's just a Linux issue, then I'd keep it low priority. Does STC work correctly on Mac?

            Note that the platform descriptor here says "Linux Fedora 5." Fedora is at release 12 (TWELVE!!!) now, and there is no generic "Linux" platform label even though this bug is likely there for all linux builds. That really ought to be fixed if we're going to start actually supporting linux in the bugzilla entries – how do I file a bug on Bugzilla configuration?

            Show
            djcinsb Darrel Conway added a comment - The example provided with wx for using STC works error free on Linux, but GMAT's usage crashes in the destructor as if we were deleting something that is already out of scope. If it's just a Linux issue, then I'd keep it low priority. Does STC work correctly on Mac? Note that the platform descriptor here says "Linux Fedora 5." Fedora is at release 12 (TWELVE!!!) now, and there is no generic "Linux" platform label even though this bug is likely there for all linux builds. That really ought to be fixed if we're going to start actually supporting linux in the bugzilla entries – how do I file a bug on Bugzilla configuration?
            Hide
            djcinsb Darrel Conway added a comment -

            CCB Reassigned to P3 Someday

            Show
            djcinsb Darrel Conway added a comment - CCB Reassigned to P3 Someday
            Hide
            djcinsb Darrel Conway added a comment -

            This issue no longer occurs with wx 3.0 / cmake builds

            Show
            djcinsb Darrel Conway added a comment - This issue no longer occurs with wx 3.0 / cmake builds

              People

              • Votes:
                0 Vote for this issue
                Watchers:
                2 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved: