AlexCharlton / cl-glfw3

Common Lisp bindings to GLFW version 3.x
BSD 2-Clause "Simplified" License
89 stars 32 forks source link

Ubuntu: Floating-point-invalid-operation #23

Open tavurth opened 7 years ago

tavurth commented 7 years ago

image

* (cl-glfw3-examples:basic-window-example)

debugger invoked on a FLOATING-POINT-INVALID-OPERATION in thread
#<THREAD "main thread" RUNNING {100399C4D3}>:
arithmetic error FLOATING-POINT-INVALID-OPERATION signalled

Type HELP for debugger help, or (SB-EXT:EXIT) to exit from SBCL.

restarts (invokable by number or by possibly-abbreviated name):
0: [STOP ] Stop the task.
1: [ABORT] Exit debugger, returning to top level.

(CL-GLFW3:CREATE-WINDOW
 :WIDTH 600
 :VISIBLE T
 :SAMPLES 0
 :HEIGHT 400
 :SHARED NIL
 :RED-BITS 8
 :STEREO NIL
 :CLIENT-API
 :OPENGL-API
 :MONITOR NIL
 :RESIZABLE T
 :DECORATED T
 :BLUE-BITS 8
 :GREEN-BITS 8
 :ALPHA-BITS 8
 :DEPTH-BITS 24
 :AUX-BUFFERS 0
 :NO-ROBUSTNESS
 :STENCIL-BITS 8
 :REFRESH-RATE 0
 :OPENGL-PROFILE
 :ACCUM-RED-BITS 0
 :SRGB-CAPABLE NIL
 :ACCUM-BLUE-BITS 0
 :ACCUM-GREEN-BITS 0
 :ACCUM-ALPHA-BITS 0
 :CONTEXT-ROBUSTNESS
 :OPENGL-ANY-PROFILE
 :TITLE "Window test"
 :CONTEXT-VERSION-MAJOR 1
 :CONTEXT-VERSION-MINOR 0
 :OPENGL-DEBUG-CONTEXT NIL
 :OPENGL-FORWARD-COMPAT NIL)
tavurth commented 7 years ago

However, examples run without issue after declaring:

SBCL:

(sb-int:with-float-traps-masked (:invalid)
  (cl-glfw3-examples:basic-window-example))
mmcthrow commented 4 years ago

I also encountered this problem in Debian using SBCL version 1.4.16:

michael@debian:~$ uname -a
Linux debian 4.19.0-10-amd64 #1 SMP Debian 4.19.132-1 (2020-07-24) x86_64 GNU/Linux
* (cl-glfw3-examples:events-example)

debugger invoked on a FLOATING-POINT-INVALID-OPERATION in thread
#<THREAD "main thread" RUNNING {10005D05B3}>:
  arithmetic error FLOATING-POINT-INVALID-OPERATION signalled

Type HELP for debugger help, or (SB-EXT:EXIT) to exit from SBCL.

restarts (invokable by number or by possibly-abbreviated name):
  0: [STOP ] Stop the task.
  1: [ABORT] Exit debugger, returning to top level.

((FLET SB-UNIX::RUN-HANDLER :IN SB-SYS:ENABLE-INTERRUPT) 8 #.(SB-SYS:INT-SAP #X7F1F0D7C6330) #.(SB-SYS:INT-SAP #X7F1F0D7C6200))
0]
mmcthrow commented 4 years ago

I just tested this in FreeBSD 12 running SBCL 2.0.3; the example works without giving any floating point errors.

I also updated SBCL in Debian to 2.0.7, but I'm still getting the same error above.