Open plops opened 10 years ago
Try wrapping the function
(sb-int:with-float-traps-masked
(:divide-by-zero)
(run))
Edit you could try this
(defmacro gtk-run (&rest body)
`(sb-int:with-float-traps-masked
(:divide-by-zero)
,@body))
And then just
(gtk-run (run))
Duplicate of #6 and #15. Somehow related to SLIME (the problem does not appear outside of SLIME).
The environment is different, but I am reporting a situation similar to this issue. Similar errors occurred with Debian 10.2, ECL 16.1.3 and SLIME unused. The problem occurs both in REPL and in executing the binary file after compilation. It always occurs when you perform an operation such as moving the mouse over a window.
I tried with float features with-float-traps-masked but could not work around the problem.
Condition of type: DIVISION-BY-ZERO
#<a DIVISION-BY-ZERO>
It turns out to be caused by %gtk-main
called in ensure-gtk-main
, so maybe wrap it with sb-int:with-float-traps-masked (:divide-by-zero)
is a work around
When trying to run this code (which is just one of the demos from the tutorial) from within SLIME in Emacs, the program aborts with a DIVISION-BY-ZERO signal.
This is the error message:
If I run the code from the command line with
sbcl --load gtkclock.lisp
it works fine. As a temporary fix I wrapwithin-main-loop
withsb-int:with-float-traps-masked (:divide-by-zero)