Bug 433032 - Random Crash access violation
Summary: Random Crash access violation
Status: RESOLVED UNMAINTAINED
Alias: None
Product: krita
Classification: Applications
Component: General (show other bugs)
Version: unspecified
Platform: unspecified Microsoft Windows
: NOR normal
Target Milestone: ---
Assignee: Krita Bugs
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2021-02-16 21:27 UTC by ypnhmpes
Modified: 2022-07-05 08:57 UTC (History)
2 users (show)

See Also:
Latest Commit:
Version Fixed In:


Attachments
bug report, udage log and system info (565.77 KB, text/plain)
2021-02-16 21:27 UTC, ypnhmpes
Details
crashlog (101.46 KB, text/plain)
2021-02-17 17:43 UTC, ypnhmpes
Details
kritacrash.log crashed on redo (122.83 KB, text/plain)
2021-02-18 06:33 UTC, ypnhmpes
Details
kritacrash.log (180.08 KB, text/plain)
2021-02-20 04:47 UTC, ypnhmpes
Details
krita.log (508.03 KB, text/plain)
2021-02-20 04:48 UTC, ypnhmpes
Details

Note You need to log in before you can comment on or make changes to this bug.
Description ypnhmpes 2021-02-16 21:27:00 UTC
Created attachment 135743 [details]
bug report, udage log and system info

SUMMARY
Program has crashed a few times now but I'm not sure what's doing it. This last time I tried to redo after an undo with ctrl x and it crashed.

STEPS TO REPRODUCE
1. 
2. 
3. 

OBSERVED RESULT


EXPECTED RESULT


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

ADDITIONAL INFORMATION
Comment 1 Halla Rempt 2021-02-17 13:19:26 UTC
The crash in the log happens in such a weird place -- not even in krita's own code -- that I'm wondering whether the actual binary hasn't got corrupted. 

* Do you also have a krita-crash.log file in %LOCALAPPDATA% with more crash reports? 

* Does resetting Krita's settings make a difference (https://docs.krita.org/en/KritaFAQ.html#resetting-krita-configuration)

* Does the portable zip file version of krita unpacked to the desktop work?
Comment 2 ypnhmpes 2021-02-17 17:43:50 UTC
Created attachment 135774 [details]
crashlog
Comment 3 ypnhmpes 2021-02-17 17:47:40 UTC
(In reply to Halla Rempt from comment #1)
> The crash in the log happens in such a weird place -- not even in krita's
> own code -- that I'm wondering whether the actual binary hasn't got
> corrupted. 
> 
> * Do you also have a krita-crash.log file in %LOCALAPPDATA% with more crash
> reports? 
> 
> * Does resetting Krita's settings make a difference
> (https://docs.krita.org/en/KritaFAQ.html#resetting-krita-configuration)
> 
> * Does the portable zip file version of krita unpacked to the desktop work?

%LOCALAPPDATA% has kritacrash.log but no krita-crash.log.

I've reset the settings and will let you know if that helps.

I downloaded "Windows Portable 64-bit (176MB)" and it runs but I haven't tried making anything with it yet. Should I use this version for a bit?

I also had another crash while trying to render something and have added it as an attachment above.
Comment 4 Bug Janitor Service 2021-02-18 04:33:13 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 ypnhmpes 2021-02-18 06:33:51 UTC
Created attachment 135809 [details]
kritacrash.log crashed on redo
Comment 6 ypnhmpes 2021-02-18 06:36:38 UTC
Added "kritacrash.log crashed on redo" as an attachment.

I'm still using the the original krita I had, not the Portable version. I reset the settings and had another crash using redo.
Comment 7 Halla Rempt 2021-02-18 08:29:33 UTC
Hm, if the portable zip version works, then I do suspect that the installed version got corrupted somehow. Do you have any virus scanner or security software installed other than windows defender? And it may be a good moment to check the state of your drive.
Comment 8 ypnhmpes 2021-02-18 19:17:14 UTC
(In reply to Halla Rempt from comment #7)
> Hm, if the portable zip version works, then I do suspect that the installed
> version got corrupted somehow. Do you have any virus scanner or security
> software installed other than windows defender? And it may be a good moment
> to check the state of your drive.

I've got Superantispyware but it's set to only run when I start it. I ran a scan but all it picked up was tracking cookies. I'm not sure what you mean by check the state of your drive.
Comment 9 Halla Rempt 2021-02-19 08:34:20 UTC
The SMART status of the drive that can tell you whether it's beginning to fail or not.
Comment 10 ypnhmpes 2021-02-19 18:34:37 UTC
(In reply to Halla Rempt from comment #9)
> The SMART status of the drive that can tell you whether it's beginning to
> fail or not.

I ran wmic diskdrive get status in cmd and got all OKs. If you think this is a hardware issue we can close this ticket if you want. I imagine you have better things to do than fix my machine.
Comment 11 Halla Rempt 2021-02-19 20:04:07 UTC
I'm just not sure...
Comment 12 ypnhmpes 2021-02-20 04:47:35 UTC
Created attachment 135935 [details]
kritacrash.log
Comment 13 ypnhmpes 2021-02-20 04:48:10 UTC
Created attachment 135936 [details]
krita.log
Comment 14 ypnhmpes 2021-02-20 04:50:14 UTC
Had a few more crashes so I added the logs in case it helps. The last one happened when I hit the play button in the animation docker. As it was loading it up it hung then shut down.
Comment 15 Tiar 2021-08-22 21:43:20 UTC
In the last crash log, you have three kinds of crashes:
1) (in animation) estimateFrameUniqueness:
krita.exe caused an Access Violation at location 00007FF96275D032 in module msvcrt.dll Reading from location 0000000000000000.

AddrPC           Params
00007FF96275D032 000000001A18C560 00007FF8F6A6CA95 00007FF8F5F81700  msvcrt.dll!0x5d032 memcmp+0x32
00007FFA1340D032 000000006F57C900 00007FF9BF30CA95 00007FF9D3041700  msvcrt.dll!0x5d032 memcmp+0x32
00007FF9BF180472 00000000005F71F0 000000001AB9B490 00000000005F7238  libkritaui.dll!0x3c0472 KisFrameDataSerializer::estimateFrameUniqueness+0x182
00007FF9BF186F90 000000007D663350 00007FF9D245D2AA 0000000000000059  libkritaui.dll!0x3c6f90 KisFrameCacheStore::saveFrame+0x8b0
00007FF9BF187745 0000000000000049 000000006F792A60 0000000000000049  libkritaui.dll!0x3c7745 KisFrameCacheSwapper::saveFrame+0x25
00007FF9BF16C01E 0000000000621750 0000000000000000 0000000000000000  libkritaui.dll!0x3ac01e KisAnimationFrameCache::addConvertedFrameData+0x1ce
00007FF9BF16E9AB 00000000005FB170 00007FF9D2FD211F 0000000000621750  libkritaui.dll!0x3ae9ab KisAsyncAnimationCacheRenderer::slotCompleteRegenerationInternal+0x3b
00007FF9BF191FBE 0000000000621750 0000000000000000 000000007CA38500  libkritaui.dll!0x3d1fbe KisAsyncAnimationCacheRenderer::qt_static_metacall+0x1e
00007FF9D31D99DA 00000000005FFB80 0000000000000000 0000000000000000  Qt5Core.dll!0x2299da QObject::event+0xda
00007FF9D2427BDC 0000000000000000 0000000000000038 00000000005F76D8  Qt5Widgets.dll!0x7bdc QApplicationPrivate::notify_helper+0x9c
00007FF9D242EC23 0000000000000001 00007FF9D2FD211F 000000001501C9A0  Qt5Widgets.dll!0xec23 QApplication::notify+0x3b3
00007FF9BF0C91A6 000000007CA37E40 00007FFA145A06E1 0000000200000003  libkritaui.dll!0x3091a6 KisApplication::notify+0x16
00007FF9D31AD0D8 00007FFA11FA1464 0000000002909B90 0000000000000000  Qt5Core.dll!0x1fd0d8 QCoreApplication::notifyInternal2+0x198
00007FF9D31B3709 0000000000170194 0000000000000000 0000000000000000  Qt5Core.dll!0x203709 QCoreApplicationPrivate::sendPostedEvents+0x199
000000006A8FEEBE 0000000000000401 0000000000170194 0000000000000000  qwindows.dll!0x7eebe qt_plugin_instance+0x2a3e
00007FF9D320814A 0000000000030354 00007FFA140C2073 0000000000000001  Qt5Core.dll!0x25814a QEventDispatcherWin32Private::sendTimerEvent+0x60a
00007FFA140B5C1D 000000000126C2C0 00007FF9D3207C70 0000000000170194  USER32.dll!0x15c1d UserCallWinProcCheckWow+0x2bd
00007FFA140B5612 00007FF9D3207C70 00000000005F7DD0 0000000000000000  USER32.dll!0x15612 DispatchMessageWorker+0x1e2
00007FF9D32075EB 0000000002A39BA0 0000000100000024 000000000068FA80  Qt5Core.dll!0x2575eb QEventDispatcherWin32::processEvents+0x5cb
000000006A8FEEA5 000000007D4A71E0 0000000000000014 00007FF9D3350300  qwindows.dll!0x7eea5 qt_plugin_instance+0x2a25
00007FF9D31AB8FF 00000000005FB130 00000000005FB190 0000000000000040  Qt5Core.dll!0x1fb8ff QEventLoop::exec+0x13f
00007FF9BF17353F 0000000000000010 000000001A99B020 0000000000000780  libkritaui.dll!0x3b353f KisAsyncAnimationRenderDialogBase::regenerateRange+0xa3f
00007FF9BF17ADD8 000000001A502490 00000000029F43D8 0000000000000000  libkritaui.dll!0x3badd8 KisAnimationPlayer::play+0x368
00007FF9B9392959 000000001A5A3540 00007FF9D25D2DB9 000000001A997C90  kritaanimationdocker.dll!0x2959 AnimationDocker::slotPlayPause+0x99
00007FF9B93D8C05 00000000029F4458 0000000000000001 0000000017D21C10  kritaanimationdocker.dll!0x48c05 AnimationDocker::qt_static_metacall+0xd5
00007FF9D31D8C38 000000001A618C50 0000000000000000 00000000FFFFFFFB  Qt5Core.dll!0x228c38 QMetaObject::activate+0x7b8
00007FF9D2423E0E 0000000000000000 0000001C0000005D 000000001A997C90  Qt5Widgets.dll!0x3e0e QAction::activate+0xfe
00007FF9D24FFA5D 0000000000000000 00000000005FB838 00000000005FB520  Qt5Widgets.dll!0xdfa5d QAbstractButton::setIconSize+0x60d
00007FF9D24FFC95 000000001759D5B0 00007FF9D2567923 0000000000000000  Qt5Widgets.dll!0xdfc95 QAbstractButton::mouseReleaseEvent+0xd5

2) Create a document from clipboard:
krita.exe caused an Access Violation at location 00007FFF0D687EE9 in module libkritaui.dll Reading from location 0000000000000000.

AddrPC           Params
00007FFF0D687EE9 00007FFF198DA468 0000000000000001 00000000005FC090  libkritaui.dll!0xf7ee9 createDocument+0x479
00007FFF0D6885E4 00007FFF00000000 0000000000000000 00007FFF6CA29588  libkritaui.dll!0xf85e4 KisMimeData::retrieveData+0xb4
00007FFF195227AA 0000000000322000 00007FFF692096D0 0000E2570A18F4E2  Qt5Core.dll!0x2227aa QMimeData::hasHtml+0x37a
00007FFF195238AC 0000000000000002 00007FFF195220DC 0000000000000000  Qt5Core.dll!0x2238ac QMimeData::imageData+0x2c
00007FFF19975358 0000000000000000 0000000000000058 0000000000000202  Qt5Gui.dll!0x45358 QClipboard::image+0x58
00007FFF0D63C05C 00000000003A0038 00007FFF6C9F7588 0000000000000000  libkritaui.dll!0xac05c KisClipboard::clipboardDataChanged+0x7c
00007FFF19528C38 00000000171A2ED0 00007FFF6B7E5AA4 0000E2570A18F612  Qt5Core.dll!0x228c38 QMetaObject::activate+0x7b8
00007FFF199758E9 0000000002B6A068 00000000005FC518 000000000000031D  Qt5Gui.dll!0x458e9 QClipboard::emitChanged+0x39
000000006A8E16E6 0000000000000000 00007FFF6B7F2073 0000000000000001  qwindows.dll!0x616e6
00007FFF6B7E5C1D 00000000011AFFB0 000000006A8E1650 000000000007032E  USER32.dll!0x15c1d UserCallWinProcCheckWow+0x2bd
00007FFF6B7E5612 000000006A8E1650 00000000005FC6F0 0000000000000000  USER32.dll!0x15612 DispatchMessageWorker+0x1e2
00007FFF195575EB 0000000002B88F00 0000000000000024 000000000260FA80  Qt5Core.dll!0x2575eb QEventDispatcherWin32::processEvents+0x5cb
000000006A8FEEA5 0000000000000080 0000000000000014 000000001CDC4DE0  qwindows.dll!0x7eea5 qt_plugin_instance+0x2a25
00007FFF194FB8FF 000000000C9585F0 000000000C6EAD80 000000001CC60570  Qt5Core.dll!0x1fb8ff QEventLoop::exec+0x13f
00007FFF19504B77 00000000005FFBD0 00000000005FFB40 0000000000000008  Qt5Core.dll!0x204b77 QCoreApplication::exec+0x77
0000000140006F4A 0000000000000001 00000000025A18D0 0000000140F64970  krita.exe!0x6f4a main+0x213a
00000001400013C7 0000000000000000 0000000000000000 0000000000000000  krita.exe!0x13c7 __tmainCRTStartup+0x247
00000001400014CB 0000000000000000 0000000000000000 0000000000000000  krita.exe!0x14cb WinMainCRTStartup+0x1b
00007FFF6BB07C24 0000000000000000 0000000000000000 0000000000000000  KERNEL32.DLL!0x17c24 BaseThreadInitThunk+0x14
00007FFF6D68D4D1 0000000000000000 0000000000000000 0000000000000000  ntdll.dll!0x6d4d1 RtlUserThreadStart+0x21

3) some very weird that only happened once:
krita.exe caused an Access Violation at location 00007FFFB179C1BE in module Qt5Core.dll Reading from location FFFFFFFFFFFFFFFF.

AddrPC           Params
00007FFFB179C1BE 00000000005FFB80 0000000000000000 0000000000000001  Qt5Core.dll!0x1fc1be QCoreApplication::applicationVersionChanged+0x13e
00007FFFAF837BB5 000000007C79DA44 00007FF811C29DA0 0000000100000010  Qt5Widgets.dll!0x7bb5 QApplicationPrivate::notify_helper+0x75
00007FFFAF83EC23 00007FF811941464 00007FFFB15C211F 00000000005FBEA0  Qt5Widgets.dll!0xec23 QApplication::notify+0x3b3
00007FFFAE6091A6 0000000017F2D250 00007FFFB02063EB 0000000000000215  libkritaui.dll!0x3091a6 KisApplication::notify+0x16
00007FFFB179D758 000000001D2859D0 0000000000000025 0000000002A8F840  Qt5Core.dll!0x1fd758 QCoreApplication::sendEvent+0x1a8
00007FFFB17F7C14 0000000017F2D250 00007FFFB17A6DE9 0000000000000001  Qt5Core.dll!0x257c14 QEventDispatcherWin32Private::sendTimerEvent+0xd4
00007FFFB17F84E8 00000000005FFB80 0000000000000000 0000000000000001  Qt5Core.dll!0x2584e8 QEventDispatcherWin32::event+0xf8
00007FFFAF837BDC 0000000000000000 00007FFF00000038 00000000005FBFF8  Qt5Widgets.dll!0x7bdc QApplicationPrivate::notify_helper+0x9c
00007FFFAF83EC23 0000000000000000 00007FFFB15C211F 00000000005FC298  Qt5Widgets.dll!0xec23 QApplication::notify+0x3b3
00007FFFAE6091A6 00000000005FC2C8 00007FF8139006E1 0000000000000000  libkritaui.dll!0x3091a6 KisApplication::notify+0x16
00007FFFB179D0D8 00007FF811941464 0000000000000000 0000000000000000  Qt5Core.dll!0x1fd0d8 QCoreApplication::notifyInternal2+0x198
Comment 16 Halla Rempt 2022-07-05 08:57:44 UTC
I'm afraid we're never going to get to the bottom of this. We're currently working on Krita 5.1, and the crashes happened with Krita 4.4.2. Both in clipboard handling and in animation support there have so many changes that the backtraces won't be relevant anymore. Sorry, but I'm going to have to close this report :-(