Jump to content
The Dark Mod Forums

DarkRadiant crashes at startup


MirceaKitsune

Recommended Posts

I have recently upgraded from openSUSE 13.2 to openSUSE Tumbleweed. I am able to compile DarkRadiant without any errors, but I can no longer run it. DR will immediately crash at startup when I try to do so. The crash takes place immediately after the menu in which I select the engine path, so it might occur when DR attempts to render something.

mircea@linux-qz0r:~/Games/Quake/TheDarkMod/darkmod> /home/mircea/Games/Quake/TheDarkMod/DarkRadiant_GIT/install/bin/darkradiant
Segmentation fault (core dumped)
mircea@linux-qz0r:~/Games/Quake/TheDarkMod/darkmod> 

If it's of any help, here is also the darkradiant log:

 (140385268681216) Started logging to /home/mircea/.darkradiant/darkradiant.log
 (140385268681216) This is DarkRadiant 2.0.2 x64 
 (140385268681216) wxWidgets Version: 3.0.2
 (140385268681216) ModuleRegistry: Warning! Module with name MainFrame requested but not found!

Does anyone know what is happening please, and help me get DR back up and running? Relevant packages are: Boost 1.54.0 (separate), wxWidgets 2.8.12, gcc 5.0, Mesa 11.0.3. I attempted new settings but no change.

Edited by MirceaKitsune
Link to comment
Share on other sites

I compiled Darkradiant with the --enable-debug flag, and generated a backtrace using gdb. Here is the full log:

mircea@linux-qz0r:~/Games/Quake/TheDarkMod/DarkRadiant_GIT/install/bin> gdb
GNU gdb (GDB; openSUSE Factory) 7.9
Copyright (C) 2015 Free Software Foundation, Inc.
License GPLv3+: GNU GPL version 3 or later <http://gnu.org/licenses/gpl.html>
This is free software: you are free to change and redistribute it.
There is NO WARRANTY, to the extent permitted by law.  Type "show copying"
and "show warranty" for details.
This GDB was configured as "x86_64-suse-linux".
Type "show configuration" for configuration details.
For bug reporting instructions, please see:
<http://bugs.opensuse.org/>.
Find the GDB manual and other documentation resources online at:
<http://www.gnu.org/software/gdb/documentation/>.
For help, type "help".
Type "apropos word" to search for commands related to "word".
(gdb) file ./darkradiant
Reading symbols from ./darkradiant...done.
(gdb) run
Starting program: /home/mircea/Games/Quake/TheDarkMod/DarkRadiant_GIT/install/bin/darkradiant 
Missing separate debuginfos, use: zypper install glibc-debuginfo-2.22-4.1.x86_64
[Thread debugging using libthread_db enabled]
Using host libthread_db library "/lib64/libthread_db.so.1".
Detaching after fork from child process 27130.
Detaching after fork from child process 27131.
ApplicationContextImpl: unable to create settings path '/home/mircea/.darkradiant/'
XMLRegistry: looking for XML files under /home/mircea/Games/Quake/TheDarkMod/DarkRadiant_GIT/install/share/darkradiant/

(darkradiant:27126): Gtk-WARNING **: Theme directory apps/system-power-actions of theme breeze has no size field


(darkradiant:27126): Gtk-WARNING **: Theme directory apps/toolbar of theme breeze has no size field


(darkradiant:27126): Gtk-WARNING **: Theme directory categories/kickoff-menu-tabs of theme breeze has no size field

[filters] Loaded 16 filters from registry.
[New Thread 0x7fffb6ffd700 (LWP 27142)]
[New Thread 0x7fffb77fe700 (LWP 27141)]
[New Thread 0x7fffccab7700 (LWP 27139)]
[New Thread 0x7fffcd2b8700 (LWP 27138)]
[New Thread 0x7fffcdcbf700 (LWP 27137)]
[New Thread 0x7fffce520700 (LWP 27135)]
[New Thread 0x7fffced21700 (LWP 27134)]
[New Thread 0x7fffe0b39700 (LWP 27133)]
[New Thread 0x7fffe133a700 (LWP 27132)]

