Bug 489163 - Powerdevil crashes in DDC code when attempting to adjust screen brightness on Plasma 6.1
Summary: Powerdevil crashes in DDC code when attempting to adjust screen brightness on...
Status: RESOLVED DUPLICATE of bug 489169
Alias: None
Product: Powerdevil
Classification: Plasma
Component: general (show other bugs)
Version: 6.1.0
Platform: Fedora RPMs Linux
: NOR crash
Target Milestone: ---
Assignee: Plasma Bugs List
URL:
Keywords: drkonqi, regression
Depends on:
Blocks:
 
Reported: 2024-06-25 08:55 UTC by KDE User
Modified: 2024-06-26 20:45 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 KDE User 2024-06-25 08:55:20 UTC
Application: org_kde_powerdevil (6.1.0)

Qt Version: 6.7.1
Frameworks Version: 6.3.0
Operating System: Linux 6.9.6-201.fsync.fc40.x86_64 x86_64
Windowing System: Wayland
Distribution: "Fedora Linux 40.20240624.0 (Bazzite)"
DrKonqi: 6.1.0 [CoredumpBackend]

-- Information about the crash:
1. Open the screen brightness applet on the system tray
2. Adjust display brightness two times
3. The applet will crash

I am running Bazzite (Fedora based) testing branch with the NVIDIA 555.52.04 driver with KDE Plasma 6.1.0.
I have 3 monitors connected.

The crash can be reproduced every time.

-- Backtrace:
Application: KDE Power Management System (org_kde_powerdevil), signal: Aborted


This GDB supports auto-downloading debuginfo from the following URLs:
  <https://debuginfod.fedoraproject.org/>
