-
Notifications
You must be signed in to change notification settings - Fork 33
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
Window not opening under certain conditions in --release builds #26
Comments
The window does appear but is closed immediately, while the loop continues running. Using Maybe LLVM's optimizations are reordering some statements, or inlines variables on the stack which triggers an issue with the SDL renderer... |
I found that I had to use both However, you're right that this does fix it. Seems like the kind of thing that shouldn't happen... |
I realize this issue is 3 years old (I didn't check if any other issues reference this specific problem) but I'm pretty sure I've just encountered the same issue and after longer than I'm willing to admit of messing around and debugging, I've concluded that the GC is behind all this. I inserted a manual What all this means is a simple SDL loop which uses I don't know enough about crystal's internals or garbage collection in general to know how to prevent this in the library itself, however just using Moreover, if the program isn't intensive enough to really require the GC to act, this bug won't actually arise. I do not know if the |
Thanks for the investigation! That sounds quite plausible. |
I've run into a very strange issue using this shard. I first thought it was a compiler bug and still somewhat suspect that it may be. However, I was recommended to create an issue here.
The contents of this issue are here: crystal-lang/crystal#7012
The text was updated successfully, but these errors were encountered: