View Issue Details

IDProjectCategoryView StatusLast Update
0005657DarkRadiantGeneralpublic29.06.2021 12:41
ReporterMirceaKitsune Assigned To 
PrioritynormalSeveritynormalReproducibilitysometimes
Status acknowledgedResolutionopen 
Platformx64OSLinux openSUSEOS VersionRelease
Product Version2.12.0 
Summary0005657: DarkRadiant occasionally crashes when using undo
DescriptionDarkradiant sometimes crashes when using undo (Control + Z). This only happens in rare and specific circumstances, not sure how to reproduce reliably. I decided to report this after managing to at least catch an error message in the console in case it points to the right direction.

[mircea@linux-qz0r ~]$ /home/mircea/Games/Quake/TheDarkMod/DarkRadiant_GIT/build/install/bin/darkradiant
04:21:56: Warning: Mismatch between the program and library build versions detected.
The library used 3.0 (wchar_t,compiler with C++ ABI 1014,wx containers,compatible with 2.8),
and your program used 3.0 (wchar_t,compiler with C++ ABI 1016,wx containers,compatible with 2.8).
Gtk-Message: 04:21:56.323: Failed to load module "appmenu-gtk-module"
SIGSEGV signal caught: 11
0: /archive/mircea/Games/Quake/TheDarkMod/DarkRadiant_GIT/build/install/bin/../lib/darkradiant/modules/libradiantcore.so(_ZN6applog15SegFaultHandler14_handleSigSegvEi+0x4cf) [0x7fd006ea7daf]
1: /usr/lib/libc.so.6(+0x3cda0) [0x7fd00a749da0]
2: [0x561b6c5e2990]
TagsCrash

Activities

greebo

greebo

28.06.2021 18:48

administrator   ~0014131

I assume you're working with a custom build from git?
If yes, this crash might be related to hitting Ctrl-Z right after the "Create Entity..." dialog has been used. It's related to 0005408, I pushed a workaround to Git a few days ago - maybe it's the same issue you're running into.
greebo

greebo

28.06.2021 18:49

administrator   ~0014132

Apart from this, a backtrace would be nice to have, not sure if you're familiar with using gdb.
MirceaKitsune

MirceaKitsune

29.06.2021 12:41

reporter   ~0014133

I used gdb a few times. Seems I managed to get a backtrace in this case, here you go. Luckily I remembered one chain of events I did on my map that's able to reproduce the crash whenever I use undo.
backtrace.txt (3,870 bytes)   
Thread 1 "darkradiant" received signal SIGSEGV, Segmentation fault.
0x00007ffff2db79f3 in undo::UndoSystem::undo() () from /archive/mircea/Games/Quake/TheDarkMod/DarkRadiant_GIT/build/install/bin/../lib/darkradiant/modules/libradiantcore.so                                                                          
(gdb) bt
#0  0x00007ffff2db79f3 in undo::UndoSystem::undo() ()
    at /archive/mircea/Games/Quake/TheDarkMod/DarkRadiant_GIT/build/install/bin/../lib/darkradiant/modules/libradiantcore.so                                                                                                                          
#1  0x00007ffff29f50f5 in cmd::CommandSystem::executeCommand(std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> > const&, std::vector<cmd::Argument, std::allocator<cmd::Argument> > const&) ()
    at /archive/mircea/Games/Quake/TheDarkMod/DarkRadiant_GIT/build/install/bin/../lib/darkradiant/modules/libradiantcore.so                                                                                                                          
#2  0x00007ffff29f93c8 in cmd::CommandSystem::execute(std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> > const&) ()
    at /archive/mircea/Games/Quake/TheDarkMod/DarkRadiant_GIT/build/install/bin/../lib/darkradiant/modules/libradiantcore.so                                                                                                                          
