Panic when trying to run noambition
When I run the command:
cargo run --release --bin noambition I receive the following error
Oh noez! Panic! 💥
Message: called `Result::unwrap()` on an `Err` value: GlutinCreationError(CreationErrors([OpenGlVersionNotSupported, OsError("GL context creation failed")]))
When I set the backtrace to be full:
Finished release [optimized] target(s) in 0.10s
Running target/release/noambition
Oh noez! Panic! 💥
Message: called `Result::unwrap()` on an `Err` value: GlutinCreationError(CreationErrors([OpenGlVersionNotSupported, OsError("GL context creation failed")]))
Location: noambition/src/main.rs:184
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ BACKTRACE ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
(9 post panic frames hidden)
9: noambition::main::ha0eb12316e0aedbf
at <unknown source file>
10: std::sys_common::backtrace::__rust_begin_short_backtrace::h6d261884a638593b
at <unknown source file>
11: std::rt::lang_start::{{closure}}::h4268596f6323fd94
at <unknown source file>
12: core::ops::function::impls::<impl core::ops::function::FnOnce<A> for &F>::call_once::h9ab31282e87f134a
at /rustc/fc594f15669680fa70d255faec3ca3fb507c3405/library/core/src/ops/function.rs:606
13: std::panicking::try::do_call::h42ddf5b01d0b4bc7
at /rustc/fc594f15669680fa70d255faec3ca3fb507c3405/library/std/src/panicking.rs:483
14: std::panicking::try::hfb70320d7386c61a
at /rustc/fc594f15669680fa70d255faec3ca3fb507c3405/library/std/src/panicking.rs:447
15: std::panic::catch_unwind::h978c9edbad2bb4d4
at /rustc/fc594f15669680fa70d255faec3ca3fb507c3405/library/std/src/panic.rs:137
16: std::rt::lang_start_internal::{{closure}}::h04ede5bd2f26b553
at /rustc/fc594f15669680fa70d255faec3ca3fb507c3405/library/std/src/rt.rs:148
17: std::panicking::try::do_call::ha6b9da35a0885c93
at /rustc/fc594f15669680fa70d255faec3ca3fb507c3405/library/std/src/panicking.rs:483
18: std::panicking::try::h3325520cab3a642e
at /rustc/fc594f15669680fa70d255faec3ca3fb507c3405/library/std/src/panicking.rs:447
19: std::panic::catch_unwind::h160beec6f047175b
at /rustc/fc594f15669680fa70d255faec3ca3fb507c3405/library/std/src/panic.rs:137
20: std::rt::lang_start_internal::h79190e3a877a769d
at /rustc/fc594f15669680fa70d255faec3ca3fb507c3405/library/std/src/rt.rs:148
21: main
at <unknown source file>
22: __libc_start_main
at <unknown source file>
23: _start
at <unknown source file>
Hey,
so as we see OpenGlVersionNotSupported, please provide more details about your OS, GPU, GPU driver, etc.
OS: Ubuntu 20.04.5 LTS
GPU: NVIDIA GeForce RTX 2070
GPU driver:
00:0f.0 VGA compatible controller: VMware SVGA II Adapter (prog-if 00 [VGA controller])
Subsystem: VMware SVGA II Adapter
Flags: bus master, medium devsel, latency 64, IRQ 16
I/O ports at 1070 [size=16]
Memory at e8000000 (32-bit, prefetchable) [size=128M]
Memory at fe000000 (32-bit, non-prefetchable) [size=8M]
Expansion ROM at 000c0000 [virtual] [disabled] [size=128K]
Capabilities: <access denied>
Kernel driver in use: vmwgfx
Kernel modules: vmwgfx
To find my driver information I used lspci -v. I'm running this in a VM as you can see
Okay, first test: I've upgraded all dependencies across the visualizers. Maybe it helps a bit to not rely on ancient dependencies... Can you try again with commit b4338cb15b0c ("spectral: Upgrade dependencies")?
If this doesn't work, we'll have to dig deeper...
Or rather use commit b2e8299f6f55 ("no-midi: Fix compiler warning") which has even more dependency upgrades.
Okay so I checked out b2e8299 and the results were the same error I think:
cargo run --release --bin noambition
Finished release [optimized] target(s) in 0.28s
Running `target/release/noambition`
The application panicked (crashed).
Message: called `Result::unwrap()` on an `Err` value: GlutinCreationError(CreationErrors([OpenGlVersionNotSupported, OsError("GL context creation failed")]))
Location: noambition/src/main.rs:184
Run with COLORBT_SHOW_HIDDEN=1 environment variable to disable frame filtering.
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ BACKTRACE ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
⋮ 9 frames hidden ⋮
10: noambition::main::hb1bbd61469960b3b
at <unknown source file>
11: std::sys_common::backtrace::__rust_begin_short_backtrace::hc0166cc892a66f3b
at <unknown source file>
12: std::rt::lang_start::{{closure}}::hd8525d5e45e3a495
at <unknown source file>
13: core::ops::function::impls::<impl core::ops::function::FnOnce<A> for &F>::call_once::h9ab31282e87f134a
at /rustc/fc594f15669680fa70d255faec3ca3fb507c3405/library/core/src/ops/function.rs:606
14: std::panicking::try::do_call::h42ddf5b01d0b4bc7
at /rustc/fc594f15669680fa70d255faec3ca3fb507c3405/library/std/src/panicking.rs:483
15: std::panicking::try::hfb70320d7386c61a
at /rustc/fc594f15669680fa70d255faec3ca3fb507c3405/library/std/src/panicking.rs:447
16: std::panic::catch_unwind::h978c9edbad2bb4d4
at /rustc/fc594f15669680fa70d255faec3ca3fb507c3405/library/std/src/panic.rs:137
17: std::rt::lang_start_internal::{{closure}}::h04ede5bd2f26b553
at /rustc/fc594f15669680fa70d255faec3ca3fb507c3405/library/std/src/rt.rs:148
18: std::panicking::try::do_call::ha6b9da35a0885c93
at /rustc/fc594f15669680fa70d255faec3ca3fb507c3405/library/std/src/panicking.rs:483
19: std::panicking::try::h3325520cab3a642e
at /rustc/fc594f15669680fa70d255faec3ca3fb507c3405/library/std/src/panicking.rs:447
20: std::panic::catch_unwind::h160beec6f047175b
at /rustc/fc594f15669680fa70d255faec3ca3fb507c3405/library/std/src/panic.rs:137
21: std::rt::lang_start_internal::h79190e3a877a769d
at /rustc/fc594f15669680fa70d255faec3ca3fb507c3405/library/std/src/rt.rs:148
22: main
at <unknown source file>
23: __libc_start_main
at /build/glibc-SzIz7B/glibc-2.31/csu/../csu/libc-start.c:308
24: _start
at <unknown source file>
Hm, okay... So I guess the problem is with these lines:
https://github.com/Rahix/visualizer2/blob/512e02ebe092ea2e87655fe22f925d0f27e5f0c3/noambition/src/main.rs#L180-L181
Apparently your system does not support GL version 4.1. I wonder if loosening the version requirement can help here. Maybe try either of the following changes:
@@ -179,3 +179,3 @@ fn main() {
let context = glutin::ContextBuilder::new()
- .with_gl(glutin::GlRequest::Specific(glutin::Api::OpenGl, (4, 1)))
+ .with_gl(glutin::GlRequest::Specific(glutin::Api::OpenGl, (3, 3)))
.with_gl_profile(glutin::GlProfile::Core)
@@ -179,3 +179,3 @@ fn main() {
let context = glutin::ContextBuilder::new()
- .with_gl(glutin::GlRequest::Specific(glutin::Api::OpenGl, (4, 1)))
+ .with_gl(glutin::GlRequest::Latest)
.with_gl_profile(glutin::GlProfile::Core)
If both don't work, I would check whether other OpenGL applications run fine. Maybe you're missing some packages for proper GL support...