Comments (3)
I'm having the same problem with the vanilla cl-glfw3-examples:basic-window-example
on macOS Catalina 10.15.
I'm suspecting it's an incompatibility between macOS Catalina and the native glfw3
library, rather than an issue with this cl-glfw3
Lisp package.
SBCL version:
% sbcl --version
SBCL 1.5.7
To reproduce:
% sbcl
:
* (ql:quickload :cl-glfw3-examples)
* (cl-glfw3-examples:basic-window-example)
debugger invoked on a FLOATING-POINT-INVALID-OPERATION in thread
#<THREAD "main thread" RUNNING {10005084C3}>:
arithmetic error FLOATING-POINT-INVALID-OPERATION signalled
:
Stack trace:
0] backtrace
Backtrace for: #<SB-THREAD:THREAD "main thread" RUNNING {10005084C3}>
0: ("bogus stack frame")
1: ("foreign function: InstallEventLoopTimerInternal")
2: ("foreign function: InstallActivateTSMDocument_Timer")
3: ("foreign function: MyDeactivateTSMDocument")
4: ("foreign function: DeactivateTSMDocument")
5: ("foreign function: -[NSTextInputContext deactivate]")
6: ("foreign function: +[NSTextInputContext currentInputContext_withFirstResponderSync:]")
7: ("foreign function: -[NSView _setWindow:]")
8: ("foreign function: __21-[NSView _setWindow:]_block_invoke_2")
9: ("foreign function: -[NSView _setWindow:]")
10: ("foreign function: -[NSWindow dealloc]")
11: ("foreign function: -[NSWindow _dealloc]")
12: ("foreign function: _ZN19AutoreleasePoolPage12releaseUntilEPP11objc_object")
13: ("foreign function: objc_autoreleasePoolPop")
14: ("foreign function: glfwDestroyWindow")
15: (%CL-GLFW3:DESTROY-WINDOW :INVALID-VALUE-FOR-UNESCAPED-REGISTER-STORAGE)
16: (CL-GLFW3:DESTROY-WINDOW #.(SB-SYS:INT-SAP #X00352490))
:
GLFW version:
So it seems to fail in code triggered by the glfw
library. I have:
% brew info glfw
glfw: stable 3.3 (bottled), HEAD
:
Startup:
I've also seen it crash with the same exception at start-up, triggered by a different code path:
0] backtrace
Backtrace for: #<SB-THREAD:THREAD "main thread" RUNNING {10005084C3}>
0: ("bogus stack frame")
1: ("foreign function: hashProbe")
2: ("foreign function: -[NSConcreteHashTable addObject:]")
3: ("foreign function: -[NSCGLSurface flushRect:]")
4: ("foreign function: NSCGLSurfaceFlush")
5: ("foreign function: glSwap_Exec")
6: ("foreign function: CGLFlushDrawable")
7: ("foreign function: -[NSOpenGLContext flushBuffer]")
8: ("foreign function: swapBuffersNSGL")
9: (%CL-GLFW3:SWAP-BUFFERS :INVALID-VALUE-FOR-UNESCAPED-REGISTER-STORAGE)
10: ((LAMBDA NIL :IN CL-GLFW3-EXAMPLES:BASIC-WINDOW-EXAMPLE))
:
from cl-glfw3.
I also have the same issue.
- glfw: stable 3.3.8 (bottled), HEAD
- SBCL 2.3.9
- OSX 14.1
from cl-glfw3.
I did a bit of searching and testing and found this reddit thread:
The following code works for me:
(trivial-main-thread:call-in-main-thread
(lambda ()
(sb-int:set-floating-point-modes :traps nil)
(cl-glfw3-examples:basic-window-example)))
from cl-glfw3.
Related Issues (17)
- def-key-callback mod-keys, et al HOT 1
- Mac Issues HOT 16
- cffi-libffi issue on arm (Nvidia Tegra K1) HOT 1
- (ql:quickload :cl-glfw3) fails on LispWorks HOT 1
- does def callback block printing to repl? HOT 1
- Ubuntu: Floating-point-invalid-operation HOT 3
- load alternately name shared libary? HOT 1
- Just a thought about init/terminate HOT 3
- GL crashes when using version 4 HOT 2
- window-hint is undefined outside of %glfw
- Add glfwSetWindowAttrib
- WITH-CONTEXT macro not changing the current context.
- [doubt] Do I need glew?
- the examples don't appear to be rendered as intended (example is provided)
- Error when compiling def-key-callback forms HOT 1
- Does not install with Windows 7 + SBCL + quicklisp + MinGW? HOT 3
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from cl-glfw3.