Craft icon indicating copy to clipboard operation
Craft copied to clipboard

Fullscreen seems not to work on OSX 10.10

Open naxIO opened this issue 11 years ago • 3 comments

After #define FULLSCREEN 1 on my mac it crashes hard with the stuff below.

Any idea how to make fullscreen work? thanks! :)

2014-12-20 20:49:41.141 craft[32759:717822] An uncaught exception was raised
2014-12-20 20:49:41.142 craft[32759:717822] Error (1000) creating CGSWindow
2014-12-20 20:49:41.142 craft[32759:717822] (
    0   CoreFoundation                      0x00007fff917c766c __exceptionPreprocess + 172
    1   libobjc.A.dylib                     0x00007fff8b60176e objc_exception_throw + 43
    2   CoreFoundation                      0x00007fff917c751d +[NSException raise:format:] + 205
    3   AppKit                              0x00007fff943ffa06 _NXCreateWindowWithStyleMask + 457
    4   AppKit                              0x00007fff943ff7a2 _NSCreateWindow + 187
    5   AppKit                              0x00007fff942d7651 -[NSWindow _commonAwake] + 1365
    6   AppKit                              0x00007fff941e56ea -[NSWindow _commonInitFrame:styleMask:backing:defer:] + 864
    7   AppKit                              0x00007fff941e4d26 -[NSWindow _initContent:styleMask:backing:defer:contentView:] + 1477
    8   AppKit                              0x00007fff941e4756 -[NSWindow initWithContentRect:styleMask:backing:defer:] + 45
    9   craft                               0x000000010d8a55e2 _glfwPlatformCreateWindow + 1506
    10  craft                               0x000000010d8a1479 glfwCreateWindow + 649
    11  craft                               0x000000010d73d8e6 main + 150
    12  libdyld.dylib                       0x00007fff906935c9 start + 1
)
2014-12-20 20:49:41.143 craft[32759:717822] *** Terminating app due to uncaught exception 'NSInternalInconsistencyException', reason: 'Error (1000) creating CGSWindow'
*** First throw call stack:
(
    0   CoreFoundation                      0x00007fff917c766c __exceptionPreprocess + 172
    1   libobjc.A.dylib                     0x00007fff8b60176e objc_exception_throw + 43
    2   CoreFoundation                      0x00007fff917c751d +[NSException raise:format:] + 205
    3   AppKit                              0x00007fff943ffa06 _NXCreateWindowWithStyleMask + 457
    4   AppKit                              0x00007fff943ff7a2 _NSCreateWindow + 187
    5   AppKit                              0x00007fff942d7651 -[NSWindow _commonAwake] + 1365
    6   AppKit                              0x00007fff941e56ea -[NSWindow _commonInitFrame:styleMask:backing:defer:] + 864
    7   AppKit                              0x00007fff941e4d26 -[NSWindow _initContent:styleMask:backing:defer:contentView:] + 1477
    8   AppKit                              0x00007fff941e4756 -[NSWindow initWithContentRect:styleMask:backing:defer:] + 45
    9   craft                               0x000000010d8a55e2 _glfwPlatformCreateWindow + 1506
    10  craft                               0x000000010d8a1479 glfwCreateWindow + 649
    11  craft                               0x000000010d73d8e6 main + 150
    12  libdyld.dylib                       0x00007fff906935c9 start + 1
)
libc++abi.dylib: terminating with uncaught exception of type NSException
[1]    32759 abort      ./craft

I suspect some SDL stuff being the cause...

naxIO avatar Dec 20 '14 19:12 naxIO

The project uses GLEW and GLFW rather than SDL, so it shouldn't be anything related to that. I'll try it on my 10.9 box and see if I can replicate the issue.

DanielOaks avatar Dec 28 '14 03:12 DanielOaks

I'd guess GLFW needs to be updated to the latest version, but I haven't tried yet.

fogleman avatar Dec 28 '14 03:12 fogleman

I haven't seen this particular crash, but also had trouble with fullscreen on macOS, tracked down to the retina display resolution. This particular issue may or may not be fixed by https://github.com/fogleman/Craft/pull/178 (which also updates glfw), or at least it works for me on 10.12.

satoshinm avatar Apr 11 '17 07:04 satoshinm