Bug 499773 - systemsettings kcm_powerdevilprofilesconfig crashes on open with certain different fonts, font sizes, or languages/text lengths
Summary: systemsettings kcm_powerdevilprofilesconfig crashes on open with certain diff...
Status: RESOLVED UPSTREAM
Alias: None
Product: systemsettings
Classification: Applications
Component: kcm_powerdevil (show other bugs)
Version: 6.3.4
Platform: openSUSE Linux
: NOR crash
Target Milestone: ---
Assignee: Plasma Bugs List
URL:
Keywords:
: 499991 500933 501826 (view as bug list)
Depends on:
Blocks:
 
Reported: 2025-02-10 19:19 UTC by Thomas Rother
Modified: 2025-04-08 13:38 UTC (History)
9 users (show)

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


Attachments
coredumpctl gdb 4467 (7.53 KB, text/plain)
2025-02-10 20:25 UTC, Thomas Rother
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Thomas Rother 2025-02-10 19:19:05 UTC
KDE Plasma gui for systemsettings kcm_powerdevilprofilesconfig crashes if used. This happens since the update to kde6.  I cleaned .config/powerdevilrc and powermanagementprofilesrc and restarted 

thommie@odysseus4:~/.config> systemctl --user status plasma-powerdevil.service
● plasma-powerdevil.service - Powerdevil
     Loaded: loaded (/usr/lib/systemd/user/plasma-powerdevil.service; static)
     Active: active (running) since Mon 2025-02-10 19:42:54 CET; 6s ago
 Invocation: 15a0fbb1ce194c299a1acc16a710b652
   Main PID: 22850 (org_kde_powerde)
      Tasks: 10 (limit: 76514)
        CPU: 759ms
     CGroup: /user.slice/user-1000.slice/user@1000.service/background.slice/plasma-powerdevil.service
             └─22850 /usr/libexec/org_kde_powerdevil

Feb 10 19:42:52 odysseus4 systemd[2684]: Starting Powerdevil...
Feb 10 19:42:52 odysseus4 org_kde_powerdevil[22850]: Initializing libddcutil.  ddcutil version: 2.1.4, shared library: /u>
Feb 10 19:42:52 odysseus4 org_kde_powerdevil[22850]: Options passed from client:
Feb 10 19:42:52 odysseus4 org_kde_powerdevil[22850]: Applying combined options:
Feb 10 19:42:54 odysseus4 org_kde_powerdevil[22850]: Library initialization complete.
Feb 10 19:42:54 odysseus4 org_kde_powerdevil[22850]: org.kde.powerdevil: [DDCutilDetector]: Failed to initialize callback
Feb 10 19:42:54 odysseus4 systemd[2684]: Started Powerdevil.
Feb 10 19:42:54 odysseus4 org_kde_powerdevil[22850]: org.kde.powerdevil: Handle button events action could not check for screen configuration
qq
~

starting the systemsetting from the shell shows:

thommie@odysseus4:~/.config> systemsettings kcm_powerdevilprofilesconfig
Failed to query platform profile choices "No such object path '/org/kde/Solid/PowerManagement/Actions/PowerProfile'"

power-profiles daemon is running:

odysseus4:~ # systemctl status power-profiles-daemon.service
● power-profiles-daemon.service - Power Profiles daemon
     Loaded: loaded (/usr/lib/systemd/system/power-profiles-daemon.service; disabled; preset: disabled)
     Active: active (running) since Mon 2025-02-10 20:10:08 CET; 4min 33s ago
 Invocation: 370990fd8b3d4ea580816e38d8bb62d7
   Main PID: 3749 (power-profiles-)
      Tasks: 4 (limit: 76514)
        CPU: 48ms
     CGroup: /system.slice/power-profiles-daemon.service
             └─3749 /usr/libexec/power-profiles-daemon

Feb 10 20:10:08 odysseus4 systemd[1]: Starting Power Profiles daemon...
Feb 10 20:10:08 odysseus4 systemd[1]: Started Power Profiles daemon.

System data:
Operating System: openSUSE Tumbleweed 20250209
KDE Plasma Version: 6.2.5
KDE Frameworks Version: 6.10.0
Qt Version: 6.8.2
Kernel Version: 6.13.1-1-default (64-bit)
Graphics Platform: Wayland
Comment 1 Nicolas Fella 2025-02-10 20:02:41 UTC
Thanks for the report.

