Bug 502760 - Application: KWin (kwin_x11), signal: Segmentation fault
Summary: Application: KWin (kwin_x11), signal: Segmentation fault
Status: RESOLVED UPSTREAM
Alias: None
Product: kwin
Classification: Plasma
Component: generic-crash (show other bugs)
Version: 6.3.3
Platform: Other FreeBSD
: NOR crash
Target Milestone: ---
Assignee: KWin default assignee
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2025-04-13 19:38 UTC by Rai Mohammed
Modified: 2025-04-22 12:10 UTC (History)
4 users (show)

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


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Rai Mohammed 2025-04-13 19:38:23 UTC
SUMMARY
This crash occurs in many situations : shutdown, reboot or log-out and log-in to a session. This behavior is seen after upgrading to 6.3.3 

STEPS TO REPRODUCE
1. 
2. 
3. 

OBSERVED RESULT
The desktop freeze and you are obliged to force shutdown or reset the computer.

EXPECTED RESULT


SOFTWARE/OS VERSIONS

FreeBSD : 14.2-RELEASE-p1 (64-bit)
Operating System: FreeBSD 14.2
KDE Plasma Version: 6.3.3
KDE Frameworks Version: 6.12.0
Qt Version: 6.8.3
Kernel Version: 14.2-RELEASE-p1 (64-bit)
Graphics Platform: X11
Graphics Processor: llvmpipe

ADDITIONAL INFORMATION

Application: KWin (kwin_x11), signal: Segmentation fault

[KCrash Handler]
#7  0x00000008c2585c0b in ??? () at /usr/local/lib/libGL-NVIDIA.so.1
#8  0x00000008c2578a06 in glXCreateContextAttribsARB () at /usr/local/lib/libGL-NVIDIA.so.1
#9  0x0000000000294229 in ??? ()
#10 0x0000000000295576 in ??? ()
#11 0x000000082e4a8f83 in KWin::X11Compositor::attemptOpenGLCompositing() () at /usr/local/lib/libkwin.so.6
#12 0x000000082e4a89a7 in KWin::X11Compositor::start() () at /usr/local/lib/libkwin.so.6
#13 0x000000083f55d2d3 in QObject::event(QEvent*) () at /usr/local/lib/qt6/libQt6Core.so.6
#14 0x000000083cd03378 in QApplicationPrivate::notify_helper(QObject*, QEvent*) () at /usr/local/lib/qt6/libQt6Widgets.so.6
#15 0x000000083cd04354 in QApplication::notify(QObject*, QEvent*) () at /usr/local/lib/qt6/libQt6Widgets.so.6
#16 0x000000083f5116c5 in QCoreApplication::notifyInternal2(QObject*, QEvent*) () at /usr/local/lib/qt6/libQt6Core.so.6
#17 0x000000083f512827 in QCoreApplicationPrivate::sendPostedEvents(QObject*, int, QThreadData*) () at /usr/local/lib/qt6/libQt6Core.so.6
#18 0x000000083f79d5dc in ??? () at /usr/local/lib/qt6/libQt6Core.so.6
#19 0x000000086088c59b in ??? () at /usr/local/lib/libglib-2.0.so.0
#20 0x000000086088c95d in ??? () at /usr/local/lib/libglib-2.0.so.0
#21 0x000000086088c9f6 in g_main_context_iteration () at /usr/local/lib/libglib-2.0.so.0
#22 0x000000083f79d012 in QEventDispatcherGlib::processEvents(QFlags<QEventLoop::ProcessEventsFlag>) () at /usr/local/lib/qt6/libQt6Core.so.6
#23 0x000000083f51b277 in QEventLoop::exec(QFlags<QEventLoop::ProcessEventsFlag>) () at /usr/local/lib/qt6/libQt6Core.so.6
#24 0x000000083f511e8a in QCoreApplication::exec() () at /usr/local/lib/qt6/libQt6Core.so.6
#25 0x00000000002a37eb in ??? ()
#26 0x0000000841b4cc3a in __libc_start1 () at /lib/libc.so.7
#27 0x000000000027c4d0 in ??? ()
[Inferior 1 (process 35972) detached]
Comment 1 Tom 2025-04-13 20:35:40 UTC
This crash looks like it is occurring within the NVIDIA OpenGL driver when calling the glXCreateContextAttribsARB () function. I recommend you report this upstream to NVIDIA. Leaving this open for now so someone more familiar with the NVIDIA stack can confirm.
Comment 2 TraceyC 2025-04-14 22:10:03 UTC
There had been a similar backtrace in Plasma 5.90.0 that had a fix applied in kwin
https://bugs.kde.org/show_bug.cgi?id=477854

Commit was
https://invent.kde.org/plasma/kwin/-/commit/df4b12550680e8a2a6bf34bf13e932e5b815159c

