Crashes when building game list

Help
2008-10-02
2013-04-30
  • Rafael Wingnux

    Rafael Wingnux - 2008-10-02

    I've tried gmameui before with very good results but on a fresh XFCE Mint (xubuntu hardy based) install it crashes with a segmentation fault after rebuilding the game list.

    Any help?

     
    • Rafael Wingnux

      Rafael Wingnux - 2008-10-02

      Here's the terminal output:

      wingnux@wingnux-desktop ~ $ gmameui

      (gmameui:30574): GLib-WARNING **: GError set over the top of a previous GError or uninitialized memory.
      This indicates a bug in someone's code. You must ensure an error is NULL before it's set.
      The overwriting error message was: Key file does not have key 'sample-paths'
      ** Message: Loading gamelist /home/wingnux/.gmameui/gamelist
      ** Message: gamelist not found, need to rebuild one

      (gmameui:30574): GLib-WARNING **: GError set over the top of a previous GError or uninitialized memory.
      This indicates a bug in someone's code. You must ensure an error is NULL before it's set.
      The overwriting error message was: Key file does not have group 'i386'

      (gmameui:30574): GLib-WARNING **: GError set over the top of a previous GError or uninitialized memory.
      This indicates a bug in someone's code. You must ensure an error is NULL before it's set.
      The overwriting error message was: Key file does not have group 'joy_pad_opts'

      ** (gmameui:30574): CRITICAL **: gmameui_sidebar_set_with_rom: assertion `sidebar != NULL' failed
      Segmentation fault

       
    • Andrew Burton

      Andrew Burton - 2008-10-02

      Can you generate a stacktrace? The above doesn't identify the root cause of the problem.

      Configure GMAMEUI to run in debug mode:

      ./configure --enable-debug
      make
      make install (as root)
      gdb src/gmameui

      Then, when the crash appears, if you type 'bt' at the gdb prompt, you will then get the line of code causing the problem.

       
    • Rafael Wingnux

      Rafael Wingnux - 2008-10-02

      I've done as you said but gmameui won't run, am I missing something? Here's the output:

      "wingnux@wingnux-desktop ~/Downloads/gmameui-0.2.5 $ gdb src/gmameui
      GNU gdb 6.8-debian
      Copyright (C) 2008 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 "i486-linux-gnu"...
      (gdb)
      "

      And then nothing happens...

       
      • Andrew Burton

        Andrew Burton - 2008-10-03

        Yes:

        at the (gdb) prompt, type:
        run

        GMAMEUI should start. When it crashes, at the (gdb) prompt, type:
        bt

        which will generate the line of code (and preceding lines of code) before the crash.

         
        • Rafael Wingnux

          Rafael Wingnux - 2008-10-03

          Thanks! Here it is:

          Program received signal SIGSEGV, Segmentation fault.
          [Switching to Thread 0xb6ff3940 (LWP 32744)]
          0xb75ebd2a in strcmp () from /lib/tls/i686/cmov/libc.so.6
          (gdb) bt
          #0  0xb75ebd2a in strcmp () from /lib/tls/i686/cmov/libc.so.6
          #1  0x0805a058 in get_rom_from_gamelist_by_name (gl=0x84cd070, romname=0x0)
              at game_list.c:820
          #2  0x08061051 in gamelist_parse (exec=0x80df7d8) at mameio.c:997
          #3  0x0805730d in on_rebuild_game_list_menu_activate (menuitem=0x83c6170,
              user_data=0x0) at callbacks.c:282
          #4  0xb78d6aff in g_cclosure_marshal_VOID__VOID ()
             from /usr/lib/libgobject-2.0.so.0
          #5  0xb78c9759 in g_closure_invoke () from /usr/lib/libgobject-2.0.so.0
          #6  0xb78ddf8b in ?? () from /usr/lib/libgobject-2.0.so.0
          #7  0xb78dfc1f in g_signal_emit_valist () from /usr/lib/libgobject-2.0.so.0
          #8  0xb78dff69 in g_signal_emit () from /usr/lib/libgobject-2.0.so.0
          #9  0xb7c14f15 in ?? () from /usr/lib/libgtk-x11-2.0.so.0
          #10 0xb7c15e51 in gtk_action_activate () from /usr/lib/libgtk-x11-2.0.so.0
          #11 0xb78d6aff in g_cclosure_marshal_VOID__VOID ()
             from /usr/lib/libgobject-2.0.so.0
          #12 0xb78c9759 in g_closure_invoke () from /usr/lib/libgobject-2.0.so.0
          #13 0xb78ddf8b in ?? () from /usr/lib/libgobject-2.0.so.0
          #14 0xb78dfc1f in g_signal_emit_valist () from /usr/lib/libgobject-2.0.so.0
          #15 0xb78dff69 in g_signal_emit () from /usr/lib/libgobject-2.0.so.0
          #16 0xb7e29278 in gtk_widget_activate () from /usr/lib/libgtk-x11-2.0.so.0
          #17 0xb7d12bc2 in gtk_menu_shell_activate_item ()
             from /usr/lib/libgtk-x11-2.0.so.0
          ---Type <return> to continue, or q <return> to quit---
          #18 0xb7d14708 in ?? () from /usr/lib/libgtk-x11-2.0.so.0
          #19 0xb7d0b914 in ?? () from /usr/lib/libgtk-x11-2.0.so.0
          #20 0xb7d058d4 in ?? () from /usr/lib/libgtk-x11-2.0.so.0
          #21 0xb78c8079 in ?? () from /usr/lib/libgobject-2.0.so.0
          #22 0xb78c9759 in g_closure_invoke () from /usr/lib/libgobject-2.0.so.0
          #23 0xb78de11a in ?? () from /usr/lib/libgobject-2.0.so.0
          #24 0xb78df947 in g_signal_emit_valist () from /usr/lib/libgobject-2.0.so.0
          #25 0xb78dff69 in g_signal_emit () from /usr/lib/libgobject-2.0.so.0
          #26 0xb7e24667 in ?? () from /usr/lib/libgtk-x11-2.0.so.0
          #27 0xb7cfeb21 in gtk_propagate_event () from /usr/lib/libgtk-x11-2.0.so.0
          #28 0xb7cffd88 in gtk_main_do_event () from /usr/lib/libgtk-x11-2.0.so.0
          #29 0xb7a57a9a in ?? () from /usr/lib/libgdk-x11-2.0.so.0
          #30 0xb783cdd6 in g_main_context_dispatch () from /usr/lib/libglib-2.0.so.0
          #31 0xb7840193 in ?? () from /usr/lib/libglib-2.0.so.0
          #32 0xb7840577 in g_main_loop_run () from /usr/lib/libglib-2.0.so.0
          #33 0xb7d00264 in gtk_main () from /usr/lib/libgtk-x11-2.0.so.0
          #34 0x08052235 in main (argc=1, argv=0xbfa7f584) at gmameui.c:112
          (gdb)

           
          • Andrew Burton

            Andrew Burton - 2008-10-03

            OK, it looks like a bug that was reported in Gentoo and that I thought I'd fixed just prior to releasing 0.2.5.

            It should now be fixed in CVS.

            Can you download from CVS and test:

            cvs -d:pserver:anonymous@gmameui.cvs.sourceforge.net:/cvsroot/gmameui login
            (hit enter)
            cvs -z3 -d:pserver:anonymous@gmameui.cvs.sourceforge.net:/cvsroot/gmameui co -P gmameui
            cd gmameui
            ./autogen.sh
            ./configure --enable-debug && make && src/gmameui

            This should see if it is fixed

             
            • Rafael Wingnux

              Rafael Wingnux - 2008-10-04

              It works now! =)

              Thank you VERY MUCH!

              The only problem is that now it lists waaaay more games than there are available on the list, I mean, it lists games I don't have.

               

Log in to post a comment.

Get latest updates about Open Source Projects, Conferences and News.

Sign up for the SourceForge newsletter:





No, thanks