Bug 429629 - Crash on clicking at an item in Resources Manager
Summary: Crash on clicking at an item in Resources Manager
Status: RESOLVED WORKSFORME
Alias: None
Product: krita
Classification: Applications
Component: Resource Management (other bugs)
Version First Reported In: git master (please specify the git hash!)
Platform: Other Linux
: NOR normal
Target Milestone: ---
Assignee: Krita Bugs
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2020-11-25 09:36 UTC by Vladimir Savic
Modified: 2021-02-10 04:33 UTC (History)
2 users (show)

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


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Vladimir Savic 2020-11-25 09:36:13 UTC
SUMMARY
I've just downloaded a pack called "wont_teach_you_to_draw_brushpack_v6.0.zip" from the internet. Unpacked and imported a subset of packs named *tilt-rightHand.

Note: It appeared in the list of available resources only after restating Krita 

After having it listed, I just clicked on its name. The unfortunate result is a crash:

"bundles/wojtryb-v6-tilt-rightHand.bundle" not in ("/home/vladimir/.local/share/krita/", "/home/vladimir/.local/share/krita/Krita_3_Default_Resources.bundle", "/home/vladimir/.local/share/krita/Krita_4_Default_Resources.bundle", "/home/vladimir/.local/share/krita/Krita_Artists_SeExpr_examples.bundle", "memory")
Entering "DlgBundleManager::currentCellSelectedChanged()" Current cell changed!
No "/home/vladimir/.local/share/krita/bundles/wojtryb-v6-tilt-rightHand.bundle" storage defined: ("/home/vladimir/.local/share/krita/", "/home/vladimir/.local/share/krita/Krita_3_Default_Resources.bundle", "/home/vladimir/.local/share/krita/Krita_4_Default_Resources.bundle", "/home/vladimir/.local/share/krita/Krita_Artists_SeExpr_examples.bundle", "memory")
--Type <RET> for more, q to quit, c to continue without paging--

Thread 1 "krita" received signal SIGSEGV, Segmentation fault.
0x00007ffff57b9707 in KisResourceStorage::metaData(QString const&) const () from /usr/lib/libkritaresources.so.17
(gdb) bt
#0  0x00007ffff57b9707 in KisResourceStorage::metaData(QString const&) const () at /usr/lib/libkritaresources.so.17
#1  0x00007fff882f54b0 in  () at /usr/lib/kritaplugins/kritaresourcemanager.so
#2  0x00007fff882f5db9 in  () at /usr/lib/kritaplugins/kritaresourcemanager.so
#3  0x00007fff882f6d45 in  () at /usr/lib/kritaplugins/kritaresourcemanager.so
#4  0x00007ffff46c1036 in  () at /usr/lib/libQt5Core.so.5
#5  0x00007ffff4633af4 in QItemSelectionModel::currentChanged(QModelIndex const&, QModelIndex const&) () at /usr/lib/libQt5Core.so.5
#6  0x00007ffff46372df in QItemSelectionModel::setCurrentIndex(QModelIndex const&, QFlags<QItemSelectionModel::SelectionFlag>) () at /usr/lib/libQt5Core.so.5
#7  0x00007ffff53b6704 in QAbstractItemView::mousePressEvent(QMouseEvent*) () at /usr/lib/libQt5Widgets.so.5
#8  0x00007ffff5190b0e in QWidget::event(QEvent*) () at /usr/lib/libQt5Widgets.so.5
#9  0x00007ffff523bf3f in QFrame::event(QEvent*) () at /usr/lib/libQt5Widgets.so.5
#10 0x00007ffff4689a43 in QCoreApplicationPrivate::sendThroughObjectEventFilters(QObject*, QEvent*) () at /usr/lib/libQt5Core.so.5
#11 0x00007ffff514f741 in QApplicationPrivate::notify_helper(QObject*, QEvent*) () at /usr/lib/libQt5Widgets.so.5
#12 0x00007ffff515687b in QApplication::notify(QObject*, QEvent*) () at /usr/lib/libQt5Widgets.so.5
#13 0x00007ffff6fee6aa in KisApplication::notify(QObject*, QEvent*) () at /usr/lib/libkritaui.so.17
#14 0x00007ffff4689cda in QCoreApplication::notifyInternal2(QObject*, QEvent*) () at /usr/lib/libQt5Core.so.5
#15 0x00007ffff515587e in QApplicationPrivate::sendMouseEvent(QWidget*, QMouseEvent*, QWidget*, QWidget*, QWidget**, QPointer<QWidget>&, bool, bool) ()
    at /usr/lib/libQt5Widgets.so.5
