News:

When registered with our forums, feel free to send a "here I am" post here to differ human beings from SPAM bots.

Main Menu

Can't run rev 7936 : GTK critical error

Started by Folco, April 21, 2012, 02:49:06 PM

Previous topic - Next topic

Folco

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 :
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.next.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.
Kernel Extremist - PedroM power ©

Folco

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...
Kernel Extremist - PedroM power ©

Jenna

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).

Folco

Thank you. It was a bad idea to install this beta of Kubuntu ^^ I will report them this.
Kernel Extremist - PedroM power ©

Jenna

With google I found the same issue about filezilla in kubuntu and also a post that it is fixed in the meantime.

Folco

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 !
Kernel Extremist - PedroM power ©

gudjon

Hi
    I am pretty sure you have the same problem as I have.
http://forums.next.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

Folco

I have an ATI Radeon HD 6770. I am downloading Gnome to test.
Kernel Extremist - PedroM power ©

Folco

This is incredible.

I have installed Gnome and started a session. When running C::B from a terminal, I always get this error :
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 ??
Kernel Extremist - PedroM power ©

gudjon

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

Folco

Nice catch ! It works now, but my C::B and Firefox are ugly :D
Thank you !
Kernel Extremist - PedroM power ©

Jenna

I will try to find what causes the gtk-critical and fix it.
Maybe this helps.

Folco

Can you reproduce these errors ? Do you want that I install some debug packages which could help you ?
Kernel Extremist - PedroM power ©

Jenna

Quote from: 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 ?
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.

Folco

Kernel Extremist - PedroM power ©