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

--- Comment #2 from Jonathan Marten <[email protected]> ---
Yes, the problem is that loading the theme with the space in the name fails and
a default scheme is loaded.  If the user doesn't notice this, makes a change
and clicks "Save" (not "Save As"), the crash happens.

Still happens with plasma-workspace Git master, v6.5.90-246-g9b4425bc
Backtrace with names and stack trimmed:

$ gdb --args kcolorschemeeditor --overwrite 'Foo Bar'
GNU gdb (Gentoo 16.3 vanilla) 16.3
Reading symbols from kcolorschemeeditor...
(gdb) r
Starting program: /usr/bin/kcolorschemeeditor --overwrite Foo\ Bar
kcolorschemeeditor KIconTheme::KIconTheme: Icon theme "" not found.
kcolorschemeeditor initializeRendererSessions: Warning: fallback to QtQuick
software backend.
Scheme not found, falling back to current one.
kcolorschemeeditor loadPlugin: Loaded plugin
"/usr/lib64/plugins/kf6/kwindowsystem/KF6WindowSystemX11Plugin.so" for platform
"xcb"
kcolorschemeeditor KWindowSystem::setMainWindow: Failed to convert "" to WId

(GUI appears, make a change to the scheme, click "Save")

kcolorschemeeditor unknown: ASSERT: "n <= d.size - pos" in file
/usr/include/qt6/QtCore/qstring.h, line 1190
Thread 1 "kcolorschemeedi" received signal SIGABRT, Aborted.
0x00007ffff58caa9c in ?? () from /usr/lib64/libc.so.6
(gdb) where
#7  0x00007ffff5fe0f2d in qt_assert (assertion=assertion@entry=0x5555555802cb
"n <= d.size - pos", 
    file=file@entry=0x55555557f008 "/usr/include/qt6/QtCore/qstring.h",
line=line@entry=1190)
    at qtbase-everywhere-src-6.10.2/src/corelib/global/qassert.cpp:113
#8  0x00005555555625c0 in QString::verify (this=<optimized out>, pos=<optimized
out>, 
    n=<optimized out>) at /usr/include/qt6/QtCore/qstring.h:1327
#9  QString::at (this=0x7fffffffbd10, i=0) at
/usr/include/qt6/QtCore/qstring.h:1328
#10 QString::at (this=0x7fffffffbd10, i=0) at
/usr/include/qt6/QtCore/qstring.h:1327
#11 SchemeEditorDialog::saveScheme (this=0x7fffffffcfa0, overwrite=<optimized
out>)
    at plasma-workspace/kcms/colors/editor/scmeditordialog.cpp:129
#12 0x000055555556612b in SchemeEditorDialog::qt_metacall (this=0x7fffffffcfa0, 
    _c=QMetaObject::InvokeMetaMethod, _id=1, _a=0x7fffffffc050)
    at
plasma-workspace/kcms/editor/kcolorschemeeditor_autogen/include/moc_scmeditordialog.cpp:136
#13 0x00007ffff6253feb in doActivate<false> (sender=<optimized out>,
signal_index=7, 
    argv=0x7fffffffc050)
    at qtbase-everywhere-src-6.10.2/src/corelib/kernel/qobject.cpp:4298
#14 0x00007ffff6203da4 in QMetaObject::activate
(sender=sender@entry=0x5555557a58d0, 
    m=m@entry=0x7ffff7a475e0 <QDialogButtonBox::staticMetaObject>, 
    local_signal_index=local_signal_index@entry=0,
argv=argv@entry=0x7fffffffc050)
    at qtbase-everywhere-src-6.10.2/src/corelib/kernel/qobject.cpp:4332
#15 0x00007ffff7690eed in QMetaObject::activate<void, QAbstractButton*>
(sender=0x5555557a58d0, 
    mo=0x7ffff7a475e0 <QDialogButtonBox::staticMetaObject>,
local_signal_index=0, ret=0x0)
    at qtbase-everywhere-src-6.10.2/src/corelib/kernel/qobjectdefs.h:319
#16 QDialogButtonBox::clicked (this=<optimized out>, _t1=<optimized out>)
    at
qtbase-everywhere-src-6.10.2_build/src/widgets/Widgets_autogen/include/moc_qdialogbuttonbox.cpp:215
#17 QDialogButtonBoxPrivate::handleButtonClicked (this=<optimized out>)
    at
qtbase-everywhere-src-6.10.2/src/widgets/widgets/qdialogbuttonbox.cpp:903

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

Reply via email to