I don't see any other instances of crashes with this backtrace
Comment 3 Rai Mohammed 2025-04-15 11:23:01 UTC
The issue persist even after upgrading my FreeBSD 14.2 from Quarterly [Stable] branch to Latest branch, and updated my KDE packages and system as fallow :
Operating System: FreeBSD 14.2
KDE Plasma Version: 6.3.4
KDE Frameworks Version: 6.12.0
Qt Version: 6.8.3
Kernel Version: 14.2-RELEASE-p1 (64-bit)
Graphics Platform: X11
Graphics Processor: llvmpipe
Comment 4 Rai Mohammed 2025-04-15 12:13:58 UTC
Graphic hardware information related to my configuration :
Graphics Processor        :  Nvidia GeForce GTX 650 PCI Express x16 Gen3
NVIDIA Driver Version  :  nvidia-driver-390-390.154.1402000_1
NVIDIA Control Panel   :  nvidia-settings-535.146.02_1
Comment 5 Nate Graham 2025-04-16 17:01:00 UTC
The crash backtrace indicates that the problem is in the proprietary NVIDIA drivers.

Please report this issue to the NVIDIA folks, either by sending an email to linux-bugs@nvidia.com or making a post at https://forums.developer.nvidia.com/c/gpu-graphics/linux. It would be helpful to the NVIDIA developers if you could run `nvidia-bug-report.sh` and attach the resulting file in your report. Thanks!
Comment 6 Rai Mohammed 2025-04-21 08:15:14 UTC
Kwin crashes after a fresh start of the desktop, the issue persists even after upgrading my FreeBSD 14.2 from Quarterly [Stable] branch to Latest branch, and updated my KDE packages and system as fallow :

Operating System: FreeBSD 14.2
KDE Plasma Version: 6.3.4
KDE Frameworks Version: 6.13.0
Qt Version: 6.8.3
Kernel Version: 14.2-RELEASE-p1 (64-bit)
Graphics Platform: X11
Graphics Processor: llvmpipe
Graphics Card : Nvidia GeForce GTX 650 PCI Express x16 Gen3
NVidia graphics card binary drivers : nvidia-driver-390-390.157.1402000
Display Control Panel for NVidia : nvidia-settings-570.133.07

As suggested by Nate Graham : nate@kde.org

I will report the indicates crash to the NVIDIA developers, by sending an email to [linux-bugs@nvidia.com, freebsd-gfx-bugs@nvidia.com], and making a post at https://forums.developer.nvidia.com/c/gpu-graphics/linux. The file report : 'nvidia-bug-report.log.gz' generated by  `nvidia-bug-report.sh` will be sent to the appropriate e-mail addresses. Thanks!
Comment 7 John Kizer 2025-04-21 14:28:57 UTC
Hi - correct me if I'm wrong, but I think this accidentally got flipped to "reported" status with the last comment, so I'm switching this back to "upstream" status :-)
Comment 8 Rai Mohammed 2025-04-21 17:45:47 UTC
(In reply to John Kizer from comment #7)
> Hi - correct me if I'm wrong, but I think this accidentally got flipped to
> "reported" status with the last comment, so I'm switching this back to
> "upstream" status :-)

Hello, Excuse me for flipping the status of the bug, my attention for changing the status of the issue to : "REPORTED", was to indicate the progress of the crash.
This time the status is unchanged :-)

However, in continuation of monitoring the status of the problem, I inform you that I reported the crash to the NVIDIA developers, by sending an email to [linux-bugs@nvidia.com, freebsd-gfx-bugs@nvidia.com], and making a post at https://forums.developer.nvidia.com/t/nvidia-geforce-gtx-650-computer-crash-on-freebsd-14-2-occurs-in-many-situations-shutdown-reboot-or-log-out-and-log-in-to-a-session/330973.

This time the status is unchanged :-)
Best regards. Thanks.
Comment 9 Rai Mohammed 2025-04-22 12:10:59 UTC
Good morning,


I had reported a crash of my system after upgrading to FreeBSD 14.2-p3 with KDE Plasma from 6.2.4 to 6.3.3, after verification
and installing Vulcan suite of utilities, I noticed my GPU is not listed on Vulkan Hardware Capability Viewer even vulkan's driver
is supported by the GPU Nvidia GeForce GTX 650, furthermore verification on Nvidia website the GPU Nvidia GeForce GTX 650
can operate by 2 drivers, nvidia-driver-390 and nvidia-driver-470, unlucky I am in my setup I was using the former, so I suspected
that this is the cause of the issue, the next step was to install the latest nvidia-driver-470.

Now my system report and display correctly the hardware by [KDE Plasma Info center, Graphics Processor] and 
[Vulkan Hardware Capability Viewer] as : NVIDIA GeForce GTX 650

I tried to reproduce the crash by : shutdown, reboot or log-out and log-in to a session, the problem didn't occur.

Please accept my best regards. Thanks