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

Renderer Example: option 3 and above not working (Windows) #125

Closed
5k3105 opened this issue Nov 23, 2016 · 3 comments
Closed

Renderer Example: option 3 and above not working (Windows) #125

5k3105 opened this issue Nov 23, 2016 · 3 comments

Comments

@5k3105
Copy link
Contributor

5k3105 commented Nov 23, 2016

Just a heads up. I've installed it on two separate machines. First 2 examples work. Ex 3 and up crash (window disappears, process ends).

@therecipe
Copy link
Owner

Hey

Thanks for the info :)
It seems to crash if it's compile for windows/386 but works when it's compiled for windows/amd64 (msys2).
I will look into this.

@therecipe
Copy link
Owner

Okay, I looked into this again.
The problems seems to be here: https://github.com/fogleman/pt/blob/master/pt/scene.go#L32
This will crash on 32-bit systems in combination with cgo.

And here are some infos I gathered about the issue:
https://golang.org/pkg/sync/atomic/#pkg-note-BUG
golang/go#9959
https://groups.google.com/forum/#!topic/etcd-dev/CmYma0-eFDo

If you re-order the struct https://github.com/fogleman/pt/blob/master/pt/scene.go#L5-L13 and move rays to the top it solves the problem for example 4 and 5.
Example 3 still won't work through. (But it doesn't even really work on windows/amd64 either)

I will fill an issue, so that this will hopefully get fixed upstream.

@5k3105
Copy link
Contributor Author

5k3105 commented Jun 8, 2017

No worries. Thanks!

@5k3105 5k3105 closed this as completed Jun 8, 2017
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