Bug 457997 - Crash when deleting the currently active brush preset
Summary: Crash when deleting the currently active brush preset
Status: RESOLVED WORKSFORME
Alias: None
Product: krita
Classification: Applications
Component: Resource Management (show other bugs)
Version: git master (please specify the git hash!)
Platform: Other Linux
: NOR crash
Target Milestone: ---
Assignee: Krita Bugs
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2022-08-17 14:08 UTC by Dmitry Kazakov
Modified: 2023-02-25 03:45 UTC (History)
1 user (show)

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


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Dmitry Kazakov 2022-08-17 14:08:13 UTC
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...]
Comment 1 wolthera 2023-01-26 13:10:41 UTC
Hey,

I cannot reproduce with the Krita Version: 5.2.0-prealpha (git 5c98a72) Appimage with Qt 5.15.7

Is this still relevant?
Comment 2 Bug Janitor Service 2023-02-10 03:51:54 UTC
Dear Bug Submitter,

This bug has been in NEEDSINFO status with no change for at least
15 days. Please provide the requested information as soon as
possible and set the bug status as REPORTED. Due to regular bug
tracker maintenance, if the bug is still in NEEDSINFO status with
no change in 30 days the bug will be closed as RESOLVED > WORKSFORME
due to lack of needed information.

For more information about our bug triaging procedures please read the
wiki located here:
https://community.kde.org/Guidelines_and_HOWTOs/Bug_triaging

If you have already provided the requested information, please
mark the bug as REPORTED so that the KDE team knows that the bug is
ready to be confirmed.

Thank you for helping us make KDE software even better for everyone!
Comment 3 Bug Janitor Service 2023-02-25 03:45:39 UTC
This bug has been in NEEDSINFO status with no change for at least
30 days. The bug is now closed as RESOLVED > WORKSFORME
due to lack of needed information.

For more information about our bug triaging procedures please read the
wiki located here:
https://community.kde.org/Guidelines_and_HOWTOs/Bug_triaging

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