User forums > Help
Codeblocks compiled from source crashes with errors involving "GtkPizza"
zemlinc:
Hi!
I am trying to create a new plugin for CodeBlocks, a new widget for wxsmith. I understand that for this I need to compile codeblocks and wxwidgets from sources. I did this, the compilation went without errors, but when start Codeblocks, I get the following output:
christian@christian-laptop:~/projects/devel/src/codeblocks-10.05$ codeblocks
Initialize EditColourSet .....
Initialize EditColourSet: done.
Loading toolbar...
MouseSap: loaded
BrowseTracker: loaded
wxSmithContribItems: loaded
MouseSap plugin activated
BrowseTracker plugin activated
wxSmith - Contrib Items plugin activated
Initializing plugins...
(codeblocks:12913): GLib-GObject-WARNING **: cannot register existing type `GtkPizza'
(codeblocks:12913): GLib-GObject-WARNING **: invalid cast from `GtkPizza' to `<invalid>'
(codeblocks:12913): GLib-GObject-WARNING **: cannot register existing type `GtkPizza'
(codeblocks:12913): GLib-GObject-WARNING **: invalid cast from `GtkPizza' to `<invalid>'
(codeblocks:12913): GLib-GObject-WARNING **: cannot register existing type `GtkPizza'
(codeblocks:12913): GLib-GObject-WARNING **: invalid cast from `GtkPizza' to `<invalid>'
(codeblocks:12913): GLib-GObject-WARNING **: cannot register existing type `GtkPizza'
(codeblocks:12913): GLib-GObject-WARNING **: invalid cast from `GtkPizza' to `<invalid>'
(codeblocks:12913): GLib-GObject-WARNING **: cannot register existing type `GtkPizza'
(codeblocks:12913): GLib-GObject-WARNING **: invalid cast from `GtkPizza' to `<invalid>'
(codeblocks:12913): GLib-GObject-WARNING **: cannot register existing type `GtkPizza'
(codeblocks:12913): GLib-GObject-WARNING **: invalid cast from `GtkPizza' to `<invalid>'
(codeblocks:12913): GLib-GObject-WARNING **: cannot register existing type `GtkPizza'
(codeblocks:12913): GLib-GObject-WARNING **: invalid cast from `GtkPizza' to `<invalid>'
Aborted
christian@christian-laptop:~/projects/devel/src/codeblocks-10.05$
I am using:
Ubuntu 10.10
Codeblocks-10.05 (configured with the option --with-contrib-plugins=all)
wxGTK-2.8.11
I would greatly appreciate your help!
oBFusCATed:
Try starting codeblocks with gdb or valgrind
zemlinc:
--- Quote from: oBFusCATed on November 16, 2010, 07:23:36 pm ---Try starting codeblocks with gdb or valgrind
--- End quote ---
Thank you for the suggestion. Below is the output when I start codeblocks with gdb.
Please let me know what you think!
Christian
christian@christian-laptop:~/projects/devel/src$ gdb codeblocks
GNU gdb (GDB) 7.2-ubuntu
Copyright (C) 2010 Free Software Foundation, Inc.
License GPLv3+: GNU GPL version 3 or later <http://gnu.org/licenses/gpl.html>
This is free software: you are free to change and redistribute it.
There is NO WARRANTY, to the extent permitted by law. Type "show copying"
and "show warranty" for details.
This GDB was configured as "x86_64-linux-gnu".
For bug reporting instructions, please see:
<http://www.gnu.org/software/gdb/bugs/>...
Reading symbols from /usr/local/bin/codeblocks...done.
(gdb) run
Starting program: /usr/local/bin/codeblocks
[Thread debugging using libthread_db enabled]
Initialize EditColourSet .....
[New Thread 0x7fffec2aa710 (LWP 3349)]
[New Thread 0x7fffebaa9710 (LWP 3350)]
[New Thread 0x7fffeb2a8710 (LWP 3351)]
[New Thread 0x7fffeaaa7710 (LWP 3352)]
Initialize EditColourSet: done.
Loading toolbar...
MouseSap: loaded
BrowseTracker: loaded
wxSmithContribItems: loaded
MouseSap plugin activated
BrowseTracker plugin activated
wxSmith - Contrib Items plugin activated
Initializing plugins...
(codeblocks:3125): GLib-GObject-WARNING **: cannot register existing type `GtkPizza'
(codeblocks:3125): GLib-GObject-WARNING **: invalid cast from `GtkPizza' to `<invalid>'
(codeblocks:3125): GLib-GObject-WARNING **: cannot register existing type `GtkPizza'
(codeblocks:3125): GLib-GObject-WARNING **: invalid cast from `GtkPizza' to `<invalid>'
(codeblocks:3125): GLib-GObject-WARNING **: cannot register existing type `GtkPizza'
(codeblocks:3125): GLib-GObject-WARNING **: invalid cast from `GtkPizza' to `<invalid>'
(codeblocks:3125): GLib-GObject-WARNING **: cannot register existing type `GtkPizza'
(codeblocks:3125): GLib-GObject-WARNING **: invalid cast from `GtkPizza' to `<invalid>'
(codeblocks:3125): GLib-GObject-WARNING **: cannot register existing type `GtkPizza'
(codeblocks:3125): GLib-GObject-WARNING **: invalid cast from `GtkPizza' to `<invalid>'
(codeblocks:3125): GLib-GObject-WARNING **: cannot register existing type `GtkPizza'
(codeblocks:3125): GLib-GObject-WARNING **: invalid cast from `GtkPizza' to `<invalid>'
(codeblocks:3125): GLib-GObject-WARNING **: cannot register existing type `GtkPizza'
(codeblocks:3125): GLib-GObject-WARNING **: invalid cast from `GtkPizza' to `<invalid>'
Program received signal SIGSEGV, Segmentation fault.
0x00007ffff6fa182c in wxBaseArrayInt::Add(int, unsigned long) ()
from /opt/wx/2.8/lib/libwx_gtk2u-2.8.so.0
(gdb) where
#0 0x00007ffff6fa182c in wxBaseArrayInt::Add(int, unsigned long) ()
from /opt/wx/2.8/lib/libwx_gtk2u-2.8.so.0
#1 0x00007fffe56161c3 in wxsRegisterItem<wxsSpacer>::~wxsRegisterItem() ()
from /usr/lib/libwxsmithlib.so.0
#2 0x00007ffff5d7e4f2 in __run_exit_handlers (status=0) at exit.c:78
#3 exit (status=0) at exit.c:100
#4 0x00007ffff5d63d95 in __libc_start_main (main=<value optimized out>,
argc=<value optimized out>, ubp_av=<value optimized out>,
init=<value optimized out>, fini=<value optimized out>,
rtld_fini=<value optimized out>, stack_end=0x7fffffffe248)
at libc-start.c:258
#5 0x000000000042e539 in _start ()
(gdb)
stahta01:
What does "wx-config --prefix" return?
Per
http://wiki.codeblocks.org/index.php?title=Installing_Code::Blocks_from_source_on_Linux
Tim S.
Jenna:
Why do you use a self-compiled wxWidgets ?
I suggest to use the packages provided by ubuntu and try it again.
Navigation
[0] Message Index
[#] Next page
Go to full version