Program received signal SIGSEGV, Segmentation fault.
0x00007ffff2402cec in fclose@@GLIBC_2.2.5 () from /lib64/libc.so.6
Missing separate debuginfos, use: zypper install Mesa-libEGL1-debuginfo-11.0.2-123.1.x86_64 Mesa-libGL1-debuginfo-11.0.2-123.1.x86_64 Mesa-libglapi0-debuginfo-11.0.2-123.1.x86_64 dbus-1-glib-debuginfo-0.104-1.2.x86_64 fontconfig-debuginfo-2.11.1-5.3.x86_64 gconf2-debuginfo-3.2.6-8.2.x86_64 gdk-pixbuf-loader-rsvg-debuginfo-2.40.11-1.1.x86_64 glibc-locale-debuginfo-2.22-4.1.x86_64 gnome-vfs2-debuginfo-2.24.4-26.4.x86_64 gtk2-engine-oxygen-debuginfo-1.4.6-3.1.x86_64 gvfs-debuginfo-1.26.0-1.1.x86_64 ibus-gtk-debuginfo-1.5.11-1.1.x86_64 libGLEW1_13-debuginfo-1.13.0-1.1.x86_64 libGLU1-debuginfo-9.0.0-11.3.x86_64 libICE6-debuginfo-1.0.9-3.3.x86_64 libSM6-debuginfo-1.2.2-5.3.x86_64 libX11-6-debuginfo-1.6.3-1.3.x86_64 libX11-xcb1-debuginfo-1.6.3-1.3.x86_64 libXau6-debuginfo-1.0.8-6.2.x86_64 libXcomposite1-debuginfo-0.4.4-10.2.x86_64 libXcursor1-debuginfo-1.1.14-6.3.x86_64 libXdamage1-debuginfo-1.1.4-9.2.x86_64 libXext6-debuginfo-1.3.3-3.2.x86_64 libXfixes3-debuginfo-5.0.1-5.2.x86_64 libXi6-debuginfo-1.7.5-1.1.x86_64 libXinerama1-debuginfo-1.1.3-5.2.x86_64 libXrandr2-debuginfo-1.5.0-1.2.x86_64 libXrender1-debuginfo-0.9.9-1.2.x86_64 libXt6-debuginfo-1.1.5-1.2.x86_64 libXxf86vm1-debuginfo-1.1.4-1.2.x86_64 libalut0-debuginfo-1.1.0-235.2.x86_64 libatk-1_0-0-debuginfo-2.18.0-1.1.x86_64 libavahi-client3-debuginfo-0.6.31-26.1.x86_64 libavahi-common3-debuginfo-0.6.31-26.1.x86_64 libavahi-glib1-debuginfo-0.6.31-26.1.x86_64 libboost_filesystem1_58_0-debuginfo-1.58.0-3.3.x86_64 libboost_python1_58_0-debuginfo-1.58.0-3.3.x86_64 libboost_regex1_58_0-debuginfo-1.58.0-3.3.x86_64 libboost_system1_58_0-debuginfo-1.58.0-3.3.x86_64 libbz2-1-debuginfo-1.0.6-35.22.x86_64 libcairo2-debuginfo-1.14.2-2.1.x86_64 libcanberra-gtk0-debuginfo-0.30-9.3.x86_64 libcanberra-gtk2-module-debuginfo-0.30-9.3.x86_64 libcanberra0-debuginfo-0.30-9.3.x86_64 libcroco-0_6-3-debuginfo-0.6.8-8.3.x86_64 libdatrie1-debuginfo-0.2.9-1.1.x86_64 libdbus-1-3-debuginfo-1.8.18-3.1.x86_64 libdrm2-debuginfo-2.4.65-1.1.x86_64 libenchant1-debuginfo-1.6.0-23.4.x86_64 libexpat1-debuginfo-2.1.0-16.2.x86_64 libffi4-debuginfo-5.1.1+r225724-1.2.x86_64 libfreetype6-debuginfo-2.6-2.2.x86_64 libftgl2-debuginfo-2.1.3~rc5-1.2.x86_64 libgbm1-debuginfo-11.0.2-123.1.x86_64 libgcc_s1-debuginfo-5.1.1+r225724-1.2.x86_64 libgcrypt20-debuginfo-1.6.4-1.1.x86_64 libgdk_pixbuf-2_0-0-debuginfo-2.32.1-1.1.x86_64 libgeoclue0-debuginfo-0.12.99-8.3.x86_64 libgio-2_0-0-debuginfo-2.46.0-1.1.x86_64 libglib-2_0-0-debuginfo-2.46.0-1.1.x86_64 libgmodule-2_0-0-debuginfo-2.46.0-1.1.x86_64 libgobject-2_0-0-debuginfo-2.46.0-1.1.x86_64 libgpg-error0-debuginfo-1.20-1.2.x86_64 libgraphite2-3-debuginfo-1.3.2-1.1.x86_64 libgstapp-1_0-0-debuginfo-1.4.5-54.36.x86_64 libgstaudio-1_0-0-debuginfo-1.4.5-54.36.x86_64 libgstfft-1_0-0-debuginfo-1.4.5-54.36.x86_64 libgstpbutils-1_0-0-debuginfo-1.4.5-54.36.x86_64 libgstreamer-1_0-0-debuginfo-1.4.5-60.33.x86_64 libgsttag-1_0-0-debuginfo-1.4.5-54.36.x86_64 libgstvideo-1_0-0-debuginfo-1.4.5-54.36.x86_64 libgtk-2_0-0-debuginfo-2.24.28-3.1.x86_64 libharfbuzz-icu0-debuginfo-1.0.3-1.2.x86_64 libharfbuzz0-debuginfo-1.0.3-1.2.x86_64 libibus-1_0-5-debuginfo-1.5.11-1.1.x86_64 libicu55_1-debuginfo-55.1-1.3.x86_64 libjavascriptcoregtk-1_0-0-debuginfo-2.4.9-3.1.x86_64 libjbig2-debuginfo-2.1-3.4.x86_64 libjpeg8-debuginfo-8.0.2-37.3.x86_64 libltdl7-debuginfo-2.4.6-3.2.x86_64 liblzma5-debuginfo-5.2.2-1.1.x86_64 libmspack0-debuginfo-0.5-2.3.x86_64 libnotify4-debuginfo-0.7.6-5.3.x86_64 libogg0-debuginfo-1.3.2-1.3.x86_64 libopenal1-debuginfo-1.16.0-5.1.x86_64 libopenssl1_0_0-debuginfo-1.0.2d-1.1.x86_64 liborc-0_4-0-debuginfo-0.4.24-2.1.x86_64 libpango-1_0-0-debuginfo-1.38.0-2.1.x86_64 libpcre1-debuginfo-8.37-1.19.x86_64 libpixman-1-0-debuginfo-0.33.2-1.1.x86_64 libpng12-0-debuginfo-1.2.53-2.2.x86_64 libpng16-16-debuginfo-1.6.17-2.2.x86_64 libpython2_7-1_0-debuginfo-2.7.10-3.1.x86_64 librsvg-2-2-debuginfo-2.40.11-1.1.x86_64 libsecret-1-0-debuginfo-0.18.3-1.1.x86_64 libselinux1-debuginfo-2.3-5.19.x86_64 libsigc-2_0-0-debuginfo-2.4.1-1.3.x86_64 libsoup-2_4-1-debuginfo-2.52.0-1.1.x86_64 libsqlite3-0-debuginfo-3.8.11.1-1.2.x86_64 libstdc++6-debuginfo-5.1.1+r225724-1.2.x86_64 libthai0-debuginfo-0.1.22-1.2.x86_64 libtiff5-debuginfo-4.0.4-2.1.x86_64 libuuid1-debuginfo-2.27-1.1.x86_64 libvorbis0-debuginfo-1.3.5-1.3.x86_64 libvorbisfile3-debuginfo-1.3.5-1.3.x86_64 libwayland-client0-debuginfo-1.9.0-1.1.x86_64 libwayland-server0-debuginfo-1.9.0-1.1.x86_64 libwebkitgtk-1_0-0-debuginfo-2.4.9-3.1.x86_64 libwebp5-debuginfo-0.4.3-3.1.x86_64 libwx_baseu-suse1-debuginfo-3.0.2-3.6.x86_64 libwx_baseu_net-suse1-debuginfo-3.0.2-3.6.x86_64 libwx_baseu_xml-suse1-debuginfo-3.0.2-3.6.x86_64 libwx_gtk2u_adv-suse1-debuginfo-3.0.2-3.6.x86_64 libwx_gtk2u_core-suse1-debuginfo-3.0.2-3.6.x86_64 libwx_gtk2u_gl-suse1-debuginfo-3.0.2-3.6.x86_64 libwx_gtk2u_html-suse1-debuginfo-3.0.2-3.6.x86_64 libwx_gtk2u_qa-suse1-debuginfo-3.0.2-3.6.x86_64 libwx_gtk2u_stc-suse1-debuginfo-3.0.2-3.6.x86_64 libwx_gtk2u_webview-suse1-debuginfo-3.0.2-3.6.x86_64 libwx_gtk2u_xrc-suse1-debuginfo-3.0.2-3.6.x86_64 libxcb-dri2-0-debuginfo-1.11.1-1.1.x86_64 libxcb-dri3-0-debuginfo-1.11.1-1.1.x86_64 libxcb-glx0-debuginfo-1.11.1-1.1.x86_64 libxcb-present0-debuginfo-1.11.1-1.1.x86_64 libxcb-render0-debuginfo-1.11.1-1.1.x86_64 libxcb-shm0-debuginfo-1.11.1-1.1.x86_64 libxcb-sync1-debuginfo-1.11.1-1.1.x86_64 libxcb-xfixes0-debuginfo-1.11.1-1.1.x86_64 libxcb1-debuginfo-1.11.1-1.1.x86_64 libxml2-2-debuginfo-2.9.2-1.4.x86_64 libxshmfence1-debuginfo-1.2-1.2.x86_64 libxslt1-debuginfo-1.1.28-10.2.x86_64 libz1-debuginfo-1.2.8-11.1.x86_64 python-base-debuginfo-2.7.10-3.1.x86_64
(gdb) bt
#0  0x00007ffff2402cec in fclose@@GLIBC_2.2.5 () at /lib64/libc.so.6
#1  0x00007fffd3053267 in  () at /usr/lib64/libpython2.7.so.1.0
#2  0x00007fffd30532c7 in  () at /usr/lib64/libpython2.7.so.1.0
#3  0x00007fffd33534e6 in boost::python::exec_file(boost::python::str, boost::python::api::object, boost::python::api::object) ()
    at /usr/lib64/libboost_python.so.1.58.0
