On Sun, Mar 30, 2014 at 4:04 PM, Alan W. Irwin
<ir...@beluga.phys.uvic.ca> wrote:
>
> Hi Hez:
>
> For my normal debian stable platform (i.e., with GTK+2 rather than the
> GTK+3 used for the epa_build case) our build system currently builds
> the example
>
> examples/ocaml/xgtk_interfaceocaml
>
> without build issues.  Also there appear to be no run-time loading
> issues (as checked with "ldd -r).
>
> But when I tried to run that example from examples/ocaml I get the
> following error messages:
>
> software@raven> ./xgtk_interfaceocaml
>
> (process:22561): GLib-GObject-WARNING **: invalid (NULL) pointer
> instance
>
> (process:22561): GLib-GObject-CRITICAL **: g_signal_connect_data:
> assertion G_TYPE_CHECK_INSTANCE (instance)' failed
>
> (process:22561): Gtk-WARNING **: Screen for GtkWindow not set; you
> must always set
> a screen for a GtkWindow before using the window
>
> (process:22561): Gdk-CRITICAL **: IA__gdk_screen_get_default_colormap:
> assertion GDK_IS_SCREEN (screen)' failed
>
> (process:22561): Gdk-CRITICAL **: IA__gdk_colormap_get_visual:
> assertion GDK_IS_COLORMAP (colormap)' failed
>
> (process:22561): Gdk-CRITICAL **: IA__gdk_screen_get_default_colormap:
> assertion GDK_IS_SCREEN (screen)' failed
>
> (process:22561): Gdk-CRITICAL **: IA__gdk_screen_get_root_window:
> assertion GDK_IS_SCREEN (screen)' failed
>
> (process:22561): Gdk-CRITICAL **: IA__gdk_screen_get_root_window:
> assertion GDK_IS_SCREEN (screen)' failed
>
> (process:22561): Gdk-CRITICAL **: IA__gdk_window_new: assertion
> GDK_IS_WINDOW (parent)' failed
> Segmentation fault
>
> This example was committed 4.5 years ago (with no changes since) with the 
> message:
> ------------------------------------------------------------------------
> r10500 | hezekiahcarty | 2009-09-30 12:39:01 -0700 (Wed, 30 Sep 2009) | 5 
> lines
>
> Add CMake logic to build Plcairo examples; Add first Plcairo example
>
> This example illustrates a simple use of PLplot + OCaml + Cairo + Gtk to
> display plot output in a GUI window.
> ------------------------------------------------------------------------
>
> It is obviously less than ideal if something we build cannot be run. I
> suspect this example used to run OK 4.5 years ago, but it needs some
> maintenance now to make it work properly with all the GTK+2 changes
> made since. If you confirm the above run-time issue, would you be
> willing to do that needed maintenance?
>

Alan,

Some defaults have changed in OCaml Gtk bindings since then.  I will
update PLplot to reflect this.  It should be a relatively small
change.

Thank you for bringing this to my attention,

Hez

------------------------------------------------------------------------------
_______________________________________________
Plplot-devel mailing list
Plplot-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/plplot-devel

Reply via email to