From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Lee Thomas Newsgroups: gmane.lisp.guile.bugs Subject: bug#57379: GUI toolkit for Guile 3.0? Date: Sun, 28 Aug 2022 19:32:50 -0700 Message-ID: References: <87mtbtrffm.fsf@tsyesika.se> <20220824170318.70af5603@aicha> <20220825232724.6a4191ef@aicha> <20220828194226.1b280259@aicha> Mime-Version: 1.0 Content-Type: multipart/alternative; boundary="0000000000002ff04f05e75815b0" Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="17890"; mail-complaints-to="usenet@ciao.gmane.io" Cc: Jessica Tallon , 57379@debbugs.gnu.org To: David Pirotte Original-X-From: bug-guile-bounces+guile-bugs=m.gmane-mx.org@gnu.org Mon Aug 29 04:34:09 2022 Return-path: Envelope-to: guile-bugs@m.gmane-mx.org Original-Received: from lists.gnu.org ([209.51.188.17]) by ciao.gmane.io with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1oSUbJ-0004TF-8G for guile-bugs@m.gmane-mx.org; Mon, 29 Aug 2022 04:34:09 +0200 Original-Received: from localhost ([::1]:59444 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1oSUbI-00064z-BI for guile-bugs@m.gmane-mx.org; Sun, 28 Aug 2022 22:34:08 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:33806) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1oSUbC-00064G-Ey for bug-guile@gnu.org; Sun, 28 Aug 2022 22:34:02 -0400 Original-Received: from debbugs.gnu.org ([209.51.188.43]:41829) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1oSUbC-0004pE-68 for bug-guile@gnu.org; Sun, 28 Aug 2022 22:34:02 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1oSUbB-00061X-TC for bug-guile@gnu.org; Sun, 28 Aug 2022 22:34:01 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Lee Thomas Original-Sender: "Debbugs-submit" Resent-CC: bug-guile@gnu.org Resent-Date: Mon, 29 Aug 2022 02:34:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 57379 X-GNU-PR-Package: guile Original-Received: via spool by 57379-submit@debbugs.gnu.org id=B57379.166174039023084 (code B ref 57379); Mon, 29 Aug 2022 02:34:01 +0000 Original-Received: (at 57379) by debbugs.gnu.org; 29 Aug 2022 02:33:10 +0000 Original-Received: from localhost ([127.0.0.1]:59808 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1oSUaM-00060G-1k for submit@debbugs.gnu.org; Sun, 28 Aug 2022 22:33:10 -0400 Original-Received: from mail-lf1-f48.google.com ([209.85.167.48]:41896) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1oSUaK-000601-50 for 57379@debbugs.gnu.org; Sun, 28 Aug 2022 22:33:09 -0400 Original-Received: by mail-lf1-f48.google.com with SMTP id m7so403099lfq.8 for <57379@debbugs.gnu.org>; Sun, 28 Aug 2022 19:33:08 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=cc:to:subject:message-id:date:from:in-reply-to:references :mime-version:from:to:cc; bh=0rKKf1Q+RRPbsmkVBZtVPdEbWn5h92f/6fFMV9U/2WA=; b=QpbV5tC8Qa+Rsq5mypPHEZ7WDfPttPm/CWVVKnB+TK4s+SzQN4aM6787lQNztL6Gm0 tBiGS27S58/hQ63R5NDNbHHsw2KbZbd+FSUNeBH98qlae6p7RggE3hrGu8/dz5QlMHDj SeBFitaqgM8eknDbEBkU8D14NaUt1YSQ53rcflL+rpLcdNN4AKUP2vvjY32Bmc71sS8J AQCFjL/j4Ykt9FjjCmAglKjEFA5OR3g+Khh4afjU569fUpTOignNxsCXI1tdufOWDvxq zwxBEpJRwI7byJwftiiauGFFoHMYjzft9HWI+o9PQx70wJRdm68F+NWLI4xpPAYPM6/e LOZA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=cc:to:subject:message-id:date:from:in-reply-to:references :mime-version:x-gm-message-state:from:to:cc; bh=0rKKf1Q+RRPbsmkVBZtVPdEbWn5h92f/6fFMV9U/2WA=; b=HKkk8ElW354CLAz5aImgd34DmX5HWJW+eVN/iY+Edslg1CW8pGAbsi6OC9VEa0bto5 hyLGoSHI7vKwHxndJ9oOasvEojNCXxp5LtFibPZ8XsICrP01ITgWHN7jmANRCjxsojMZ p1pLCDVVbw44mvHdSgMYdeBePn3kzhJJn+BLxeDRexqR2b1nQQCKJNyJuTP5PjUpx2IY N14nOH94FibATjjiR3TtrjRlp0SsD+pyUIGtvYu099NzJNrTG5GJFL5kfHhX1ykZLNeW z6P9pOsyuF9JQ0t7RrhxnOJfpLQV6oA1CPq1m31leN8/7IXigRqH9GPREmNu12g0p/OO DVPA== X-Gm-Message-State: ACgBeo1UsLMmJNESqBwdOsKdc5jkL6WLg5KkqC7uL8DT5PSzdG7hiB2K hlqRBkNvvOD6LgFXCV4CLH51a2O8hZq0mMirBIM= X-Google-Smtp-Source: AA6agR4BLIEjHj+OCEdDsbiYRcbJ7bYN5obL/WmcN6jdVetB5BdGmU0KVyLPL9dBN5SM4drkrki6jCnVvb05XUmC2AQ= X-Received: by 2002:a05:6512:3b11:b0:492:c60c:dc6d with SMTP id f17-20020a0565123b1100b00492c60cdc6dmr5341725lfv.140.1661740382153; Sun, 28 Aug 2022 19:33:02 -0700 (PDT) In-Reply-To: <20220828194226.1b280259@aicha> X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list X-BeenThere: bug-guile@gnu.org List-Id: "Bug reports for GUILE, GNU's Ubiquitous Extension Language" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: bug-guile-bounces+guile-bugs=m.gmane-mx.org@gnu.org Original-Sender: "bug-guile" Xref: news.gmane.io gmane.lisp.guile.bugs:10343 Archived-At: --0000000000002ff04f05e75815b0 Content-Type: text/plain; charset="UTF-8" Thanks again, David. I was able to use a solution from Ricardo to get guile-gi to run under guix, but it didn't work for g-golf. :-( Even so, I was serious about wanting to help you out. My Ubuntu system has guile 3.0.7, which I hope would be OK. For g-golf, would you recommend I clone your github repo and compile it . . . ? I can give that a try. I'm not entirely sure that packages installed by guix won't interfere, and I don't yet know how to uninstall guix, but I'll give it my best shot for you. On Sun, Aug 28, 2022 at 3:42 PM David Pirotte wrote: > Hello Lee, > > > Thank you greatly, David. I cleaned up my guix environment and > > reinstalled G-Golf, and now the hello world script runs but hangs > > after these errors: > > > (g-golf-hello-world.scm:494347): GLib-GObject-WARNING **: > > 12:37:46.818: cannot register existing type 'GdkPixbuf' > > This is a guix problem, reported a few years ago already by one of my > first g-golf user, the author of the nomad package. I have no idea why, > nor what it takes to fix this in guix, but this error is the symptom > that you (guix, not you nor g-golf) is trying to load the Gdk typelib > more then once, which is 'unauthorized', by (GNOME) design. > > Until what causes this error is fixed, absolutely nothing can work. > > I am on Debian, where all examples work [1] > > > (g-golf-hello-world.scm:494347): GLib-GObject-CRITICAL **: > > 12:37:46.818: g_type_add_interface_static: assertion > > 'G_TYPE_IS_INSTANTIATABLE (instance_type)' failed > > This is the symptom that you are running a g-golf version that was > built from the devel branch - where as this is generally ok, I am also > very cautious to what I push even on the devel branch, I am in a process > of re-designing re-writing the way users may register new classes, that > inherit from GInterface. I also am re-designing re-writing how users > interact with VFunc. For these reasons, I recommend the guix team > to stick to the latest commit of the master branch for now. > > The hello-world example has worked 'fine', on Debian, for many years, > you don't need the latest commit to run it :) - though in January > 2021, I updated it (as well as other examples) to use Gtk-4.0. > > I see Ricardo also answered and tried, I'll also comment his > message(s) ... > > David > > [1] in addition to what you need to install g-golf, to run the > examples, you also need to install gir1.2-gtk-4.0:amd64 (or > gir1.2-gtk-4.0:xxxx for another architecture, which content is listed > below, fwiw: > > dpkg -L gir1.2-gtk-4.0:amd64 > /. > /usr > /usr/lib > /usr/lib/x86_64-linux-gnu > /usr/lib/x86_64-linux-gnu/girepository-1.0 > /usr/lib/x86_64-linux-gnu/girepository-1.0/Gdk-4.0.typelib > /usr/lib/x86_64-linux-gnu/girepository-1.0/GdkWayland-4.0.typelib > /usr/lib/x86_64-linux-gnu/girepository-1.0/GdkX11-4.0.typelib > /usr/lib/x86_64-linux-gnu/girepository-1.0/Gsk-4.0.typelib > /usr/lib/x86_64-linux-gnu/girepository-1.0/Gtk-4.0.typelib > /usr/share > /usr/share/doc > /usr/share/doc/gir1.2-gtk-4.0 > /usr/share/doc/gir1.2-gtk-4.0/changelog.Debian.gz > /usr/share/doc/gir1.2-gtk-4.0/copyright > --0000000000002ff04f05e75815b0 Content-Type: text/html; charset="UTF-8" Content-Transfer-Encoding: quoted-printable
Thanks again, David. I was able to use a solution from Ric= ardo to get guile-gi to run under guix, but it didn't work for=C2=A0g-g= olf. :-( Even so, I was serious about wanting to help you out. My Ubuntu sy= stem has guile 3.0.7, which I hope would be OK. For g-golf, would you recom= mend I clone your github repo and compile=C2=A0it . . . ? I can give that a= try. I'm not entirely sure that packages installed by guix won't i= nterfere, and I don't yet know how to uninstall guix, but I'll give= it my best shot for you.

