Crash when creating a GtkFontChooserDialog

pixel27
Fri, 12 Jul 2019 22:56:27 +0000
General Usage

I’m trying to create a (default) GtkFontChooserDialog:

using Gtk

GtkBuilder(buffer="""<?xml version="1.0" encoding="UTF-8"?>

<interface>
  <requires lib="gtk+" version="3.20"/>

    <property name="can_focus">False</property>
    <property name="type_hint">dialog</property>
    <property name="language">en-us</property>
    <child>
      <placeholder/>
    </child>
    <child internal-child="vbox">

        <property name="can_focus">False</property>
        <property name="orientation">vertical</property>
        <property name="spacing">2</property>
        <child internal-child="action_area">

            <property name="can_focus">False</property>
            <property name="layout_style">end</property>

          <packing>
            <property name="expand">False</property>
            <property name="fill">False</property>
            <property name="position">0</property>
          </packing>
        </child>

    </child>

</interface>""")

Interestingly this will crash as well:

using Gtk

ccall((:gtk_font_chooser_dialog_new, Gtk.libgtk), Ptr{Gtk.GObject}, (Ptr{UInt8}, Ptr{Nothing}), "Choose Font...", C_NULL)

Both methods crash the same way:

(julia:31499): Gtk-WARNING **: 18:50:58.517: Unknown type PangoFontFamily specified in treemodel model
(julia:31499): Gtk-WARNING **: 18:50:58.517: Unknown type PangoFontFace specified in treemodel model
(julia:31499): Gtk-WARNING **: 18:50:58.517: ../gtk/gtk/gtkliststore.c:516: Invalid type (null)
(julia:31499): Gtk-WARNING **: 18:50:58.517: ../gtk/gtk/gtkliststore.c:516: Invalid type (null)
(julia:31499): GLib-GObject-CRITICAL **: 18:50:58.525: g_value_type_transformable: assertion 'G_TYPE_IS_VALUE (src_type)' failed
(julia:31499): GLib-GObject-CRITICAL **: 18:50:58.525: g_value_type_transformable: assertion 'G_TYPE_IS_VALUE (src_type)' failed
(julia:31499): GLib-GObject-WARNING **: 18:50:58.532: ../glib/gobject/gtype.c:4265: type id '0' is invalid
(julia:31499): GLib-GObject-WARNING **: 18:50:58.532: can't peek value table for type '<invalid>' which is not currently referenced

signal (11): Segmentation fault

My best guess is there some “initialization” function I need to call before trying to create the dialog, but so far I haven’t been able to turn up anything in google.

My environment if that helps:

Julia Version 1.1.1
Commit 55e36cc308 (2019-05-16 04:10 UTC)
Platform Info:
  OS: Linux (x86_64-pc-linux-gnu)
  CPU: Intel(R) Core(TM) i7-3820 CPU @ 3.60GHz
  WORD_SIZE: 64
  LIBM: libopenlibm
  LLVM: libLLVM-6.0.1 (ORCJIT, sandybridge)

1 post - 1 participant