Dolphin, the GameCube and Wii emulator - Forums

Full Version: Dolphin 5.0 segfaults on startup (Linux)
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
I recently upgraded from Debian 8 to Debian 9, and Dolphin stopped working. when i run it from the Terminal, i get:

Code:
wizard64@wizard64computer:~$ dolphin-emu

(process:13267): GLib-GObject-WARNING **: invalid (NULL) pointer instance

(process:13267): GLib-GObject-CRITICAL **: g_signal_connect_data: assertion 'G_TYPE_CHECK_INSTANCE (instance)' failed

(process:13267): Gdk-CRITICAL **: IA__gdk_screen_get_default_colormap: assertion 'GDK_IS_SCREEN (screen)' failed

(process:13267): Gdk-CRITICAL **: IA__gdk_colormap_get_visual: assertion 'GDK_IS_COLORMAP (colormap)' failed

(process:13267): Gdk-CRITICAL **: IA__gdk_screen_get_default_colormap: assertion 'GDK_IS_SCREEN (screen)' failed

(process:13267): Gdk-CRITICAL **: IA__gdk_screen_get_root_window: assertion 'GDK_IS_SCREEN (screen)' failed

(process:13267): Gdk-CRITICAL **: IA__gdk_screen_get_root_window: assertion 'GDK_IS_SCREEN (screen)' failed

(process:13267): Gdk-CRITICAL **: IA__gdk_window_new: assertion 'GDK_IS_WINDOW (parent)' failed
Segmentation fault
wizard64@wizard64computer:~$


Is there any way to fix this?
I haven't seen those warnings. Can you also provide a stack trace?
Here's the result of running "strace dolphin-emu &> strace.txt" (the file it outputted I attached)

I suspect it's not Dolphin, but GTK because I have a similar problem with Grub Customizer
Strace is a system call and signal tracer, not a stack trace.

You can get a stack trace by enabling core dumps, the running gdb against the core dumps and copy the output of the "back trace" command.

Note, directly running directly through gdb is a pain, as dolphin uses signals that gdb traps as part of it's normal operation (unless you disable fastmem).
OK, I did what you told me to do, and here is the result:
Code:
(gdb) bt
#0  0x00007fbee0191a09 in gdk_window_enable_synchronized_configure ()
    at /usr/lib/x86_64-linux-gnu/libgdk-x11-2.0.so.0
#1  0x00007fbedfd33c11 in  () at /usr/lib/x86_64-linux-gnu/libgtk-x11-2.0.so.0
#5  0x00007fbee1b72fbf in <emit signal ??? on instance 0x341d090 [GtkWindow]> (instance=<optimized out>, signal_id=<optimized out>, detail=<optimized out>)
    at ././gobject/gsignal.c:3447
    #2  0x00007fbee1b57f75 in g_closure_invoke (closure=closure@entry=0x340f540, return_value=return_value@entry=0x0, n_param_values=1, param_values=param_values@entry=0x7ffd10edcc40, invocation_hint=invocation_hint@entry=0x7ffd10edcbc0)
    at ././gobject/gclosure.c:804
    #3  0x00007fbee1b6995c in signal_emit_unlocked_R (node=node@entry=0x340f590, detail=detail@entry=0, instance=instance@entry=0x341d090, emission_return=emission_return@entry=0x0, instance_and_params=instance_and_params@entry=0x7ffd10edcc40) at ././gobject/gsignal.c:3565
    #4  0x00007fbee1b72bdc in g_signal_emit_valist (instance=<optimized out>, signal_id=<optimized out>, detail=<optimized out>, var_args=var_args@entry=0x7ffd10edcdf0) at ././gobject/gsignal.c:3391
#6  0x00007fbedfd27b74 in gtk_widget_realize ()
    at /usr/lib/x86_64-linux-gnu/libgtk-x11-2.0.so.0
#7  0x00007fbedf4a1f2a in  ()
    at /usr/lib/x86_64-linux-gnu/libwx_gtk2u_core-3.0.so.0
#8  0x00007fbedf49a766 in wxFontEnumerator::EnumerateFacenames(wxFontEncoding, bool) () at /usr/lib/x86_64-linux-gnu/libwx_gtk2u_core-3.0.so.0
#9  0x00007fbedf608a3e in wxFontEnumerator::GetFacenames(wxFontEncoding, bool) (---Type <return> to continue, or q <return> to quit---
) at /usr/lib/x86_64-linux-gnu/libwx_gtk2u_core-3.0.so.0
#10 0x00007fbedf608c2b in wxFontEnumerator::IsValidFacename(wxString const&) ()
    at /usr/lib/x86_64-linux-gnu/libwx_gtk2u_core-3.0.so.0
#11 0x00007fbedf5ff8e2 in wxNativeFontInfo::SetFaceName(wxArrayString const&) () at /usr/lib/x86_64-linux-gnu/libwx_gtk2u_core-3.0.so.0
#12 0x00007fbedf49c450 in wxNativeFontInfo::SetFamily(wxFontFamily) ()
    at /usr/lib/x86_64-linux-gnu/libwx_gtk2u_core-3.0.so.0
#13 0x00007fbedf4c8e96 in  ()
    at /usr/lib/x86_64-linux-gnu/libwx_gtk2u_core-3.0.so.0
#14 0x00007fbedf4c9080 in  ()
    at /usr/lib/x86_64-linux-gnu/libwx_gtk2u_core-3.0.so.0
#15 0x00007fbedf4c926d in wxFont::Create(int, wxFontFamily, wxFontStyle, wxFontWeight, bool, wxString const&, wxFontEncoding) ()
    at /usr/lib/x86_64-linux-gnu/libwx_gtk2u_core-3.0.so.0
#16 0x000000000044cec2 in _GLOBAL__sub_I_DebuggerFont ()
#17 0x00000000008a8fdd in __libc_csu_init ()
#18 0x00007fbedcf27240 in __libc_start_main (main=
    0x44f790 <main>, argc=1, argv=0x7ffd10eddcc8, init=
    0x8a8f90 <__libc_csu_init>, fini=<optimized out>, rtld_fini=<optimized out>, stack_end=0x7ffd10eddcb8) at ../csu/libc-start.c:247
#19 0x00000000004653ef in _start ()
(gdb)

EDIT: It told me that i needed a program with debugging symbols, but I installed it from the repo, so I don't think it has that.
It sounds like your wxgtk installation is broken. Dolphin wasn't started at all.
I tried reinstalling wxgtk, but no luck. I also tried looking on the internet for a solution, but I couldn't find any.
You should probably rebuild Dolphin after such a major distro upgrade.
that solved the issue Big Grin. I built dolphin from source (the latest stable version) and it works now