Author Topic: Can't run rev 7936 : GTK critical error  (Read 18492 times)

Offline Folco

  • Regular
  • ***
  • Posts: 343
    • Folco's blog (68k lover)
Can't run rev 7936 : GTK critical error
« 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
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.
Kernel Extremist - PedroM power ©

Offline Folco

  • Regular
  • ***
  • Posts: 343
    • Folco's blog (68k lover)
Re: Can't run rev 7936 : GTK critical error
« Reply #1 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...
Kernel Extremist - PedroM power ©

Offline Jenna

  • Administrator
  • Lives here!
  • *****
  • Posts: 7255
Re: Can't run rev 7936 : GTK critical error
« Reply #2 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).

Offline Folco

  • Regular
  • ***
  • Posts: 343
    • Folco's blog (68k lover)
Re: Can't run rev 7936 : GTK critical error
« Reply #3 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.
Kernel Extremist - PedroM power ©

Offline Jenna

  • Administrator
  • Lives here!
  • *****
  • Posts: 7255
Re: Can't run rev 7936 : GTK critical error
« Reply #4 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.

Offline Folco

  • Regular
  • ***
  • Posts: 343
    • Folco's blog (68k lover)
Re: Can't run rev 7936 : GTK critical error
« Reply #5 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 !
Kernel Extremist - PedroM power ©

Offline gudjon

  • Single posting newcomer
  • *
  • Posts: 7
Re: Can't run rev 7936 : GTK critical error
« Reply #6 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

Offline Folco

  • Regular
  • ***
  • Posts: 343
    • Folco's blog (68k lover)
Re: Can't run rev 7936 : GTK critical error
« Reply #7 on: April 27, 2012, 05:45:50 pm »
I have an ATI Radeon HD 6770. I am downloading Gnome to test.
Kernel Extremist - PedroM power ©

Offline Folco

  • Regular
  • ***
  • Posts: 343
    • Folco's blog (68k lover)
Re: Can't run rev 7936 : GTK critical error
« Reply #8 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
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 ©

Offline gudjon

  • Single posting newcomer
  • *
  • Posts: 7
Re: Can't run rev 7936 : GTK critical error
« Reply #9 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

Offline Folco

  • Regular
  • ***
  • Posts: 343
    • Folco's blog (68k lover)
Re: Can't run rev 7936 : GTK critical error
« Reply #10 on: April 27, 2012, 07:17:31 pm »
Nice catch ! It works now, but my C::B and Firefox are ugly :D
Thank you !
Kernel Extremist - PedroM power ©

Offline Jenna

  • Administrator
  • Lives here!
  • *****
  • Posts: 7255
Re: Can't run rev 7936 : GTK critical error
« Reply #11 on: April 27, 2012, 07:27:21 pm »
I will try to find what causes the gtk-critical and fix it.
Maybe this helps.

Offline Folco

  • Regular
  • ***
  • Posts: 343
    • Folco's blog (68k lover)
Re: Can't run rev 7936 : GTK critical error
« Reply #12 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 ?
Kernel Extremist - PedroM power ©

Offline Jenna

  • Administrator
  • Lives here!
  • *****
  • Posts: 7255
Re: Can't run rev 7936 : GTK critical error
« Reply #13 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.

Offline Folco

  • Regular
  • ***
  • Posts: 343
    • Folco's blog (68k lover)
Re: Can't run rev 7936 : GTK critical error
« Reply #14 on: April 27, 2012, 08:47:05 pm »
Oh, thank you very much =)
Kernel Extremist - PedroM power ©