unofficial mirror of guile-user@gnu.org 
 help / color / mirror / Atom feed
From: "pelzflorian (Florian Pelz)" <pelzflorian@pelzflorian.de>
To: David Pirotte <david@altosw.be>
Cc: Matija Obid <matija.obid@posteo.net>,  guile-user@gnu.org
Subject: Re: G-Golf - Callback segmentation fault
Date: Fri, 06 Sep 2024 11:44:51 +0200	[thread overview]
Message-ID: <878qw5t8to.fsf@pelzflorian.de> (raw)
In-Reply-To: <20240906032911.178f2e74@tintin> (David Pirotte's message of "Fri, 6 Sep 2024 03:29:11 -0300")

David Pirotte <david@altosw.be> 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 #<thunk 7f836056f300>)
In ice-9/boot-9.scm:
    724:2 11 (call-with-prompt _ _ #<procedure default-prompt-handle?>)
In ice-9/eval.scm:
    619:8 10 (_ #(#(#<directory (guile-user) 7f8360572c80>)))
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): #<procedure 7f835a080940 (_ _ _ _ _ _ _)>

oop/goops.scm:1585:2: No applicable method for #<<accessor> !callback (2)> in call (!callback #<procedure 7f8351c53540 at system/vm/frame.scm:134:22 (target)>)

David Pirotte <david@altosw.be> 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 <david@altosw.be> 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



  reply	other threads:[~2024-09-06  9:44 UTC|newest]

Thread overview: 30+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2024-08-21 14:50 G-Golf - Callback segmentation fault Matija Obid
2024-08-21 15:19 ` pelzflorian (Florian Pelz)
2024-08-23 23:57   ` David Pirotte
2024-08-24 16:01     ` pelzflorian (Florian Pelz)
2024-08-25  5:09       ` David Pirotte
2024-08-25 13:28         ` pelzflorian (Florian Pelz)
2024-08-26  6:40           ` pelzflorian (Florian Pelz)
2024-08-22  0:21 ` David Pirotte
2024-08-27 20:09   ` Matija Obid
2024-08-28 10:50     ` pelzflorian (Florian Pelz)
2024-08-29  0:18     ` David Pirotte
2024-08-31 16:35       ` Matija Obid
2024-09-02 15:30         ` pelzflorian (Florian Pelz)
2024-09-02 21:18         ` David Pirotte
2024-09-03  1:01           ` David Pirotte
2024-09-05  4:00             ` David Pirotte
2024-09-05  7:24               ` pelzflorian (Florian Pelz)
2024-09-05  7:42                 ` pelzflorian (Florian Pelz)
2024-09-05 21:23                   ` David Pirotte
2024-09-05 21:44                     ` David Pirotte
2024-09-05 20:48                 ` David Pirotte
2024-09-05 13:37               ` Matija Obid
2024-09-05 22:14                 ` David Pirotte
2024-09-06  6:29                   ` David Pirotte
2024-09-06  9:44                     ` pelzflorian (Florian Pelz) [this message]
2024-09-06 18:37                       ` David Pirotte
2024-09-06 22:08                         ` David Pirotte
2024-09-06 23:16                           ` David Pirotte
2024-09-07 14:08                             ` pelzflorian (Florian Pelz)
2024-09-07 11:53                           ` Matija Obid

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=878qw5t8to.fsf@pelzflorian.de \
    --to=pelzflorian@pelzflorian.de \
    --cc=david@altosw.be \
    --cc=guile-user@gnu.org \
    --cc=matija.obid@posteo.net \
    /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).