Skip to content

Gloss crashes on mac #3

Open
Open
@turion

Description

Apparently on a mac, starting gloss/GLUT crashes:

$ cabal repl
Build profile: -w ghc-8.8.3 -O1
In order, the following will be built (use -v for more details):
 - essence-of-live-coding-tutorial-0.2.0.1 (exe:essence-of-live-coding-tutorial) (first run)
Preprocessing executable 'essence-of-live-coding-tutorial' for essence-of-live-coding-tutorial-0.2.0.1..
GHCi, version 8.8.3: https://www.haskell.org/ghc/  :? for help
Loaded GHCi configuration from /Users/ninagermanus/repos/essence-of-live-coding-tutorial/.ghci
[1 of 1] Compiling Main             ( Main.hs, interpreted )
Ok, one module loaded.
*Main LiveCoding LiveCoding.GHCi> :livelaunch
*Main LiveCoding LiveCoding.GHCi> 2020-08-14 14:44:29.130 ghc[27231:4244082] WARNING: NSWindow drag regions should only be invalidated on the Main Thread! This will throw an exception in the future. Called from (
	0   AppKit                              0x00007fff366e5607 -[NSWindow(NSWindow_Theme) _postWindowNeedsToResetDragMarginsUnlessPostingDisabled] + 378
	1   AppKit                              0x00007fff366e29f7 -[NSWindow _initContent:styleMask:backing:defer:contentView:] + 1479
	2   AppKit                              0x00007fff366e242a -[NSWindow initWithContentRect:styleMask:backing:defer:] + 45
	3   GLUT                                0x00007fff3b699219 -[GLUTWindow _initWithContentRect:styleMask:contentView:] + 84
	4   GLUT                                0x00007fff3b699413 -[GLUTWindow initWithContentRect:pixelFormat:windowID:gameMode:treatAsSingle:] + 353
	5   GLUT                                0x00007fff3b6ab2b8 __glutCreateWindow + 578
	6   GLUT                                0x00007fff3b6ab4ae glutCreateWindow + 239
	7   libHSGLUT-2.7.0.15-3FcmcLd3ijWBc9FSar8jLE-ghc8.8.3.dylib 0x000000010e54057a LcWxZ_info + 114
)
EventResize (600,786)
2020-08-14 14:44:29.251 ghc[27231:4244082] GLUT Fatal Error: internal error: NSInternalInconsistencyException, reason: nextEventMatchingMask should only be called from the Main Thread!

cabal: repl failed for exe:essence-of-live-coding-tutorial from
essence-of-live-coding-tutorial-0.2.0.1.

Found by @pixln

Metadata

Assignees

Labels

No labels
No labels

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions