From mboxrd@z Thu Jan 1 00:00:00 1970 X-Spam-Checker-Version: SpamAssassin 3.4.4 (2020-01-24) on polar.synack.me X-Spam-Level: X-Spam-Status: No, score=-0.9 required=5.0 tests=BAYES_00,FORGED_GMAIL_RCVD, FREEMAIL_FROM autolearn=no autolearn_force=no version=3.4.4 Path: eternal-september.org!reader01.eternal-september.org!.POSTED!not-for-mail From: Gavin McCord Newsgroups: comp.lang.ada Subject: Errors using gtk.font_button in gtkada (gtk3) Date: Mon, 11 Feb 2019 23:04:52 -0000 (UTC) Organization: A noiseless patient Spider Message-ID: Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Injection-Date: Mon, 11 Feb 2019 23:04:52 -0000 (UTC) Injection-Info: reader02.eternal-september.org; posting-host="8529d0bff76e1ec0f4f712ca19e92800"; logging-data="10483"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX1+l4MeX2I9BboJX7gcx1QAf03N7+QXck+b1Fds0GUH0SA==" User-Agent: Pan/0.139 (Sexual Chocolate; GIT bf56508 git://git.gnome.org/pan2) Cancel-Lock: sha1:ztX+LfBioOwslQUGM7Ngb1cqhbg= Xref: reader01.eternal-september.org comp.lang.ada:55493 Date: 2019-02-11T23:04:52+00:00 List-Id: Strange one here, at least to me. I'm running Slackware 14.2, using the XFCE 4.12 desktop environment and GNAT 2018 (though I've encountered this problem with an older version of GNAT also). I created a small program "test" to take input from a GEntry and insert it into a Text_View. It doesn't do much else, but works okay. Since then I've added a Font_Button to allow the user to change the font within the Text_View. I get an error though when I click on the font button for the first time: "(test:2564): Gtk-CRITICAL **: gtk_tree_model_filter_real_unref_node: assertion 'elt->ref_count > 0' failed" But the program, font selection included, still works as expected. Now all this is using a custom GTK3 theme, based on the built-in Raleigh. If I then change the theme to Adwaita I get subsequent errors and the program exits, as follows. I start the program, and click the Font_Button. The above error occurs, as before. At this point I can still select a font and it changes the text in the Text_View accordingly. But if I then try to change the font a second time, at the point when I click the Font_Button the following additional errors appear and the program exits: "(test:3481): Gtk-CRITICAL **: gtk_list_store_get_value: assertion 'iter_is_valid (iter, list_store)' failed (test:3481): GLib-GObject-WARNING **: ../../src/gobject/gtype.c:4268: type id '0' is invalid (test:3481): GLib-GObject-WARNING **: can't peek value table for type '' which is not currently referenced raised STORAGE_ERROR : stack overflow or erroneous memory access I suspect this is not going to be easy to diagnose as searches for these errors previously hasn't brought me anything particularly similar to my situation. But any thoughts, pointers would be gratefully received. Gavin