glutin: panic in glx makeCurrent()

Starting from somewhere between 28a30dc and 2e84aca, glutin panics upon initialization using Xinerama.

Proof of concept code:

extern crate glutin_window;
extern crate window;

fn main() {
    let settings = ::window::WindowSettings::new("Test", [100, 100]);
    let settings = settings.srgb(true);
    let mut window: ::glutin_window::GlutinWindow =
        settings.build().unwrap();
}

Dependencies:

pistoncore-glutin_window = "0.24.0"
pistoncore-window = "0.17.0"

System info:

OS: Arch Linux
Kernel: x86_64 Linux 4.8.11-1-ARCH
Shell: bash 4.4.5
Resolution: 5120x1080
WM: OpenBox
WM Theme: Static
CPU: Intel Core i7-4790K CPU @ 4.4GHz
GPU: GeForce GTX TITAN, GeForce GTX 660
RAM: 12152MiB / 15993MiB
NVIDIA Driver Version: 375.20

Backtrace:

thread 'main' panicked at 'glx::MakeCurrent failed', glutin/src/api/glx/mod.rs:112
stack backtrace:
   1:     0x55b3b5fd260f - std::sys::backtrace::tracing::imp::write::h6f1d53a70916b90d
   2:     0x55b3b5fd635d - std::panicking::default_hook::{{closure}}::h137e876f7d3b5850
   3:     0x55b3b5fd5280 - std::panicking::default_hook::h0ac3811ec7cee78c
   4:     0x55b3b5fd5888 - std::panicking::rust_panic_with_hook::hc303199e04562edf
   5:     0x55b3b5ea9053 - std::panicking::begin_panic::h341b039f84d0b176
                        at /build/rust/src/rustc-1.13.0/src/libstd/panicking.rs:413
   6:     0x55b3b5ebd8b1 - <glutin::api::glx::Context as glutin::GlContext>::make_current::hf6af1578880cc462
                        at /home/static/projects/rust/test/glutin/src/api/glx/mod.rs:112
   7:     0x55b3b5e86d5a - <glutin::platform::platform::x11::Window as glutin::GlContext>::make_current::h4c1fad5693b1d96e
                        at /home/static/projects/rust/test/glutin/src/platform/linux/x11.rs:224
   8:     0x55b3b5e870d5 - <glutin::platform::platform::api_dispatch::Window as glutin::GlContext>::make_current::hc2a3ea556c579ca6
                        at /home/static/projects/rust/test/glutin/src/platform/linux/api_dispatch.rs:204
   9:     0x55b3b5e854fb - glutin::window::<impl glutin::Window>::make_current::hde6baf522c383c98
                        at /home/static/projects/rust/test/glutin/src/window.rs:421
  10:     0x55b3b5e88105 - glutin_window::GlutinWindow::new::h41a7b7b17fb6e178
                        at /home/static/.cargo/registry/src/github.com-1ecc6299db9ec823/pistoncore-glutin_window-0.32.0/src/lib.rs:101
  11:     0x55b3b5e8a54b - <glutin_window::GlutinWindow as window::BuildFromWindowSettings>::build_from_window_settings::h1674704533958661
                        at /home/static/.cargo/registry/src/github.com-1ecc6299db9ec823/pistoncore-glutin_window-0.32.0/src/lib.rs:361
  12:     0x55b3b5d549bb - window::WindowSettings::build::he9ad6f90d683233c
                        at /home/static/.cargo/registry/src/github.com-1ecc6299db9ec823/pistoncore-window-0.23.0/src/lib.rs:367
  13:     0x55b3b5ccb789 - <conrod::backend::piston::window::Window<W> as window::BuildFromWindowSettings>::build_from_window_settings::h069ab87861de0e69
                        at /home/static/.cargo/registry/src/github.com-1ecc6299db9ec823/conrod-0.47.1/./src/backend/piston/window.rs:107
  14:     0x55b3b5d5497b - window::WindowSettings::build::h7ac822fee94b4727
                        at /home/static/.cargo/registry/src/github.com-1ecc6299db9ec823/pistoncore-window-0.23.0/src/lib.rs:367
  15:     0x55b3b5d7f8a7 - test::main::h54409382dcf76ebd
                        at /home/static/projects/rust/test/src/main.rs:33
  16:     0x55b3b5fddcb6 - __rust_maybe_catch_panic
  17:     0x55b3b5fd4af1 - std::rt::lang_start::h538f8960e7644c80
  18:     0x55b3b5d84b73 - main
  19:     0x7f260d1ae290 - __libc_start_main
  20:     0x55b3b5ccb5d9 - _start
  21:                0x0 - <unknown>

I’m not sure if this is the correct repository for the report, as I notice a lot of code was shifted over to winit during that time, please let me know if you need anything else. Thanks ^^

About this issue

  • Original URL
  • State: closed
  • Created 8 years ago
  • Comments: 20 (6 by maintainers)

Most upvoted comments

Any other info on this issue?