Bug 503413

Summary: powerdevil asserts in dw_hotplug_change_handler when connecting or disconnecting to a dock with a screen plugged into it
Product: [Plasma] plasmashell Reporter: Cristian M. Barbé <darthsteel>
Component: Power management & brightnessAssignee: Plasma Bugs List <plasma-bugs-null>
Status: RESOLVED FIXED    
Severity: crash CC: johannes.hirte, jpetso, kdebugs, kdedev, nate, paco3346, rockowitz
Priority: NOR    
Version First Reported In: 6.3.4   
Target Milestone: 1.0   
Platform: Arch Linux   
OS: Linux   
Latest Commit: Version Fixed In: Plasma 6.4.4 with ddcutil 2.2.1
Sentry Crash Report:
Attachments: Log

Description Cristian M. Barbé 2025-04-27 04:55:38 UTC
Created attachment 180696 [details]
Log

-- Information about the crash:
Cuando conecto un dock con un ssd nvme por usb falla, siempre sucede.

The crash can be reproduced every time.
Comment 1 Nate Graham 2025-04-28 15:52:14 UTC
Thread 1 (Thread 0x7bbce57fa6c0 (LWP 13181)):
[KCrash Handler]
#5  __pthread_kill_implementation (threadid=<optimized out>, signo=signo@entry=6, no_tid=no_tid@entry=0) at pthread_kill.c:44
#6  0x00007bbcf50a56d3 in __pthread_kill_internal (threadid=<optimized out>, signo=6) at pthread_kill.c:89
#7  0x00007bbcf504bba0 in __GI_raise (sig=sig@entry=6) at ../sysdeps/posix/raise.c:26
#8  0x00007bbcf5033582 in __GI_abort () at abort.c:73
#9  0x00007bbcf50334eb in __assert_fail_base (fmt=<optimized out>, assertion=<optimized out>, file=<optimized out>, line=137, function=<optimized out>) at assert.c:118
#10 0x00007bbcf5043c30 in __assert_fail (assertion=<optimized out>, file=<optimized out>, line=<optimized out>, function=<optimized out>) at assert.c:127
#11 0x00007bbcf4d970a0 in dw_add_display_by_businfo (businfo=businfo@entry=0x5ca610369670) at dw/dw_dref.c:137
#12 0x00007bbcf4da0f46 in dw_hotplug_change_handler (bs_buses_w_edid_removed=..., bs_buses_w_edid_added=..., events_queue=events_queue@entry=0x0, drefs_to_recheck=drefs_to_recheck@entry=0x7bbcd4000b70) at dw/dw_common.c:421
#13 0x00007bbcf4da1fc9 in process_screen_change_event (p_bs_attached_buses=p_bs_attached_buses@entry=0x7bbce57f9a70, p_bs_buses_w_edid=p_bs_buses_w_edid@entry=0x7bbce57f9a50, deferred_events=deferred_events@entry=0x0, displays_to_recheck=displays_to_recheck@entry=0x7bbcd4000b70) at dw/dw_poll.c:141
#14 0x00007bbcf4da7a29 in dw_watch_display_connections (data=0x5ca61035ed60) at dw/dw_poll.c:302
#15 0x00007bbcf4918a3e in g_thread_proxy (data=0x5ca6103784d0) at ../glib/glib/gthread.c:890
#16 0x00007bbcf50a370a in start_thread (arg=<optimized out>) at pthread_create.c:448
#17 0x00007bbcf5127aac in __GI___clone3 () at ../sysdeps/unix/sysv/linux/x86_64/clone3.S:78
Comment 2 Nate Graham 2025-04-30 18:13:27 UTC
*** Bug 503581 has been marked as a duplicate of this bug. ***
Comment 3 Cristian M. Barbé 2025-05-10 12:56:08 UTC
I'm adding new information that I overlooked. I have my monitor connected via HDMI and DisplayPort. The HDMI is connected to an EVGA XR1 Pro capture card. The error occurs when I connect an NVME SSD in a USB encapsulation, connected via USB 3.
Comment 4 Nate Graham 2025-06-12 15:36:39 UTC
*** Bug 505472 has been marked as a duplicate of this bug. ***
Comment 5 Sanfod Rockowitz 2025-06-12 17:21:07 UTC
Can you verify that this still occurs having built libddcutil from ddcutil github branch 2.2.1-dev?
Comment 6 TraceyC 2025-08-12 22:14:38 UTC
Setting to waitingforinfo since we're waiting on information from the reporter
Comment 7 Cristian M. Barbé 2025-08-13 07:46:52 UTC
(In reply to TraceyC from comment #6)
> Setting to waitingforinfo since we're waiting on information from the
> reporter

I've retested on kde plasma 6.4.4 and the problem is gone, thanks for the hard work guys!
Comment 8 Nate Graham 2025-08-13 13:22:34 UTC
Great!