Author Topic: Kubuntu 12.04 LTS code::blocks crashing on startup  (Read 15982 times)

moserwi

  • Guest
Kubuntu 12.04 LTS code::blocks crashing on startup
« on: April 27, 2012, 02:08:42 am »
Kubuntu 12.04 seems to have realease date TODAY. Due to regular upgrades the new Version broke code::blocks...

The first thread was opened at:

http://www.kubuntuforums.net/showthread.php?58437-Code-Blocks-C-IDE-Crashing-On-Starting&p=295868&posted=1#post295868

Some of us tried the kubuntu package as it was installed before the upgrade...
I was going a step further and compiled a git download of the 10.05-HEAD

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

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

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

(codeblocks:32279): 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 14754 error_code 3 request_code 151 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.)

Thank you for helping us out.

willi

Offline JeZ-l-Lee

  • Single posting newcomer
  • *
  • Posts: 9
Re: Kubuntu 12.04 LTS code::blocks crashing on startup
« Reply #1 on: April 27, 2012, 01:22:27 pm »
Hi,

I have the same problem with Code::Blocks v10.05
crashing on new Kubuntu 12.04 LTS 64Bit OS.

I installed C::B's though OS's Software Manager.
When I run C::B's through menu,
I see and choose default compiler
but then C::B's crashes?

Hope this problem is resolved soon!
(I am a cross-platform game designer & need C::B's to work on Linux)

Thanks!

Jesse

Here is terminal output when running C::B's from terminal:
_______________________________________________________________________________________
Code
jezlee@Dell-XPS420-JetFire:/usr/bin$ ./codeblocks
Initialize EditColourSet .....
Initialize EditColourSet: done.
Loading toolbar...
Debugger: loaded
ProjectsImporter: loaded
OpenFilesList: loaded
FilesExtensionHandler: loaded
Autosave: loaded
ScriptedWizard: loaded
ClassWizard: loaded
AStylePlugin: loaded
ToDoList: loaded
Compiler: loaded
CodeCompletion: loaded
Debugger plugin activated
Foreign projects importer plugin activated
Open files list plugin activated
Files extension handler plugin activated
Autosave plugin activated
Project wizard added for 'Empty project'
Project wizard added for 'Console application'
Project wizard added for 'D application'
Project wizard added for 'FLTK project'
Project wizard added for 'GLFW project'
Project wizard added for 'GLUT project'
Project wizard added for 'GTK+ project'
Project wizard added for 'Irrlicht project'
Project wizard added for 'Lightfeather project'
Project wizard added for 'OpenGL project'
Project wizard added for 'Ogre project'
Project wizard added for 'Code::Blocks plugin'
Project wizard added for 'QT4 project'
Project wizard added for 'SDL project'
Project wizard added for 'SFML project'
Project wizard added for 'Static library'
Project wizard added for 'Shared library'
Project wizard added for 'wxWidgets project'
Build-target wizard added for 'Console'
Build-target wizard added for 'Static library'
Build-target wizard added for 'wxWidgets'
Project wizard added for 'ARM Project'
Project wizard added for 'AVR Project'
Project wizard added for 'TriCore Project'
Project wizard added for 'PowerPC Project'
File(s) wizard added for 'Empty file'
File(s) wizard added for 'C/C++ source'
File(s) wizard added for 'C/C++ header'
Scripted wizard plugin activated
Class wizard plugin activated
Source code formatter (AStyle) plugin activated
Todo List plugin activated
Added compiler "GNU GCC Compiler"
Added compiler "Intel C/C++ Compiler"
Added compiler "SDCC Compiler"
Added compiler "Tiny C Compiler"
Added compiler "GDC D Compiler"
Added compiler "Digital Mars D Compiler"
Added compiler "GNU ARM GCC Compiler"
Added compiler "GNU AVR GCC Compiler"
Added compiler "GNU GCC Compiler for PowerPC"
Added compiler "GNU GCC Compiler for TriCore"
Compiler plugin activated
Code completion plugin activated
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 12004 error_code 3 request_code 155 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.)
jezlee@Dell-XPS420-JetFire:/usr/bin$

Offline Folco

  • Regular
  • ***
  • Posts: 343
    • Folco's blog (68k lover)
Re: Kubuntu 12.04 LTS code::blocks crashing on startup
« Reply #2 on: April 27, 2012, 07:27:17 pm »
Cf. http://forums.codeblocks.org/index.php/topic,16232.0.html :
Remove the gtk2-oxygen-theme package, it will work.
Kernel Extremist - PedroM power ©

Offline Jenna

  • Administrator
  • Lives here!
  • *****
  • Posts: 7252
Re: Kubuntu 12.04 LTS code::blocks crashing on startup
« Reply #3 on: April 27, 2012, 08:42:55 pm »
And C::B 10.05 in (k)ububtu's is not maintained by the C::B developers, but by the ubuntu maintainers, so they have to fix it.
As far as I know, it's not the only program that crashes with an xwindow-error in kubuntu 12.04 .

Offline JonnyD

  • Single posting newcomer
  • *
  • Posts: 2
Re: Kubuntu 12.04 LTS code::blocks crashing on startup
« Reply #4 on: April 27, 2012, 09:53:42 pm »
I'm fairly certain it's a bug in gtk2-engines-oxygen.  I've had similar problems in the past with the Gimp.  You don't have to remove gtk2-engines-oxygen, but just change the Application Appearance > GTK+ Appearance > Widget Style.  Clearlooks from the gtk2-engines package looks fine.

Offline JayArby

  • Single posting newcomer
  • *
  • Posts: 8
Re: Kubuntu 12.04 LTS code::blocks crashing on startup
« Reply #5 on: May 05, 2012, 03:43:09 am »
Thanks JonnyD, that fixed the problem for me.

Only problem is now all my GTK+ applications look like crap. :( I hope the KDE team fixes this soon.

Offline MortenMacFly

  • Administrator
  • Lives here!
  • *****
  • Posts: 9693
Re: Kubuntu 12.04 LTS code::blocks crashing on startup
« Reply #6 on: May 05, 2012, 07:26:33 am »
Application Appearance > GTK+ Appearance > Widget Style.
I don't have that option - where do you see it? In "System Settings2 -> "Appearance" I can only select a wallpaper and stuff... ???
Compiler logging: Settings->Compiler & Debugger->tab "Other"->Compiler logging="Full command line"
C::B Manual: https://www.codeblocks.org/docs/main_codeblocks_en.html
C::B FAQ: https://wiki.codeblocks.org/index.php?title=FAQ

Offline JayArby

  • Single posting newcomer
  • *
  • Posts: 8
Re: Kubuntu 12.04 LTS code::blocks crashing on startup
« Reply #7 on: May 05, 2012, 10:28:42 pm »
What version of Kubuntu do you have? "GTK+ Appearance" should be in the sidebar after you select "Application Appearance".

Offline Folco

  • Regular
  • ***
  • Posts: 343
    • Folco's blog (68k lover)
Kernel Extremist - PedroM power ©

Offline MortenMacFly

  • Administrator
  • Lives here!
  • *****
  • Posts: 9693
Re: Kubuntu 12.04 LTS code::blocks crashing on startup
« Reply #9 on: May 07, 2012, 08:20:06 pm »
What version of Kubuntu do you have? "GTK+ Appearance" should be in the sidebar after you select "Application Appearance".
I missed the "K". My fault. :-\
Compiler logging: Settings->Compiler & Debugger->tab "Other"->Compiler logging="Full command line"
C::B Manual: https://www.codeblocks.org/docs/main_codeblocks_en.html
C::B FAQ: https://wiki.codeblocks.org/index.php?title=FAQ

Offline JonnyD

  • Single posting newcomer
  • *
  • Posts: 2
Re: Kubuntu 12.04 LTS code::blocks crashing on startup
« Reply #10 on: May 16, 2012, 07:33:20 pm »
It looks like today's Oxygen theme update fixed it.  Anyone else notice?

Offline Folco

  • Regular
  • ***
  • Posts: 343
    • Folco's blog (68k lover)
Kernel Extremist - PedroM power ©