Bug 420009 - Resource management issue in Windows, Fatal Error on run
Summary: Resource management issue in Windows, Fatal Error on run
Status: RESOLVED FIXED
Alias: None
Product: krita
Classification: Applications
Component: Resource Management (show other bugs)
Version: git master (please specify the git hash!)
Platform: Microsoft Windows Microsoft Windows
: NOR major
Target Milestone: ---
Assignee: Krita Bugs
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2020-04-13 05:39 UTC by voronwe13
Modified: 2020-06-24 18:07 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 voronwe13 2020-04-13 05:39:19 UTC
First time I ran my build of master,  brushes with image tips wouldn't work because it couldn't find the default resource bundle.   Log viewer showed it looking in the wrong path (it was looking in c:\Users\%username%\AppData\Roaming\krita\C:\Users\%username%\AppData\Roaming\krita

Since it was showing it twice, I went to the options, and there was an option for the location of resources and cache, so I cleared those to be empty, but that didn't fix it.

Now I can't run Krita at all, from any of the latest nightlies or my build of master.  I get a window that says "Krita: Fatal error - Krita      3. Could not create the resource location at //brushes. Krita will quit now."

I can still run older builds. Those older builds don't even appear to have the cache/resources directory options in the settings menu, so I think it's related to that.  I'm not sure when that got added.

STEPS TO REPRODUCE
error 1:
1. Run latest master version in Windows.
2. Try to use a brush with a predefined tip (instead of auto)

error 2:
1. Clear cache/resource settings in Settings/Configure Krita/General/???
2. Close Krita
3. Attempt to run Krita again.

OBSERVED RESULT
error 1: brush does nothing.  Log viewer shows error.

error 2: Krita shows splash screen, then an error window saying "Krita: Fatal error - Krita      3. Could not create the resource location at //brushes. Krita will quit now."

EXPECTED RESULT
error 1: brushes load correctly and work.

error 2: Krita starts up successfully

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

ADDITIONAL INFORMATION
Comment 1 Halla Rempt 2020-05-06 14:06:52 UTC
Fixed in 9f9490f3ec39b3ce66ee4d8b65a96c23aa769b96
Comment 2 voronwe13 2020-06-24 00:18:19 UTC
Sorry to take so long to reopen this, but I finally got around to building the master branch again (I've been working in krita/4.3 since then), and even with the latest version of master, I have the same problem.  I can build master, but when I try to run it, it brings up that same Fatal error I listed in the initial report.  I have confirmed that my files have the patch listed below as fixing it, but it clearly didn't fix the issue.  krita/master is currently unusable for me.
Comment 3 voronwe13 2020-06-24 05:57:58 UTC
I just submitted a MR with a fix that worked for me.  Please review MR 391 (https://invent.kde.org/graphics/krita/-/merge_requests/391) when you can.  Thanks!