Enable debuginfod for this session? (y or [n]) [answered N; input not from terminal]
Debuginfod has been disabled.
To make this setting permanent, add 'set debuginfod enabled off' to .gdbinit.
[New LWP 7603]
[New LWP 7457]
[New LWP 7608]
[New LWP 7493]
[New LWP 7431]
[New LWP 7459]
[New LWP 7458]
[New LWP 7492]
[New LWP 7609]
[New LWP 7495]
[Thread debugging using libthread_db enabled]
Using host libthread_db library "/lib64/libthread_db.so.1".
Core was generated by `/usr/libexec/org_kde_powerdevil'.
Program terminated with signal SIGABRT, Aborted.
#0  0x00007f905caab144 in __pthread_kill_implementation () from /lib64/libc.so.6
[Current thread is 1 (Thread 0x7f902be006c0 (LWP 7603))]
Cannot QML trace cores :(
[Current thread is 1 (Thread 0x7f902be006c0 (LWP 7603))]

Thread 10 (Thread 0x7f903d4006c0 (LWP 7495)):
#0  0x00007f905cb1d75d in poll () from /lib64/libc.so.6
#1  0x00007f905b770c34 in g_main_context_iterate_unlocked.isra () from /lib64/libglib-2.0.so.0
#2  0x00007f905b714f37 in g_main_loop_run () from /lib64/libglib-2.0.so.0
#3  0x00007f90557a0682 in gdbus_shared_thread_func.lto_priv () from /lib64/libgio-2.0.so.0
#4  0x00007f905b73f813 in g_thread_proxy () from /lib64/libglib-2.0.so.0
#5  0x00007f905caa91b7 in start_thread () from /lib64/libc.so.6
#6  0x00007f905cb2b3cc in clone3 () from /lib64/libc.so.6

Thread 9 (Thread 0x7f90318006c0 (LWP 7609)):
#0  0x00007f905cb1d75d in poll () from /lib64/libc.so.6
#1  0x00007f905b770c34 in g_main_context_iterate_unlocked.isra () from /lib64/libglib-2.0.so.0
#2  0x00007f905b710383 in g_main_context_iteration () from /lib64/libglib-2.0.so.0
#3  0x00007f905d47cb53 in QEventDispatcherGlib::processEvents(QFlags<QEventLoop::ProcessEventsFlag>) () from /lib64/libQt6Core.so.6
#4  0x00007f905d1a2713 in QEventLoop::exec(QFlags<QEventLoop::ProcessEventsFlag>) () from /lib64/libQt6Core.so.6
#5  0x00007f905d2b414f in QThread::exec() () from /lib64/libQt6Core.so.6
#6  0x00007f905d34fc5c in QThreadPrivate::start(void*) () from /lib64/libQt6Core.so.6
#7  0x00007f905caa91b7 in start_thread () from /lib64/libc.so.6
#8  0x00007f905cb2b3cc in clone3 () from /lib64/libc.so.6

Thread 8 (Thread 0x7f90452006c0 (LWP 7492)):
#0  0x00007f905cb291bd in syscall () from /lib64/libc.so.6
#1  0x00007f905b76dccd in g_cond_wait () from /lib64/libglib-2.0.so.0
#2  0x00007f905b6d961b in g_async_queue_pop_intern_unlocked () from /lib64/libglib-2.0.so.0
#3  0x00007f905b740a03 in g_thread_pool_spawn_thread () from /lib64/libglib-2.0.so.0
#4  0x00007f905b73f813 in g_thread_proxy () from /lib64/libglib-2.0.so.0
#5  0x00007f905caa91b7 in start_thread () from /lib64/libc.so.6
#6  0x00007f905cb2b3cc in clone3 () from /lib64/libc.so.6

Thread 7 (Thread 0x7f9046c006c0 (LWP 7458)):
#0  0x00007f905cb1d75d in poll () from /lib64/libc.so.6
#1  0x00007f905a576dc5 in QtWaylandClient::EventThread::run() () from /lib64/libQt6WaylandClient.so.6
#2  0x00007f905d34fc5c in QThreadPrivate::start(void*) () from /lib64/libQt6Core.so.6
#3  0x00007f905caa91b7 in start_thread () from /lib64/libc.so.6
#4  0x00007f905cb2b3cc in clone3 () from /lib64/libc.so.6

Thread 6 (Thread 0x7f90462006c0 (LWP 7459)):
#0  0x00007f905cb1d75d in poll () from /lib64/libc.so.6
#1  0x00007f905a576dc5 in QtWaylandClient::EventThread::run() () from /lib64/libQt6WaylandClient.so.6
#2  0x00007f905d34fc5c in QThreadPrivate::start(void*) () from /lib64/libQt6Core.so.6
#3  0x00007f905caa91b7 in start_thread () from /lib64/libc.so.6
#4  0x00007f905cb2b3cc in clone3 () from /lib64/libc.so.6

Thread 5 (Thread 0x7f9055438400 (LWP 7431)):
#0  0x00007f905cb1d75d in poll () from /lib64/libc.so.6
#1  0x00007f905b770c34 in g_main_context_iterate_unlocked.isra () from /lib64/libglib-2.0.so.0
#2  0x00007f905b710383 in g_main_context_iteration () from /lib64/libglib-2.0.so.0
#3  0x00007f905d47cb53 in QEventDispatcherGlib::processEvents(QFlags<QEventLoop::ProcessEventsFlag>) () from /lib64/libQt6Core.so.6
#4  0x00007f905d1a2713 in QEventLoop::exec(QFlags<QEventLoop::ProcessEventsFlag>) () from /lib64/libQt6Core.so.6
#5  0x00007f905d19e69c in QCoreApplication::exec() () from /lib64/libQt6Core.so.6
#6  0x000055d38d5cce6c in main ()

Thread 4 (Thread 0x7f903de006c0 (LWP 7493)):
#0  0x00007f905cb1d75d in poll () from /lib64/libc.so.6
#1  0x00007f905b770c34 in g_main_context_iterate_unlocked.isra () from /lib64/libglib-2.0.so.0
#2  0x00007f905b710383 in g_main_context_iteration () from /lib64/libglib-2.0.so.0
#3  0x00007f905b7103e1 in glib_worker_main () from /lib64/libglib-2.0.so.0
#4  0x00007f905b73f813 in g_thread_proxy () from /lib64/libglib-2.0.so.0
#5  0x00007f905caa91b7 in start_thread () from /lib64/libc.so.6
#6  0x00007f905cb2b3cc in clone3 () from /lib64/libc.so.6

Thread 3 (Thread 0x7f9030e006c0 (LWP 7608)):
[KCrash Handler]
#5  0x00007f905caab144 in __pthread_kill_implementation () from /lib64/libc.so.6
#6  0x00007f905ca5365e in raise () from /lib64/libc.so.6
#7  0x00007f905ca3b902 in abort () from /lib64/libc.so.6
#8  0x00007f905b6d210c in g_assertion_message[cold] () from /lib64/libglib-2.0.so.0
#9  0x00007f905b73f397 in g_assertion_message_expr () from /lib64/libglib-2.0.so.0
#10 0x00007f905b6f3d87 in g_hash_table_remove_node.lto_priv () from /lib64/libglib-2.0.so.0
#11 0x00007f905b6fcae9 in g_hash_table_remove () from /lib64/libglib-2.0.so.0
#12 0x00007f905c8e393e in ddc_close_display () from /lib64/libddcutil.so.5
#13 0x00007f905c927445 in ddca_close_display () from /lib64/libddcutil.so.5
#14 0x00007f905e607f07 in BrightnessWorker::ddcSetBrightness(int, DDCutilDisplay*) () from /lib64/libpowerdevilcore.so.2
#15 0x00007f905d1ebdeb in QObject::event(QEvent*) () from /lib64/libQt6Core.so.6
#16 0x00007f905d195b18 in QCoreApplication::notifyInternal2(QObject*, QEvent*) () from /lib64/libQt6Core.so.6
#17 0x00007f905d1998c1 in QCoreApplicationPrivate::sendPostedEvents(QObject*, int, QThreadData*) () from /lib64/libQt6Core.so.6
#18 0x00007f905d47d39f in postEventSourceDispatch(_GSource*, int (*)(void*), void*) () from /lib64/libQt6Core.so.6
#19 0x00007f905b70ee8c in g_main_context_dispatch_unlocked.lto_priv () from /lib64/libglib-2.0.so.0
#20 0x00007f905b770c98 in g_main_context_iterate_unlocked.isra () from /lib64/libglib-2.0.so.0
#21 0x00007f905b710383 in g_main_context_iteration () from /lib64/libglib-2.0.so.0
#22 0x00007f905d47cb53 in QEventDispatcherGlib::processEvents(QFlags<QEventLoop::ProcessEventsFlag>) () from /lib64/libQt6Core.so.6
#23 0x00007f905d1a2713 in QEventLoop::exec(QFlags<QEventLoop::ProcessEventsFlag>) () from /lib64/libQt6Core.so.6
#24 0x00007f905d2b414f in QThread::exec() () from /lib64/libQt6Core.so.6
#25 0x00007f905d34fc5c in QThreadPrivate::start(void*) () from /lib64/libQt6Core.so.6
#26 0x00007f905caa91b7 in start_thread () from /lib64/libc.so.6
#27 0x00007f905cb2b3cc in clone3 () from /lib64/libc.so.6

Thread 2 (Thread 0x7f90476006c0 (LWP 7457)):
#0  0x00007f905cb1d75d in poll () from /lib64/libc.so.6
#1  0x00007f905b770c34 in g_main_context_iterate_unlocked.isra () from /lib64/libglib-2.0.so.0
#2  0x00007f905b710383 in g_main_context_iteration () from /lib64/libglib-2.0.so.0
#3  0x00007f905d47cb53 in QEventDispatcherGlib::processEvents(QFlags<QEventLoop::ProcessEventsFlag>) () from /lib64/libQt6Core.so.6
#4  0x00007f905d1a2713 in QEventLoop::exec(QFlags<QEventLoop::ProcessEventsFlag>) () from /lib64/libQt6Core.so.6
#5  0x00007f905d2b414f in QThread::exec() () from /lib64/libQt6Core.so.6
#6  0x00007f905e286b11 in QDBusConnectionManager::run() () from /lib64/libQt6DBus.so.6
#7  0x00007f905d34fc5c in QThreadPrivate::start(void*) () from /lib64/libQt6Core.so.6
#8  0x00007f905caa91b7 in start_thread () from /lib64/libc.so.6
#9  0x00007f905cb2b3cc in clone3 () from /lib64/libc.so.6

Thread 1 (Thread 0x7f902be006c0 (LWP 7603)):
[KCrash Handler]
#4  0x00007f905caab144 in __pthread_kill_implementation () from /lib64/libc.so.6
#5  0x00007f905ca5365e in raise () from /lib64/libc.so.6
#6  0x00007f905ca3b902 in abort () from /lib64/libc.so.6
#7  0x00007f905b6d210c in g_assertion_message[cold] () from /lib64/libglib-2.0.so.0
#8  0x00007f905b73f397 in g_assertion_message_expr () from /lib64/libglib-2.0.so.0
#9  0x00007f905b6f3d87 in g_hash_table_remove_node.lto_priv () from /lib64/libglib-2.0.so.0
#10 0x00007f905b6fcae9 in g_hash_table_remove () from /lib64/libglib-2.0.so.0
#11 0x00007f905c8e393e in ddc_close_display () from /lib64/libddcutil.so.5
#12 0x00007f905c927445 in ddca_close_display () from /lib64/libddcutil.so.5
#13 0x00007f905e607f07 in BrightnessWorker::ddcSetBrightness(int, DDCutilDisplay*) () from /lib64/libpowerdevilcore.so.2
#14 0x00007f905d1ebdeb in QObject::event(QEvent*) () from /lib64/libQt6Core.so.6
#15 0x00007f905d195b18 in QCoreApplication::notifyInternal2(QObject*, QEvent*) () from /lib64/libQt6Core.so.6
#16 0x00007f905d1998c1 in QCoreApplicationPrivate::sendPostedEvents(QObject*, int, QThreadData*) () from /lib64/libQt6Core.so.6
#17 0x00007f905d47d39f in postEventSourceDispatch(_GSource*, int (*)(void*), void*) () from /lib64/libQt6Core.so.6
#18 0x00007f905b70ee8c in g_main_context_dispatch_unlocked.lto_priv () from /lib64/libglib-2.0.so.0
#19 0x00007f905b770c98 in g_main_context_iterate_unlocked.isra () from /lib64/libglib-2.0.so.0
#20 0x00007f905b710383 in g_main_context_iteration () from /lib64/libglib-2.0.so.0
#21 0x00007f905d47cb53 in QEventDispatcherGlib::processEvents(QFlags<QEventLoop::ProcessEventsFlag>) () from /lib64/libQt6Core.so.6
#22 0x00007f905d1a2713 in QEventLoop::exec(QFlags<QEventLoop::ProcessEventsFlag>) () from /lib64/libQt6Core.so.6
#23 0x00007f905d2b414f in QThread::exec() () from /lib64/libQt6Core.so.6
#24 0x00007f905d34fc5c in QThreadPrivate::start(void*) () from /lib64/libQt6Core.so.6
#25 0x00007f905caa91b7 in start_thread () from /lib64/libc.so.6
#26 0x00007f905cb2b3cc in clone3 () from /lib64/libc.so.6

Reported using DrKonqi
Comment 1 Nate Graham 2024-06-25 15:06:14 UTC
Crashing in ddc:

11 0x00007f905c8e393e in ddc_close_display () from /lib64/libddcutil.so.5
#12 0x00007f905c927445 in ddca_close_display () from /lib64/libddcutil.so.5
#13 0x00007f905e607f07 in BrightnessWorker::ddcSetBrightness(int, DDCutilDisplay*) () from /lib64/libpowerdevilcore.so.2
Comment 2 KDE User 2024-06-25 15:58:53 UTC
I was able to consistently crash it but now I cannot for whatever reason. I'll try debugging it tomorrow if I can crash it again.
Comment 3 KDE User 2024-06-26 15:13:21 UTC
I am unable to reproduce the bug anymore. Feel free to close this report if no further action can be taken.
Comment 4 Nate Graham 2024-06-26 20:45:23 UTC
No worries, there's another one reporting the same thing that we can mark this as a duplicate of. It's newer by 2 hours, but it has full debug symbols, so I'm forward-duping anyway.

*** This bug has been marked as a duplicate of bug 489169 ***