comp.lang.ada
 help / color / mirror / Atom feed
From: Gavin McCord <gavind.mccord@gmail.com>
Subject: Errors using gtk.font_button in gtkada (gtk3)
Date: Mon, 11 Feb 2019 23:04:52 -0000 (UTC)
Date: 2019-02-11T23:04:52+00:00	[thread overview]
Message-ID: <q3sv2j$a7j$1@dont-email.me> (raw)

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 '<invalid>'
 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

             reply	other threads:[~2019-02-11 23:04 UTC|newest]

Thread overview: 8+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2019-02-11 23:04 Gavin McCord [this message]
2019-02-11 23:45 ` Errors using gtk.font_button in gtkada (gtk3) Dmitry A. Kazakov
2019-02-13 21:26   ` Gavin McCord
2019-02-13 22:02     ` Dmitry A. Kazakov
2019-02-13 23:22       ` Gavin McCord
2019-02-13 23:42         ` Gavin McCord
2019-02-14  8:26           ` Dmitry A. Kazakov
2019-02-14 23:31             ` Gavin McCord
replies disabled

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox