Bug 443578

Summary: Krita 5.0 (git fa4ad10) fails to generate a proper resource database
Product: [Applications] krita Reporter: tomtomtomreportingin
Component: Resource ManagementAssignee: Dmitry Kazakov <dimula73>
Status: RESOLVED FIXED    
Severity: normal CC: halla
Priority: NOR Keywords: regression
Version First Reported In: nightly build (please specify the git hash!)   
Target Milestone: ---   
Platform: Appimage   
OS: Linux   
Latest Commit: Version Fixed/Implemented In:
Sentry Crash Report:

Description tomtomtomreportingin 2021-10-11 04:14:02 UTC
SUMMARY
Krita Plus (5.0) fails to generate a proper resource database as of git fa4ad10. This does not effect the current beta 2, and it does not occur if the user has an existing database cache from previous versions. I have NOT observed this in master as of git 45ea106.

STEPS TO REPRODUCE
1. Backup resourcecache.sqlite or use a fresh profile/environment.
2. Run Krita from the terminal.
3. Observe warnings/errors in terminal and "You don't have any resource bundles enabled. Only your local resources are available." popup.
4. Restart Krita.

5. Various brushes seem broken and missing pattern/resource warnings will spew into the terminal.

EXPECTED RESULT
Bundles should properly load on first startup and resources shouldn't seem broken on second startup.

SOFTWARE/OS VERSIONS
Windows: 
macOS: 
Linux/KDE Plasma: 
(available in About System)
KDE Plasma Version: 
KDE Frameworks Version: 
Qt Version: 

ADDITIONAL INFORMATION
Linux/KDE Plasma: Debian sid
KDE Plasma Version: 5.21.5
KDE Frameworks Version: 5.86.0
Qt Version: 5.12.11 (Appimage)
Comment 1 Halla Rempt 2021-10-11 09:55:57 UTC
The fix is already in master, it needs to be backported.
Comment 2 Halla Rempt 2021-10-11 10:03:21 UTC
Dmitry, can you please backport these fixes to the krita/5.0 branch?
Comment 3 Dmitry Kazakov 2021-10-12 05:22:22 UTC
I have backported those commits, so it should be in the stable nighlies already. Thank you for the report! :)