From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: "pelzflorian (Florian Pelz)" Newsgroups: gmane.lisp.guile.user Subject: Re: G-Golf - Callback segmentation fault Date: Fri, 06 Sep 2024 11:44:51 +0200 Message-ID: <878qw5t8to.fsf@pelzflorian.de> References: <87msl6c4lf.fsf@posteo.net> <20240821212129.7647d035@tintin> <87a5gxybgm.fsf@posteo.net> <20240828211805.68f594a7@tintin> <87cylo8xc4.fsf@posteo.net> <20240902181854.2017f1fc@tintin> <20240902220154.54e2f1ac@tintin> <20240905010031.21a93f7f@tintin> <871q1y8bn5.fsf@posteo.net> <20240905191452.5a0b946d@tintin> <20240906032911.178f2e74@tintin> Mime-Version: 1.0 Content-Type: text/plain Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="7066"; mail-complaints-to="usenet@ciao.gmane.io" User-Agent: Gnus/5.13 (Gnus v5.13) Cc: Matija Obid , guile-user@gnu.org To: David Pirotte Original-X-From: guile-user-bounces+guile-user=m.gmane-mx.org@gnu.org Fri Sep 06 11:45:34 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 1smVX4-0001ci-8Y for guile-user@m.gmane-mx.org; Fri, 06 Sep 2024 11:45:34 +0200 Original-Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1smVWg-0005vf-2x; Fri, 06 Sep 2024 05:45:10 -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 1smVWc-0005vH-Nx for guile-user@gnu.org; Fri, 06 Sep 2024 05:45:06 -0400 Original-Received: from relay.yourmailgateway.de ([188.68.63.170]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1smVWa-0006c8-IU for guile-user@gnu.org; Fri, 06 Sep 2024 05:45:06 -0400 Original-Received: from mors-relay8203.netcup.net (localhost [127.0.0.1]) by mors-relay8203.netcup.net (Postfix) with ESMTPS id 4X0WY71X5gz8ZVt; Fri, 6 Sep 2024 09:44:59 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=pelzflorian.de; s=key2; t=1725615899; bh=oylwGoJC6sx3r8vVBvTng6yIF0ToS8c4Fx/ZiGa6baM=; h=From:To:Cc:Subject:In-Reply-To:References:Date:From; b=SYNTgKKAue/DlTptMlW6EkACSSYY4O/QJF20uSz2/sH0piexAsgY1Wep0D61DkwXI 1Ixlfsg1fmZaAVjEGm6xpEWTWYgW5qdi3TJPj6T9hppxb1RtDLW7GxFri6jdPPlVfC yyJcxyy9BoOitUUAni54KwhoAtwvy/XhAa9cqEdoPl+ZOkiDONf5zORuGfvEL+vDIq g/+A+DTb4njOKfPMyf6Qryf+WMjPtZPk+m+ZuODBl5gC1x76ImqbCtrEYrts+Jsp03 LKCvsmOfReksGYkT4kWMBNT+vgtkXYFfrEl6MRsXYg+S7BdZi4ko1hhJXBxzMbCAK4 L0eGDiF5iQFKQ== Original-Received: from policy01-mors.netcup.net (unknown [46.38.225.35]) by mors-relay8203.netcup.net (Postfix) with ESMTPS id 4X0WY70qN0z8ZTk; Fri, 6 Sep 2024 09:44:59 +0000 (UTC) X-Virus-Scanned: Debian amavisd-new at policy01-mors.netcup.net Original-Received: from mxe217.netcup.net (unknown [10.243.12.53]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by policy01-mors.netcup.net (Postfix) with ESMTPS id 4X0WY61Pj9z8t4D; Fri, 6 Sep 2024 11:44:58 +0200 (CEST) Original-Received: from florianhp (ipb2186896.dynamic.kabel-deutschland.de [178.24.104.150]) by mxe217.netcup.net (Postfix) with ESMTPSA id C49808412B; Fri, 6 Sep 2024 11:44:51 +0200 (CEST) In-Reply-To: <20240906032911.178f2e74@tintin> (David Pirotte's message of "Fri, 6 Sep 2024 03:29:11 -0300") X-Rspamd-Queue-Id: C49808412B X-Rspamd-Server: rspamd-worker-8404 X-NC-CID: NRNN52IJ/opVUE1AMIv1q6RXeZNfCRKKxMsYtgp0T7KafsHfzhoHGnuD Received-SPF: pass client-ip=188.68.63.170; envelope-from=pelzflorian@pelzflorian.de; helo=relay.yourmailgateway.de X-Spam_score_int: -20 X-Spam_score: -2.1 X-Spam_bar: -- X-Spam_report: (-2.1 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, SPF_HELO_PASS=-0.001, SPF_PASS=-0.001, T_SCC_BODY_TEXT_LINE=-0.01 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:19789 Archived-At: David Pirotte writes: > Could you both kindly grab the latest devel branch, you need this > commit 5d72bfcdae85bb4a5b0254dc9f22fb8c676db69d, and try > both the animated-paintable.scm and peg-solitaire.scm ex. ... let me > know. animated-paintable and peg-solitaire I had not tried last time and they are the ones that crash. Yes, they had not worked previously, and now with your long-name fix, they work. > all of a sudden it stops and raises an exception - could you also try > that and let me know, thanks Yes, after 5 minutes animated-paintable.scm crashes. Hmm. florian@florianhp ~/src/g-golf/examples/gtk-4 [env]$ ./animated-paintable.scm ;;; note: auto-compilation is enabled, set GUILE_AUTO_COMPILE=0 ;;; or pass the --no-auto-compile argument to disable. ;;; compiling /home/florian/src/g-golf/examples/gtk-4/./animated-paintable.scm Warning: Missing /etc/X11/rgb.txt, using a fallback. ;;; compiling /home/florian/src/g-golf/examples/gtk-4/nuclear-icon.scm ;;; compiled /home/florian/.cache/guile/ccache/3.0-LE-8-4.6/home/florian/src/g-golf/examples/gtk-4/nuclear-icon.scm.go ;;; compiled /home/florian/.cache/guile/ccache/3.0-LE-8-4.6/home/florian/src/g-golf/examples/gtk-4/animated-paintable.scm.go (animated-paintable.scm:2): Gtk-WARNING **: 09:12:26.679: Unable to acquire session bus: Could not connect: No such file or directory Backtrace: In ice-9/boot-9.scm: 1752:10 13 (with-exception-handler _ _ #:unwind? _ # _) In unknown file: 12 (apply-smob/0 #) In ice-9/boot-9.scm: 724:2 11 (call-with-prompt _ _ #) In ice-9/eval.scm: 619:8 10 (_ #(#(#))) In /home/florian/src/g-golf/examples/gtk-4/./animated-paintable.scm: 147:18 9 (main _) In g-golf/hl-api/function.scm: 90:19 8 (_ . _) In unknown file: Exception thrown while printing backtrace: In procedure primitive-call-ip: Wrong type argument in position 1 (expecting PRIMITIVE_P): # oop/goops.scm:1585:2: No applicable method for #< !callback (2)> in call (!callback #) David Pirotte writes: >> Except for small warnings like >> Warning: Missing /etc/X11/rgb.txt, using a fallback. >> that probably should be fixed on the Guix side. > > You may as well safely ignore the warning ofc - i am not sure how to > handle this, yet ... this is in the newly added (g-golf support color) > module ... [1] Probably I would just patch out the warning for Guix? David Pirotte writes: >> G-golf really satisfies now. > > At last! Note that the above was not a g-golf problem [1]. Yes, but still it is much better that I can now soon rewrite my trivial Kodi launcher to use g-golf instead of C. Having to use a virtual machine meant I could not reasonably put g-golf to use there. Regards, Florian