#4  0x00007fffd3b44bd0 in script::ScriptingSystem::loadCommandScript(std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> > const&) (this=0xea55c0, scriptFilename="commands/patchsplitter.py") at ScriptingSystem.cpp:259
#5  0x00007fffd3b455b7 in script::ScriptingSystem::reloadScripts() (this=0xea55c0) at ScriptingSystem.cpp:341
#6  0x00007fffd3b473dd in script::ScriptingSystem::initialiseModule(ApplicationContext const&) (this=0xea55c0, ctx=...)
    at ScriptingSystem.cpp:463
#7  0x00000000007143bf in module::ModuleRegistry::initialiseModuleRecursive(std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> > const&) (this=0xca6e20 <module::ModuleRegistry::Instance()::_registry>, name="ScriptingSystem")
    at modulesystem/ModuleRegistry.cpp:136
#8  0x000000000071462f in module::ModuleRegistry::initialiseModules() (this=0xca6e20 <module::ModuleRegistry::Instance()::_registry>)
    at modulesystem/ModuleRegistry.cpp:155
#9  0x000000000049ba3c in RadiantApp::onStartupEvent(wxCommandEvent&) (this=0xd46910, ev=...) at main.cpp:141
#10 0x00007ffff4976c7e in wxAppConsoleBase::CallEventHandler(wxEvtHandler*, wxEventFunctor&, wxEvent&) const ()
    at /usr/lib64/libwx_baseu-suse.so.1
