Segmentation fault on any dialog opening (Issue #22523)

76 views
Skip to first unread message

Ethan Arns

unread,
Jun 11, 2022, 11:31:06 PM6/11/22
to wx-...@googlegroups.com, Subscribed

Anything from wxMessageDialog to wxFileDialog seg faults as soon as it tries to open. Even using dialog code taken from the source code's examples still seg faults when I try to open it. I've tried both the Apt repo version, as well as building both the stable and latest builds myself with a myriad of configurations. Running the debugger makes something about "/build/glibc-SzIz7B/glibc-2.31/sysdeps/x86_64/multiarch/memmove-vec-unaligned-erms.S" pop up, but that's the most I could find about the error. Here is an example of the code that causes a segfault:

wxMessageDialog *dial = new wxMessageDialog(this,  wxT("Download completed"), wxT("Info"), wxOK);
    wxFileDialog* openFileDialog = new wxFileDialog(this, _("Open XYZ file"), "", "",
                       "XYZ files (*.xyz)|*.xyz", wxFD_OPEN|wxFD_FILE_MUST_EXIST);

I am at a complete loss. Some of these are taken directly from tutorials or the source code. The most I found about it online was from 2006, and just said to recompile.

Platform and version information

  • Version from wx-config --version-full: 3.0.5.0 (the most recent one I tried)
  • OS: Linux Mint 20.3 Cinnamon


Reply to this email directly, view it on GitHub, or unsubscribe.
You are receiving this because you are subscribed to this thread.Message ID: <wxWidgets/wxWidgets/issues/22523@github.com>

Ethan Arns

unread,
Jun 11, 2022, 11:33:44 PM6/11/22
to wx-...@googlegroups.com, Subscribed

Sorry, GCC version: gcc (Ubuntu 9.4.0-1ubuntu1~20.04.1) 9.4.0


Reply to this email directly, view it on GitHub, or unsubscribe.

You are receiving this because you are subscribed to this thread.Message ID: <wxWidgets/wxWidgets/issues/22523/1153060702@github.com>

oneeyeman1

unread,
Jun 12, 2022, 9:37:15 AM6/12/22
to wx-...@googlegroups.com, Subscribed

Please get the latest release from wxwidgets.org download page, build it using --enable-debug and try to run the dialogs sample.


Reply to this email directly, view it on GitHub, or unsubscribe.

You are receiving this because you are subscribed to this thread.Message ID: <wxWidgets/wxWidgets/issues/22523/1153171157@github.com>

VZ

unread,
Jun 12, 2022, 10:12:53 AM6/12/22
to wx-...@googlegroups.com, Subscribed

Closed #22523 as not planned.


Reply to this email directly, view it on GitHub, or unsubscribe.

You are receiving this because you are subscribed to this thread.Message ID: <wxWidgets/wxWidgets/issue/22523/issue_event/6791496145@github.com>

VZ

unread,
Jun 12, 2022, 10:12:53 AM6/12/22
to wx-...@googlegroups.com, Subscribed

Sorry but I think that the problem must be due to a "myriad of configurations". Please make sure to build one, and only one, build of the library and the same headers and, of course, compiler and compiler options to build both the library and your application. Only mixing them up can result in "impossible" crashes like this -- the samples definitely don't crash when opening a dialog.

Sorry but we can't help you find the problem, only you can solve it by

  1. Deleting all your existing wxWidgets headers/libraries.
  2. Getting one, and only one version, and building using it.


Reply to this email directly, view it on GitHub, or unsubscribe.

You are receiving this because you are subscribed to this thread.Message ID: <wxWidgets/wxWidgets/issues/22523/1153183580@github.com>

Reply all
Reply to author
Forward
0 new messages