From: David Pirotte <david@altosw.be>
To: "pelzflorian (Florian Pelz)" <pelzflorian@pelzflorian.de>
Cc: guile-user <guile-user@gnu.org>
Subject: Re: GNU G-Golf 0.8.0-rc-3 available for testing
Date: Fri, 3 May 2024 02:00:16 -0300 [thread overview]
Message-ID: <20240503020016.74cbc9eb@tintin> (raw)
In-Reply-To: <20240502185724.29c65892@tintin>
[-- Attachment #1: Type: text/plain, Size: 4026 bytes --]
Hi Florian,
> > Could you tell me if, when you run such commands in guile in your
> > Debian setup, you get similar output? First with tracepoint:
> With all due respect, this will get you nowhere, please upload the
> full gdb backtrace ... thanks
I patched the drawing-widget example so users may pass a -d or --debug
option, which triggers the setting of the %debug parameter.
This will track (some of the) g-golf (engine) calls 'only', so in this
particular situation that it segfault (in guix) upon a gtk snapshot
engine call, i probably will still very much need you to upload the
full gdb backtrace.
But it will at least give you some useful info on what's going on
'internally' - and who knows, might also give me some idea to further
investigate the problem ... tracking those calls is also a nice way to
learn about some g-golf internals ....
I pushed the patch to the devel branch, commit
8fbc8c27774986b4b5ad09a6545698b3e3ee1812, so, could either grab the
latest devel branch version, or simply grab the latest version of the example
https://git.savannah.gnu.org/cgit/g-golf.git/tree/examples/gtk-4/drawing-widget.scm?h=devel
then try (as shown below) and post the result here ...
Thanks,
David
Here is a debian session, passing the option at start-up, till i close
the window:
GNU Guile 3.0.9.179-8cabb
Copyright (C) 1995-2024 Free Software Foundation, Inc.
...
[ given your guile session is in the appropriate directory
scheme@(guile-user)> (load "drawing-widget.scm")
scheme@(guile-user)> (main '("-d"))
;; g-application-run
;; application: #<<gtk-application> 7efed470ab10>
;; argc: 0
;; argv: ()
;; gtk-window-set-child
;; window: #<<gtk-application-window> 7efed470e270>
;; child: #<<drawing-widget> 7efed470e020>
;; gtk-window-present
;; window: #<<gtk-application-window> 7efed470e270>
;; g-golf-callback-closure-marshal
;; snapshot
;; widget: #<<drawing-widget> 7efed470e020>
;; snapshot: #<<gtk-snapshot> 7efed471b1f0>
;; gtk-widget-get-width
;; widget: #<<drawing-widget> 7efed470e020>
;; gtk-widget-get-height
;; widget: #<<drawing-widget> 7efed470e020>
;; graphene-rect-alloc
;; graphene-rect-init
;; rect: #<pointer 0x5633517e0080>
;; x: 0
;; y: 0
;; width: 160
;; height: 283/2
;; gtk-snapshot-append-color
;; snapshot: #<<gtk-snapshot> 7efed471b1f0>
;; color: (0.93 0.08 0.08 1.0)
;; bounds: #<pointer 0x5633517e0080>
;; graphene-rect-alloc
;; graphene-rect-init
;; rect: #<pointer 0x5633517d8ae0>
;; x: 160
;; y: 0
;; width: 160
;; height: 283/2
;; gtk-snapshot-append-color
;; snapshot: #<<gtk-snapshot> 7efed471b1f0>
;; color: (0.18 0.8 0.44 1.0)
;; bounds: #<pointer 0x5633517d8ae0>
;; graphene-rect-alloc
;; graphene-rect-init
;; rect: #<pointer 0x563351803ec0>
;; x: 0
;; y: 283/2
;; width: 160
;; height: 283/2
;; gtk-snapshot-append-color
;; snapshot: #<<gtk-snapshot> 7efed471b1f0>
;; color: (0.99 0.74 0.29 1.0)
;; bounds: #<pointer 0x563351803ec0>
;; graphene-rect-alloc
;; graphene-rect-init
;; rect: #<pointer 0x563351804520>
;; x: 160
;; y: 283/2
;; width: 160
;; height: 283/2
;; gtk-snapshot-append-color
;; snapshot: #<<gtk-snapshot> 7efed471b1f0>
;; color: (0.16 0.5 0.73 1.0)
;; bounds: #<pointer 0x563351804520>
;; status 0
$5 = 0
scheme@(guile-user)>
[-- Attachment #2: OpenPGP digital signature --]
[-- Type: application/pgp-signature, Size: 488 bytes --]
next prev parent reply other threads:[~2024-05-03 5:00 UTC|newest]
Thread overview: 30+ messages / expand[flat|nested] mbox.gz Atom feed top
2024-04-17 5:56 GNU G-Golf 0.8.0-rc-3 available for testing David Pirotte
2024-04-17 22:30 ` pelzflorian (Florian Pelz)
2024-04-18 22:21 ` David Pirotte
2024-04-19 17:00 ` pelzflorian (Florian Pelz)
2024-04-20 4:51 ` David Pirotte
2024-04-20 8:35 ` pelzflorian (Florian Pelz)
2024-04-30 17:51 ` pelzflorian (Florian Pelz)
2024-05-01 0:51 ` David Pirotte
2024-05-01 8:17 ` pelzflorian (Florian Pelz)
2024-05-07 1:39 ` David Pirotte
2024-05-07 9:36 ` pelzflorian (Florian Pelz)
2024-05-07 23:53 ` David Pirotte
2024-05-08 10:49 ` pelzflorian (Florian Pelz)
2024-05-08 21:51 ` David Pirotte
2024-05-02 18:50 ` pelzflorian (Florian Pelz)
2024-05-02 21:57 ` David Pirotte
2024-05-03 5:00 ` David Pirotte [this message]
2024-05-03 11:35 ` pelzflorian (Florian Pelz)
2024-05-04 5:59 ` David Pirotte
2024-05-04 14:31 ` pelzflorian (Florian Pelz)
2024-05-04 18:08 ` pelzflorian (Florian Pelz)
2024-05-04 22:11 ` David Pirotte
2024-05-04 22:23 ` David Pirotte
2024-05-04 21:39 ` David Pirotte
2024-05-05 1:43 ` pelzflorian (Florian Pelz)
2024-05-05 21:30 ` David Pirotte
2024-05-06 9:45 ` pelzflorian (Florian Pelz)
2024-05-06 9:53 ` Basile Starynkevitch
2024-05-06 13:08 ` pelzflorian (Florian Pelz)
2024-05-03 0:17 ` David Pirotte
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
List information: https://www.gnu.org/software/guile/
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20240503020016.74cbc9eb@tintin \
--to=david@altosw.be \
--cc=guile-user@gnu.org \
--cc=pelzflorian@pelzflorian.de \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).