Bug 485937 - polkit-kde-authentication-agent-1 crashes, if QT style is overridden (QT_STYLE_OVERRIDE), only Fusion works
Summary: polkit-kde-authentication-agent-1 crashes, if QT style is overridden (QT_STYL...
Status: NEEDSINFO WAITINGFORINFO
Alias: None
Product: policykit-kde-agent-1
Classification: Plasma
Component: general (show other bugs)
Version: 6.0.3
Platform: Fedora RPMs Linux
: NOR crash
Target Milestone: ---
Assignee: Unassigned bugs mailing-list
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2024-04-22 03:23 UTC by Fabian Arndt
Modified: 2025-03-28 03:46 UTC (History)
6 users (show)

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


Attachments
Stack trace (3.06 KB, text/plain)
2024-04-22 03:23 UTC, Fabian Arndt
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Fabian Arndt 2024-04-22 03:23:47 UTC
Created attachment 168779 [details]
Stack trace

SUMMARY

It crashed, if the specified theme is not present/accessible (?). The only working Theme is "Fusion".
This is happened on hyprland, as I was testing polkit with it. Nonetheless, it should not crash.


STEPS TO REPRODUCE

1. Run "QT_STYLE_OVERRIDE=Adwaita-Dark /usr/libexec/kf6/polkit-kde-authentication-agent-1"
2. Open a program that requests elevated rights (rg. partitionmanager)


OBSERVED RESULT

Crash. Some stdout output:

> QQmlApplicationEngine failed to load component
> qrc:/qml/QuickAuthDialog.qml: module "Adwaita-Dark" is not installed
> KCrash: appFilePath points to nullptr!
> KCrash: Application '<unknown>' crashing... crashRecursionCounter = 2
> Segmentation fault


EXPECTED RESULT

No crash and a themed dialog that elevated rights.


SOFTWARE/OS VERSIONS

CAUTION: I was using hyprland!

Linux: Nobara Linux 39
KDE Plasma Version: 6.0.3
KDE Frameworks Version: 6.0.0
Qt Version: 6.6.2


ADDITIONAL INFORMATION

If you enter something random as QT_STYLE_OVERRIDE, it does not crash. It instead tells you which styles could be used and falls back to Fusion.

> Available styles: Breeze, qt5ct-style, qt6ct-style, HighContrastInverse, HighContrast, Adwaita-HighContrastInverse, Adwaita-HighContrast, Adwaita-Dark, Adwaita, Windows, Fusion
Comment 1 Harald Sitter 2025-03-13 22:33:45 UTC
Is this still reproducible?
Comment 2 Bug Janitor Service 2025-03-28 03:46:46 UTC
🐛🧹 ⚠️ This bug has been in NEEDSINFO status with no change for at least 15 days. Please provide the requested information, then set the bug status to REPORTED. If there is no change for at least 30 days, it will be automatically closed as RESOLVED WORKSFORME.

For more information about our bug triaging procedures, please read https://community.kde.org/Guidelines_and_HOWTOs/Bug_triaging.

Thank you for helping us make KDE software even better for everyone!