Code::Blocks

User forums => Help => Topic started by: Folco on April 21, 2012, 02:49:06 pm

Title: Can't run rev 7936 : GTK critical error
Post by: Folco on April 21, 2012, 02:49:06 pm
Hi,

I use Ubuntu 12.04 64b.
I have compiled C::B today, rev 7936. Nothing bad happened, the build worked fine.

When I launch C::B, I get that fatal error :
Code: [Select]
DragScroll plugin activated
Open files list plugin activated
wxSmith - Aui plugin activated

(codeblocks:4053): GLib-GObject-WARNING **: invalid uninstantiatable type `<invalid>' in cast to `GtkRadioMenuItem'

(codeblocks:4053): Gtk-CRITICAL **: IA__gtk_radio_menu_item_get_group: assertion `GTK_IS_RADIO_MENU_ITEM (radio_menu_item)' failed

(codeblocks:4053): GLib-GObject-WARNING **: invalid uninstantiatable type `<invalid>' in cast to `GtkRadioMenuItem'

(codeblocks:4053): Gtk-CRITICAL **: IA__gtk_radio_menu_item_get_group: assertion `GTK_IS_RADIO_MENU_ITEM (radio_menu_item)' failed
Initializing plugins...
The program 'codeblocks' received an X Window System error.
This probably reflects a bug in the program.
The error was 'BadWindow (invalid Window parameter)'.
  (Details: serial 15169 error_code 3 request_code 152 minor_code 3)
  (Note to programmers: normally, X errors are reported asynchronously;
   that is, you will receive the error a while after causing it.
   To debug your program, run it with the --sync command line
   option to change this behavior. You can then get a meaningful
   backtrace from your debugger if you break on the gdk_x_error() function.)
folco@Weygand:/usr/local/lib$
I found that page on the forum : http://forums.codeblocks.org/index.php?action=printpage;topic=16218.0
The author propose to install gamin-dev to solve the problem, but it is already installed here.

What could I try to get C::B working ?

Thanks in advance.
Title: Re: Can't run rev 7936 : GTK critical error
Post by: Folco on April 22, 2012, 02:03:47 pm
For information, I tried to intercept the crash with GDB (break gdk_x_error), but the C::B process terminated without beeing catched, so I can't give more informations about that...
Title: Re: Can't run rev 7936 : GTK critical error
Post by: jens on April 22, 2012, 09:36:56 pm
The Gtk-CRITICAL should not be a problem, the other error is in most cases caused by the system and not by the software using it (that's at least my experience).
Title: Re: Can't run rev 7936 : GTK critical error
Post by: Folco on April 22, 2012, 10:18:33 pm
Thank you. It was a bad idea to install this beta of Kubuntu ^^ I will report them this.
Title: Re: Can't run rev 7936 : GTK critical error
Post by: jens on April 22, 2012, 10:35:00 pm
With google I found the same issue about filezilla in kubuntu and also a post that it is fixed in the meantime.
Title: Re: Can't run rev 7936 : GTK critical error
Post by: Folco on April 22, 2012, 11:06:16 pm
I already recompiled C::B this afternoon with some new packages, and this doesn't work yet. I use french mirrors to get updates. Perhaps tomorrow I will get fixed packages. Thank you !
Title: Re: Can't run rev 7936 : GTK critical error
Post by: gudjon on April 27, 2012, 07:12:28 am
Hi
    I am pretty sure you have the same problem as I have.
http://forums.codeblocks.org/index.php/topic,16154.msg109066.html#msg109066

What video card are you using?
All of Jens debian packages work under kde on my computers with nvidia and intel video cards but not on my laptop with ati radeon card.
On my computer with the ati radeon card codeblocks all versions work if I use gnome. I have tried to downgrade codeblocks to the last release version 10.05 but without success.

Can you please install gnome and/or downgrade to version 10.05 to see if it works the same for you.

These messages:
GLib-GObject-WARNING **: in(codeblocks:5514): Gtk-CRITICAL **: IA__gtk_radio_menu_item_get_group: assertion `GTK_IS_RADIO_MENU_ITEM (radio_menu_item)' failed
(codeblocks:5514): GLib-GObject-WARNING **: invalid uninstantiatable type `<invalid>' in cast to `GtkRadioMenuItem'
(codeblocks:5514): Gtk-CRITICAL **: IA__gtk_radio_menu_item_get_group: assertion `GTK_IS_RADIO_MENU_ITEM (radio_menu_item)' failed
valid uninstantiatable type `<invalid>' in cast to `GtkRadioMenuItem'

started to show up after svn7899.

Hope it helps
Gudjon
Title: Re: Can't run rev 7936 : GTK critical error
Post by: Folco on April 27, 2012, 05:45:50 pm
I have an ATI Radeon HD 6770. I am downloading Gnome to test.
Title: Re: Can't run rev 7936 : GTK critical error
Post by: Folco on April 27, 2012, 06:23:43 pm
This is incredible.

