https://bugs.kde.org/show_bug.cgi?id=521578

            Bug ID: 521578
           Summary: System Settings crashes in Union::Color::operator=
                    when switching global themes
    Classification: Frameworks and Libraries
           Product: Union
      Version First unspecified
       Reported In:
          Platform: KDE Linux
                OS: Linux
            Status: REPORTED
          Severity: critical
          Priority: NOR
         Component: general
          Assignee: [email protected]
          Reporter: [email protected]
                CC: [email protected]
  Target Milestone: ---

STEPS TO REPRODUCE
Unfortunately I don't have specific steps here as I can't reproduce it 100%.
But basically, after switching global themes *many* times in the Global Themes
KCM (I was testing something else), at one point I got System Settings to crash
with the following backtrace:


OBSERVED RESULT
#0  0x00007ff7d2e9a29c in ??? () at /usr/lib/libc.so.6
#1  0x00007ff7d2e3e7d0 in raise () at /usr/lib/libc.so.6
#2  0x00007ff7d6b97b1b in KCrash::defaultCrashHandler (sig=11)
    at /builder/src/kcrash/src/kcrash.cpp:630
#3  0x00007ff7d2e3e8f0 in <signal handler called> () at /usr/lib/libc.so.6
#4  std::__atomic_base<int>::fetch_add (this=0xa, __i=1,
__m=std::memory_order::acq_rel)
    at /usr/include/c++/16.1.1/bits/atomic_base.h:646
#5  QAtomicOps<int>::ref<int>
    (_q_value=<error reading variable: Cannot access memory at address 0xa>)
    at /usr/include/qt6/QtCore/qatomic_cxx11.h:260
#6  QBasicAtomicInteger<int>::ref (this=0xa) at
/usr/include/qt6/QtCore/qbasicatomic.h:48
#7  QSharedDataPointerBase<QSharedDataPointer, Union::ColorData>::reset
    (this=0x7ffda3697a60, ptr=0x2) at /usr/include/qt6/QtCore/qshareddata.h:90
#8  QSharedDataPointer<Union::ColorData>::operator=
(this=this@entry=0x7ffda3697a60, o=...)
    at /usr/include/qt6/QtCore/qshareddata.h:186
#9  Union::Color::operator= (this=this@entry=0x7ffda3697a60, other=...)
    at /builder/src/union/src/Color.cpp:437
#10 0x00007ff7c47753cc in Union::Color::Color
    (this=this@entry=0x7ffda3697a60, other=<optimized out>)
    at /builder/src/union/src/Color.cpp:427
#11 0x00007ff7c479579a in std::_Construct<Union::Color, Union::Color const&>
    (__p=0x7ffda3697a60) at /usr/include/c++/16.1.1/bits/stl_construct.h:133
#12 std::_Optional_payload_base<Union::Color>::_M_construct<Union::Color
const&>
    (this=0x7ffda3697a60) at /usr/include/c++/16.1.1/optional:314
#13 std::_Optional_payload_base<Union::Color>::_Optional_payload_base
    (this=0x7ffda3697a60, __other=<optimized out>) at
/usr/include/c++/16.1.1/optional:160
#14 std::_Optional_payload_base<Union::Color>::_Optional_payload_base
    (this=0x7ffda3697a60, __other=<optimized out>) at
/usr/include/c++/16.1.1/optional:156
#15 std::_Optional_payload<Union::Color, true, false,
false>::_Optional_payload_base
    (this=0x7ffda3697a60) at /usr/include/c++/16.1.1/optional:440
#16 std::_Optional_payload<Union::Color, false, false,
false>::_Optional_payload_base
    (this=0x7ffda3697a60) at /usr/include/c++/16.1.1/optional:474
#17 std::_Optional_base<Union::Color, false, false>::_Optional_base
    (this=0x7ffda3697a60, __other=<optimized out>) at
/usr/include/c++/16.1.1/optional:534
#18 std::optional<Union::Color>::optional (this=0x7ffda3697a60)
    at /usr/include/c++/16.1.1/optional:810
#19 Union::Properties::IconPropertyGroup::color (this=<optimized out>)
    at /builder/src/union/src/properties/IconPropertyGroup.cpp:139
#20 0x00007ff7c481f50f in Union::Quick::IconPropertyGroupQuick::color
(this=0x5622cf5e8940)
    at
/builder/src/union/src/output/qtquick/plugin/properties/IconPropertyGroupQuick.cpp:119
#21 0x00007ff7c481f9e2 in
Union::Quick::IconPropertyGroupQuick::qt_static_metacall
    (_o=<optimized out>, _c=<optimized out>, _id=<optimized out>, _a=<optimized
out>)
    at
/usr/src/debug/a526ead0-4564402.x86-64/union/src/output/qtquick/plugin/UnionQuickImpl_autogen/include/moc_IconPropertyGroupQuick.cpp:157
#22 0x00007ff7d5ff1c8a in QQmlPropertyData::readProperty
    (this=0x5622cf46c030, target=0x5622cf5e8940, property=0x7ffda3697b70)
    at
/usr/src/debug/qt6-declarative/qtdeclarative/src/qml/qml/qqmlpropertydata_p.h:402
#23 QV4::loadProperty
    (v4=<optimized out>, wrapper=<optimized out>, object=0x5622cf5e8940,
property=...)
    at
/usr/src/debug/qt6-declarative/qtdeclarative/src/qml/jsruntime/qv4qobjectwrapper.cpp:275
#24 0x00007ff7c4655279 in ??? ()
#25 0x00007ff7c6001528 in ??? ()
#26 0x0000000000000000 in ??? ()


EXPECTED RESULT
No crash


SOFTWARE/OS VERSIONS
Operating System: KDE Linux 2026-06-15
KDE Plasma Version: 6.7.80
KDE Frameworks Version: 6.28.0
Qt Version: 6.11.1
Kernel Version: 7.0.12-arch1-1 (64-bit)
Graphics Platform: Wayland
Processors: 16 × AMD Ryzen 7 7840U w/ Radeon™ 780M Graphics
Memory: 17 GB of RAM (16.0 GB usable)
Graphics Processor: AMD Radeon 780M Graphics

-- 
You are receiving this mail because:
You are watching all bug changes.

Reply via email to