[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: Guile-GI: builder:new-from-file: Segmentation fault
From: |
Mike Gran |
Subject: |
Re: Guile-GI: builder:new-from-file: Segmentation fault |
Date: |
Sat, 24 Apr 2021 15:47:26 -0700 |
On Sat, Apr 24, 2021 at 08:46:08PM +0000, Luis Felipe wrote:
> Hi,
>
> I'm trying to learn some Guile-GI, but I just hit a segfault. I was
> trying to create a GTK Builder from a file:
Hello.
GTK needs to be initialized before builder can be used
(use-modules (gi) (gi repository))
(require "Gio" "2.0")
(require "Gtk" "3.0")
(load-by-name "Gtk" "Builder")
(load-by-name "Gtk" "init")
(init!)
(builder:new-from-file "app.ui")
Another way to initialize is to use the trio of
application:new, connect, and run.
Hope this helps,
Mike
>
> ????????????????????????????????????????????????????????????
> $ guile
> GNU Guile 3.0.5
> Copyright (C) 1995-2021 Free Software Foundation, Inc.
>
> Guile comes with ABSOLUTELY NO WARRANTY; for details type `,show w'.
> This program is free software, and you are welcome to redistribute it
> under certain conditions; type `,show c' for details.
>
> Enter `,help' for help.
> scheme@(guile-user)> (use-modules (gi) (gi repository))
> scheme@(guile-user)> (require "Gio" "2.0")
> scheme@(guile-user)> (require "Gtk" "3.0")
> scheme@(guile-user)> (load-by-name "Gtk" "Builder")
> $1 = (translation-domain builder:translation-domain value-from-string-type!
> builder:value-from-string-type! value-from-string! builder:value-from-string!
> set-translation-domain builder:set-translation-domain set-application
> builder:set-application get-type-from-name builder:get-type-from-name
> get-translation-domain builder:get-translation-domain get-objects
> builder:get-objects get-object builder:get-object get-application
> builder:get-application extend-with-template builder:extend-with-template
> expose-object builder:expose-object connect-signals-full
> builder:connect-signals-full connect-signals builder:connect-signals
> add-objects-from-string builder:add-objects-from-string
> add-objects-from-resource builder:add-objects-from-resource
> add-objects-from-file builder:add-objects-from-file add-from-string
> builder:add-from-string add-from-resource builder:add-from-resource
> add-from-file builder:add-from-file add-callback-symbol
> builder:add-callback-symbol builder:new-from-string builder:new-from-resource
> builder:new-from-file builder:new <GtkBuilder>)
> scheme@(guile-user)> (builder:new-from-file "app.ui")
>
> (process:13659): Gtk-CRITICAL **: 15:12:12.366:
> _gtk_style_provider_private_get_settings: assertion
> 'GTK_IS_STYLE_PROVIDER_PRIVATE (provider)' failed
>
> (process:13659): Gtk-CRITICAL **: 15:12:12.366:
> _gtk_style_provider_private_get_settings: assertion
> 'GTK_IS_STYLE_PROVIDER_PRIVATE (provider)' failed
>
> (process:13659): Gtk-CRITICAL **: 15:12:12.366:
> _gtk_style_provider_private_get_settings: assertion
> 'GTK_IS_STYLE_PROVIDER_PRIVATE (provider)' failed
> Violaci??n de segmento
> ????????????????????????????????????????????????????????????
>
> I don't have a GitHub account (https://github.com/spk121/guile-gi), so I'm
> reporting here instead.
>
> This is the UI file I used:
> https://luis-felipe.gitlab.io/downloads/temp/app.ui.
>
> I'm on Guix System, using guile-gi 0.3.1.
>
>
> ---
> Luis Felipe L??pez Acevedo
> https://luis-felipe.gitlab.io/
>