I have installed Gnome and started a session. When running C::B from a terminal, I always get this error :
Code: [Select]
Keyboard shortcuts plugin activated
ThreadSearch plugin activated
DragScroll plugin activated
Open files list plugin activated
wxSmith - Aui plugin activated

(codeblocks:1869): GLib-GObject-WARNING **: invalid unclassed pointer in cast to `GtkRadioMenuItem'

(codeblocks:1869): Gtk-CRITICAL **: IA__gtk_radio_menu_item_get_group: assertion `GTK_IS_RADIO_MENU_ITEM (radio_menu_item)' failed

(codeblocks:1869): GLib-GObject-WARNING **: invalid uninstantiatable type `<invalid>' in cast to `GtkRadioMenuItem'

(codeblocks:1869): Gtk-CRITICAL **: IA__gtk_radio_menu_item_get_group: assertion `GTK_IS_RADIO_MENU_ITEM (radio_menu_item)' failed
Initializing plugins...
Then now C::B runs fine, and I can close it without another error.

Strange bug. What happens ??
Title: Re: Can't run rev 7936 : GTK critical error
Post by: gudjon on April 27, 2012, 06:38:41 pm
Nice to know that it works.
In fact, I just tried to remove the gtk2-engines-oxygen package
and now codeblocks works in kde on my laptop.
Can you please try that as well?

/Gudjon
Title: Re: Can't run rev 7936 : GTK critical error
Post by: Folco on April 27, 2012, 07:17:31 pm
Nice catch ! It works now, but my C::B and Firefox are ugly :D
Thank you !
Title: Re: Can't run rev 7936 : GTK critical error
Post by: jens on April 27, 2012, 07:27:21 pm
I will try to find what causes the gtk-critical and fix it.
Maybe this helps.
Title: Re: Can't run rev 7936 : GTK critical error
Post by: Folco on April 27, 2012, 07:28:17 pm
Can you reproduce these errors ? Do you want that I install some debug packages which could help you ?
Title: Re: Can't run rev 7936 : GTK critical error
Post by: jens on April 27, 2012, 08:40:28 pm
Can you reproduce these errors ? Do you want that I install some debug packages which could help you ?
I get them since some time in debugger-branch and also in trunk since both branches are merged.
But they do not lead to problems.
Nevertheless they should not appear and as there is chance, that they are the reason for the kubuntu crash, I put it on top of my todo list.
Title: Re: Can't run rev 7936 : GTK critical error
Post by: Folco on April 27, 2012, 08:47:05 pm
Oh, thank you very much =)
Title: Re: Can't run rev 7936 : GTK critical error
Post by: gudjon on April 28, 2012, 07:28:04 pm
Hi again
    The bug can be reproduced. If I remove gtk2-engines-oxygen codeblocks works in kde on my laptop (with Ati Radeon video card) and
if I reinstall it stops working.

Here is my backtrace when breaking at gdk_x_error.

I will file a bug for gtk2-engines-oxygen.

Regards
Gudjon
Title: Re: Can't run rev 7936 : GTK critical error
Post by: gudjon on April 29, 2012, 02:40:30 pm
Hi
   Now I have filed a bug on the gtk2-engines-oxygen Debian package.
I found out that I was wrong about the video card. I installed gtk2-engines-oxygen on my computer with nvidia card and then codeblocks crashed on it as well.

But then I created an unofficial package of gtk2-engines-oxygen version 1.2.3 and it seems to work without problem.

I put my unofficial package on my private server.

deb-src http://213.64.124.152/debian/ source/
deb http://213.64.124.152/debian/ i386/

Please test it if you have time, I will remove it quite soon, not to offend the Debian package maintainers.

Regards
Gudjon
Title: Re: Can't run rev 7936 : GTK critical error
Post by: Folco on May 15, 2012, 08:43:33 pm
gtk2-engines-oxygen has been updated today in Kubuntu (and Ubuntu I guess).

Now I can run Code::Blocks with the Oxygen theme. :)

But I still get the critical error :
Code: [Select]
Added compiler "GNU GCC Compiler for PowerPC"
Added compiler "GNU GCC Compiler for TriCore"
Compiler plugin activated
DoxyBlocks plugin activated
Keyboard shortcuts plugin activated
ThreadSearch plugin activated
Open files list plugin activated

(codeblocks:2985): GLib-GObject-WARNING **: invalid uninstantiatable type `<invalid>' in cast to `GtkRadioMenuItem'

(codeblocks:2985): Gtk-CRITICAL **: IA__gtk_radio_menu_item_get_group: assertion `GTK_IS_RADIO_MENU_ITEM (radio_menu_item)' failed

(codeblocks:2985): GLib-GObject-WARNING **: invalid uninstantiatable type `<invalid>' in cast to `GtkRadioMenuItem'

(codeblocks:2985): Gtk-CRITICAL **: IA__gtk_radio_menu_item_get_group: assertion `GTK_IS_RADIO_MENU_ITEM (radio_menu_item)' failed
Initializing plugins...

But at least, it works. :)

May I do something to help to pinpoint the problem ?