On Sun, Aug 28, 2022 at 3:42 PM David Pirotte <= david@altosw.be> wrote:
=
Hello Lee,

> Thank you greatly, David. I cleaned up my guix environment and
> reinstalled G-Golf, and now the hello world script runs but hangs
> after these errors:

> (g-golf-hello-world.scm:494347): GLib-GObject-WARNING **:
> 12:37:46.818: cannot register existing type 'GdkPixbuf'

This is a guix problem, reported a few years ago already by one of my
first g-golf user, the author of the nomad package. I have no idea why,
nor what it takes to fix this in guix, but this error is the symptom
that you (guix, not you nor g-golf) is trying to load the Gdk typelib
more then once, which is 'unauthorized', by (GNOME) design.

Until what causes this error is fixed, absolutely nothing can work.

I am on Debian, where all examples work [1]

> (g-golf-hello-world.scm:494347): GLib-GObject-CRITICAL **:
> 12:37:46.818: g_type_add_interface_static: assertion
> 'G_TYPE_IS_INSTANTIATABLE (instance_type)' failed

This is the symptom that you are running a g-golf version that was
built from the devel branch - where as this is generally ok, I am also
very cautious to what I push even on the devel branch, I am in a process of re-designing re-writing the way users may register new classes, that
inherit from GInterface. I also am re-designing re-writing how users
interact with VFunc. For these reasons, I recommend the guix team
to stick to the latest commit of the master branch for now.