#11 0x00007ffff4abaf28 in wxEvtHandler::ProcessEventIfMatchesId(wxEventTableEntryBase const&, wxEvtHandler*, wxEvent&) ()
    at /usr/lib64/libwx_baseu-suse.so.1
#12 0x00007ffff4abb225 in wxEvtHandler::SearchDynamicEventTable(wxEvent&) () at /usr/lib64/libwx_baseu-suse.so.1
#13 0x00007ffff4abbc1e in wxEvtHandler::TryHereOnly(wxEvent&) () at /usr/lib64/libwx_baseu-suse.so.1
#14 0x00007ffff4abbce3 in wxEvtHandler::ProcessEventLocally(wxEvent&) () at /usr/lib64/libwx_baseu-suse.so.1
#15 0x00007ffff4abbd39 in wxEvtHandler::ProcessEvent(wxEvent&) () at /usr/lib64/libwx_baseu-suse.so.1
#16 0x00007ffff4abadab in wxEvtHandler::ProcessPendingEvents() () at /usr/lib64/libwx_baseu-suse.so.1
#17 0x00007ffff4977d8f in wxAppConsoleBase::ProcessPendingEvents() () at /usr/lib64/libwx_baseu-suse.so.1
#18 0x00007ffff540ad5f in wxApp::DoIdle() () at /usr/lib64/libwx_gtk2u_core-suse.so.1
#19 0x00007ffff540ae43 in  () at /usr/lib64/libwx_gtk2u_core-suse.so.1
#20 0x00007ffff0a45f4a in g_main_context_dispatch () at /usr/lib64/libglib-2.0.so.0
#21 0x00007ffff0a462c8 in  () at /usr/lib64/libglib-2.0.so.0
#22 0x00007ffff0a465e2 in g_main_loop_run () at /usr/lib64/libglib-2.0.so.0
#23 0x00007ffff1686b77 in gtk_main () at /usr/lib64/libgtk-x11-2.0.so.0
#24 0x00007ffff5419e15 in wxGUIEventLoop::DoRun() () at /usr/lib64/libwx_gtk2u_core-suse.so.1
#25 0x00007ffff49a4bed in wxEventLoopBase::Run() () at /usr/lib64/libwx_baseu-suse.so.1
#26 0x00007ffff4976de6 in wxAppConsoleBase::MainLoop() () at /usr/lib64/libwx_baseu-suse.so.1
#27 0x00007ffff49f3760 in wxEntry(int&, wchar_t**) () at /usr/lib64/libwx_baseu-suse.so.1
#28 0x00000000004999c7 in main(int, char**) (argc=1, argv=0x7fffffffdb38) at main.cpp:148
(gdb) 
Link to comment
Share on other sites

