guile-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: GNU G-Golf 0.8.0-rc-2 available for testing


From: David Pirotte
Subject: Re: GNU G-Golf 0.8.0-rc-2 available for testing
Date: Fri, 22 Dec 2023 01:52:57 -0300

Hi Aleix,

> ...
> Anyways, guile-cairo is fine going back to stable 3.0.9.

Ok, so just to make sure, now both the gtk4/simple-paintable.scm and
gtk4/animated-paintable.scm examples work fine on 'your' platform as
well?

> > - drawing-widget.scm, peg-solitaire.scm.
> > ...

> The issue seems to be here:

> (define-vfunc (snapshot-vfunc (self <drawing-widget>) snapshot)
>   #t)

a-

And does that works? It should, but/and obviously not drawing
anything, but no bug/no crash?

b-

Can you try, in a repl:

  ,use (g-golf)
  (gi-import-by-name "Gtk" "Widget")
  $5 = #<<gobject-class> <gtk-widget> 7fe9c1681d20>

  (gi-import-by-name "Gtk" "init")
  $6 = #<<function> 7fe9c1555360>
  
  (gtk-init)

  (graphene-rect-alloc)
  $7 = #<pointer 0x560e4855d1c0>

        ;; below you'd substitute the $7 appropriately if for some
        ;; reason you happen to have a diff repl var $<id> flow,
        ;; you need the result of (graphene-rect-alloc)

  (graphene-rect-init $7 0 0 50 50)
  $8 = #<pointer 0x560e4855d1c0>

c-

Let's see, but if all the above work, can you poste the error you get
with no modification of the upstream version of the example, or does it
segfault?

If no segfault, in a repl:

  (load "<your-golf-repo-path>/examples/gtk-4/drawing-widget.scm")
  (main '())
  => error

  ,bt #:width 1000 #:full? #t

If it segfault, we'd need to get a gdb backtrace - would that be
possible?

David

Attachment: pgpY9BXd0ryTY.pgp
Description: OpenPGP digital signature


reply via email to

[Prev in Thread] Current Thread [Next in Thread]