alacritty: Unable to launch alacritty with Fullscreen startup mode on Wayland

Which operating system does the issue occur on? Arch Linux

If on linux, are you using X11 or Wayland? Wayland

Logs?

[sjug@host ~]$ alacritty --version
alacritty 0.3.3
[sjug@host ~]$ alacritty
thread 'main' panicked at 'called `Option::unwrap()` on a `None` value', src/libcore/option.rs:347:21
note: Run with `RUST_BACKTRACE=1` environment variable to display a backtrace.
[sjug@host ~]$ RUST_BACKTRACE=1 alacritty
thread 'main' panicked at 'called `Option::unwrap()` on a `None` value', src/libcore/option.rs:347:21
stack backtrace:
   0: <unknown>
   1: <unknown>
   2: <unknown>
   3: <unknown>
   4: <unknown>
   5: <unknown>
   6: <unknown>
   7: <unknown>
   8: <unknown>
   9: <unknown>
  10: <unknown>
  11: <unknown>
  12: __libc_start_main
  13: <unknown>

About this issue

  • Original URL
  • State: closed
  • Created 5 years ago
  • Comments: 17 (10 by maintainers)

Commits related to this issue

Most upvoted comments

Just to make it clear, the same issue is relevant under sway. So I guess it’s just a general issue here, rather than GNOME specific.

@chrisduerr Right on

     Running `target/debug/examples/window`
Pixel format of the window's GL context: PixelFormat { hardware_accelerated: true, color_bits: 24, alpha_bits: 8, depth_bits: 24, stencil_bits: 8, stereoscopy: false, double_buffer: true, multisampling: None, srgb: false }
OpenGL version 4.5 (Core Profile) Mesa 19.1.4
thread 'main' panicked at 'called `Option::unwrap()` on a `None` value', src/libcore/option.rs:347:21
note: Run with `RUST_BACKTRACE=1` environment variable to display a backtrace.
[sjug@host glutin]$ RUST_BACKTRACE=1 cargo run --example window
    Finished dev [unoptimized + debuginfo] target(s) in 0.04s
     Running `target/debug/examples/window`
Pixel format of the window's GL context: PixelFormat { hardware_accelerated: true, color_bits: 24, alpha_bits: 8, depth_bits: 24, stencil_bits: 8, stereoscopy: false, double_buffer: true, multisampling: None, srgb: false }
OpenGL version 4.5 (Core Profile) Mesa 19.1.4
thread 'main' panicked at 'called `Option::unwrap()` on a `None` value', src/libcore/option.rs:347:21
stack backtrace:
   0: std::sys::unix::backtrace::tracing::imp::unwind_backtrace
             at src/libstd/sys/unix/backtrace/tracing/gcc_s.rs:39
   1: std::sys_common::backtrace::_print
             at src/libstd/sys_common/backtrace.rs:71
   2: std::panicking::default_hook::{{closure}}
             at src/libstd/sys_common/backtrace.rs:59
             at src/libstd/panicking.rs:197
   3: std::panicking::default_hook
             at src/libstd/panicking.rs:211
   4: std::panicking::rust_panic_with_hook
             at src/libstd/panicking.rs:474
   5: std::panicking::continue_panic_fmt
             at src/libstd/panicking.rs:381
   6: rust_begin_unwind
             at src/libstd/panicking.rs:308
   7: core::panicking::panic_fmt
             at src/libcore/panicking.rs:85
   8: core::panicking::panic
             at src/libcore/panicking.rs:49
   9: core::option::Option<T>::unwrap
             at /rustc/a53f9df32fbb0b5f4382caaad8f1a46f36ea887c/src/libcore/macros.rs:12
  10: winit::platform_impl::platform::wayland::window::Window::current_monitor
             at /home/jugs/.cargo/registry/src/github.com-1ecc6299db9ec823/winit-0.20.0-alpha2/src/platform_impl/linux/wayland/window.rs:310
  11: winit::platform_impl::platform::Window::current_monitor
             at /home/jugs/.cargo/registry/src/github.com-1ecc6299db9ec823/winit-0.20.0-alpha2/src/platform_impl/linux/mod.rs:377
  12: winit::window::Window::current_monitor
             at /home/jugs/.cargo/registry/src/github.com-1ecc6299db9ec823/winit-0.20.0-alpha2/src/window.rs:662
  13: window::main
             at glutin_examples/examples/window.rs:24
  14: std::rt::lang_start::{{closure}}
             at /rustc/a53f9df32fbb0b5f4382caaad8f1a46f36ea887c/src/libstd/rt.rs:64
  15: std::panicking::try::do_call
             at src/libstd/rt.rs:49
             at src/libstd/panicking.rs:293
  16: __rust_maybe_catch_panic
             at src/libpanic_unwind/lib.rs:85
  17: std::rt::lang_start_internal
             at src/libstd/panicking.rs:272
             at src/libstd/panic.rs:394
             at src/libstd/rt.rs:48
  18: std::rt::lang_start
             at /rustc/a53f9df32fbb0b5f4382caaad8f1a46f36ea887c/src/libstd/rt.rs:64
  19: main
  20: __libc_start_main
  21: _start

@sjug What’s your sturtup_mode in a config, It’s Fullscreen, right? So try setting it to Windowed and then toggling fullscreen.

@kchibisov Yes you’re right, changing it to windowed allows it to start (and not panic). Then toggling fullscreen works fine.

Oh yeah, this only seems to crash when executing current_monitor which is not done by the examples by default. You’ll have to run cargo run --example fullscreen in the glutin examples and then press F to toggle it to fullscreen. That should crash it, right?

@chrisduerr When I run that command it asks me to select a monitor, so I select my only monitor 0. Then it starts the example in full screen and I can toggle it with F back and forth no issue.

Would you mind providing some info about your setup, like multiple monitors or smthing like that, and are you running alacritty with default config?

I’m using an AMD Vega 64 GPU, do I need to set any debug flags on compile?