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

            Bug ID: 457997
           Summary: Crash when deleting the currently active brush preset
           Product: krita
           Version: git master (please specify the git hash!)
          Platform: Other
                OS: Linux
            Status: REPORTED
          Severity: crash
          Priority: NOR
         Component: Resource Management
          Assignee: krita-bugs-n...@kde.org
          Reporter: dimul...@gmail.com
  Target Milestone: ---

STEPS TO REPRODUCE
1. Activate 'Basic-5 Size' preset
2. Open Resource Manager
3. Delete 'Basic-5 Size' preset (from "default4" bundle)
4. Close the resource manager
5. Press "Reload Preset" button

ASSERT: "d->resourceCache[key] == resource" in file
/home/appimage/persistent/krita/libs/resources/KisResourceLocator.cpp, line 739

Thread 1 (Thread 0x7fffe6bbaf40 (LWP 12904) "krita"):
#0  __GI_raise (sig=sig@entry=6) at ../sysdeps/unix/sysv/linux/raise.c:51
        set = {__val = {0, 5928219613469820227, 0, 0, 0, 0, 0, 0, 0, 0,
36029346784149647, 52355144541405326, 0, 0, 4619567317775286272, 0}}
        pid = <optimized out>
        tid = <optimized out>
        ret = <optimized out>
#1  0x00007ffff3fde7f1 in __GI_abort () at abort.c:79
        save_stage = 1
        act = {__sigaction_handler = {sa_handler = 0x0, sa_sigaction = 0x0},
sa_mask = {__val = {0 <repeats 15 times>, 2}}, sa_flags = -11976, sa_restorer =
0x7fffffffd138}
        sigs = {__val = {32, 0 <repeats 15 times>}}
        __cnt = <optimized out>
        __set = <optimized out>
        __cnt = <optimized out>
        __set = <optimized out>
#2  0x00007ffff4a39fab in QMessageLogger::fatal(char const*, ...) const () from
/home/appimage/appimage-workspace/deps/usr/lib/libQt5Core.so.5
No symbol table info available.
#3  0x00007ffff4a397a1 in qt_assert(char const*, char const*, int) () from
/home/appimage/appimage-workspace/deps/usr/lib/libQt5Core.so.5
No symbol table info available.
#4  0x00007ffff60efe8b in KisResourceLocator::reloadResource (this=<optimized
out>, resourceType=..., resource=...) at
/home/appimage/persistent/krita/libs/resources/KisResourceLocator.cpp:739
        storageLocation = {d = 0x55556373d020}
        __PRETTY_FUNCTION__ = "bool KisResourceLocator::reloadResource(const
QString&, KoResourceSP)"
        storage = {value = 0x5555595b0c10, d = 0x5555595b0c00}
        key = {first = {d = 0x55556373d020}, second = {d = 0x555563d84a20}}
#5  0x00007ffff6143505 in KisAllResourcesModel::reloadResource
(this=0x5555596db710, resource=...) at
/home/appimage/persistent/krita/libs/resources/KisResourceModel.cpp:501
        __PRETTY_FUNCTION__ = "virtual bool
KisAllResourcesModel::reloadResource(KoResourceSP)"
        index = {r = 1578834496, c = 21845, i = 93825139415600, m =
0x5555596db720}
#6  0x00007ffff6142b7a in KisResourceModel::reloadResource (this=<optimized
out>, resource=...) at
/home/appimage/persistent/krita/libs/resources/KisResourceModel.cpp:904
        source = <optimized out>
#7  0x00007ffff751f581 in KoResourceServer<KisPaintOpPreset>::reloadResource
(this=this@entry=0x5555596c30b0, resource=...) at
/home/appimage/persistent/krita/libs/resources/KoResourceServer.h:271
        __PRETTY_FUNCTION__ = "bool
KoResourceServer<T>::reloadResource(QSharedPointer<T>) [with T =
KisPaintOpPreset]"
#8  0x00007ffff751370a in KisPaintopBox::slotReloadPreset (this=0x555559277710)
at /home/appimage/persistent/krita/libs/ui/kis_paintop_box.cc:1356
        result = <optimized out>
        blocker = {m_objects = {d = 0x555563ff1a10}}
        rserver = 0x5555596c30b0
        preset = {value = 0x55555e1b1a40, d = 0x55555e1b1a30}
#9  0x00007ffff4c78575 in QMetaObject::activate(QObject*, int, int, void**) ()
from /home/appimage/appimage-workspace/deps/usr/lib/libQt5Core.so.5
No symbol table info available.
#10 0x00007ffff56b9712 in QAction::triggered(bool) () from
/home/appimage/appimage-workspace/deps/usr/lib/libQt5Widgets.so.5
No symbol table info available.
#11 0x00007ffff56bbd3c in QAction::activate(QAction::ActionEvent) () from
/home/appimage/appimage-workspace/deps/usr/lib/libQt5Widgets.so.5
No symbol table info available.
#12 0x00007ffff57a96fb in ?? () from
/home/appimage/appimage-workspace/deps/usr/lib/libQt5Widgets.so.5
No symbol table info available.
#13 0x00007ffff57a996d in QAbstractButton::mouseReleaseEvent(QMouseEvent*) ()
from /home/appimage/appimage-workspace/deps/usr/lib/libQt5Widgets.so.5
No symbol table info available.
#14 0x00007ffff589951a in QToolButton::mouseReleaseEvent(QMouseEvent*) () from
/home/appimage/appimage-workspace/deps/usr/lib/libQt5Widgets.so.5
No symbol table info available.

[... cut...]

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

Reply via email to