The hello-world example has worked 'fine', on Debian, for many year= s,
you don't need the latest commit to run it :) - though in January
2021, I updated it (as well as other examples) to use Gtk-4.0.

=C2=A0 =C2=A0 =C2=A0 =C2=A0 I see Ricardo also answered and tried, I'll= also comment his
=C2=A0 =C2=A0 =C2=A0 =C2=A0 message(s) ...

David

[1]=C2=A0 =C2=A0 in addition to what you need to install g-golf, to run the=
examples, you also need to install gir1.2-gtk-4.0:amd64 (or
gir1.2-gtk-4.0:xxxx=C2=A0 for another architecture, which content is listed=
below, fwiw:

dpkg -L gir1.2-gtk-4.0:amd64
/.
/usr
/usr/lib
/usr/lib/x86_64-linux-gnu
/usr/lib/x86_64-linux-gnu/girepository-1.0
/usr/lib/x86_64-linux-gnu/girepository-1.0/Gdk-4.0.typelib
/usr/lib/x86_64-linux-gnu/girepository-1.0/GdkWayland-4.0.typelib
/usr/lib/x86_64-linux-gnu/girepository-1.0/GdkX11-4.0.typelib
/usr/lib/x86_64-linux-gnu/girepository-1.0/Gsk-4.0.typelib
/usr/lib/x86_64-linux-gnu/girepository-1.0/Gtk-4.0.typelib
/usr/share
/usr/share/doc
/usr/share/doc/gir1.2-gtk-4.0
/usr/share/doc/gir1.2-gtk-4.0/changelog.Debian.gz
/usr/share/doc/gir1.2-gtk-4.0/copyright
--0000000000002ff04f05e75815b0--