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

Error: GLFW ERROR: code FORMAT_UNAVAILABLE msg: NSGL: Failed to find a suitable pixel format #3

Closed
scls19fr opened this issue Jan 11, 2019 · 3 comments

Comments

@scls19fr
Copy link

$ julia10 demo/overview.jl
┌ Error: GLFW ERROR: code FORMAT_UNAVAILABLE msg: NSGL: Failed to find a suitable pixel format
└ @ Main ~/.julia/dev/Nuklear/demo/overview.jl:27

signal (11): Segmentation fault: 11
in expression starting at /Users/scls/.julia/dev/Nuklear/demo/overview.jl:31
glfwSetWindowUserPointer at /Users/scls/.julia/packages/Homebrew/l8kUw/deps/usr/lib/libglfw.dylib (unknown line)
CreateWindow at /Users/scls/.julia/packages/GLFW/69NQ7/src/glfw3.jl:490
CreateWindow at /Users/scls/.julia/packages/GLFW/69NQ7/src/glfw3.jl:487 [inlined]
CreateWindow at /Users/scls/.julia/packages/GLFW/69NQ7/src/glfw3.jl:487
unknown function (ip: 0x11b016921)
jl_fptr_trampoline at /Users/osx/buildbot/slave/package_osx64/build/src/gf.c:1831
do_call at /Users/osx/buildbot/slave/package_osx64/build/src/interpreter.c:324
eval_stmt_value at /Users/osx/buildbot/slave/package_osx64/build/src/interpreter.c:363 [inlined]
eval_body at /Users/osx/buildbot/slave/package_osx64/build/src/interpreter.c:682
jl_interpret_toplevel_thunk_callback at /Users/osx/buildbot/slave/package_osx64/build/src/interpreter.c:806
unknown function (ip: 0xfffffffffffffffe)
unknown function (ip: 0x1103dc14f)
unknown function (ip: 0x0)
jl_interpret_toplevel_thunk at /Users/osx/buildbot/slave/package_osx64/build/src/interpreter.c:815
jl_toplevel_eval_flex at /Users/osx/buildbot/slave/package_osx64/build/src/toplevel.c:805
jl_parse_eval_all at /Users/osx/buildbot/slave/package_osx64/build/src/ast.c:838
jl_load at /Users/osx/buildbot/slave/package_osx64/build/src/toplevel.c:839 [inlined]
jl_load_ at /Users/osx/buildbot/slave/package_osx64/build/src/toplevel.c:846
include at ./boot.jl:317 [inlined]
include_relative at ./loading.jl:1044
include at ./sysimg.jl:29
exec_options at ./client.jl:231
_start at ./client.jl:425
true_main at /Users/scls/bin/julia10 (unknown line)
main at /Users/scls/bin/julia10 (unknown line)
Allocations: 3723717 (Pool: 3722511; Big: 1206); GC: 7
Segmentation fault: 11
@Gnimuc
Copy link
Owner

Gnimuc commented Jan 11, 2019

@scls19fr This SO post suggests setting GLFW.WindowHint(GLFW_STENCIL_BITS, 8);, but I guess the real reason is the default OpenGL version is too high for your hardware. I've downgraded the default OpenGL version on master.

@Gnimuc
Copy link
Owner

Gnimuc commented Jan 11, 2019

BTW, I'm still working on porting those overview C examples to Julia, so it's still buggy.

@scls19fr
Copy link
Author

No more segmentation fault. Thanks @Gnimuc

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