-
Notifications
You must be signed in to change notification settings - Fork 89
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
All examples: Could not compile shader_version
.
#200
Comments
When all examples are fixed, I will close this issue. I'm using open gl 3_1 if that's useful info at all. Progress: |
Looks like you need |
In gfx_cube: me@me-desktop ~/piston-examples-master/gfx_cube $ cargo update
Updating git repository `https://github.com/gfx-rs/gfx_device_gl`
Updating git repository `https://github.com/PistonDevelopers/piston`
Updating git repository `https://github.com/pistondevelopers/sdl2_window`
Updating git repository `https://github.com/gfx-rs/gfx_macros`
Updating git repository `https://github.com/PistonDevelopers/vecmath`
Updating git repository `https://github.com/gfx-rs/gfx-rs`
Updating git repository `https://github.com/PistonDevelopers/camera_controllers`
Updating registry `https://github.com/rust-lang/crates.io-index`
Updating git repository `https://github.com/gfx-rs/draw_state`
Updating git repository `https://github.com/pistondevelopers/event`
Updating git repository `https://github.com/pistondevelopers/input`
Updating git repository `https://github.com/pistondevelopers/window`
Updating git repository `https://github.com/PistonDevelopers/event_loop`
Updating git repository `https://github.com/tomaka/clock_ticks`
Updating git repository `https://github.com/pistondevelopers/shader_version`
Updating git repository `https://github.com/bjz/gl-rs`
Updating git repository `https://github.com/AngryLawyer/rust-sdl2`
Updating git repository `https://github.com/PistonDevelopers/quaternion.git`
Updating git repository `https://github.com/PistonDevelopers/cam`
me@me-desktop ~/piston-examples-master/gfx_cube $ cargo build
Compiling sdl2-sys v0.0.34 (https://github.com/AngryLawyer/rust-sdl2#9d04da95)
Compiling gfx v0.2.5 (https://github.com/gfx-rs/gfx-rs#60148fd2)
Compiling sdl2 v0.0.35 (https://github.com/AngryLawyer/rust-sdl2#9d04da95)
Compiling pistoncore-sdl2_window v0.0.8 (https://github.com/pistondevelopers/sdl2_window#5f28c09b)
Compiling gfx_device_gl v0.2.3 (https://github.com/gfx-rs/gfx_device_gl#c2b42b22)
Compiling piston-example-gfx_cube v0.0.0 (file:///home/me/piston-examples-master/gfx_cube)
src/main.rs:13:5: 13:23 error: unresolved import `piston::quack::Set`. Could not find `quack` in `piston`
src/main.rs:13 use piston::quack::Set;
^~~~~~~~~~~~~~~~~~
src/main.rs:14:39: 14:52 error: unresolved import `piston::window::CaptureCursor`. There is no `CaptureCursor` in `piston::window`
src/main.rs:14 use piston::window::{ WindowSettings, CaptureCursor };
^~~~~~~~~~~~~
error: aborting due to 2 previous errors
Could not compile `piston-example-gfx_cube`.
To learn more, run the command again with --verbose.
me@me-desktop ~/piston-examples-master/gfx_cube $ cargo build -v
Fresh libc v0.1.5
Fresh bitflags v0.1.1
Fresh gfx_macros v0.1.10 (https://github.com/gfx-rs/gfx_macros#22981219)
Fresh khronos_api v0.0.5 (https://github.com/bjz/gl-rs#3ebf1cfe)
Fresh rustc-serialize v0.3.12
Fresh shader_version v0.0.5 (https://github.com/pistondevelopers/shader_version#c85ca327)
Fresh khronos_api v0.0.5
Fresh gl_common v0.0.4
Fresh sdl2-sys v0.0.34 (https://github.com/AngryLawyer/rust-sdl2#9d04da95)
Fresh log v0.3.1
Fresh clock_ticks v0.0.5 (https://github.com/tomaka/clock_ticks#cdb6499b)
Fresh gl_common v0.0.4 (https://github.com/bjz/gl-rs#3ebf1cfe)
Fresh xml-rs v0.1.23
Fresh draw_state v0.0.6 (https://github.com/gfx-rs/draw_state#c85bd73d)
Fresh rand v0.3.7
Fresh gl_generator v0.0.23 (https://github.com/bjz/gl-rs#3ebf1cfe)
Fresh gl_generator v0.0.23
Fresh gfx v0.2.5 (https://github.com/gfx-rs/gfx-rs#60148fd2)
Fresh sdl2 v0.0.35 (https://github.com/AngryLawyer/rust-sdl2#9d04da95)
Fresh num v0.1.21
Fresh pistoncore-input v0.0.9 (https://github.com/pistondevelopers/input#cb061504)
Fresh vecmath v0.0.6 (https://github.com/PistonDevelopers/vecmath#19cde554)
Fresh pistoncore-window v0.1.0 (https://github.com/pistondevelopers/window#b2174caf)
Fresh quaternion v0.0.5 (https://github.com/PistonDevelopers/quaternion.git#f6331f0d)
Fresh gl v0.0.12 (https://github.com/bjz/gl-rs#3ebf1cfe)
Fresh gfx_gl v0.1.3
Fresh pistoncore-event_loop v0.0.18 (https://github.com/PistonDevelopers/event_loop#9c099cb5)
Fresh piston3d-cam v0.0.5 (https://github.com/PistonDevelopers/cam#d321919f)
Fresh gfx_device_gl v0.2.3 (https://github.com/gfx-rs/gfx_device_gl#c2b42b22)
Fresh pistoncore-event v0.1.0 (https://github.com/pistondevelopers/event#0b3fffe0)
Fresh piston v0.1.0 (https://github.com/PistonDevelopers/piston#b6c4f15a)
Fresh pistoncore-sdl2_window v0.0.8 (https://github.com/pistondevelopers/sdl2_window#5f28c09b)
Compiling piston-example-gfx_cube v0.0.0 (file:///home/me/piston-examples-master/gfx_cube)
Running `rustc src/main.rs --crate-name piston_example_gfx_cube --crate-type bin -g --out-dir /home/me/piston-examples-master/gfx_cube/target/debug --emit=dep-info,link -L dependency=/home/me/piston-examples-master/gfx_cube/target/debug -L dependency=/home/me/piston-examples-master/gfx_cube/target/debug/deps --extern camera_controllers=/home/me/piston-examples-master/gfx_cube/target/debug/deps/libcamera_controllers-b17c5218204e890d.rlib --extern gfx_device_gl=/home/me/piston-examples-master/gfx_cube/target/debug/deps/libgfx_device_gl-8bc39e9326f736f4.rlib --extern vecmath=/home/me/piston-examples-master/gfx_cube/target/debug/deps/libvecmath-8d97dbf9d32ca84b.rlib --extern gfx_macros=/home/me/piston-examples-master/gfx_cube/target/debug/deps/libgfx_macros-996769dbcfbdc64a.so --extern sdl2_window=/home/me/piston-examples-master/gfx_cube/target/debug/deps/libsdl2_window-9404e8e0ea35ff63.rlib --extern piston=/home/me/piston-examples-master/gfx_cube/target/debug/deps/libpiston-11b22452dfd51e1b.rlib --extern gfx=/home/me/piston-examples-master/gfx_cube/target/debug/deps/libgfx-071b9a54eef8c4dd.rlib`
Fresh camera_controllers v0.0.2 (https://github.com/PistonDevelopers/camera_controllers#3a4cb227)
src/main.rs:13:5: 13:23 error: unresolved import `piston::quack::Set`. Could not find `quack` in `piston`
src/main.rs:13 use piston::quack::Set;
^~~~~~~~~~~~~~~~~~
src/main.rs:14:39: 14:52 error: unresolved import `piston::window::CaptureCursor`. There is no `CaptureCursor` in `piston::window`
src/main.rs:14 use piston::window::{ WindowSettings, CaptureCursor };
^~~~~~~~~~~~~
error: aborting due to 2 previous errors
Could not compile `piston-example-gfx_cube`.
Caused by:
Process didn't exit successfully: `rustc src/main.rs --crate-name piston_example_gfx_cube --crate-type bin -g --out-dir /home/me/piston-examples-master/gfx_cube/target/debug --emit=dep-info,link -L dependency=/home/me/piston-examples-master/gfx_cube/target/debug -L dependency=/home/me/piston-examples-master/gfx_cube/target/debug/deps --extern camera_controllers=/home/me/piston-examples-master/gfx_cube/target/debug/deps/libcamera_controllers-b17c5218204e890d.rlib --extern gfx_device_gl=/home/me/piston-examples-master/gfx_cube/target/debug/deps/libgfx_device_gl-8bc39e9326f736f4.rlib --extern vecmath=/home/me/piston-examples-master/gfx_cube/target/debug/deps/libvecmath-8d97dbf9d32ca84b.rlib --extern gfx_macros=/home/me/piston-examples-master/gfx_cube/target/debug/deps/libgfx_macros-996769dbcfbdc64a.so --extern sdl2_window=/home/me/piston-examples-master/gfx_cube/target/debug/deps/libsdl2_window-9404e8e0ea35ff63.rlib --extern piston=/home/me/piston-examples-master/gfx_cube/target/debug/deps/libpiston-11b22452dfd51e1b.rlib --extern gfx=/home/me/piston-examples-master/gfx_cube/target/debug/deps/libgfx-071b9a54eef8c4dd.rlib` (exit code: 101)
me@me-desktop ~/piston-examples-master/gfx_cube $ |
You need to update repo |
This is a new idea to me. I cannot find a good starting place to read up on this. I typed |
Change directory to |
If you didn't |
me@me-desktop ~/projects/piston-examples/gfx_cube $ cargo run
Compiling piston-example-gfx_cube v0.0.0 (file:///home/me/projects/piston-examples/gfx_cube)
Running `target/debug/piston-example-gfx_cube`
thread '<main>' panicked at 'Invalid GLenum passed to `get_string`: 1f03', /home/me/.cargo/git/checkouts/gfx_device_gl-ceded8a9e751584e/master/src/info.rs:131
An unknown error occurred
To learn more, run the command again with --verbose.
me@me-desktop ~/projects/piston-examples/gfx_cube $ |
You need to open issue on gfx-rs/gfx_device_gl. |
@KingOfThePirates You are been unlucky with all these breaking changes! |
Just making the world a better place. I'm glad to be the first noobie to blaze this awesome trail :) P.S. Having gl 3.1 instead of 3.2 wouldn't be the problem would it? |
Ok, so |
For an experiment, try changing GL version to 3.1 in here |
Ideally, your (@bvssvni) SDL2 window should pick a version automatically. Forcing 3.2 makes it fail on the low-end systems, forcing 2.1 makes it fail on OSX. |
@Potpourri huh, I see now. Maybe it's an SDL bug after all? @KingOfThePirates could you please try running gfx_examples/cube? It should just work. |
As long as the cube isn't intended to move, it works. |
Thanks for the confirmation! So, again, this doesn't look to be a gfx issue. The context SDL2 creates for us is bad. Are there any piston samples that use GLFW/Glutin? |
|
I'm not sure, but this works if I change _3_2 to _3_1: PistonDevelopers/Piston-Tutorials/getting-started |
ok, so it's either SDL2 itself, or sdl_window |
Interestingly why this works with PistonDevelopers/Piston-Tutorials/getting-started? @KingOfThePirates can you try run other piston-examples? |
Oh, I didn't realize the tutorial is also using SDL2. The difference is perhaps the fact |
Output and call back: me@me-desktop ~/projects/piston-examples/gfx_cube $ cargo run -v
Fresh khronos_api v0.0.5
Fresh bitflags v0.1.1
Fresh rustc-serialize v0.3.12
Fresh libc v0.1.6
Fresh gfx_macros v0.1.10 (https://github.com/gfx-rs/gfx_macros#22981219)
Fresh shader_version v0.0.6 (https://github.com/pistondevelopers/shader_version#14aa73be)
Fresh khronos_api v0.0.5 (https://github.com/bjz/gl-rs#3ebf1cfe)
Fresh draw_state v0.0.7 (https://github.com/gfx-rs/draw_state#44a0aed1)
Fresh xml-rs v0.1.23
Fresh clock_ticks v0.0.5 (https://github.com/tomaka/clock_ticks#cdb6499b)
Fresh log v0.3.1
Fresh gl_common v0.0.4 (https://github.com/bjz/gl-rs#3ebf1cfe)
Fresh sdl2-sys v0.0.34 (https://github.com/AngryLawyer/rust-sdl2#8e00e516)
Fresh gl_common v0.0.4
Fresh rand v0.3.7
Fresh gl_generator v0.0.23 (https://github.com/bjz/gl-rs#3ebf1cfe)
Fresh gfx v0.2.5 (https://github.com/gfx-rs/gfx-rs#3437b905)
Fresh gl_generator v0.0.23
Fresh sdl2 v0.0.35 (https://github.com/AngryLawyer/rust-sdl2#8e00e516)
Fresh num v0.1.22
Fresh pistoncore-input v0.0.9 (https://github.com/pistondevelopers/input#cb061504)
Fresh vecmath v0.0.6 (https://github.com/PistonDevelopers/vecmath#19cde554)
Fresh pistoncore-window v0.1.0 (https://github.com/pistondevelopers/window#3fbf2cc2)
Fresh quaternion v0.0.5 (https://github.com/PistonDevelopers/quaternion.git#f6331f0d)
Fresh gl v0.0.12 (https://github.com/bjz/gl-rs#3ebf1cfe)
Fresh gfx_gl v0.1.3
Fresh pistoncore-event_loop v0.1.0 (https://github.com/PistonDevelopers/event_loop#f353b457)
Fresh piston3d-cam v0.0.5 (https://github.com/PistonDevelopers/cam#d321919f)
Fresh gfx_device_gl v0.2.3 (https://github.com/gfx-rs/gfx_device_gl#803ac30e)
Fresh pistoncore-event v0.1.0 (https://github.com/pistondevelopers/event#0db9e0fa)
Fresh piston v0.1.0 (https://github.com/PistonDevelopers/piston#a175c868)
Fresh camera_controllers v0.0.2 (https://github.com/PistonDevelopers/camera_controllers#3a4cb227)
Fresh pistoncore-sdl2_window v0.0.8 (https://github.com/pistondevelopers/sdl2_window#9a39e0dd)
Fresh piston-example-gfx_cube v0.0.0 (file:///home/me/projects/piston-examples/gfx_cube)
Running `target/debug/piston-example-gfx_cube`
thread '<main>' panicked at 'Error after executing command BindProgram(0): InvalidEnum', /home/me/.cargo/git/checkouts/gfx_device_gl-ceded8a9e751584e/master/src/lib.rs:194
Process didn't exit successfully: `target/debug/piston-example-gfx_cube` (exit code: 101)
me@me-desktop ~/projects/piston-examples/gfx_cube $ RUST_BACKTRACE=1 ./target/debug/piston-example-gfx_cube
thread '<main>' panicked at 'Error after executing command BindProgram(0): InvalidEnum', /home/me/.cargo/git/checkouts/gfx_device_gl-ceded8a9e751584e/master/src/lib.rs:194
stack backtrace:
1: 0x7faf9cede7b8 - sys::backtrace::write::h4618bbda30a2c1fakHC
2: 0x7faf9cee2347 - panicking::on_panic::h94b32ff0a2406463uUI
3: 0x7faf9ced4e53 - rt::unwind::begin_unwind_inner::h310b6bce2d1d1820CzI
4: 0x7faf9ced523f - rt::unwind::begin_unwind_fmt::h36e3246309d9c41dgyI
5: 0x7faf9cea0792 - Device::check::h64e7ba404d44dc6fpqd
at /home/me/projects/piston-examples/gfx_cube/<std macros>:9
6: 0x7faf9cea62d7 - Device::process::h471f960cccf658d00rd
at /home/me/.cargo/git/checkouts/gfx_device_gl-ceded8a9e751584e/master/src/lib.rs:540
7: 0x7faf9cea79d5 - Device.gfx..Device::reset_state::h60054d86db30abd2M0d
at /home/me/.cargo/git/checkouts/gfx_device_gl-ceded8a9e751584e/master/src/lib.rs:555
8: 0x7faf9cea7c40 - Device.gfx..Device::submit::h5ae65c1207968eb2s1d
at /home/me/.cargo/git/checkouts/gfx_device_gl-ceded8a9e751584e/master/src/lib.rs:561
9: 0x7faf9cdcf25f - render::ext::device::Graphics<D, F>::end_frame::h2827007577518872091
at /home/me/.cargo/git/checkouts/gfx-rs-93bce98024942039/master/src/render/ext/device.rs:74
10: 0x7faf9cd58330 - main::h71cd5ed00d645e32Jka
at src/main.rs:245
11: 0x7faf9cee6068 - rust_try_inner
12: 0x7faf9cee6055 - rust_try
13: 0x7faf9cee3e9e - rt::lang_start::ha69071984e32814cXOI
14: 0x7faf9cd585d4 - main
15: 0x7faf9c251ec4 - __libc_start_main
16: 0x7faf9cd55c48 - <unknown>
17: 0x0 - <unknown>
me@me-desktop ~/projects/piston-examples/gfx_cube $ Cargo.toml [package]
name = "piston-example-gfx_cube"
version = "0.0.0"
authors = ["Your Name <your@email.com>"]
keywords = []
[[bin]]
name = "piston-example-gfx_cube"
path = "src/main.rs"
[dependencies.piston]
git = "https://github.com/PistonDevelopers/piston"
[dependencies.pistoncore-sdl2_window]
git = "https://github.com/pistondevelopers/sdl2_window"
[dependencies.camera_controllers]
git = "https://github.com/PistonDevelopers/camera_controllers"
[dependencies.vecmath]
git = "https://github.com/PistonDevelopers/vecmath"
[dependencies.gfx]
git = "https://github.com/gfx-rs/gfx-rs"
[dependencies.gfx_device_gl]
git = "https://github.com/gfx-rs/gfx_device_gl"
[dependencies.gfx_macros]
git = "https://github.com/gfx-rs/gfx_macros"
Output: me@me-desktop ~/projects/piston-examples/user_input $ cargo run -v
Updating git repository `https://github.com/pistondevelopers/sdl2_window`
Unable to update https://github.com/pistondevelopers/sdl2_window
Caused by:
failed to fetch into /home/me/.cargo/git/db/sdl2_window-99fd7f1ca94d6f5b
Caused by:
[12] SSL error: error:140E0114:SSL routines:SSL_shutdown:uninitialized
me@me-desktop ~/projects/piston-examples/user_input $ Cargo.toml [package]
name = "piston-example-user_input"
version = "0.0.0"
authors = ["Your Name <your@email.com>"]
keywords = []
[[bin]]
name = "piston-example-user_input"
path = "src/main.rs"
[dependencies.piston]
git = "https://github.com/PistonDevelopers/piston"
[dependencies.pistoncore-sdl2_window]
git = "https://github.com/pistondevelopers/sdl2_window"
optional = true
[dependencies.pistoncore-glfw_window]
git = "https://github.com/pistondevelopers/glfw_window"
optional = true
[dependencies.pistoncore-glutin_window]
git = "https://github.com/pistondevelopers/glutin_window"
optional = true
[dependencies.piston2d-opengl_graphics]
git = "https://github.com/pistondevelopers/opengl_graphics"
[dependencies.piston2d-graphics]
git = "https://github.com/pistondevelopers/graphics"
[features]
default = ["include_glutin"]
include_sdl2 = ["pistoncore-sdl2_window"]
include_glfw = ["pistoncore-glfw_window"]
include_glutin = ["pistoncore-glutin_window"] |
This is a nice report, thanks! Could you try disabling MSAA for |
Done for the day- at work :( Can get back to it tomorrow or overmorrow. |
@KingOfThePirates I'm glad to know that you are not blocked by anything, at least. In the worst case just don't use SDL2. |
So hard to get a window working now days! |
Updated rust nightly. Commenting out me@me-desktop ~/projects/piston-examples/gfx_cube $ cargo run -v
Fresh libc v0.1.6
Fresh khronos_api v0.0.5 (https://github.com/bjz/gl-rs#3ebf1cfe)
Fresh khronos_api v0.0.5
Fresh rustc-serialize v0.3.12
Fresh bitflags v0.1.1
Fresh gfx_macros v0.1.10 (https://github.com/gfx-rs/gfx_macros#22981219)
Fresh shader_version v0.0.6 (https://github.com/pistondevelopers/shader_version#14aa73be)
Fresh gl_common v0.0.4
Fresh log v0.3.1
Fresh sdl2-sys v0.0.34 (https://github.com/AngryLawyer/rust-sdl2#8e00e516)
Fresh gl_common v0.0.4 (https://github.com/bjz/gl-rs#3ebf1cfe)
Fresh clock_ticks v0.0.5 (https://github.com/tomaka/clock_ticks#cdb6499b)
Fresh draw_state v0.0.7 (https://github.com/gfx-rs/draw_state#44a0aed1)
Fresh xml-rs v0.1.23
Fresh rand v0.3.7
Fresh gfx v0.2.5 (https://github.com/gfx-rs/gfx-rs#3437b905)
Fresh gl_generator v0.0.23 (https://github.com/bjz/gl-rs#3ebf1cfe)
Fresh gl_generator v0.0.23
Fresh sdl2 v0.0.35 (https://github.com/AngryLawyer/rust-sdl2#8e00e516)
Fresh num v0.1.22
Fresh vecmath v0.0.6 (https://github.com/PistonDevelopers/vecmath#19cde554)
Fresh pistoncore-input v0.0.9 (https://github.com/pistondevelopers/input#cb061504)
Fresh quaternion v0.0.5 (https://github.com/PistonDevelopers/quaternion.git#f6331f0d)
Fresh pistoncore-window v0.1.0 (https://github.com/pistondevelopers/window#3fbf2cc2)
Fresh gl v0.0.12 (https://github.com/bjz/gl-rs#3ebf1cfe)
Fresh gfx_gl v0.1.3
Fresh piston3d-cam v0.0.5 (https://github.com/PistonDevelopers/cam#d321919f)
Fresh pistoncore-event_loop v0.1.0 (https://github.com/PistonDevelopers/event_loop#f353b457)
Fresh gfx_device_gl v0.2.3 (https://github.com/gfx-rs/gfx_device_gl#803ac30e)
Fresh pistoncore-event v0.1.0 (https://github.com/pistondevelopers/event#0db9e0fa)
Fresh piston v0.1.0 (https://github.com/PistonDevelopers/piston#a175c868)
Fresh camera_controllers v0.0.2 (https://github.com/PistonDevelopers/camera_controllers#3a4cb227)
Fresh pistoncore-sdl2_window v0.0.8 (https://github.com/pistondevelopers/sdl2_window#9a39e0dd)
Fresh piston-example-gfx_cube v0.0.0 (file:///home/me/projects/piston-examples/gfx_cube)
Running `target/debug/piston-example-gfx_cube`
thread '<main>' panicked at 'Error after executing command BindProgram(0): InvalidEnum', /home/me/.cargo/git/checkouts/gfx_device_gl-ceded8a9e751584e/master/src/lib.rs:194
Process didn't exit successfully: `target/debug/piston-example-gfx_cube` (exit code: 101)
me@me-desktop ~/projects/piston-examples/gfx_cube $ RUST_BACKTRACE=1 ./target/debug/piston-example-gfx_cube
thread '<main>' panicked at 'Error after executing command BindProgram(0): InvalidEnum', /home/me/.cargo/git/checkouts/gfx_device_gl-ceded8a9e751584e/master/src/lib.rs:194
stack backtrace:
1: 0x7fb660c0f158 - sys::backtrace::write::ha8214f13d5f3db96kHC
2: 0x7fb660c12e37 - panicking::on_panic::hb755452bdd8e366fuUI
3: 0x7fb660c05773 - rt::unwind::begin_unwind_inner::hb3f2c887fc82a5f5CzI
4: 0x7fb660c05b5f - rt::unwind::begin_unwind_fmt::ha957ac0e2ae8c06agyI
5: 0x7fb660bd1172 - Device::check::h64e7ba404d44dc6fpqd
at /home/me/projects/piston-examples/gfx_cube/<std macros>:9
6: 0x7fb660bd6cb7 - Device::process::h471f960cccf658d00rd
at /home/me/.cargo/git/checkouts/gfx_device_gl-ceded8a9e751584e/master/src/lib.rs:540
7: 0x7fb660bd83b5 - Device.gfx..Device::reset_state::h60054d86db30abd2M0d
at /home/me/.cargo/git/checkouts/gfx_device_gl-ceded8a9e751584e/master/src/lib.rs:555
8: 0x7fb660bd8620 - Device.gfx..Device::submit::h5ae65c1207968eb2s1d
at /home/me/.cargo/git/checkouts/gfx_device_gl-ceded8a9e751584e/master/src/lib.rs:561
9: 0x7fb660aff25f - render::ext::device::Graphics<D, F>::end_frame::h2797849475514389144
at /home/me/.cargo/git/checkouts/gfx-rs-93bce98024942039/master/src/render/ext/device.rs:74
10: 0x7fb660a8830e - main::hcc948caee18b5026Jka
at src/main.rs:245
11: 0x7fb660c16b58 - rust_try_inner
12: 0x7fb660c16b45 - rust_try
13: 0x7fb660c1498e - rt::lang_start::h03ddd043f7527d51XOI
14: 0x7fb660a885b4 - main
15: 0x7fb65ff81ec4 - __libc_start_main
16: 0x7fb660a85c48 - <unknown>
17: 0x0 - <unknown>
me@me-desktop ~/projects/piston-examples/gfx_cube $ Commenting out me@me-desktop ~/projects/piston-examples/gfx_cube $ cargo run -v
Fresh libc v0.1.6
Fresh bitflags v0.1.1
Fresh rustc-serialize v0.3.12
Fresh gfx_macros v0.1.10 (https://github.com/gfx-rs/gfx_macros#22981219)
Fresh khronos_api v0.0.5 (https://github.com/bjz/gl-rs#3ebf1cfe)
Fresh shader_version v0.0.6 (https://github.com/pistondevelopers/shader_version#14aa73be)
Fresh khronos_api v0.0.5
Fresh clock_ticks v0.0.5 (https://github.com/tomaka/clock_ticks#cdb6499b)
Fresh gl_common v0.0.4 (https://github.com/bjz/gl-rs#3ebf1cfe)
Fresh gl_common v0.0.4
Fresh log v0.3.1
Fresh xml-rs v0.1.23
Fresh draw_state v0.0.7 (https://github.com/gfx-rs/draw_state#44a0aed1)
Fresh rand v0.3.7
Fresh gl_generator v0.0.23 (https://github.com/bjz/gl-rs#3ebf1cfe)
Fresh gl_generator v0.0.23
Fresh gfx v0.2.5 (https://github.com/gfx-rs/gfx-rs#3437b905)
Fresh num v0.1.22
Fresh pistoncore-input v0.0.9 (https://github.com/pistondevelopers/input#cb061504)
Fresh sdl2-sys v0.1.0 (https://github.com/AngryLawyer/rust-sdl2#103b85c0)
Fresh vecmath v0.0.6 (https://github.com/PistonDevelopers/vecmath#19cde554)
Fresh pistoncore-window v0.1.0 (https://github.com/pistondevelopers/window#3fbf2cc2)
Fresh sdl2 v0.1.0 (https://github.com/AngryLawyer/rust-sdl2#103b85c0)
Fresh quaternion v0.0.5 (https://github.com/PistonDevelopers/quaternion.git#f6331f0d)
Fresh gl v0.0.12 (https://github.com/bjz/gl-rs#3ebf1cfe)
Fresh gfx_gl v0.1.3
Fresh pistoncore-event_loop v0.1.0 (https://github.com/PistonDevelopers/event_loop#7f9a0f0f)
Fresh piston3d-cam v0.0.5 (https://github.com/PistonDevelopers/cam#d321919f)
Fresh gfx_device_gl v0.2.3 (https://github.com/gfx-rs/gfx_device_gl#803ac30e)
Fresh pistoncore-event v0.1.1 (https://github.com/pistondevelopers/event#65b9b575)
Fresh piston v0.1.1 (https://github.com/PistonDevelopers/piston#4039164c)
Fresh pistoncore-sdl2_window v0.0.8 (https://github.com/pistondevelopers/sdl2_window#76bcf3d6)
Fresh camera_controllers v0.0.2 (https://github.com/PistonDevelopers/camera_controllers#3a4cb227)
Fresh piston-example-gfx_cube v0.0.0 (file:///home/me/projects/piston-examples/gfx_cube)
Running `target/debug/piston-example-gfx_cube`
thread '<main>' panicked at 'Error after executing command BindProgram(0): InvalidEnum', /home/me/.cargo/git/checkouts/gfx_device_gl-ceded8a9e751584e/master/src/lib.rs:194
Process didn't exit successfully: `target/debug/piston-example-gfx_cube` (exit code: 101)
me@me-desktop ~/projects/piston-examples/gfx_cube $ RUST_BACKTRACE=1 ./target/debug/piston-example-gfx_cube
thread '<main>' panicked at 'Error after executing command BindProgram(0): InvalidEnum', /home/me/.cargo/git/checkouts/gfx_device_gl-ceded8a9e751584e/master/src/lib.rs:194
stack backtrace:
1: 0x7fd3f1ebe748 - sys::backtrace::write::ha8214f13d5f3db96kHC
2: 0x7fd3f1ec2427 - panicking::on_panic::hb755452bdd8e366fuUI
3: 0x7fd3f1eb4d63 - rt::unwind::begin_unwind_inner::hb3f2c887fc82a5f5CzI
4: 0x7fd3f1eb514f - rt::unwind::begin_unwind_fmt::ha957ac0e2ae8c06agyI
5: 0x7fd3f1e81202 - Device::check::h64e7ba404d44dc6fpqd
at /home/me/projects/piston-examples/gfx_cube/<std macros>:9
6: 0x7fd3f1e86d47 - Device::process::h471f960cccf658d00rd
at /home/me/.cargo/git/checkouts/gfx_device_gl-ceded8a9e751584e/master/src/lib.rs:540
7: 0x7fd3f1e88445 - Device.gfx..Device::reset_state::h60054d86db30abd2M0d
at /home/me/.cargo/git/checkouts/gfx_device_gl-ceded8a9e751584e/master/src/lib.rs:555
8: 0x7fd3f1e886b0 - Device.gfx..Device::submit::h5ae65c1207968eb2s1d
at /home/me/.cargo/git/checkouts/gfx_device_gl-ceded8a9e751584e/master/src/lib.rs:561
9: 0x7fd3f1daf2ef - render::ext::device::Graphics<D, F>::end_frame::h6430282824362030923
at /home/me/.cargo/git/checkouts/gfx-rs-93bce98024942039/master/src/render/ext/device.rs:74
10: 0x7fd3f1d3820a - main::h85ef21506ffc7362Ika
at src/main.rs:241
11: 0x7fd3f1ec6148 - rust_try_inner
12: 0x7fd3f1ec6135 - rust_try
13: 0x7fd3f1ec3f7e - rt::lang_start::h03ddd043f7527d51XOI
14: 0x7fd3f1d384a4 - main
15: 0x7fd3f1231ec4 - __libc_start_main
16: 0x7fd3f1d35c48 - <unknown>
17: 0x0 - <unknown>
me@me-desktop ~/projects/piston-examples/gfx_cube $ |
@KingOfThePirates thanks! so it's not about MSAA then, must be something else that SDL2 is confused about. |
@KingOfThePirates Please let us know if the updated |
It does not work for me. me@me-desktop ~/projects/piston-examples/gfx_cube $ cargo run -v
Fresh glfw-sys v3.1.2
Fresh semver v0.1.19
Fresh bitflags v0.1.1
Fresh shader_version v0.0.6 (https://github.com/PistonDevelopers/shader_version#14aa73be)
Fresh khronos_api v0.0.5 (https://github.com/bjz/gl-rs#13cf0c7a)
Fresh khronos_api v0.0.5
Fresh gfx_macros v0.1.10 (https://github.com/gfx-rs/gfx_macros#22981219)
Fresh libc v0.1.6
Fresh rustc-serialize v0.3.12
Fresh xml-rs v0.1.23
Fresh draw_state v0.0.7 (https://github.com/gfx-rs/draw_state#44a0aed1)
Fresh gl_common v0.0.4 (https://github.com/bjz/gl-rs#13cf0c7a)
Fresh clock_ticks v0.0.5 (https://github.com/tomaka/clock_ticks#cdb6499b)
Fresh log v0.3.1
Fresh gl_common v0.0.4
Fresh gfx v0.2.5 (https://github.com/gfx-rs/gfx-rs#3437b905)
Fresh rand v0.3.7
Fresh glfw v0.0.7 (https://github.com/bjz/glfw-rs#1c490be7)
Fresh gl_generator v0.0.23 (https://github.com/bjz/gl-rs#13cf0c7a)
Fresh gl_generator v0.0.23
Fresh num v0.1.22
Fresh pistoncore-input v0.0.9 (https://github.com/pistondevelopers/input#cb061504)
Fresh vecmath v0.0.6 (https://github.com/PistonDevelopers/vecmath#19cde554)
Fresh pistoncore-window v0.1.0 (https://github.com/pistondevelopers/window#3fbf2cc2)
Fresh quaternion v0.0.5 (https://github.com/PistonDevelopers/quaternion.git#f6331f0d)
Fresh gl v0.0.12 (https://github.com/bjz/gl-rs#13cf0c7a)
Fresh gfx_gl v0.1.3
Fresh pistoncore-event_loop v0.1.0 (https://github.com/PistonDevelopers/event_loop#7f9a0f0f)
Fresh piston3d-cam v0.0.5 (https://github.com/PistonDevelopers/cam#d321919f)
Fresh gfx_device_gl v0.2.3 (https://github.com/gfx-rs/gfx_device_gl#803ac30e)
Fresh pistoncore-event v0.1.1 (https://github.com/pistondevelopers/event#65b9b575)
Fresh piston v0.1.1 (https://github.com/PistonDevelopers/piston#e4b588cf)
Fresh camera_controllers v0.0.2 (https://github.com/PistonDevelopers/camera_controllers#3a4cb227)
Fresh pistoncore-glfw_window v0.0.7 (https://github.com/pistondevelopers/glfw_window#32a3d549)
Fresh piston-example-gfx_cube v0.0.0 (file:///home/me/projects/piston-examples/gfx_cube)
Running `target/debug/piston-example-gfx_cube`
thread '<main>' panicked at 'Error after executing command BindProgram(0): InvalidEnum', /home/me/.cargo/git/checkouts/gfx_device_gl-ceded8a9e751584e/master/src/lib.rs:194
Process didn't exit successfully: `target/debug/piston-example-gfx_cube` (exit code: 101)
me@me-desktop ~/projects/piston-examples/gfx_cube $ RUST_BACKTRACE=1 ./target/debug/piston-example-gfx_cube
thread '<main>' panicked at 'Error after executing command BindProgram(0): InvalidEnum', /home/me/.cargo/git/checkouts/gfx_device_gl-ceded8a9e751584e/master/src/lib.rs:194
stack backtrace:
1: 0x7f66b369b398 - sys::backtrace::write::hf9641444b7fda6aeXNC
2: 0x7f66b369f077 - panicking::on_panic::h303fd804c9aaf1ac1dJ
3: 0x7f66b36900c3 - rt::unwind::begin_unwind_inner::h80d2c1b838ba24769SI
4: 0x7f66b36904af - rt::unwind::begin_unwind_fmt::h3023e8b4dccc364dNRI
5: 0x7f66b363a452 - Device::check::h64e7ba404d44dc6fpqd
at /home/me/projects/piston-examples/gfx_cube/<std macros>:9
6: 0x7f66b363ff97 - Device::process::h471f960cccf658d00rd
at /home/me/.cargo/git/checkouts/gfx_device_gl-ceded8a9e751584e/master/src/lib.rs:540
7: 0x7f66b3641695 - Device.gfx..Device::reset_state::h60054d86db30abd2M0d
at /home/me/.cargo/git/checkouts/gfx_device_gl-ceded8a9e751584e/master/src/lib.rs:555
8: 0x7f66b3641900 - Device.gfx..Device::submit::h5ae65c1207968eb2s1d
at /home/me/.cargo/git/checkouts/gfx_device_gl-ceded8a9e751584e/master/src/lib.rs:561
9: 0x7f66b355414f - render::ext::device::Graphics<D, F>::end_frame::h16669696956679867372
at /home/me/.cargo/git/checkouts/gfx-rs-93bce98024942039/master/src/render/ext/device.rs:74
10: 0x7f66b34cc7ea - main::hc69158ff944791eaIka
at src/main.rs:241
11: 0x7f66b36a2da8 - rust_try_inner
12: 0x7f66b36a2d95 - rust_try
13: 0x7f66b36a0c1e - rt::lang_start::h721c56921a1abf3du8I
14: 0x7f66b34cca84 - main
15: 0x7f66b1ce9ec4 - __libc_start_main
16: 0x7f66b34ca248 - <unknown>
17: 0x0 - <unknown>
me@me-desktop ~/projects/piston-examples/gfx_cube $ Cargo.toml [package]
name = "piston-example-gfx_cube"
version = "0.0.0"
authors = ["Your Name <your@email.com>"]
keywords = []
[[bin]]
name = "piston-example-gfx_cube"
path = "src/main.rs"
[dependencies.piston]
git = "https://github.com/PistonDevelopers/piston"
[dependencies.pistoncore-glfw_window]
git = "https://github.com/pistondevelopers/glfw_window"
[dependencies.camera_controllers]
git = "https://github.com/PistonDevelopers/camera_controllers"
[dependencies.vecmath]
git = "https://github.com/PistonDevelopers/vecmath"
[dependencies.gfx]
git = "https://github.com/gfx-rs/gfx-rs"
[dependencies.gfx_device_gl]
git = "https://github.com/gfx-rs/gfx_device_gl"
[dependencies.gfx_macros]
git = "https://github.com/gfx-rs/gfx_macros"
Shouldn't gfx_cube's Cargo.toml look more similar to user_input's? |
Wow, so it's not about SDL/glfw?.. |
Hmm, it seems it's not SDL2 fault. |
@KingOfThePirates you did change GL version to 3.1 and removed |
I did change the GL version, but not remove |
This is weird. Ok, what's the difference between |
One thing I found is that |
Ok, found 2 bugs: @Potpourri could you have a quick look at it? |
Yes, I know about it, but this not problem in SDL2 for me and other, although I have not support OpenGL profiles. |
@kvark you think the problem in context initialization? |
@Potpourri that's the only thing different between piston's
|
@Potpourri see PistonDevelopers/window#56 What I'd like to see tested is |
conrod/examples/all_widgets.rs works (after changing the GL version, of course) :D |
|
Nvm, still the same problem. |
@KingOfThePirates here are the possible ways to proceed for you:
|
I have a way to move forward (with conrod), but I want to fix this issue. If not now, then when I am better at programming. |
Thank you for both of you guys' help on this. I hope I can be more useful later. |
@KingOfThePirates just a heads up - we are still looking at your issue (on IRC), and we might need you to experiment a bit more. |
@KingOfThePirates please try running the example from https://github.com/cmr/nice_glfw and post the output |
I see it. I'm at work so I can't do any more experimenting. |
@KingOfThePirates you could try anything with SDL2 again, since PistonDevelopers/sdl2_window#164 gives a chance. |
I should have time today to test. About to do some family things this moment. |
What file do you want me to try? |
@KingOfThePirates Try the image, paint and deform examples. |
Before my testing:
image (runs and works) me@me-desktop ~/projects/piston-examples/image $ cargo run
Running `target/debug/piston-example-image`
me@me-desktop ~/projects/piston-examples/image $ cargo test
Compiling piston-example-image v0.0.0 (file:///home/me/projects/piston-examples/image)
src/main.rs:16:1: 37:2 warning: function is never used: `main`, #[warn(dead_code)] on by default
src/main.rs:16 fn main() {
src/main.rs:17 let opengl = OpenGL::_3_1;
src/main.rs:18 let window = Sdl2Window::new(
src/main.rs:19 opengl,
src/main.rs:20 WindowSettings::new("piston-example-image", [300, 300])
src/main.rs:21 .exit_on_esc(true)
...
Running target/debug/piston_example_image-729f6bc212ebc91d
running 0 tests
test result: ok. 0 passed; 0 failed; 0 ignored; 0 measured
me@me-desktop ~/projects/piston-examples/image $ paint (takes a very long time to do me@me-desktop ~/projects/piston-examples/paint $ cargo run
Compiling image v0.3.7 (https://github.com/pistondevelopers/image#22c86266)
Compiling piston2d-opengl_graphics v0.0.14 (https://github.com/pistondevelopers/opengl_graphics#29317965)
Compiling piston-example-paint v0.0.1 (file:///home/me/projects/piston-examples/paint)
Running `target/debug/piston-example-paint`
me@me-desktop ~/projects/piston-examples/paint $ cargo test
Compiling image v0.3.7 (https://github.com/pistondevelopers/image#22c86266)
Compiling piston2d-opengl_graphics v0.0.14 (https://github.com/pistondevelopers/opengl_graphics#29317965)
Compiling piston-example-paint v0.0.1 (file:///home/me/projects/piston-examples/paint)
src/main.rs:14:1: 56:2 warning: function is never used: `main`, #[warn(dead_code)] on by default
src/main.rs:14 fn main() {
src/main.rs:15 let opengl = OpenGL::_3_1;
src/main.rs:16 let (width, height) = (300, 300);
src/main.rs:17 let window = Sdl2Window::new(
src/main.rs:18 opengl,
src/main.rs:19 WindowSettings::new("piston-example-paint", (width, height))
...
Running target/debug/piston_example_paint-133e5d36c0c5e2cf
running 0 tests
test result: ok. 0 passed; 0 failed; 0 ignored; 0 measured
me@me-desktop ~/projects/piston-examples/paint $ deform (runs and works) me@me-desktop ~/projects/piston-examples/deform $ cargo run
Running `target/debug/piston-examples-deform`
Click in the red square and drag.
Toggle grid with G.
Reset grid with R.
me@me-desktop ~/projects/piston-examples/deform $ cargo test
Running target/debug/piston_examples_deform-b45936563bb3a95a
running 0 tests
test result: ok. 0 passed; 0 failed; 0 ignored; 0 measured
me@me-desktop ~/projects/piston-examples/deform $ freetype, sprite, and user_input have similar results, and all work. |
I'll close this, since it seems the issue was figured out. |
I have tried desperately to use this game engine for 10 days now. I might just use C++, but I wanna use rust :(
I originally put this problem on a separate issue, PistonDevelopers/Piston-Tutorials#61, but I wasn't sure if it should have been a new issue instead.
The text was updated successfully, but these errors were encountered: