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

Examples fail to run #3

Closed
matkuki opened this issue Jan 1, 2022 · 6 comments
Closed

Examples fail to run #3

matkuki opened this issue Jan 1, 2022 · 6 comments

Comments

@matkuki
Copy link

matkuki commented Jan 1, 2022

Hi,

Specs:

  • Windows 10 x64
  • Nim devel
  • installed nim-nanovg with nimble install nanovg

I tried building a couple of examples:

  • demo.nim runs and immediately stops without an error
  • example_fbo.nim throws:
Traceback (most recent call last)
...\examples\example_fbo.nim(220) example_fbo
...\examples\example_fbo.nim(144) main
...\examples\example_fbo.nim(22) renderPattern
SIGSEGV: Illegal storage access. (Attempt to read from nil?)

Can this be fixed?

Thanks

@matkuki
Copy link
Author

matkuki commented Jan 3, 2022

@johnnovak
Is this library still active?

@johnnovak
Copy link
Owner

Yeah, kinda active, but it's a hobby project, so there might be long stretches of inactivity.

You can downgrade to Nim 1.6.0 and it will work. I'm not quite sure why it fails with this error on 1.6.2... I'll figure it out eventually.

@matkuki
Copy link
Author

matkuki commented Jan 6, 2022

Thanks 👍

@matkuki matkuki closed this as completed Jan 6, 2022
@johnnovak
Copy link
Owner

johnnovak commented Jan 15, 2022

@matkuki FYI, the crash happens because of a Nim compiler regression introduced in 1.6.2, it has nothing to do with the library itself:

nim-lang/Nim#19342 (comment)

I expect a patch release will be released soon. In the interim, just use 1.6.0 as suggested before.

@matkuki
Copy link
Author

matkuki commented Jan 15, 2022

Thanks for the info 👍👍

@johnnovak
Copy link
Owner

johnnovak commented Feb 13, 2022

FYI @matkuki , Nim 1.6.4 has been released and now everything works correctly. I've also updated the library and have added two more examples.

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