So the crash is happening in the system Python libraries or boost::Python. You could try building without Python enabled; I think there is an option to the ./configure script to disable it (or perhaps I am mis-remembering).

Link to comment
Share on other sites

So the crash is happening in the system Python libraries or boost::Python. You could try building without Python enabled; I think there is an option to the ./configure script to disable it (or perhaps I am mis-remembering).

 

Thank you, I used --disable-python and DarkRadiant is working again! Any way to further debug what is happening with Python (version 2.7.10 in my case)? I don't plan to script DarkRadiant so I can go without this, but it's still an issue that should ideally be solved.

Link to comment
Share on other sites

Any way to further debug what is happening with Python (version 2.7.10 in my case)? I don't plan to script DarkRadiant so I can go without this, but it's still an issue that should ideally be solved.

 

I wouldn't know where to begin debugging Python myself, since I've had no involvement with that part of the code. If it's something you want to dive into I suggest starting with some Boost.Python documentation, or perhaps finding out how to install debug symbols on your system so that the stacktrace gives more detailed output. It may be something relatively simple like initialising the Python library with some non-portable arguments.

Link to comment
Share on other sites

I wouldn't know where to begin debugging Python myself, since I've had no involvement with that part of the code. If it's something you want to dive into I suggest starting with some Boost.Python documentation, or perhaps finding out how to install debug symbols on your system so that the stacktrace gives more detailed output. It may be something relatively simple like initialising the Python library with some non-portable arguments.

 

I... think that goes a bit beyond what I'm willing to do on my system right now. There is however another problem related to boost, so maybe the two are linked?

 

http://forums.thedarkmod.com/topic/17493-configure-fails-with-boost-major-version-error/

 

./configure does not detect the boost 1.58.0 installation on my system (openSUSE Tumbleweed), I have to use --with-boost to point it to 1.54.0 separately. Perhaps this version is a bit old, and it doesn't get along with the latest version of Python?

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

  • Recent Status Updates

    • Ansome

      Finally got my PC back from the shop after my SSD got corrupted a week ago and damaged my motherboard. Scary stuff, but thank goodness it happened right after two months of FM development instead of wiping all my work before I could release it. New SSD, repaired Motherboard and BIOS, and we're ready to start working on my second FM with some added version control in the cloud just to be safe!
      · 0 replies
    • Petike the Taffer  »  DeTeEff

      I've updated the articles for your FMs and your author category at the wiki. Your newer nickname (DeTeEff) now comes first, and the one in parentheses is your older nickname (Fieldmedic). Just to avoid confusing people who played your FMs years ago and remember your older nickname. I've added a wiki article for your latest FM, Who Watches the Watcher?, as part of my current updating efforts. Unless I overlooked something, you have five different FMs so far.
      · 0 replies
    • Petike the Taffer

      I've finally managed to log in to The Dark Mod Wiki. I'm back in the saddle and before the holidays start in full, I'll be adding a few new FM articles and doing other updates. Written in Stone is already done.
      · 4 replies
    • nbohr1more

      TDM 15th Anniversary Contest is now active! Please declare your participation: https://forums.thedarkmod.com/index.php?/topic/22413-the-dark-mod-15th-anniversary-contest-entry-thread/
       
      · 0 replies
    • JackFarmer

      @TheUnbeholden
      You cannot receive PMs. Could you please be so kind and check your mailbox if it is full (or maybe you switched off the function)?
      · 1 reply
×
×
  • Create New...