Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Ubuntu: Floating-point-invalid-operation #23

Open
tavurth opened this issue Sep 19, 2017 · 3 comments
Open

Ubuntu: Floating-point-invalid-operation #23

tavurth opened this issue Sep 19, 2017 · 3 comments

Comments

@tavurth
Copy link
Contributor

tavurth commented Sep 19, 2017

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
Copy link
Contributor Author

tavurth commented Sep 19, 2017

However, examples run without issue after declaring:

SBCL:

(sb-int:with-float-traps-masked (:invalid)
  (cl-glfw3-examples:basic-window-example))

@mmcthrow
Copy link

mmcthrow commented Aug 9, 2020

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
Copy link

mmcthrow commented Aug 9, 2020

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants