Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Wayland launch failure on NVIDIA 3070 via optimus #6601

Closed
Qubitium opened this issue Jan 3, 2023 · 3 comments
Closed

Wayland launch failure on NVIDIA 3070 via optimus #6601

Qubitium opened this issue Jan 3, 2023 · 3 comments

Comments

@Qubitium
Copy link

Qubitium commented Jan 3, 2023

Linux: 6.0.8 kernel Fedora 38 rawhide
Deskto: KDE Plasma (wayland)

#launched on nvidia 3070 via optimus env switch
#launching on igu amd 680m 6800hs has no issue
 __NV_PRIME_RENDER_OFFLOAD=1  /home/diego/.cargo/bin/alacritty -vv
#confirmed alacritty is bound to nvidia gpu
(base) [diego@MiWiFi-RB06-srv ~]$ nvidia-smi
Tue Jan  3 12:28:15 2023       
+-----------------------------------------------------------------------------+
| NVIDIA-SMI 525.60.11    Driver Version: 525.60.11    CUDA Version: 12.0     |
|-------------------------------+----------------------+----------------------+
| GPU  Name        Persistence-M| Bus-Id        Disp.A | Volatile Uncorr. ECC |
| Fan  Temp  Perf  Pwr:Usage/Cap|         Memory-Usage | GPU-Util  Compute M. |
|                               |                      |               MIG M. |
|===============================+======================+======================|
|   0  NVIDIA GeForce ...  Off  | 00000000:01:00.0 Off |                  N/A |
| N/A   48C    P8    12W /  N/A |      5MiB /  8192MiB |      0%      Default |
|                               |                      |                  N/A |
+-------------------------------+----------------------+----------------------+
                                                                               
+-----------------------------------------------------------------------------+
| Processes:                                                                  |
|  GPU   GI   CI        PID   Type   Process name                  GPU Memory |
|        ID   ID                                                   Usage      |
|=============================================================================|
|    0   N/A  N/A     46750      G   ...iego/.cargo/bin/alacritty        4MiB |
[0.000001743s] [INFO ] [alacritty] Welcome to Alacritty
[0.000067847s] [INFO ] [alacritty] Version 0.11.0
[0.000088776s] [INFO ] [alacritty] Running on Wayland
[0.000234178s] [INFO ] [alacritty_config_derive] No config file found; using default
[0.000570638s] [DEBUG] [alacritty] Loading "monospace" font
[0.007372359s] [DEBUG] [crossfont] Loaded Face Face { ft_face: Font Face: Regular, load_flags: TARGET_LIGHT, render_mode: "Lcd", lcd_filter: 1 }
[0.008381909s] [DEBUG] [crossfont] Loaded Face Face { ft_face: Font Face: Bold, load_flags: TARGET_LIGHT, render_mode: "Lcd", lcd_filter: 1 }
[0.009362214s] [DEBUG] [crossfont] Loaded Face Face { ft_face: Font Face: Regular, load_flags: NO_BITMAP | TARGET_LIGHT, render_mode: "Lcd", lcd_filter: 1 }
[0.010330316s] [DEBUG] [crossfont] Loaded Face Face { ft_face: Font Face: Bold, load_flags: NO_BITMAP | TARGET_LIGHT, render_mode: "Lcd", lcd_filter: 1 }
[0.011090949s] [DEBUG] [alacritty] Estimated scaling factor: 1
[0.011099205s] [DEBUG] [alacritty] Estimated window size: None
[0.011102321s] [DEBUG] [alacritty] Estimated cell size: 9 x 21
[0.011964615s] [DEBUG] [crossfont] Loaded Face Face { ft_face: Font Face: Regular, load_flags: TARGET_LIGHT, render_mode: "Lcd", lcd_filter: 1 }
[0.046511418s] [INFO ] [alacritty] Running on NVIDIA GeForce RTX 3070 Ti Laptop GPU/PCIe/SSE2
[0.046530384s] [INFO ] [alacritty] Using OpenGL ES 2.0 renderer
[0.046586318s] [INFO ] [alacritty] Using dual source blending
[0.047482075s] [INFO ] [alacritty] Display scale factor: 1
[0.047492324s] [DEBUG] [alacritty] Filling glyph cache with common glyphs
[0.049876026s] [INFO ] [alacritty] Cell size: 9 x 21
[0.049889441s] [INFO ] [alacritty] Padding: 0 x 0
[0.049892577s] [INFO ] [alacritty] Width: 800, Height: 600
[0.050028070s] [INFO ] [alacritty] PTY dimensions: 28 x 88
[0.051589483s] [INFO ] [alacritty] Initialisation complete
[destroyed object]: error 7: importing the supplied dmabufs failed
thread 'main' panicked at 'failed to dispatch wayland event queue: Os { code: 71, kind: Uncategorized, message: "Protocol error" }', /home/diego/.cargo/registry/src/github.com-1ecc6299db9ec823/alacritty-0.11.0/src/event.rs:1438:30
note: run with `RUST_BACKTRACE=1` environment variable to display a backtrace
@chrisduerr
Copy link
Member

[0.046530384s] [INFO ] [alacritty] Using OpenGL ES 2.0 renderer

This is already pretty surprising. You should be using the OpenGL 3.3+ renderer with a 3070.

The protocol issue itself is usually a Wayland thing, so I doubt this helps, but could you try the latest master and set the renderer to glsl3 (https://github.com/alacritty/alacritty/blob/master/alacritty.yml#L895)?

@kchibisov
Copy link
Member

The latest master will use OpenGL 3.3 renderer automatically.

@kchibisov
Copy link
Member

Closing due to lack of any responses, if you still have the issue with at least 0.12.1 let us know. But be sure to use latest nvidia drivers.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

No branches or pull requests

3 participants