google-code-export / gambas

Automatically exported from code.google.com/p/gambas
1 stars 0 forks source link

gb.gui can not be loaded on demand #325

Open GoogleCodeExporter opened 9 years ago

GoogleCodeExporter commented 9 years ago
if a developer wants to create a project that *optionally* depends on the 
gb.gui component, this is, loading it on demand, the interpreter crashes with 
signal #11.

Also, if the gb.gui component is not selected, the IDE ignores form files from 
the project.

Sample project attached.

Version: TRUNK
Revision: r5124
Operating system: Linux
Distribution: ArchLinux
Architecture: x86_64
GUI component: GTK+
Desktop used: XFCE 4.10

Crash output:

(process:11478): GLib-GObject-WARNING **: invalid (NULL) pointer instance

(process:11478): GLib-GObject-CRITICAL **: g_signal_connect_data: assertion 
`G_TYPE_CHECK_INSTANCE (instance)' failed

(process:11478): Gdk-CRITICAL **: IA__gdk_screen_get_default_colormap: 
assertion `GDK_IS_SCREEN (screen)' failed

(process:11478): Gdk-CRITICAL **: IA__gdk_colormap_get_visual: assertion 
`GDK_IS_COLORMAP (colormap)' failed

(process:11478): Gdk-CRITICAL **: IA__gdk_screen_get_default_colormap: 
assertion `GDK_IS_SCREEN (screen)' failed

(process:11478): Gdk-CRITICAL **: IA__gdk_screen_get_root_window: assertion 
`GDK_IS_SCREEN (screen)' failed

(process:11478): Gdk-CRITICAL **: IA__gdk_screen_get_root_window: assertion 
`GDK_IS_SCREEN (screen)' failed

(process:11478): Gdk-CRITICAL **: IA__gdk_window_new: assertion `GDK_IS_WINDOW 
(parent)' failed

Original issue reported on code.google.com by sebi...@gmail.com on 4 Sep 2012 at 8:52

Attachments:

GoogleCodeExporter commented 9 years ago
Normal, both gb.gtk and gb.qt4 are initialized by the "main" hook run before 
the Main() startup method. If you load the components after, that hook is not 
executed.

Why do you want to do that?

Original comment by benoit.m...@gmail.com on 6 Sep 2012 at 7:01

GoogleCodeExporter commented 9 years ago

Original comment by benoit.m...@gmail.com on 11 Sep 2012 at 6:36