treeform / boxy

2D GPU rendering with a tiling atlas.
MIT License
102 stars 7 forks source link

error running basic example #15

Closed geohuz closed 2 years ago

geohuz commented 2 years ago

I got error with running the basic example:

Vertex shader compilation failed:
/Users/geohuz/Coding/nim/boxylearn/ex1.nim(15) ex1
/Users/geohuz/.nimble/pkgs/boxy-0.3.1/boxy.nim(237) newBoxy
/Users/geohuz/.nimble/pkgs/boxy-0.3.1/boxy/shaders.nim(226) newShader
/Users/geohuz/.nimble/pkgs/boxy-0.3.1/boxy/shaders.nim(104) compileShaderFiles
/Users/geohuz/.choosenim/toolchains/nim-1.4.8/lib/core/macros.nim(550) getErrorLog
/Users/geohuz/.choosenim/toolchains/nim-1.4.8/lib/system.nim(2510) []
/Users/geohuz/.choosenim/toolchains/nim-1.4.8/lib/system/fatal.nim(49) sysFatal
Error: unhandled exception: value out of range: -2 notin 0 .. 9223372036854775807 [RangeDefect]
Error: execution of an external program failed: '/Users/geohuz/.cache/nim/ex1_d/ex1 '
treeform commented 2 years ago

Thank you for the bug report!

There was an issue on mac, I think I have fixed it: https://github.com/treeform/boxy/commit/325dd5443a7ea9f05c31a798a146fc852a0d16c3

can you try if nimble install boxy@#head fixes it for you?

treeform commented 2 years ago

Feel free to reopen if its still not working.

geohuz commented 2 years ago

Still got the same error after installing head.