#16 0x00007ffff51a9249 in  () at /usr/lib/libQt5Widgets.so.5
#17 0x00007ffff51ac63f in  () at /usr/lib/libQt5Widgets.so.5
#18 0x00007ffff514f752 in QApplicationPrivate::notify_helper(QObject*, QEvent*) () at /usr/lib/libQt5Widgets.so.5
#19 0x00007ffff6fee6aa in KisApplication::notify(QObject*, QEvent*) () at /usr/lib/libkritaui.so.17
#20 0x00007ffff4689cda in QCoreApplication::notifyInternal2(QObject*, QEvent*) () at /usr/lib/libQt5Core.so.5
#21 0x00007ffff4a624ac in QGuiApplicationPrivate::processMouseEvent(QWindowSystemInterfacePrivate::MouseEvent*) () at /usr/lib/libQt5Gui.so.5
#22 0x00007ffff4a37bac in QWindowSystemInterface::sendWindowSystemEvents(QFlags<QEventLoop::ProcessEventsFlag>) () at /usr/lib/libQt5Gui.so.5
#23 0x00007fffee87cf9c in  () at /usr/lib/libQt5XcbQpa.so.5
#24 0x00007ffff18e9914 in g_main_context_dispatch () at /usr/lib/libglib-2.0.so.0
#25 0x00007ffff193d7d1 in  () at /usr/lib/libglib-2.0.so.0
#26 0x00007ffff18e8121 in g_main_context_iteration () at /usr/lib/libglib-2.0.so.0
#27 0x00007ffff46e2941 in QEventDispatcherGlib::processEvents(QFlags<QEventLoop::ProcessEventsFlag>) () at /usr/lib/libQt5Core.so.5
#28 0x00007ffff468865c in QEventLoop::exec(QFlags<QEventLoop::ProcessEventsFlag>) () at /usr/lib/libQt5Core.so.5
#29 0x00007ffff5352f6a in QDialog::exec() () at /usr/lib/libQt5Widgets.so.5
#30 0x00007fff882e6275 in  () at /usr/lib/kritaplugins/kritaresourcemanager.so
#31 0x00007ffff46c1070 in  () at /usr/lib/libQt5Core.so.5
#32 0x00007ffff5148f63 in QAction::triggered(bool) () at /usr/lib/libQt5Widgets.so.5
#33 0x00007ffff514b845 in QAction::activate(QAction::ActionEvent) () at /usr/lib/libQt5Widgets.so.5
#34 0x00007ffff52cd17b in  () at /usr/lib/libQt5Widgets.so.5
#35 0x00007ffff52d48b2 in  () at /usr/lib/libQt5Widgets.so.5
#36 0x00007ffff5190b0e in QWidget::event(QEvent*) () at /usr/lib/libQt5Widgets.so.5
#37 0x00007ffff514f752 in QApplicationPrivate::notify_helper(QObject*, QEvent*) () at /usr/lib/libQt5Widgets.so.5
#38 0x00007ffff515687b in QApplication::notify(QObject*, QEvent*) () at /usr/lib/libQt5Widgets.so.5
#39 0x00007ffff6fee6aa in KisApplication::notify(QObject*, QEvent*) () at /usr/lib/libkritaui.so.17
#40 0x00007ffff4689cda in QCoreApplication::notifyInternal2(QObject*, QEvent*) () at /usr/lib/libQt5Core.so.5
#41 0x00007ffff515587e in QApplicationPrivate::sendMouseEvent(QWidget*, QMouseEvent*, QWidget*, QWidget*, QWidget**, QPointer<QWidget>&, bool, bool) ()
    at /usr/lib/libQt5Widgets.so.5
