You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I have been troubleshooting this issue for a while. I am aware of issue #1202 and have reviewed it thoroughly. It doesn't appear that I am experiencing the same problem.
TLDR: Window creation is failing on a simple hello_piston example. I've implemented a number of potential fixes but none have worked. Here are the details...
When I run RUST_BACKTRACE=1 cargo +nightly run on my program hello_piston, I get the following output:
Compiling hello_piston v0.1.0 (file:///home/nyghtly/Documents/proj/rust/hello_piston)
Finished dev [unoptimized + debuginfo] target(s) in 28.10s
Running `target/debug/hello_piston`
thread 'main' panicked at 'called `Result::unwrap()` on an `Err` value: "GL context creation failed"', libcore/result.rs:945:5
stack backtrace:
0: std::sys::unix::backtrace::tracing::imp::unwind_backtrace
at libstd/sys/unix/backtrace/tracing/gcc_s.rs:49
1: std::sys_common::backtrace::print
at libstd/sys_common/backtrace.rs:71
at libstd/sys_common/backtrace.rs:59
2: std::panicking::default_hook::{{closure}}
at libstd/panicking.rs:211
3: std::panicking::default_hook
at libstd/panicking.rs:227
4: std::panicking::rust_panic_with_hook
at libstd/panicking.rs:475
5: std::panicking::continue_panic_fmt
at libstd/panicking.rs:390
6: rust_begin_unwind
at libstd/panicking.rs:325
7: core::panicking::panic_fmt
at libcore/panicking.rs:77
8: core::result::unwrap_failed
at /checkout/src/libcore/macros.rs:26
9: <core::result::Result<T, E>>::unwrap
at /checkout/src/libcore/result.rs:782
10: hello_piston::main
at src/main.rs:9
11: std::rt::lang_start::{{closure}}
at /checkout/src/libstd/rt.rs:74
12: std::panicking::try::do_call
at libstd/rt.rs:59
at libstd/panicking.rs:310
13: __rust_maybe_catch_panic
at libpanic_unwind/lib.rs:106
14: std::rt::lang_start_internal
at libstd/panicking.rs:289
at libstd/panic.rs:392
at libstd/rt.rs:58
15: std::rt::lang_start
at /checkout/src/libstd/rt.rs:74
16: main
17: __libc_start_main
18: _start
Note: OpenGL on my system was initially set to 1.4. This is the default behavior of the contemporary mesa drivers, because it improves performance of some modern applications such as Chromium. I have edited my drirc configuration in order to enable the 2.1 extension that is possible with my gpu. I have tested this fix by running openra (Open Red Alert). Before the fix it didn't run--after the fix it did.
The text was updated successfully, but these errors were encountered:
Hi Everyone,
I have been troubleshooting this issue for a while. I am aware of issue #1202 and have reviewed it thoroughly. It doesn't appear that I am experiencing the same problem.
TLDR: Window creation is failing on a simple hello_piston example. I've implemented a number of potential fixes but none have worked. Here are the details...
When I run
RUST_BACKTRACE=1 cargo +nightly run
on my programhello_piston
, I get the following output:Here is the code for hello_piston:
Here is my system info (from command
inxi -CGS
):Note: OpenGL on my system was initially set to 1.4. This is the default behavior of the contemporary mesa drivers, because it improves performance of some modern applications such as Chromium. I have edited my
drirc
configuration in order to enable the 2.1 extension that is possible with my gpu. I have tested this fix by running openra (Open Red Alert). Before the fix it didn't run--after the fix it did.The text was updated successfully, but these errors were encountered: