Join GitHub today
GitHub is home to over 40 million developers working together to host and review code, manage projects, and build software together.
Sign upApplication immediately closing on SOME systems #1214
Comments
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
|
Can you try another window backend? You can change the window backend in PistonWindow by inserting a parameter: extern crate sdl2_window;
use sdl2_window::Sdl2Window;
let mut window: PistonWindow<Sdl2Window> = ... |
This comment has been minimized.
This comment has been minimized.
|
It crashes saying: SDL2.dll was not found. After adding that to the directory, it showed the same behaviour, BUT this time it actually printed an error message! With RUST_BACKTRACE=1 this resulted in:
I found some information about this and it seems to be a rust bug fixed long ago (??). After that, I tried building the application on the laptop where this issue was appearing. Apparently the SDL2.lib didn't exist inside the /toolchains/../lib folder. " Since 0.31, this crate supports a feature named "bundled" which downloads SDL2 from source, compiles it and links it automatically. While this should work for any architecture, you will need a C compiler (like gcc, clang, or MS's own compiler) to use this feature properly. " - I do have the MS build tools installed. For now I've copied them from my desktop. When compiling and running in debug mode, this message was printed:
|
This comment has been minimized.
This comment has been minimized.
|
I debugged the executable with Visual Studio Code and found out that on |
This comment has been minimized.
This comment has been minimized.
PvdBerg1998
referenced this issue
Nov 17, 2017
Closed
GL backend shading_language parsing fails #1629
This comment has been minimized.
This comment has been minimized.
|
@bvssvni This issue occurs when enabling anti-aliasing: Edit: only with samples higher than 8, when the number <= 8 it just does not do anything. |
This comment has been minimized.
This comment has been minimized.
|
Thanks for noticing. |
This comment has been minimized.
This comment has been minimized.
C-Bouthoorn
commented
May 2, 2018
|
Not 100% sure this was the problem, but This seems to have been fixed with the latest |
PvdBerg1998 commentedNov 12, 2017
•
edited
I recently finished my first Piston project and it works fine on my main development desktop (Win10).
When I open my executable on my laptop (or any other machine I've tested on), the window opens and then closes immediately.
The executable quits with code 0, no errors are thrown. I've tried debugging it with Visual Studio Code and found that it randomly returns when nothing important is happening. It seems to be panicking though (seen in the stack frames).
I'm creating an issue for this as I'm pretty sure it's some internal error in Piston. Might be related to #1207 and #1202.
Edit: both the opengl and gfx backends show the same behaviour. I've switched to using piston_window now (gfx).