aMule Forum

Please login or register.

Login with username, password and session length
Advanced search  

News:

We're back! (IN POG FORM)

Author Topic: Gtk related? [invalid-solved]  (Read 2712 times)

simkin

  • Approved Newbie
  • *
  • Karma: 0
  • Offline Offline
  • Posts: 31
    • weblog
Gtk related? [invalid-solved]
« on: January 07, 2006, 01:24:54 PM »

Hello, here is the backtrace I've obtained following the guidelines in the wiki:

Code: [Select]
simkin@blackjack ~ $ gdb /usr/bin/amule
GNU gdb 6.4
Copyright 2005 Free Software Foundation, Inc.
GDB is free software, covered by the GNU General Public License, and you are
welcome to change it and/or distribute copies of it under certain conditions.
Type "show copying" to see the conditions.
There is absolutely no warranty for GDB.  Type "show warranty" for details.
This GDB was configured as "i686-pc-linux-gnu"...Using host libthread_db library  "/lib/libthread_db.so.1".

(gdb) run
Starting program: /usr/bin/amule
[Thread debugging using libthread_db enabled]
[New Thread -1223260496 (LWP 16947)]
Initialising aMule
Checking if there is an instance already running...
No other instances are running.

(amule:16947): Gtk-CRITICAL **: gtk_label_set_text_with_mnemonic: assertion `str  != NULL' failed

(amule:16947): Gtk-CRITICAL **: gtk_accel_label_new: assertion `string != NULL' failed

(amule:16947): Gtk-CRITICAL **: gtk_misc_set_alignment: assertion `GTK_IS_MISC ( misc)' failed

(amule:16947): Gtk-CRITICAL **: gtk_container_add: assertion `GTK_IS_WIDGET (wid get)' failed

