Bug 447490 - Access Violation in module libkritalibpaintop.dll
Summary: Access Violation in module libkritalibpaintop.dll
Status: RESOLVED FIXED
Alias: None
Product: krita
Classification: Applications
Component: General (show other bugs)
Version: 5.1.5
Platform: Microsoft Windows Microsoft Windows
: NOR crash
Target Milestone: ---
Assignee: Dmitry Kazakov
URL:
Keywords: accessibility
Depends on:
Blocks:
 
Reported: 2021-12-24 20:36 UTC by Franck Rabeson
Modified: 2023-09-06 06:29 UTC (History)
2 users (show)

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


Attachments
Krita crash log (20.24 KB, text/plain)
2021-12-24 20:36 UTC, Franck Rabeson
Details
Krita log (600 bytes, text/plain)
2021-12-24 20:37 UTC, Franck Rabeson
Details
kritarc file (45.42 KB, text/plain)
2021-12-25 14:40 UTC, Franck Rabeson
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Franck Rabeson 2021-12-24 20:36:20 UTC
Created attachment 144845 [details]
Krita crash log

SUMMARY
***
Affects Krita 5.0 final as well as Krita nightlies starting with build 21df2c5ffe (2021-12-21).

STEPS TO REPRODUCE
1. Launch Krita

OBSERVED RESULT
The splash screen displays for a long time, then the krita.exe process closes without an error message.

SOFTWARE/OS VERSIONS
Windows: 10 x64 build 19044
Comment 1 Franck Rabeson 2021-12-24 20:37:27 UTC
Created attachment 144846 [details]
Krita log
Comment 2 Dmitry Kazakov 2021-12-25 10:33:09 UTC
Hi, Franck!

Could you please do the following steps:

1) Copy Krita's config file into a safe place: %LOCALAPPDATA%\kritarc
2) Remove the file from the original folder %LOCALAPPDATA% 
3) Try to start Krita.
4) If it starts fine, then please share the copied file with me. If you have any private information in it, you can sent it to my mail directly to dimula73 at gmail dot com

The problem seems to happen during activation of the last used preset. So I would really like to know which preset causes the problem
Comment 3 Dmitry Kazakov 2021-12-25 10:34:02 UTC
Changing status to needsinfo
Comment 4 Franck Rabeson 2021-12-25 14:40:17 UTC
Created attachment 144857 [details]
kritarc file

Hello. Here’s a copy of my kritarc file. Removing it did indeed allow Krita to start.

I took the liberty to check the LastPReset parameter in the file, and that specific brush preset is from Raghukamath's brush pack.
https://gitlab.com/raghukamath/krita-brush-presets/-/blob/master/bundles/Raghukamath-Brush-Pack.bundle
Comment 5 Dmitry Kazakov 2021-12-27 14:50:38 UTC
Okay, with this config I can reproduce the issue with 5.0.0 Windows package, but cannot reproduce with master branch. Now I need to check what commit fixed it and whether it is in stable branch already :)
Comment 6 Dmitry Kazakov 2021-12-27 16:49:41 UTC
Hi, Franck!

Thank you for all your info and a config file. With the help of it I can confirm that this crash is a flavor of bug 447454 and it is fixed by the commit below (reverting the commit brings the crash back) :)

https://invent.kde.org/graphics/krita/-/commit/73ecac022b59a424fd2b23139db446164d3869de
Comment 7 Franck Rabeson 2021-12-27 17:36:21 UTC
Update on my end: I tested today’s nightly (38f758cac5). The crash does not happen at startup anymore, but the same exact crash now happens when I switch brushes.