https://bugs.kde.org/show_bug.cgi?id=527459
Bug ID: 527459
Summary: Crash in AbstractElement::layoutMap with
union.qtwidgets debug logging enabled
Classification: Frameworks and Libraries
Product: Union
Version First unspecified
Reported In:
Platform: CachyOS
OS: Linux
Status: REPORTED
Severity: normal
Priority: NOR
Component: QtWidgets Output
Assignee: [email protected]
Reporter: [email protected]
CC: [email protected]
Target Milestone: ---
Created attachment 197382
--> https://bugs.kde.org/attachment.cgi?id=197382&action=edit
minimal crash reproducer
SUMMARY
Prism Launcher crashes when opening the instance editor with Union enabled. The
same crash reproduces in a standalone Qt Widgets program with
union.qtwidgets.debug=true.
STEPS TO REPRODUCE
1. Launch Prism with QT_STYLE_OVERRIDE=Union prismlauncher
2. Right-click an instance.
3. Select Edit.
OBSERVED RESULT
SIGSEGV in UnionWidgetsStyle.so during QFormLayout size calculation.
EXPECTED RESULT
The instance editor opens normally.
SOFTWARE/OS VERSIONS
OS: CachyOS / Arch Linux
Graphics Platform: Wayland
KDE Plasma: 6.8.0
Qt: 6.12.0
Union: 6.8.0-1.1
Prism Launcher: 11.1.1
ADDITIONAL INFORMATION
The qCDebug statement in src/output/qtwidgets/elements/AbstractElement.cpp:499
dereferences opt->type and opt->styleObject when opt is null. Prism enables
this category through its default *.debug=true logging rule.
The attached QFormLayout / QScrollArea reproducer produces the same crash with:
QT_QPA_PLATFORM=offscreen QT_STYLE_OVERRIDE=Union
QT_LOGGING_RULES='union.qtwidgets.debug=true' ./union-form-repro
Disabling union.qtwidgets.debug avoids the crash. The reproducer also succeeds
with Fusion and Breeze.
Workaround for Prism:
QT_LOGGING_RULES='union.*.debug=false' prismlauncher
With this rule, the affected instance editor opened successfully in an
offscreen test.
Standalone reproducer and GDB backtrace attached.
--
You are receiving this mail because:
You are watching all bug changes.