I'm trying to pop a font dialog in ScriptBasic and get the following error. Using the same code in C works.

jrs@linux-dev:~/sbrt/examples$ scriba iup_edit.sb

(scriba:11958): Gtk-WARNING **: 21:12:45.528: Unknown type PangoFontFamily specified in treemodel model

(scriba:11958): Gtk-WARNING **: 21:12:45.528: Unknown type PangoFontFace specified in treemodel model

(scriba:11958): Gtk-WARNING **: 21:12:45.528: ../../../../gtk/gtkliststore.c:518: Invalid type (null)

(scriba:11958): Gtk-WARNING **: 21:12:45.528: ../../../../gtk/gtkliststore.c:518: Invalid type (null)

(scriba:11958): GLib-GObject-CRITICAL **: 21:12:45.537: g_value_type_transformable: assertion 'src_type' failed

(scriba:11958): GLib-GObject-CRITICAL **: 21:12:45.537: g_value_type_transformable: assertion 'src_type' failed

(scriba:11958): GLib-GObject-WARNING **: 21:12:45.574: ../../../gobject/gtype.c:4333: type id '0' is invalid

(scriba:11958): GLib-GObject-WARNING **: 21:12:45.574: can't peek value table for type '<invalid>' which is not currently referenced
Segmentation fault (core dumped)
jrs@linux-dev:~/sbrt/examples$



On 2022-06-12 13:02, supp...@scriptbasic.org wrote:
It seems only the sample.c causes this error reported to the console.
Other IUP examples don't generate this error message.

On 2022-06-12 06:27, sur-behoffski wrote:
On 6/12/22 11:46, supp...@scriptbasic.org wrote:
Antonio,

I compiled with gcc the sample.c example and received this error in the
console window.

(sample:7337): Gtk-CRITICAL **: 19:13:39.493:
gtk_window_set_mnemonics_visible: assertion 'GTK_IS_WINDOW (window)'
failed

John
[...]

G'day,

Not verified, but an easy thing to check:

The X/11 Windowing system is client/server-based. An application(client) may run locally, or perhaps across a network. GNOME and Wayland add more
layers to the mix.

I tried:

You might have problems if the terminal/shell does not have a
reference to the X/11 windowing system,
supplied via the DISPLAY and XAUTHORITY environment variables.  This
is what I get on my system
(ignore the "$" shell prompts):

        $ set | grep -E DISPLAY
        DISPLAY=:0
        GNOME_SETUP_DISPLAY=:1
        WAYLAND_DISPLAY=wayland-0
        $

The trivial examples (called via Lua "require" interface) work with this setup.
If I stomp on WAYLAND_DISPLAY, then the "hello, world" example fails:

        $ export WAYLAND_DISPLAY=
        $ ./hello-world
        ../support/lua5.1: IupOpen: could not initialize
        stack traceback:
                [C]: ?
                [C]: in function 'require'
                ./hello-world:2: in main chunk
                [C]: ?
        $

Hope this helps.


s-b etc.


_______________________________________________
Iup-users mailing list
Iup-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/iup-users


_______________________________________________
Iup-users mailing list
Iup-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/iup-users


_______________________________________________
Iup-users mailing list
Iup-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/iup-users

Reply via email to