floooh / sokol-nim

nim bindings for https://github.com/floooh/sokol
MIT License
76 stars 14 forks source link

Fails to run on linux: Illegal storage access. #5

Closed radgeRayden closed 3 years ago

radgeRayden commented 5 years ago

I know it's said to be untested on linux, but I figured I'd file an issue anyway to let you know and hopefully this can get fixed (or I might figure it out sometime). This is the traceback, I tried running cube but all examples I tested have the same issue.

Traceback (most recent call last)
cube.nim(22)             cube
gfx.nim(547)             setup
SIGSEGV: Illegal storage access. (Attempt to read from nil?)

line 22 is sg.setup.

floooh commented 5 years ago

Thanks for taking the time to file the bug report :)! I need to get back to the nim bindings at one point, because a lot has happened since then. Here's what I have in mind:

geotre commented 5 years ago

Any news on linux support? I get the same error as above

floooh commented 5 years ago

nope, haven't looked at it yet, sorry

melMass commented 4 years ago

Did you made the bindings all by hand ?

floooh commented 4 years ago

Did you made the bindings all by hand ?

I don't remember :D It's definitely not completely generated though since I had to add a few helpers. Maybe converted with a tool and then "touched up".

floooh commented 3 years ago

Apparently this is fixed not with https://github.com/floooh/sokol-nim/pull/8 (haven't tested myself yet on Linux though)