Bug 407723 - [NVIDIA] Cannot login into plasma using wayland
Summary: [NVIDIA] Cannot login into plasma using wayland
Status: RESOLVED WORKSFORME
Alias: None
Product: kwin
Classification: Plasma
Component: wayland-generic (other bugs)
Version First Reported In: 5.15.90
Platform: Arch Linux Linux
: NOR crash
Target Milestone: ---
Assignee: KWin default assignee
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2019-05-19 12:18 UTC by Alejandro Valdés
Modified: 2023-07-07 10:18 UTC (History)
2 users (show)

See Also:
Latest Commit:
Version Fixed/Implemented In:
Sentry Crash Report:


Attachments
Wayland Session Log (26.15 KB, text/x-log)
2022-07-16 19:57 UTC, ssergio-ll
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Alejandro Valdés 2019-05-19 12:18:06 UTC
SUMMARY

When using latest plasma 5.15.90 beta in Archlinux, I cannot login into Wayland using NVIDIA hardware.

Running kwin_wayland on console from an X sessions throws a segfault:

dbus-launch kwin_wayland 
No backend specified through command line argument, trying auto resolution
Icon theme "elementary" not found.
Icon theme "gnome" not found.
Icon theme "deepin" not found.
OpenGL vendor string:                   NVIDIA Corporation
OpenGL renderer string:                 GeForce GTX 1080/PCIe/SSE2
OpenGL version string:                  4.6.0 NVIDIA 430.14
OpenGL shading language version string: 4.60 NVIDIA
Driver:                                 NVIDIA
Driver version:                         430.14
GPU class:                              Unknown
OpenGL version:                         4.6
GLSL version:                           4.60
Linux kernel version:                   5.1.2
Requires strict binding:                no
GLSL shaders:                           yes
Texture NPOT support:                   yes
Virtual Machine:                        no
QImage::scaled: Image is a null image
[1]    18274 segmentation fault (core dumped)  dbus-launch kwin_wayland

Also tried with a new user, but it also crashes.


STEPS TO REPRODUCE
1. Login into plasma-wayland using nvidia hardware

OBSERVED RESULT
A black tty screen

EXPECTED RESULT
Plasma wayland UI

SOFTWARE/OS VERSIONS
Operating System: Arch Linux 
KDE Plasma Version: 5.15.90
KDE Frameworks Version: 5.58.0
Qt Version: 5.13.0
Kernel Version: 5.1.2-arch1-1-ARCH
OS Type: 64-bit
Processors: 8 × Intel® Core™ i7-7700HQ CPU @ 2.80GHz
Memory: 23.5 GiB of RAM


ADDITIONAL INFORMATION
Comment 1 Vlad Zahorodnii 2019-05-20 08:25:10 UTC
Did you set KWIN_DRM_USE_EGL_STREAMS?
Comment 2 Vlad Zahorodnii 2019-05-20 08:26:13 UTC
changing status of the bug report
Comment 3 Alejandro Valdés 2019-05-20 13:56:34 UTC
After a bit of digging I was able to make it work:

1. I added KWIN_DRM_USE_EGL_STREAMS=1 to /etc/profile.d/
2. I enabled nvidia DRM KMS https://wiki.archlinux.org/index.php/NVIDIA#DRM_kernel_mode_setting
3. Restarted the machine

For some reason my first wayland login with nvidia made my kwin use 100% of the CPU, but the second login works fine.
Comment 4 ssergio-ll 2022-07-16 19:57:46 UTC
Created attachment 150680 [details]
Wayland Session Log

I have disabled hybrid graphics and i used only Nvidia Card. On X11 all work ok but when i try to star a session with Wayland don't work. After I log in, it only shows a black screen with the cursor which I can move and it gets stuck here. Then i have that reset my notebook.

STEPS TO REPRODUCE
1. Log in with a session Wayland and Nvidia Card.

OBSERVED RESULT

I can't lon in.

EXPECTED RESULT

I can log in.

SOFTWARE/OS VERSIONS

Operating System: KDE neon 5.25
KDE Plasma Version: 5.25.3
KDE Frameworks Version: 5.96.0
Qt Version: 5.15.5
Kernel Version: 5.15.0-41-generic (64-bit)
Graphics Platform: X11
Processors: 12 × Intel® Core™ i7-8750H CPU @ 2.20GHz
Memory: 62.7 GiB of RAM
Graphics Processor: NVIDIA GeForce RTX 2060/PCIe/SSE2
Manufacturer: Micro-Star International Co., Ltd.
Product Name: GS75 Stealth 8SE
System Version: REV:1.0
Comment 5 ssergio-ll 2022-08-03 08:08:38 UTC
(In reply to Alejandro Valdés from comment #3)
> After a bit of digging I was able to make it work:
> 
> 1. I added KWIN_DRM_USE_EGL_STREAMS=1 to /etc/profile.d/
> 2. I enabled nvidia DRM KMS
> https://wiki.archlinux.org/index.php/NVIDIA#DRM_kernel_mode_setting
> 3. Restarted the machine
> 
> For some reason my first wayland login with nvidia made my kwin use 100% of
> the CPU, but the second login works fine.

I have tried this but for me it doesn't work. Happen same.
Comment 6 David Edmundson 2023-07-07 10:18:24 UTC
egl streams is outdated, this report is therefore too