{"action":"created","issue":{"url":"https://api.github.com/repos/gfx-rs/gfx/issues/979","repository_url":"https://api.github.com/repos/gfx-rs/gfx","labels_url":"https://api.github.com/repos/gfx-rs/gfx/issues/979/labels{/name}","comments_url":"https://api.github.com/repos/gfx-rs/gfx/issues/979/comments","events_url":"https://api.github.com/repos/gfx-rs/gfx/issues/979/events","html_url":"https://github.com/gfx-rs/gfx/issues/979","id":156403994,"number":979,"title":"thread '<main>' panicked at 'Error after executing command BindProgram(0): InvalidOperation'","user":{"login":"bluecereal","id":16846282,"avatar_url":"https://avatars.githubusercontent.com/u/16846282?v=3","gravatar_id":"","url":"https://api.github.com/users/bluecereal","html_url":"https://github.com/bluecereal","followers_url":"https://api.github.com/users/bluecereal/followers","following_url":"https://api.github.com/users/bluecereal/following{/other_user}","gists_url":"https://api.github.com/users/bluecereal/gists{/gist_id}","starred_url":"https://api.github.com/users/bluecereal/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/bluecereal/subscriptions","organizations_url":"https://api.github.com/users/bluecereal/orgs","repos_url":"https://api.github.com/users/bluecereal/repos","events_url":"https://api.github.com/users/bluecereal/events{/privacy}","received_events_url":"https://api.github.com/users/bluecereal/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/gfx-rs/gfx/labels/backend:%20OpenGL","name":"backend: OpenGL","color":"f7c6c7"},{"url":"https://api.github.com/repos/gfx-rs/gfx/labels/type:%20bug","name":"type: bug","color":"006b75"},{"url":"https://api.github.com/repos/gfx-rs/gfx/labels/value:%20high","name":"value: high","color":"5319e7"}],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":31,"created_at":"2016-05-24T01:57:18Z","updated_at":"2016-05-25T02:33:36Z","closed_at":null,"body":"I'm getting an error when running the following code: \r\n\r\n```\r\nextern crate piston_window;\r\nuse piston_window::*;\r\nfn main() {\r\n    let mut window: PistonWindow = PistonWindow::new(OpenGL::V2_1, 0,\r\n    WindowSettings::new(\"Hello\", (800,600))\r\n      .opengl(OpenGL::V2_1)\r\n      .exit_on_esc(true)\r\n      .srgb(false)\r\n      .build() // hack around default srgb(true) (builds GlutinWindow instead of PistonWindow)\r\n      .unwrap());\r\n    while let Some(e) = window.next() {\r\n        window.draw_2d(&e, |_c, g| {\r\n            clear([0.5, 1.0, 0.5, 1.0], g);\r\n        });\r\n    }\r\n}\r\n```\r\n\r\n\r\n\r\nhere is the stack backtrace: \r\n```\r\n`thread '<main>' panicked at 'Error after executing command BindProgram(0): InvalidOperation', /home/harrison/.multirust/toolchains/beta/cargo/registry/src/github.com-88ac128001ac3a9a/gfx_device_gl-0.10.0/src/lib.rs:283\r\nstack backtrace:\r\n\r\n   1:     0x562aec0d2c90 - std::sys::backtrace::tracing::imp::write::h25f26530b3b48a54\r\n   2:     0x562aec0d57bb - std::panicking::default_hook::_$u7b$$u7b$closure$u7d$$u7d$::hb497e646e4148afc\r\n   3:     0x562aec0d5443 - std::panicking::default_hook::hd57825f8b5247927\r\n   4:     0x562aec0cbf1f - std::sys_common::unwind::begin_unwind_inner::hf40013815c474ad4\r\n   5:     0x562aec0ccbc8 - std::sys_common::unwind::begin_unwind_fmt::h42a3b0f6333a2a21\r\n   6:     0x562aebf76c8f - gfx_device_gl::Device::check::h4290e3674196ac1e\r\n                        at /home/harrison/Projects/rust/testing_piston/src/<std macros>:8\r\n   7:     0x562aebf7e69d - gfx_device_gl::Device::process::ha9e4c244f4e4d126\r\n                        at /home/harrison/.multirust/toolchains/beta/cargo/registry/src/github.com-88ac128001ac3a9a/gfx_device_gl-0.10.0/src/lib.rs:665\r\n   8:     0x562aebf7a04e - gfx_device_gl::Device::reset_state::hd0590a45498c77d8\r\n                        at /home/harrison/.multirust/toolchains/beta/cargo/registry/src/github.com-88ac128001ac3a9a/gfx_device_gl-0.10.0/src/lib.rs:378\r\n   9:     0x562aebf88b02 - _<Device as gfx_core..Device>::submit::hd22aed74b4a07f91\r\n                        at /home/harrison/.multirust/toolchains/beta/cargo/registry/src/github.com-88ac128001ac3a9a/gfx_device_gl-0.10.0/src/lib.rs:689\r\n  10:     0x562aebef9db0 - _<gfx..encoder..Encoder<R, C>>::flush::hbf7cc6ecb9eefa5b\r\n                        at /home/harrison/.multirust/toolchains/beta/cargo/registry/src/github.com-88ac128001ac3a9a/gfx-0.11.0/src/encoder.rs:85\r\n  11:     0x562aebef2bff - _<piston_window..PistonWindow<W>>::draw_2d::hf03a024ce1bc4da9\r\n                        at /home/harrison/.multirust/toolchains/beta/cargo/registry/src/github.com-88ac128001ac3a9a/piston_window-0.47.0/src/lib.rs:221\r\n  12:     0x562aebebff80 - testing_piston::main::h55362581195f04b1\r\n                        at /home/harrison/Projects/rust/testing_piston/src/main.rs:12\r\n  13:     0x562aec0d5084 - std::sys_common::unwind::try::try_fn::hf5d123c03b60f222\r\n  14:     0x562aec0d20fb - __rust_try\r\n  15:     0x562aec0d4acb - std::rt::lang_start::hb87e98f24ba5d300\r\n  16:     0x562aebefaab9 - main\r\n  17:     0x7fe7c4171ec4 - __libc_start_main\r\n  18:     0x562aebebfd18 - <unknown>\r\n  19:                0x0 - <unknown>\r\nerror: Process didn't exit successfully: `/home/harrison/Projects/rust/testing_piston/target/debug/testing_piston` (exit code: 101)`\r\n```\r\nHow do I go about fixing this?  I was thinking maybe I'm missing a dependency or something, but I really have no idea!  "},"comment":{"url":"https://api.github.com/repos/gfx-rs/gfx/issues/comments/221457928","html_url":"https://github.com/gfx-rs/gfx/issues/979#issuecomment-221457928","issue_url":"https://api.github.com/repos/gfx-rs/gfx/issues/979","id":221457928,"user":{"login":"sectopod","id":8523093,"avatar_url":"https://avatars.githubusercontent.com/u/8523093?v=3","gravatar_id":"","url":"https://api.github.com/users/sectopod","html_url":"https://github.com/sectopod","followers_url":"https://api.github.com/users/sectopod/followers","following_url":"https://api.github.com/users/sectopod/following{/other_user}","gists_url":"https://api.github.com/users/sectopod/gists{/gist_id}","starred_url":"https://api.github.com/users/sectopod/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/sectopod/subscriptions","organizations_url":"https://api.github.com/users/sectopod/orgs","repos_url":"https://api.github.com/users/sectopod/repos","events_url":"https://api.github.com/users/sectopod/events{/privacy}","received_events_url":"https://api.github.com/users/sectopod/received_events","type":"User","site_admin":false},"created_at":"2016-05-25T02:33:36Z","updated_at":"2016-05-25T02:33:36Z","body":"I checked Khronos API XMLs and found out that there is simply no ARB versions of the program interface queries. The functions we use are supposed to be officially correct, so the problem might be hiding somewhere else."}}
{"actor":{"display_login":"sectopod"}}