AIR found this reference on the the GNOME dev-list. (same errors) To solve it the Nim application needs to load it's shared libraries with dlopen(RTLD_GLOBAL). I'm not sure how to apply this change.
Your tutorial editor opens the OpenDlg and SaveAsDlg just fine fron the extension module. Only the FontDlg causes this error. On Fri, 2019-07-05 at 17:33 -0300, Antonio Scuri wrote: > I mean a regular IupDialog on the same script, show it then show > the font dialog. Was that? > > > > Em sex, 5 de jul de 2019 às 16:58, John Spikowski < > supp...@scriptbasic.org> escreveu: > > I tried the Open and SaveAs dialogs(which work fine) before trying > > the Font dialog. Same issue. > > If I compile the tutorial simple edit example as a standalone > > executable, the Font dialog works as expected wth no errrors or > > warnings. > > Here is my extension module calls. > > /*Ihandle* IupFontDlg(void); <iup.h> > > Creates the Font Dialog element.*/besFUNCTION(PuiFontDlg) Ihandle > > *ih; > > ih = IupFontDlg(); besRETURN_POINTER(ih);besEND > > > > /*int IupPopup(Ihandle *ih, int x, int y); <iup.h> > > Shows a dialog or menu and restricts user interaction only to the > > specified element.*/besFUNCTION(PuiPopup) Ihandle *ih; int x, y; > > besARGUMENTS("pii") &ih, &x, &y besARGEND > > besRETURN_LONG(IupPopup(ih, x, y));besEND > > > > On Fri, 2019-07-05 at 15:02 -0300, Antonio Scuri wrote: > > > Can you try to add another dialog in the same example, but > > > shown before the font dialog? > > > Best, > > > Scuri > > > > > > > > > Em sex, 5 de jul de 2019 às 01:09, John Spikowski < > > > supp...@scriptbasic.org> escreveu: > > > > It works fine as a standalone executable. > > > > No errors until IupPopup() of the FontDlg occurs. > > > > Could I be missing something in my extension module make? > > > > > > > > On Thu, 2019-07-04 at 21:05 -0300, Antonio Scuri wrote: > > > > > Don't know. Seems to be something inside GTK. If you take a > > > > > look at iup/src/gtk/iupgtk_fontdlg.c you will see that the > > > > > IUP code is quite simple, GTK does all the work. > > > > > Maybe something in GTK was not initialized correctly when > > > > > running the script. Missing IupOpen? > > > > > > > > > > Best, > > > > > Scuri > > > > > > > > > > > > > > > Em qui, 4 de jul de 2019 às 20:17, John Spikowski < > > > > > supp...@scriptbasic.org> escreveu: > > > > > > Hi Antonio, > > > > > > > > > > > > > > > > > > > > > > > > I'm trying to reproduce your simple editor tutorial using > > > > > > the > > > > > > > > > > > > ScriptBasic IUP extension module on the Raspberry Pi 3 B > > > > > > which I > > > > > > > > > > > > compiled an IUP distribution for. Everything seems to be > > > > > > working fine > > > > > > > > > > > > other than those wierd warning messages you told me to > > > > > > ignore. I just > > > > > > > > > > > > cant seem to get the FontDlg to show. > > > > > > > > > > > > > > > > > > > > > > > > I get this error when trying to use IupPopup for the font > > > > > > dialog. > > > > > > > > > > > > > > > > > > > > > > > > pi@RPi3B:~/sbrt/examples $ scriba iup_edit.sb > > > > > > > > > > > > > > > > > > > > > > > > (scriba:2717): Gtk-WARNING **: Unknown type PangoFontFamily > > > > > > specified > > > > > > > > > > > > in treemodel model > > > > > > > > > > > > > > > > > > > > > > > > (scriba:2717): Gtk-WARNING **: Unknown type PangoFontFace > > > > > > specified in > > > > > > > > > > > > treemodel model > > > > > > > > > > > > > > > > > > > > > > > > (scriba:2717): Gtk-WARNING **: /home/pi/gtk+3.0- > > > > > > > > > > > > 3.22.11/./gtk/gtkliststore.c:516: Invalid type (null) > > > > > > > > > > > > > > > > > > > > > > > > (scriba:2717): Gtk-WARNING **: /home/pi/gtk+3.0- > > > > > > > > > > > > 3.22.11/./gtk/gtkliststore.c:516: Invalid type (null) > > > > > > > > > > > > > > > > > > > > > > > > (scriba:2717): GLib-GObject-CRITICAL **: > > > > > > g_value_type_transformable: > > > > > > > > > > > > assertion 'G_TYPE_IS_VALUE (src_type)' failed > > > > > > > > > > > > > > > > > > > > > > > > (scriba:2717): GLib-GObject-CRITICAL **: > > > > > > g_value_type_transformable: > > > > > > > > > > > > assertion 'G_TYPE_IS_VALUE (src_type)' failed > > > > > > > > > > > > > > > > > > > > > > > > (scriba:2717): GLib-GObject-WARNING **: /build/glib2.0- > > > > > > F5w919/glib2.0- > > > > > > > > > > > > 2.50.3/./gobject/gtype.c:4264: type id '0' is invalid > > > > > > > > > > > > > > > > > > > > > > > > (scriba:2717): GLib-GObject-WARNING **: can't peek value > > > > > > table for type > > > > > > > > > > > > '<invalid>' which is not currently referenced > > > > > > > > > > > > Segmentation fault > > > > > > > > > > > > pi@RPi3B:~/sbrt/examples $ > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > The weird thing is I don't get this error running the > > > > > > tutorial edit > > > > > > > > > > > > project as a standalone C program on the same Raspberry Pi > > > > > > 3 B. > > > > > > > > > > > > > > > > > > > > > > > > The Open and SaveAs dialogs work as expected. What could be > > > > > > causing > > > > > > > > > > > > this? > > > > > > > > > > > > > > > > > > > > > > > > Any advice would be appreciated. > > > > > > > > > > > > > > > > > > > > > > > > John > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > _______________________________________________ > > > > > > > > > > > > Iup-users mailing list > > > > > > > > > > > > Iup-users@lists.sourceforge.net > > > > > > > > > > > > https://lists.sourceforge.net/lists/listinfo/iup-users > > > > > > > > > > > > > > > > _______________________________________________Iup-users > > > > > mailing listiup-us...@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 > > > listiup-us...@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 > listiup-us...@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