--Type <RET> for more, q to quit, c to continue without paging--
#42 0x00007ffff51a97cf in  () at /usr/lib/libQt5Widgets.so.5
#43 0x00007ffff51ac63f in  () at /usr/lib/libQt5Widgets.so.5
#44 0x00007ffff514f752 in QApplicationPrivate::notify_helper(QObject*, QEvent*) () at /usr/lib/libQt5Widgets.so.5
#45 0x00007ffff6fee6aa in KisApplication::notify(QObject*, QEvent*) () at /usr/lib/libkritaui.so.17
#46 0x00007ffff4689cda in QCoreApplication::notifyInternal2(QObject*, QEvent*) () at /usr/lib/libQt5Core.so.5
#47 0x00007ffff4a624ac in QGuiApplicationPrivate::processMouseEvent(QWindowSystemInterfacePrivate::MouseEvent*) () at /usr/lib/libQt5Gui.so.5
#48 0x00007ffff4a37bac in QWindowSystemInterface::sendWindowSystemEvents(QFlags<QEventLoop::ProcessEventsFlag>) () at /usr/lib/libQt5Gui.so.5
#49 0x00007fffee87cf9c in  () at /usr/lib/libQt5XcbQpa.so.5
#50 0x00007ffff18e9914 in g_main_context_dispatch () at /usr/lib/libglib-2.0.so.0
#51 0x00007ffff193d7d1 in  () at /usr/lib/libglib-2.0.so.0
#52 0x00007ffff18e8121 in g_main_context_iteration () at /usr/lib/libglib-2.0.so.0
#53 0x00007ffff46e2941 in QEventDispatcherGlib::processEvents(QFlags<QEventLoop::ProcessEventsFlag>) () at /usr/lib/libQt5Core.so.5
#54 0x00007ffff468865c in QEventLoop::exec(QFlags<QEventLoop::ProcessEventsFlag>) () at /usr/lib/libQt5Core.so.5
#55 0x00007ffff4690af4 in QCoreApplication::exec() () at /usr/lib/libQt5Core.so.5
#56 0x0000555555e28186 in main ()
(gdb) 

VERSION:
5.0.0-prealpha (git ff0815c)
Comment 1 Halla Rempt 2020-11-25 10:43:20 UTC
Hm, I cannot reproduce this, though the bundle manager definitely isn't finished yet.
Comment 2 Tiar 2020-11-25 13:40:46 UTC
Can you please move the bundle one folder up, to the main resource folder instead of keeping it in a subfolder? And then please remove the cache database (it will remove all your tags though). Does it work now?
Comment 3 Vladimir Savic 2020-11-27 08:12:13 UTC
(In reply to Tymond from comment #2)
> Can you please move the bundle one folder up, to the main resource folder
> instead of keeping it in a subfolder? And then please remove the cache
> database (it will remove all your tags though). Does it work now?

I couldn't even find it in .local/share so I nuked everything and reimported.
No item appeared in list, but this is what I saw in terminal:

Could not open store on bundle "/home/vladimir/.local/share/krita/bundles/wojtryb-v6-tilt-rightHand.bundle"
QuaZip::close(): ZIP is not open
Could not load bundle "/home/vladimir/.local/share/krita/bundles/wojtryb-v6-tilt-rightHand.bundle"
KisStorageModel data query did not return anything
Comment 4 Bug Janitor Service 2020-11-28 04:34:06 UTC
Thanks for your comment!

Automatically switching the status of this bug to REPORTED so that the KDE team
knows that the bug is ready to get confirmed.

In the future you may also do this yourself when providing needed information.
Comment 5 Tiar 2020-11-28 14:57:39 UTC
Could you please elaborate on this:

> I couldn't even find it in .local/share so I nuked everything and reimported.

What is that everything that you "nuked" (I guess removed :) )? The whole resource folder? The bundle? The cache database? And what is it that you reimported - just the bundle, I guess? In which way, through the GUI (in which version, still master?) or...?

I mean whatever you did it's gonna be helpful, but we need some details to diagnose the situation correctly.
Comment 6 Vladimir Savic 2020-11-30 09:51:39 UTC
(In reply to Tymond from comment #5)
> Could you please elaborate on this:
> 
> 
> What is that everything that you "nuked" (I guess removed :) )? The whole
> resource folder? The bundle? The cache database?

Sorry. I was a bit more poetic (in my very limited artistic sense) than precise here. :) 

By "nuking" I meant removing:
.local/share/krita/
.config/kritadisplayrc
.config/kritarc
.local/share/krita.log
.local/share/krita-sysinfo.log


> And what is it that you
> reimported - just the bundle, I guess? In which way, through the GUI (in
> which version, still master?) or...?

I didn't even know it is possible to import bundles the other way than GUI. Is there?

It is still the master. I'm compiling it daily. Right now I'm at "Version: 5.0.0-prealpha (git 379ace5)".
Comment 7 Bug Janitor Service 2020-12-01 04:33:52 UTC
Thanks for your comment!

Automatically switching the status of this bug to REPORTED so that the KDE team
knows that the bug is ready to get confirmed.

In the future you may also do this yourself when providing needed information.
Comment 8 Tiar 2021-01-11 17:04:49 UTC
Can you please check it again? I cannot reproduce it now on 16d6f8a38b (although I haven't been making changes to storages recently - but there were changes in models).
Comment 9 Bug Janitor Service 2021-01-26 04:33:24 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 10 Bug Janitor Service 2021-02-10 04:33:23 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!