If something crashes we need a backtrace of the crash to investigate this properly. See https://community.kde.org/Guidelines_and_HOWTOs/Debugging/How_to_create_useful_crash_reports#Retrieving_a_backtrace_using_coredumpctl

That said your logs don't look like something has crashed. Usually there will be something like

> KCrash: Application 'systemsettings' crashing... crashRecursionCounter = 2
> [1]    223806 segmentation fault (core dumped)  systemsettings kcm_powerdevilprofilesconfig

in the log. Do you have that?
Comment 2 Thomas Rother 2025-02-10 20:24:58 UTC
Hm, coredumpctl --reverse shows the crashes:

Mon 2025-02-10 20:11:54 CET    4467 1000 1000 SIGABRT present  /usr/bin/systemsettings                    12.3M
Mon 2025-02-10 19:45:05 CET   22336 1000 1000 SIGABRT present  /usr/bin/systemsettings                    12.5M
Mon 2025-02-10 19:26:35 CET   16696 1000 1000 SIGABRT present  /usr/bin/systemsettings                    12.8M
Mon 2025-02-10 19:14:40 CET   16039 1000 1000 SIGABRT present  /usr/bin/systemsettings                    12.3M

When I start systemsetting "Energieverwaltung" the window is empty and, after a fexw seconds, teh window crashes 
"systemsettings kcm_powerdevilprofilesconfig" shows no results at all. Enclosed is the result of coredumpctl gdb 4467
Comment 3 Thomas Rother 2025-02-10 20:25:26 UTC
Created attachment 178124 [details]
coredumpctl gdb 4467
Comment 4 Nicolas Fella 2025-02-10 20:26:45 UTC
#0  0x00007fb01b09a13c __pthread_kill_implementation (libc.so.6 + 0x9a13c)
#1  0x00007fb01b041436 raise (libc.so.6 + 0x41436)
#2  0x00007fb01e7b987f _ZN6KCrash19defaultCrashHandlerEi (libKF6Crash.so.6 + 0x687f)
#3  0x00007fb01b041500 __restore_rt (libc.so.6 + 0x41500)
#4  0x00007fb01a7cc578 n/a (libfreetype.so.6 + 0x24578)
#5  0x00007fb01a7bb29e FT_Load_Sfnt_Table (libfreetype.so.6 + 0x1329e)
#6  0x00007fb01c61da40 n/a (libQt6Gui.so.6 + 0x61da40)
#7  0x00007fb01c5eb9b0 n/a (libQt6Gui.so.6 + 0x5eb9b0)
#8  0x00007fb01a949b34 n/a (libharfbuzz.so.0 + 0xcdb34)
#9  0x00007fb01a93edf5 n/a (libharfbuzz.so.0 + 0xc2df5)
#10 0x00007fb01a942b51 hb_shape_plan_create_cached2 (libharfbuzz.so.0 + 0xc6b51)
#11 0x00007fb01a942e71 hb_shape_full (libharfbuzz.so.0 + 0xc6e71)
#12 0x00007fb01c4e297a _ZNK11QTextEngine23shapeTextWithHarfbuzzNGERK11QScriptItemPKtiP11QFontEngine5QSpanIjLm18446744073709551615EEbbRK5QHashIN5QFont3TagEjE (libQt6Gui.so.6 + 0x4e297a)
#13 0x00007fb01c4e7dad _ZNK11QTextEngine9shapeTextEi (libQt6Gui.so.6 + 0x4e7dad)
#14 0x00007fb01c50d8b3 _ZN9QTextLine13layout_helperEi (libQt6Gui.so.6 + 0x50d8b3)
#15 0x00007fb01e2a6550 _ZN17QQuickTextPrivate15setLineGeometryER9QTextLinedRd (libQt6Quick.so.6 + 0x2a6550)
#16 0x00007fb01e2a7391 _ZN17QQuickTextPrivate15setupTextLayoutEPd (libQt6Quick.so.6 + 0x2a7391)
#17 0x00007fb01e2a9708 _ZN17QQuickTextPrivate10updateSizeEv (libQt6Quick.so.6 + 0x2a9708)
#18 0x00007fb01e2aec68 _ZN10QQuickText14geometryChangeERK6QRectFS2_ (libQt6Quick.so.6 + 0x2aec68)
#19 0x00007fb01672ea6e _ZN11QQuickLabel14geometryChangeERK6QRectFS2_ (libQt6QuickTemplates2.so.6 + 0x12ea6e)
#20 0x00007fb01e258b5f _ZN10QQuickItem7setSizeERK6QSizeF (libQt6Quick.so.6 + 0x258b5f)
Comment 5 Nicolas Fella 2025-02-10 20:29:39 UTC
Thanks. The crash happens somewhere deep in font handling code (freetype), so I'm inclined to say that this isn't a bug in KDE code
Comment 6 Thomas Rother 2025-02-10 20:45:01 UTC
(In reply to Nicolas Fella from comment #5)
> Thanks. The crash happens somewhere deep in font handling code (freetype),
> so I'm inclined to say that this isn't a bug in KDE code

OK, but I have no other issues or rendering effects on this machine which could be linked to freetype stuff. Is this more a distro issue and should thus be transferred to the opensuse bugzilla?
Comment 7 Nicolas Fella 2025-02-10 20:48:29 UTC
I don't think it's a distro issue, no.

Are you using the default font?
Comment 8 Thomas Rother 2025-02-10 21:11:26 UTC
current font is "Roboto 14". I played with different fonts:

roboto: crash
carlito: no crash <<<<
cantarell: crash
deja vu serif: crash
deja vu sans: crash
noto serif: crash
noto sans: crash

libfreetype6 is 2.13.2-2.3. Note that the crash only happens in the "Energiemanagement" widget, all other settings have no issues.
Comment 9 Nate Graham 2025-02-19 16:24:25 UTC
Possibly related to Bug 499991? That's another instance of text rendering causing issues in this KCM. Maybe it's doing something odd internally to expose such bugs.
Comment 10 Nate Graham 2025-03-25 22:14:00 UTC
*** Bug 500933 has been marked as a duplicate of this bug. ***
Comment 11 Nate Graham 2025-03-25 22:14:04 UTC
*** Bug 499991 has been marked as a duplicate of this bug. ***
Comment 12 Nate Graham 2025-03-25 22:14:10 UTC
*** Bug 501826 has been marked as a duplicate of this bug. ***
Comment 13 Nate Graham 2025-04-06 16:33:58 UTC
In the duplicate Bug 499991, I was previously able to reproduce this by increasing the font size to 11 and running `LANGUAGE=zh_CN.UTF-8 systemsettings`, then going to the Power Management page. But now I can't anymore.

Is anyone who was previously affected able to re-test with current git master to verify that it's fixed for them too?
Comment 14 Ye Jingchen 2025-04-08 12:31:58 UTC
(In reply to Nate Graham from comment #13)
> In the duplicate Bug 499991, I was previously able to reproduce this by
> increasing the font size to 11 and running `LANGUAGE=zh_CN.UTF-8
> systemsettings`, then going to the Power Management page. But now I can't
> anymore.
> 
> Is anyone who was previously affected able to re-test with current git
> master to verify that it's fixed for them too?

I can't reproduce this problem either, using Qt 6.9.0, but with powerdevil not git master but 6.3.4.

Other package versions (from Arch Linux):
qt6-base 6.9.0-1
powerdevil 6.3.4-1
freetype2 2.13.3-3
harfbuzz 11.0.1-1
fontconfig 2:2.16.1-1
icu 76.1-1
Comment 15 Nate Graham 2025-04-08 13:28:16 UTC
Great! Seems like it was fixed by something upstream of us. Thanks everyone.
Comment 16 Thomas Rother 2025-04-08 13:38:28 UTC
I am now using font Noto serif 13 without issues. Previously this was one of the fonts which triggered a crash. 
From my point of view, this is solved by "upstream magic" ;-)

version info:
Operating System: openSUSE Tumbleweed 20250403
KDE Plasma Version: 6.3.4
KDE Frameworks Version: 6.12.0
Qt Version: 6.8.2
Kernel Version: 6.14.0-1-default (64-bit)
Graphics Platform: Wayland
Processors: 28 × 13th Gen Intel® Core™ i7-13850HX
Memory: 62.5 GiB of RAM
Graphics Processor 1: Mesa Intel® Graphics
Graphics Processor 2: llvmpipe
Manufacturer: Dell Inc.
Product Name: Precision 7680