Bug 459971

Summary: Crash on starting Krita
Product: [Applications] krita Reporter: michaelknubben
Component: * UnknownAssignee: Krita Bugs <krita-bugs-null>
Status: RESOLVED DUPLICATE    
Severity: crash CC: alvin, halla
Priority: NOR    
Version: 5.1.1   
Target Milestone: ---   
Platform: Microsoft Windows   
OS: Microsoft Windows   
Latest Commit: Version Fixed In:
Attachments: Crash log
Krita.log

Description michaelknubben 2022-10-04 12:55:23 UTC
Created attachment 152583 [details]
Crash log

SUMMARY
***
NOTE: If you are reporting a crash, please try to attach a backtrace with debug symbols.
See https://community.kde.org/Guidelines_and_HOWTOs/Debugging/How_to_create_useful_crash_reports
***


STEPS TO REPRODUCE
1. Open Krita
2. See it crash
3. Curse

OBSERVED RESULT
Krita closes

EXPECTED RESULT
Krita opens

SOFTWARE/OS VERSIONS
Windows: 11

ADDITIONAL INFORMATION
Comment 1 Alvin Wong 2022-10-04 13:50:05 UTC
Hi, thanks for the bug report. Can you also upload the file `%localappdata%\krita.log`? It may contain some more details to help identifying the issue.
Comment 2 michaelknubben 2022-10-05 06:45:14 UTC
Created attachment 152589 [details]
Krita.log

Adding krita.log as requested. Hope it helps!
Comment 3 Halla Rempt 2022-10-05 07:38:48 UTC
Yes. The issue is that there is a PSD file in the recent files list that has an embedded pattern. This issue was resolved by reverting an earlier change:

commit d52cf1977648731ff67213fbaa88667829b214ec
Author: Halla Rempt <halla@valdyas.org>
Date:   Thu Sep 22 10:30:09 2022 +0200

    Revert "Use Krita's engine to load previews for PSD files"
    
    This reverts commit 48ca610ae89be95eb1db477379e54b37ab478ec2.
    
    This made Krita try to access resources in a background thread,
    which is not possible.
    
    BUG:459512
Comment 4 Halla Rempt 2022-10-05 07:39:57 UTC
You can work around this by either moving the PSD file to another location or removing it from the [RecentFiles] entry in the kritarc config file which you can find in the local appdata folder.
Comment 5 Alvin Wong 2022-10-05 07:42:07 UTC
You may also use the stable nightly build (available on https://binary-factory.kde.org/job/Krita_Stable_Windows_Build/) for now, which should be _mostly_ as stable as 5.1.1 with a fix for this crash included, until we release a 5.1.2 bugfix release.

*** This bug has been marked as a duplicate of bug 459512 ***
Comment 6 michaelknubben 2022-10-05 07:43:43 UTC
Thanks Halla, I'll remove the entry!