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: Sat, 07 Sep 2024 16:08:19 +0200 Message-ID: <875xr75zfw.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> <878qw5t8to.fsf@pelzflorian.de> <20240906153727.5fb5aed6@tintin> <20240906190823.53367b38@tintin> <20240906201632.46065770@tintin> Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="=-=-=" Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="32482"; 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 Sat Sep 07 16:09:37 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 1smw87-0008Gq-UC for guile-user@m.gmane-mx.org; Sat, 07 Sep 2024 16:09:36 +0200 Original-Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1smw7H-0002BO-H0; Sat, 07 Sep 2024 10:08:43 -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 1smw7F-0002BB-4k for guile-user@gnu.org; Sat, 07 Sep 2024 10:08:41 -0400 Original-Received: from relay.yourmailgateway.de ([188.68.63.98]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1smw7C-0008Jc-HI for guile-user@gnu.org; Sat, 07 Sep 2024 10:08:40 -0400 Original-Received: from mors-relay-2501.netcup.net (localhost [127.0.0.1]) by mors-relay-2501.netcup.net (Postfix) with ESMTPS id 4X1FLn1z5Zz61HZ; Sat, 7 Sep 2024 16:08:33 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=pelzflorian.de; s=key2; t=1725718113; bh=GJimimDXhtyi+wQ2NjGhAfQvWr57TkRqcwg76w3nDjY=; h=From:To:Cc:Subject:In-Reply-To:References:Date:From; b=AdQscd6e/SC0hoXRvSpLukPoKaH2MSDt0EV26+t4i1SQ8iFrFOe4Eu09uB++5oUx6 gSUXDn0CKO5bk13NRPD3cq3DLwyATmJl0g0FkSp2thg7/HggVqhXZT10WLjHSUYy+u BIn4QobzKTJWU/QcQlSL7CX91FuV0mRulz4L30+g+4np3ONeu8FaiIcXnvce0TGo5K UwTT2npCn5jXsg8rKJAaOhSpgSY+Ieo6MuNLHfP58XfSftYDGL8jhTKV6ImUhPkc9T pxeoRGgegqPjRQGlnid5zoJZs76M7CVqNSM7/NtVTc/slGlz1BGa5Wo3xBSBUyEY4S Ht7tAS490F55g== Original-Received: from policy01-mors.netcup.net (unknown [46.38.225.35]) by mors-relay-2501.netcup.net (Postfix) with ESMTPS id 4X1FLn1DhKz4w6F; Sat, 7 Sep 2024 16:08:33 +0200 (CEST) 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 4X1FLk56W8z8sf8; Sat, 7 Sep 2024 16:08:30 +0200 (CEST) Original-Received: from florianhp (ipb2186896.dynamic.kabel-deutschland.de [178.24.104.150]) by mxe217.netcup.net (Postfix) with ESMTPSA id 5160F84073; Sat, 7 Sep 2024 16:08:24 +0200 (CEST) In-Reply-To: <20240906201632.46065770@tintin> (David Pirotte's message of "Fri, 6 Sep 2024 20:16:32 -0300") X-Rspamd-Queue-Id: 5160F84073 X-Rspamd-Server: rspamd-worker-8404 X-NC-CID: VTOvAOvakqb20YlmermIP37N2xLgkHOUUErXn1Ko2wPZHoT0MncF9Njs Received-SPF: pass client-ip=188.68.63.98; 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, RCVD_IN_DNSWL_NONE=-0.0001, RCVD_IN_VALIDITY_RPBL_BLOCKED=0.001, RCVD_IN_VALIDITY_SAFE_BLOCKED=0.001, SPF_HELO_PASS=-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:19795 Archived-At: --=-=-= Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Hello David. David Pirotte writes: > If you could kindly grab the latest, run the make/install dance on your > respective distro and try again ... Here the example now runs for > hours, Yes, same on Guix. It runs for more than an hour. > as it should, consuming +/- 3% cpu and a steady 0.8% of mem (so afaict, > no memory leak either). David Pirotte writes: > Actually the example memory consumption grows, very slowly but it grows. > I think I know why, I'll try to fix this as well, but I need to finish > some other work first. Yes, in /proc/8662/maps, the [heap] region below the guile regions slowly but steadily grows. David Pirotte writes: >> Yes, they had not worked previously, and now with your long-name fix, >> they work. > Fwiw, they actually worked fine till day one till 2024-09-04, the day i > pushed this commit a3952000ae205c27573ab0eaf2176131b51e34cf, > that 'broke' them ... Yes, by =E2=80=9Cthey had not worked previously=E2=80=9D, I meant commit bbfee04922bf2a22db397e2f429ae606df940265, where I wrongly claimed it was working fine but had not tried animated-paintable nor peg-solitaire. > Ofc - It is a relief for all Guix users that the GNOME team finally > fixed the GLib/GObject/GI/GdkPixbuf packages so that G-Golf (and > other GI lang binding for that matter) work(s) 'out of the box': > > Could you post a mini guide with the steps a guix user would > have to do, till guix is released, to get this 'proper GI' env > for g-golf? Guix notifies all users regularly to pull the latest rolling release. This contains at the time of writing a close to current GNOME 44.10 with gobject-introspection 1.78. Currently, to use g-golf with vfuncs and proper guile-cairo, one has to use Guix=E2=80=99 Scheme programming interfa= ce, for example the guix.scm file created with guile-hall. I use [1]. When guile-cairo and g-golf have a new release, developers just write guile-cairo and guile-g-golf in there instead. It would also be usable from the CLI, but for app developers using Guix, guix.scm is always the way to go even then. For Nix it will be the same in Nix language instead of guix.scm. This is equivalent to manual patching and a manual make install dance. > Let me know if you need help for your Kodi project, and keep us > informed ... when you have a link to where the code is, share with > us ... Gladly, but my trivial, zenity-like, personal Kodi launcher/restarter and hard-disk mounting tool is coupled with Sway and to make the code pretty, Guix developers first need to push some home-sway-service-type patches [2]. Regards, Florian [1] --=-=-= Content-Type: text/plain Content-Disposition: inline; filename=guix.scm Content-Description: edited guix.scm from guile-hall (use-modules (gnu packages) (gnu packages autotools) (gnu packages libffi) (gnu packages gettext) (gnu packages glib) (gnu packages linux) (gnu packages xml) (gnu packages gnome) (gnu packages texinfo) (gnu packages gtk) (gnu packages guile) (gnu packages guile-xyz) (gnu packages pkg-config) (guix build-system glib-or-gtk) (guix download) (guix git-download) (guix gexp) ((guix licenses) #:prefix license:) (guix packages) (guix transformations) (srfi srfi-1)) (define-public guile-cairo-next (package (inherit guile-cairo) (source (origin (method git-fetch) (uri (git-reference (url "git://git.savannah.nongnu.org/guile-cairo.git") (commit "30da459d7a4380174ff243b1560d5512a4bca86e"))) (sha256 (base32 "0dslfldzgxis8g0g3xaffcqnd1njzz23fjy0v3lc0r2694ra4ny4")) (file-name (string-append "guile-cairo-next")))) (inputs (list guile-lib expat guile-3.0 gettext-minimal)) (native-inputs (list autoconf-2.71 automake libtool pkg-config texinfo)) )) (package (name "tcgocr") (version "0.01") (source (local-file (dirname (current-filename)) #:recursive? #t #:select? (lambda (file stat) (not (any (lambda (my-string) (string-contains file my-string)) (list ".git" ".dir-locals.el" "guix.scm")))))) (build-system glib-or-gtk-build-system) (arguments `()) (native-inputs (list pkg-config libtool automake autoconf-2.71 )) (inputs (list ;;((package-input-rewriting ;;`((,libffi . ,libffi-sans-static-trampolines))) guile-3.0;;) glib gtk libadwaita ((options->transformation '((without-tests . "guile-cairo"))) guile-cairo-next) ((options->transformation '((with-debug-info . "gobject-introspection") (with-commit . "guile-g-golf=ab666af394e92180c0ffb67363b2bde061b92b84");v0.8.0-rc.5") )) guile-g-golf) (list glib "debug") (list libffi "debug") )) (propagated-inputs (list)) (synopsis "") (description "") (home-page "https://none.yet") (license license:gpl3+)) --=-=-= Content-Type: text/plain [2] https://issues.guix.gnu.org/72714 --=-=-=--