#3  0x00005555556e7a09 in ui::EventManager::handleKeyEvent(wxKeyEvent&) ()
#4  0x0000555555706176 in ui::GlobalKeyEventFilter::FilterEvent(wxEvent&) ()
#5  0x00007ffff7a11345 in wxEvtHandler::ProcessEvent(wxEvent&) () at /usr/lib/libwx_baseu-3.0.so.0
#6  0x00007ffff7a110d7 in wxEvtHandler::SafelyProcessEvent(wxEvent&) () at /usr/lib/libwx_baseu-3.0.so.0
#7  0x00007ffff746deec in  () at /usr/lib/libwx_gtk2u_core-3.0.so.0
#8  0x00007ffff5d9e0a8 in  () at /usr/lib/libgtk-x11-2.0.so.0
#9  0x00007ffff599bddf in g_closure_invoke () at /usr/lib/libgobject-2.0.so.0
#10 0x00007ffff59c4fbd in  () at /usr/lib/libgobject-2.0.so.0
#11 0x00007ffff59b82db in g_signal_emit_valist () at /usr/lib/libgobject-2.0.so.0
#12 0x00007ffff59b9210 in g_signal_emit () at /usr/lib/libgobject-2.0.so.0
#13 0x00007ffff5ec3275 in  () at /usr/lib/libgtk-x11-2.0.so.0
#14 0x00007ffff5ed7c6a in gtk_window_propagate_key_event () at /usr/lib/libgtk-x11-2.0.so.0
--Type <RET> for more, q to quit, c to continue without paging--c
#15 0x00007ffff745cbcc in  () at /usr/lib/libwx_gtk2u_core-3.0.so.0
#16 0x00007ffff5d9e0a8 in  () at /usr/lib/libgtk-x11-2.0.so.0
#17 0x00007ffff599bddf in g_closure_invoke () at /usr/lib/libgobject-2.0.so.0
#18 0x00007ffff59c4fbd in  () at /usr/lib/libgobject-2.0.so.0
#19 0x00007ffff59b82db in g_signal_emit_valist () at /usr/lib/libgobject-2.0.so.0
#20 0x00007ffff59b9210 in g_signal_emit () at /usr/lib/libgobject-2.0.so.0
#21 0x00007ffff5ec3275 in  () at /usr/lib/libgtk-x11-2.0.so.0
#22 0x00007ffff5d9c77e in gtk_propagate_event () at /usr/lib/libgtk-x11-2.0.so.0
#23 0x00007ffff5d9cb4b in gtk_main_do_event () at /usr/lib/libgtk-x11-2.0.so.0
#24 0x00007ffff5c0b3be in  () at /usr/lib/libgdk-x11-2.0.so.0
#25 0x00007ffff7d2502c in g_main_context_dispatch () at /usr/lib/libglib-2.0.so.0
#26 0x00007ffff7d78b59 in  () at /usr/lib/libglib-2.0.so.0
#27 0x00007ffff7d24593 in g_main_loop_run () at /usr/lib/libglib-2.0.so.0
#28 0x00007ffff5d9b9fe in gtk_main () at /usr/lib/libgtk-x11-2.0.so.0
#29 0x00007ffff7448876 in wxGUIEventLoop::DoRun() () at /usr/lib/libwx_gtk2u_core-3.0.so.0
#30 0x00007ffff78e937e in wxEventLoopBase::Run() () at /usr/lib/libwx_baseu-3.0.so.0
#31 0x00007ffff78af766 in wxAppConsoleBase::MainLoop() () at /usr/lib/libwx_baseu-3.0.so.0
#32 0x00007ffff792e199 in wxEntry(int&, wchar_t**) () at /usr/lib/libwx_baseu-3.0.so.0
#33 0x000055555569baae in main ()
backtrace.txt (3,870 bytes)   

Issue History

Date Modified Username Field Change
28.06.2021 01:26 MirceaKitsune New Issue
28.06.2021 01:26 MirceaKitsune Tag Attached: Crash
28.06.2021 18:48 greebo Note Added: 0014131
28.06.2021 18:48 greebo Status new => acknowledged
28.06.2021 18:49 greebo Note Added: 0014132
29.06.2021 12:41 MirceaKitsune Note Added: 0014133
29.06.2021 12:41 MirceaKitsune File Added: backtrace.txt