From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: David Pirotte Newsgroups: gmane.lisp.guile.user Subject: Re: GNU G-Golf 0.8.0-rc-3 available for testing Date: Thu, 18 Apr 2024 19:21:32 -0300 Message-ID: <20240418192132.245200a9@tintin> References: <20240417025615.0b6c50f5@tintin> <871q73vcz4.fsf@pelzflorian.de> Mime-Version: 1.0 Content-Type: multipart/signed; boundary="Sig_/FCT6s9XM0.iampzjpLxCidT"; protocol="application/pgp-signature"; micalg=pgp-sha512 Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="37826"; mail-complaints-to="usenet@ciao.gmane.io" Cc: guile-user To: "pelzflorian (Florian Pelz)" Original-X-From: guile-user-bounces+guile-user=m.gmane-mx.org@gnu.org Fri Apr 19 00:22:25 2024 Return-path: Envelope-to: guile-user@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 1rxa9B-0009fu-10 for guile-user@m.gmane-mx.org; Fri, 19 Apr 2024 00:22:25 +0200 Original-Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1rxa8e-0006Wd-EA; Thu, 18 Apr 2024 18:21:52 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1rxa8b-0006WU-OD for guile-user@gnu.org; Thu, 18 Apr 2024 18:21:49 -0400 Original-Received: from sys2.all2all.org ([79.99.200.14] helo=moses.all2all.org) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1rxa8Z-0003sg-Mn for guile-user@gnu.org; Thu, 18 Apr 2024 18:21:49 -0400 Original-Received: from localhost (localhost [127.0.0.1]) by moses.all2all.org (Postfix) with ESMTP id 50FED67C007A; Fri, 19 Apr 2024 00:21:41 +0200 (CEST) X-Virus-Scanned: Debian amavisd-new at moses.all2all.org Original-Received: from moses.all2all.org ([127.0.0.1]) by localhost (moses.all2all.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id xKoYEmhhSc3z; Fri, 19 Apr 2024 00:21:40 +0200 (CEST) Original-Received: from tintin (unknown [168.227.184.156]) by moses.all2all.org (Postfix) with ESMTPSA id D9D5567C0074; Fri, 19 Apr 2024 00:21:39 +0200 (CEST) In-Reply-To: <871q73vcz4.fsf@pelzflorian.de> X-Mailer: Claws Mail 4.2.0 (GTK 3.24.41; x86_64-pc-linux-gnu) Received-SPF: pass client-ip=79.99.200.14; envelope-from=david@altosw.be; helo=moses.all2all.org X-Spam_score_int: -25 X-Spam_score: -2.6 X-Spam_bar: -- X-Spam_report: (-2.6 / 5.0 requ) BAYES_00=-1.9, RCVD_IN_DNSWL_LOW=-0.7, SPF_HELO_NONE=0.001, SPF_PASS=-0.001 autolearn=ham autolearn_force=no X-Spam_action: no action X-BeenThere: guile-user@gnu.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: General Guile related discussions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: guile-user-bounces+guile-user=m.gmane-mx.org@gnu.org Original-Sender: guile-user-bounces+guile-user=m.gmane-mx.org@gnu.org Xref: news.gmane.io gmane.lisp.guile.user:19535 Archived-At: --Sig_/FCT6s9XM0.iampzjpLxCidT Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable Hi Florian, > Thank you for the work, David. I have a question; how do you debug > when Guile crashes to terminal printing =E2=80=9CSegmentation fault=E2=80= =9D`? Thanks. You shouldn't have to do this 'on your own', if you submit a reproducible minimal example that i can use, i'll track and fix the bug ... If it is a distro problem, which is the situation you are facing, you should talk to the distro (involved pkgs maintainers) (additional tips below ...) But i am curious, does make check pass in Guix? > I want to develop a GTK app with G-Golf. I highly recommend you use Adwaita (and Gtk-4 when that applies), not 'just' Gtk-4. > to run it with GNU Guix [1] (not Debian like you do, as far as I=20 > remember), because now the Guix=E2=80=99 hard-working gnome team have add= ed > the needed version of gobject-introspection to Guix. Great - Proper GLib/GObject/GObject-Introspection libs is a pre-requisite ofc, but Guix is known to wrongly set-up things: I think Ricardo Wurmus knows what to do, he did succeed, once, to run the hello-world example in guix a few years ago, but i didn't take note of what he did and can't find neither an email, nor in the logs, how/what needs to be done - I think it has something to do with grafts, iirc ... I hope he will shim-in to let you know ... > $ cd ~/src > $ git clone 'https://git.savannah.gnu.org/git/g-golf.git' I am curious, can't you just run the make danse in guix?=20 ./autogen.sh ./configure [--prefix=3D...] --with-guile-site # before to run make, you need to uninstall=20 # g-golf (if it is installed ...) make Because i'd be interested to know the output of running make check, in Guix that is ... # it needs Gtk-3.0 make check > To create the app=E2=80=99s basic structure, I run Guile Hall [2]: > ... > Now I run: > $ guix shell > $ ~/src/g-golf/examples/gtk-4/hello-world.scm > It tells me dbus-launch must be running, so I add a d-bus service to > my Guix Home configuration. Never seen such a warning, I guess all other distro run the service by default - i'll ask uptream, but maybe worth adding the service as a g-golf 'start-up' requirement in Guix ... > $ guix shell > $ ~/src/g-golf/examples/gtk-4/hello-world.scm > successfully; a window is shown, though not responsive, with plenty > of errors. in Guix that is ... no other distro reports nor even a single warning/error ... > (hello-world.scm:12627): Gtk-WARNING **: 23:59:50.617: Unable to > acquire the address of the accessibility bus: > GDBus.Error:org.freedesktop.DBus.Error.ServiceUnknown: The name > org.a11y.Bus was not provided by any .service files. If you are > attempting to run GTK without a11y support, GTK_A11Y should be set to > 'none'. You should be able to solve this easily, or apply the suggested GTK_A11Y env setting ... > (hello-world.scm:12627): GLib-GObject-CRITICAL **: 23:59:51.067: > cannot register existing type 'GdkPixbuf' =20 =46rom here, nothing will ever work - You and Guix guru, need to find out why .. -the symptom is that in Guix, for some reason, you are trying to import the Gtk(Gsk/Gdk) lib more then once, in the same memory session, which won't work, as GObject is a dynamic typing system, all those types are being defined at runtime, and none can be defined more then once ... > However, when I now run: > $ ~/src/g-golf/examples/gtk-4/drawing-widget.scm > it crashes, displaying only =E2=80=9CSegmentation fault=E2=80=9D. Same w= ith > $ ~/src/g-golf/examples/gtk-4/peg-solitaire.scm ... right, as i said, nothing will work - these segfaults because guile/g-golf doesn't stop to (try to) run the app/example because of an upstream lib (Critical)warning ... but in this situation, it is just impossible to run any low level upstream lib function, such as creating a drawing surface ... when Guix can run make check, and the hello-world example, you 'll likely be able to run any other example, if not, we'll dig on appropriate time ... David ps: are you in #guix, #guile, if yes, what's your nick - ping me there so we can chat - hopefully after Ricardo giives his advice to run g-golf in guix ... --Sig_/FCT6s9XM0.iampzjpLxCidT Content-Type: application/pgp-signature Content-Description: OpenPGP digital signature -----BEGIN PGP SIGNATURE----- iQEzBAEBCgAdFiEEhCJlRZtBM3furJHe83T9k6MFetcFAmYhnOwACgkQ83T9k6MF etft2wf/ZdH1tCS0x7MOWDqC8nPGI7MWLiiERupcv3CdxnuyszjMkaSEs9ixprqi doAhLtBWhG3JaU6vMaZg6L+habN9uOdOasMVifzAcy8sY5CjWFo7cvHPdoND1A38 XcnQo5H1+yfLzhkifgzaJpqB/Ajqhq2OCXd58KXEGb+Zcs2wC9dJgIi99YbOoGMj z7yUpGJ/cQCeMRPOwpJ6sqQo6fMqfIiRwfAkBjFivs7mvGf+6ShbHadfjKROIEdY uw14OvYVEJhbCaEN3puLG1Zx62ljRosCOdc0X2qIMJlTOpQGlgorkR3xSc3S/LbV 7n+/2/RSBbNoM+SUKcHzd6aCx4P9ag== =58cH -----END PGP SIGNATURE----- --Sig_/FCT6s9XM0.iampzjpLxCidT--