(amule:16947): Gtk-CRITICAL **: gtk_accel_label_set_accel_widget: assertion `GTK _IS_ACCEL_LABEL (accel_label)' failed

Program received signal SIGSEGV, Segmentation fault.
[Switching to Thread -1223260496 (LWP 16947)]
0xb77b6f43 in gtk_widget_show () from /usr/lib/libgtk-x11-2.0.so.0
(gdb) bt
#0  0xb77b6f43 in gtk_widget_show () from /usr/lib/libgtk-x11-2.0.so.0
#1  0xb770a917 in gtk_menu_item_new_with_label ()
   from /usr/lib/libgtk-x11-2.0.so.0
#2  0xb7cd0e03 in wxChoice::GtkAddHelper ()
   from /usr/lib/libwx_gtk2_core-2.6.so.0
#3  0xb7cd118f in wxChoice::Create () from /usr/lib/libwx_gtk2_core-2.6.so.0
#4  0x08248d22 in wxChoice (this=0x8daa590, parent=0x8d99dc0, id=10012,
    pos=@0x835d790, size=@0x835e830, n=8, choices=0xbf881374, style=0,
    validator=@0x8360180, name=@0xbf8813a4) at choice.h:38
#5  0x082270a9 in searchDlg (parent=0x8d99dc0, call_fit=true, set_sizer=true)
    at muuli_wdr.cpp:240
#6  0x08155ef3 in CSearchDlg (this=0x8d99dc0, pParent=0x8c9b6c0)
    at SearchDlg.cpp:93
#7  0x08141c55 in CamuleDlg (this=0x8c8f528, pParent=0x0, title=@0x856424c,
    where={x = -1, y = -1}, dlg_size={x = 800, y = 600}) at amuleDlg.cpp:200
#8  0x0813bdf2 in CamuleGuiBase::InitGui (this=0x8564248,
    geometry_enabled=255, geom_string=@0xbf881694) at amule-gui.cpp:219
#9  0x0813bead in CamuleGuiApp::InitGui (this=0x8564140,
    geometry_enable=false, geometry_string=@0xbf881694) at amule-gui.cpp:250
#10 0x080712ac in CamuleApp::OnInit (this=0x8564140) at amule.cpp:633
#11 0x0813bfaa in CamuleGuiApp::OnInit (this=0x8564140) at amule-gui.cpp:282
#12 0x08073b7e in wxAppConsole::CallOnInit (this=0x8) at app.h:87
#13 0xb7af2196 in wxEntry () from /usr/lib/libwx_base-2.6.so.0
---Type to continue, or q to quit---
#14 0x0813b7f5 in main (argc=1, argv=0xbf8817d4) at amule-gui.cpp:109
(gdb) bt full
#0  0xb77b6f43 in gtk_widget_show () from /usr/lib/libgtk-x11-2.0.so.0
No symbol table info available.
#1  0xb770a917 in gtk_menu_item_new_with_label ()
   from /usr/lib/libgtk-x11-2.0.so.0
No symbol table info available.
#2  0xb7cd0e03 in wxChoice::GtkAddHelper ()
   from /usr/lib/libwx_gtk2_core-2.6.so.0
No symbol table info available.
#3  0xb7cd118f in wxChoice::Create () from /usr/lib/libwx_gtk2_core-2.6.so.0
No symbol table info available.
#4  0x08248d22 in wxChoice (this=0x8daa590, parent=0x8d99dc0, id=10012,
    pos=@0x835d790, size=@0x835e830, n=8, choices=0xbf881374, style=0,
    validator=@0x8360180, name=@0xbf8813a4) at choice.h:38
No locals.
#5  0x082270a9 in searchDlg (parent=0x8d99dc0, call_fit=true, set_sizer=true)
    at muuli_wdr.cpp:240
        strs9 = {{ = {static npos = 4294967295,
      m_pchData = 0x8d9c5d4 "Cerca Local"}, },
  { = {static npos = 4294967295,
      m_pchData = 0x8d9eafc "Cerca Global"}, },
  { = {static npos = 4294967295,
      m_pchData = 0x8d9eb24 "Kad"}, }, { = {
      static npos = 4294967295,
---Type to continue, or q to quit---
      m_pchData = 0x8d9eb74 "HashFitxer (WWW)"}, }}
        strs16 = {{ = {static npos = 4294967295,
      m_pchData = 0x8cd04ec "Cap"}, }, { = {
      static npos = 4294967295,
      m_pchData = 0x8daa2d4 "Fitxers"}, }, { = {
      static npos = 4294967295,
      m_pchData = 0x8daa2fc "So"}, }, { = {
      static npos = 4294967295,
      m_pchData = 0x8daa4ac "Imatge de CD"}, },
  { = {static npos = 4294967295,
      m_pchData = 0x8daa4d4 "Imatge"}, }, { = {
      static npos = 4294967295,
      m_pchData = 0x8daa4fc "Programes"}, },
  { = {static npos = 4294967295,
      m_pchData = 0x8daa524 "Texts"}, }, { = {
      static npos = 4294967295,
      m_pchData = 0x8daa54c "V\uffffdeos"}, }}
        strs26 = {{ = {static npos = 4294967295,
      m_pchData = 0x8d99dc0 "h\uffff&\b"}, }, { = {
      static npos = 4294967295,
      m_pchData = 0xbf881394 "\uffff\uffff\uffff\b\uffff\uffff\uffff\b$\uffff\uffff\bt\uffff\uffff\bt\uffff\uffff\b\220\uffff5\b0\uffff5\b"}, }, { = {static npos = 4294967295,
      m_pchData = 0xb7d7855b "\203\uffff\0341\uffff\204\ufffft\020\213\006j\001V\uffff\220\uffff"}, to continue, or q to quit---
ata fields>}, { = {static npos = 4294967295,
      m_pchData = 0x8d99dc0 "h\uffff&\b"}, }}
        strs31 = {{ = {static npos = 4294967295,
      m_pchData = 0x8d9a0f8 "\u0638\uffff\b\001"}, },
  { = {static npos = 4294967295,
      m_pchData = 0x8d99dc0 "h\uffff&\b"}, }, { = {
      static npos = 4294967295,
      m_pchData = 0xb7dfa1ec "PW&"}, }, { = {
      static npos = 4294967295,
      m_pchData = 0x8d99dc0 "h\uffff&\b"}, }}
#6  0x08155ef3 in CSearchDlg (this=0x8d99dc0, pParent=0x8c9b6c0)
    at SearchDlg.cpp:93
        content = (struct wxSizer *) 0x8
#7  0x08141c55 in CamuleDlg (this=0x8c8f528, pParent=0x0, title=@0x856424c,
    where={x = -1, y = -1}, dlg_size={x = 800, y = 600}) at amuleDlg.cpp:200
        override_where = false
        override_size = 8
        entries = {{m_flags = 147387700, m_keyCode = -1081600924,
    m_command = -1214715840, m_item = 0xb798e840}}
#8  0x0813bdf2 in CamuleGuiBase::InitGui (this=0x8564248,
    geometry_enabled=255, geom_string=@0xbf881694) at amule-gui.cpp:219
        geometry_x = 0
        geometry_y = 0
---Type to continue, or q to quit---
        geometry_width = 800
        geometry_height = 600
#9  0x0813bead in CamuleGuiApp::InitGui (this=0x8564140,
    geometry_enable=false, geometry_string=@0xbf881694) at amule-gui.cpp:250
No locals.
#10 0x080712ac in CamuleApp::OnInit (this=0x8564140) at amule.cpp:633
        geometry_enabled = false
        newMule = { = {static npos = 4294967295,
    m_pchData = 0x8692da4 "CVS"}, }
        msg = { = {static npos = 4294967295,
    m_pchData = 0xb7a92d24 "q\uffff"}, }
        cmdline = {m_data = 0x85c7308}
        geom_string = { = {static npos = 4294967295,
    m_pchData = 0xb7b3dbd8 ""}, }
        vfile =
        langId = { = {static npos = 4294967295,
    m_pchData = 0x868a9ec "ca_ES"}, }
#11 0x0813bfaa in CamuleGuiApp::OnInit (this=0x8564140) at amule-gui.cpp:282
No locals.
#12 0x08073b7e in wxAppConsole::CallOnInit (this=0x8) at app.h:87
No locals.
#13 0xb7af2196 in wxEntry () from /usr/lib/libwx_base-2.6.so.0
No symbol table info available.
---Type to continue, or q to quit---
#14 0x0813b7f5 in main (argc=1, argv=0xbf8817d4) at amule-gui.cpp:109
No locals.
(gdb) thread apply all bt

Thread 1 (Thread -1223260496 (LWP 16947)):
#0  0xb77b6f43 in gtk_widget_show () from /usr/lib/libgtk-x11-2.0.so.0
#1  0xb770a917 in gtk_menu_item_new_with_label ()
   from /usr/lib/libgtk-x11-2.0.so.0
#2  0xb7cd0e03 in wxChoice::GtkAddHelper ()
   from /usr/lib/libwx_gtk2_core-2.6.so.0
#3  0xb7cd118f in wxChoice::Create () from /usr/lib/libwx_gtk2_core-2.6.so.0
#4  0x08248d22 in wxChoice (this=0x8daa590, parent=0x8d99dc0, id=10012,
    pos=@0x835d790, size=@0x835e830, n=8, choices=0xbf881374, style=0,
    validator=@0x8360180, name=@0xbf8813a4) at choice.h:38
#5  0x082270a9 in searchDlg (parent=0x8d99dc0, call_fit=true, set_sizer=true)
    at muuli_wdr.cpp:240
#6  0x08155ef3 in CSearchDlg (this=0x8d99dc0, pParent=0x8c9b6c0)
    at SearchDlg.cpp:93
#7  0x08141c55 in CamuleDlg (this=0x8c8f528, pParent=0x0, title=@0x856424c,
    where={x = -1, y = -1}, dlg_size={x = 800, y = 600}) at amuleDlg.cpp:200
#8  0x0813bdf2 in CamuleGuiBase::InitGui (this=0x8564248,
    geometry_enabled=255, geom_string=@0xbf881694) at amule-gui.cpp:219
#9  0x0813bead in CamuleGuiApp::InitGui (this=0x8564140,
    geometry_enable=false, geometry_string=@0xbf881694) at amule-gui.cpp:250
#10 0x080712ac in CamuleApp::OnInit (this=0x8564140) at amule.cpp:633
#11 0x0813bfaa in CamuleGuiApp::OnInit (this=0x8564140) at amule-gui.cpp:282
---Type to continue, or q to quit---
#12 0x08073b7e in wxAppConsole::CallOnInit (this=0x8) at app.h:87
#13 0xb7af2196 in wxEntry () from /usr/lib/libwx_base-2.6.so.0
#14 0x0813b7f5 in main (argc=1, argv=0xbf8817d4) at amule-gui.cpp:109
(gdb) quit
The program is running.  Exit anyway? (y or n) y

I don't know what to do, this is happening with aMule 2.0.3, 2.1.0 and CVS. I use Gentoo and both wxGTK and GTK+ are the latest releases in the distribution (wxGTK-2.6.2-r1, GTK+2.8.9). Triying to downgrade to gtk+2.8.8 and recompile didn't solve the problem. The intl.cpp patch is already applied in wxGTK-2.6.2-r1 ebuild.
Here is my emerge info:
Code: [Select]
Portage 2.1_pre3-r1 (default-linux/x86/2005.1, gcc-3.4.4, glibc-2.3.6-r1, 2.6.14-gentoo-r2 i686)
=================================================================
System uname: 2.6.14-gentoo-r2 i686 AMD Athlon(tm) 64 Processor 3000+
Gentoo Base System version 1.12.0_pre13
dev-lang/python:     2.4.2
sys-apps/sandbox:    1.2.17
sys-devel/autoconf:  2.13, 2.59-r7
sys-devel/automake:  1.4_p6, 1.5, 1.6.3, 1.7.9-r1, 1.8.5-r3, 1.9.6-r1
sys-devel/binutils:  2.16.1-r1
sys-devel/libtool:   1.5.22
virtual/os-headers:  2.6.11-r3
ACCEPT_KEYWORDS="x86 ~x86"
CBUILD="i686-pc-linux-gnu"
CFLAGS="-Os -march=k8 -pipe"
CHOST="i686-pc-linux-gnu"
CXXFLAGS="-Os -march=k8 -pipe"

Any advice will be welcomed, thanks.

Regards.
« Last Edit: January 12, 2006, 03:29:27 AM by simkin »
Logged

ken

  • Hero Member
  • *****
  • Karma: 4
  • Offline Offline
  • Posts: 825
Re: Gtk related? [invalid-solved]
« Reply #1 on: January 08, 2006, 10:13:38 PM »

Could it be your GTK theme?  I seem to recall there are some buggy themes that cause crashes like this, but don't remember the specifics.  A quick search on the forum suggests maybe the GTK QT theme.
Logged

simkin

  • Approved Newbie
  • *
  • Karma: 0
  • Offline Offline
  • Posts: 31
    • weblog
Re: Gtk related? [invalid-solved]
« Reply #2 on: January 09, 2006, 12:16:42 PM »

I don't know. I tried to change the theme from mine to official clearlooks, bluecurve, etc. without any result. Also tried different versions of gtk-engines and get the same error. No way.
Finally recompiled wxGTK against GTK-1.2 and at least I can use aMule again... :rolleyes:
Logged

simkin

  • Approved Newbie
  • *
  • Karma: 0
  • Offline Offline
  • Posts: 31
    • weblog
Re: Gtk related? [invalid-solved]
« Reply #3 on: January 12, 2006, 03:27:39 AM »

Today I got fed up with this, stopped everything and recompiled a lot of packages.

first upgraded to gcc-3.4.5 and changed locale to use iso8859-1, gdm was changing to UTF-8 at the X init process and I didn't realize about that. Also I've switched to ck-sources.

and reemerged...
>>> x11-base/xorg-x11-6.8.2-r6
>>> media-libs/libpng-1.2.8-r1
>>> media-libs/jpeg-6b-r6
>>> media-libs/tiff-3.7.4
>>> sys-devel/gettext-0.14.5
>>> media-libs/freetype-2.1.10
>>> sys-libs/zlib-1.2.3
>>> dev-libs/glib-2.8.5
>>> x11-libs/pango-1.10.2
>>> dev-libs/atk-1.10.3
>>> x11-libs/cairo-1.0.2
>>> x11-libs/gtk+-2.8.9
>>> x11-themes/gtk-engines-2.7.1
>>> x11-libs/wxGTK-2.6.2-r1
>>> net-p2p/amule-cvs-3

Added support for tiff in gtk+, wich before was missing.
And finally rebooted the computer.
Then... boila! wxGTk && aMule worked fine again!

I really don't know were was the problem! ...since the 2.1.0 release I've been recompiling  glib gtk+ gtk-engines wxGTK and aMule again and again trying different versions and testing new thinks and nothing worked.
But, well, now it's solved, so I'll assume this was a strange behaviour of my system. I'll add and "invalid" tag to the title of the post.
Thanks for the help.
« Last Edit: January 12, 2006, 04:06:29 AM by simkin »
Logged