Bug 411081

Summary: Crash Without Warning
Product: [Applications] krita Reporter: 4lph4dr4g0nl1ch
Component: File formatsAssignee: Dmitry Kazakov <dimula73>
Status: RESOLVED FIXED    
Severity: crash CC: carinatoocool, coolcatcxz, dimula73, griffinvalley, halla
Priority: NOR    
Version: 4.2.5   
Target Milestone: ---   
Platform: Microsoft Windows   
OS: Microsoft Windows   
Latest Commit: Version Fixed In:
Sentry Crash Report:

Description 4lph4dr4g0nl1ch 2019-08-19 22:14:32 UTC
SUMMARY
Krita suddenly exits (or crashes) by itself without warning, becoming frozen a couple seconds before said exit.

STEPS TO REPRODUCE
1. Open file 
2. Make any edits to any file.
3. Attempt to export, save, autosaving, or simply by drawing, but mostly observed during the former 3.

OBSERVED RESULT
Exits unexpectedly without warning.

EXPECTED RESULT
Not crashing

SOFTWARE/OS VERSIONS
Windows: 10

ADDITIONAL INFORMATION
I've tried everything to swapping out the temp file location to testing brush packs that might be responsible, but the issue remains.
Comment 1 wolthera 2019-08-19 22:34:50 UTC
Hey, could you see if you can provide a backtrace?


Instructions are here:
https://docs.krita.org/en/reference_manual/dr_minw_debugger.html

We can use the backtrace as a blackbox to figure out where Krita is crashing and then more efficiently fix the issue.
Comment 2 4lph4dr4g0nl1ch 2019-08-20 02:14:23 UTC
(In reply to wolthera from comment #1)
> Hey, could you see if you can provide a backtrace?
> 
> 
> Instructions are here:
> https://docs.krita.org/en/reference_manual/dr_minw_debugger.html
> 
> We can use the backtrace as a blackbox to figure out where Krita is crashing
> and then more efficiently fix the issue.

------
Error occurred on Monday, August 19, 2019 at 18:12:22.

krita.exe caused an Access Violation at location 00007FF84753C357 in module libkritaimage.dll Reading from location 0000000000000029.

AddrPC           Params
00007FF84753C357 0000000000000000 0000000000000000 0000000000000000  libkritaimage.dll!0x2dc357 KisTileDataSwapper::pass<SoftSwapStrategy>+0xb7
00007FF847278CC0 00000000388D2E10 0000000000000000 0000000000000000  libkritaimage.dll!0x18cc0 KisTileDataSwapper::doJob+0x80
00007FF847278D3F 00007FF8477140E0 00000000388D2E00 0000000000000000  libkritaimage.dll!0x18d3f KisTileDataSwapper::run+0x2f
00007FF83D15169B 0000000000000000 0000000000000000 0000000000000000  Qt5Core.dll!0x2169b QThread::qt_metacall+0x68b
00007FF891807BD4 0000000000000000 0000000000000000 0000000000000000  KERNEL32.DLL!0x17bd4 BaseThreadInitThunk+0x14
00007FF8932CCE71 0000000000000000 0000000000000000 0000000000000000  ntdll.dll!0x6ce71 RtlUserThreadStart+0x21

0000000140000000-0000000140F90000 krita.exe
00007FF893260000-00007FF893450000 ntdll.dll   	6.2.18362.267
00007FF8917F0000-00007FF8918A2000 KERNEL32.DLL	6.2.18362.86
00007FF890280000-00007FF890523000 KERNELBASE.dll	6.2.18362.267
00007FF8918B0000-00007FF89194E000 msvcrt.dll  	7.0.18362.1
00007FF884DA0000-00007FF884DDF000 libkritaglobal.dll
00007FF866930000-00007FF866A64000 libkritawidgetutils.dll
00007FF8145E0000-00007FF815A8F000 libkritaui.dll
00007FF847260000-00007FF84778D000 libkritaimage.dll
0000000061440000-000000006145A000 libgcc_s_seh-1.dll
000000006FC40000-000000006FDA5000 libstdc++-6.dll
00007FF881200000-00007FF88125E000 libKF5ConfigCore.dll
00007FF891F70000-00007FF892103000 USER32.dll  	6.2.18362.267
00007FF87F3D0000-00007FF87F426000 libKF5I18n.dll
00007FF891290000-00007FF8912B1000 win32u.dll  	6.2.18362.295
00007FF83D130000-00007FF83D75B000 Qt5Core.dll 	5.12.4.0
00007FF891A90000-00007FF891AB6000 GDI32.dll   	6.2.18362.1
00007FF891EC0000-00007FF891F63000 ADVAPI32.dll	6.2.18362.1
00007FF830A00000-00007FF83101A000 Qt5Gui.dll  	5.12.4.0
00007FF890E00000-00007FF890F94000 gdi32full.dll	6.2.18362.295
00007FF8462E0000-00007FF84684C000 Qt5Widgets.dll	5.12.4.0
00007FF891D60000-00007FF891EB6000 ole32.dll   	6.2.18362.113
00007FF892D10000-00007FF892DA7000 sechost.dll 	6.2.18362.267
00007FF890D60000-00007FF890DFE000 msvcp_win.dll	6.2.18362.267
00007FF892870000-00007FF892BA6000 combase.dll 	6.2.18362.267
00007FF891190000-00007FF89128A000 ucrtbase.dll	6.2.18362.267
00007FF88CE60000-00007FF88CE6E000 libkritaversion.dll
0000000000600000-0000000000720000 RPCRT4.dll  	6.2.18362.1
00007FF890FC0000-00007FF891040000 bcryptPrimitives.dll	6.2.18362.295
00007FF892110000-00007FF8927F2000 SHELL32.dll 	6.2.18362.295
00007FF87F0F0000-00007FF87F12B000 Qt5Xml.dll  	5.12.4.0
00007FF87D220000-00007FF87D2B3000 libkritaodf.dll
00007FF8912C0000-00007FF89130A000 cfgmgr32.dll	6.2.18362.1
00007FF892BB0000-00007FF892C59000 shcore.dll  	6.2.18362.1
00007FF881010000-00007FF881033000 libkritaplugin.dll
00007FF8808B0000-00007FF8808D9000 libKF5ConfigGui.dll
00007FF8774D0000-00007FF877565000 libKF5CoreAddons.dll
00007FF8905E0000-00007FF890D5C000 windows.storage.dll	6.2.18362.295
00007FF87F0C0000-00007FF87F0EA000 libKF5GuiAddons.dll
00007FF890140000-00007FF89015F000 profapi.dll 	6.2.18362.1
00007FF884CA0000-00007FF884CBF000 libkritacommand.dll
00007FF866800000-00007FF86692B000 libKF5WidgetsAddons.dll
00007FF87E8A0000-00007FF87E8DD000 libKF5ItemViews.dll
00007FF8901A0000-00007FF8901EA000 powrprof.dll	6.2.18362.1
00007FF87E760000-00007FF87E798000 libkritametadata.dll
00007FF890130000-00007FF890140000 UMPDC.dll
00007FF87EA00000-00007FF87EA2D000 libKF5WindowSystem.dll
00007FF852F60000-00007FF8531E1000 libkritapigment.dll
00007FF891950000-00007FF8919A2000 shlwapi.dll 	6.2.18362.1
00007FF891C70000-00007FF891CDF000 WS2_32.dll  	6.2.18362.1
00007FF87D1C0000-00007FF87D21F000 libkritapsd.dll
00007FF890160000-00007FF890171000 kernel.appcore.dll	6.2.18362.1
00007FF87E870000-00007FF87E892000 libkritastore.dll
00007FF890FA0000-00007FF890FB7000 cryptsp.dll 	6.2.18362.1
0000000064940000-0000000064955000 libwinpthread-1.dll	1.0.0.0
00007FF88C200000-00007FF88C20E000 libkritacolor.dll
00007FF85C450000-00007FF85C663000 libkritaflake.dll
00007FF865BE0000-00007FF865CF1000 libfftw3.dll
00007FF87D090000-00007FF87D0B1000 libkritaimpex.dll
00007FF8789C0000-00007FF878A18000 Qt5PrintSupport.dll	5.12.4.0
00007FF877460000-00007FF8774CC000 libkritalibbrush.dll
00007FF8919B0000-00007FF891A7F000 comdlg32.dll	6.2.18362.1
00007FF879200000-00007FF87924E000 libHalf.dll
00007FF8652A0000-00007FF8653CB000 libkritawidgets.dll
00007FF851200000-00007FF851477000 libexiv2.dll
00007FF87B0F0000-00007FF87B129000 libKF5Completion.dll
00007FF8917E0000-00007FF8917E8000 PSAPI.DLL   	6.2.18362.1
00007FF87AE60000-00007FF87AE9E000 libpng16.dll
00007FF8535A0000-00007FF85372D000 Qt5Network.dll	5.12.4.0
00007FF854040000-00007FF854133000 Qt5Multimedia.dll	5.12.4.0
00007FF891040000-00007FF891189000 CRYPT32.dll 	6.2.18362.1
00007FF881420000-00007FF88143E000 libintl.DLL 	0.18.0.0
00007FF890180000-00007FF890192000 MSASN1.dll  	6.2.18362.1
00007FF88E8D0000-00007FF88E8FD000 dwmapi.dll  	6.2.18362.267
00007FF88E3C0000-00007FF88E459000 UxTheme.dll 	6.2.18362.1
00007FF886AD0000-00007FF886AEB000 MPR.dll     	6.2.18362.1
00007FF889A00000-00007FF889A17000 NETAPI32.dll	6.2.18362.1
00007FF890020000-00007FF890045000 USERENV.dll 	6.2.18362.175
00007FF877120000-00007FF877161000 libKF5Archive.dll
00007FF877760000-00007FF877790000 libquazip5.dll
00007FF88A1D0000-00007FF88A1DA000 VERSION.dll 	6.2.18362.1
00007FF88CBA0000-00007FF88CBC4000 WINMM.dll   	6.2.18362.1
00007FF8770C0000-00007FF877113000 Qt5Svg.dll  	5.12.4.0
00007FF88BDC0000-00007FF88BDD0000 Qt5Concurrent.dll	5.12.4.0
00007FF883D80000-00007FF883E29000 COMCTL32.dll	5.82.18362.295
00007FF885200000-00007FF885289000 WINSPOOL.DRV	6.2.18362.267
00007FF8901F0000-00007FF890216000 bcrypt.dll  	6.2.18362.267
00007FF87FAC0000-00007FF87FAD2000 iconv.dll
00007FF876F30000-00007FF876F65000 libexpat.dll
00007FF8784E0000-00007FF878500000 libzlib.dll 	1.2.11.0
00007FF88F6F0000-00007FF88F7BA000 DNSAPI.dll  	6.2.18362.267
00007FF88F6B0000-00007FF88F6EA000 IPHLPAPI.DLL	6.2.18362.1
00007FF891C60000-00007FF891C68000 NSI.dll     	6.2.18362.1
00007FF84E360000-00007FF84E605000 libcrypto-1_1-x64.dll	1.1.1.2
00007FF86BAE0000-00007FF86BB66000 libssl-1_1-x64.dll	1.1.1.2
0000000063CC0000-0000000063CEC000 liblzma.dll 	5.2.4.0
00007FF88CB70000-00007FF88CB9D000 winmmbase.dll	6.2.18362.1
00007FF88C6F0000-00007FF88C7DF000 PROPSYS.dll 	7.0.18362.267
00007FF891460000-00007FF891524000 OLEAUT32.dll	6.2.18362.295
00007FF88F7C0000-00007FF88F7CC000 NETUTILS.DLL	6.2.18362.1
00007FF88FB70000-00007FF88FB7C000 CRYPTBASE.DLL	6.2.18362.1
00007FF88F7D0000-00007FF88F812000 LOGONCLI.DLL	6.2.18362.1
00007FF8898A0000-00007FF8898C6000 SRVCLI.DLL  	6.2.18362.1
00007FF88BE00000-00007FF88BE18000 SAMCLI.DLL  	6.2.18362.1
00007FF891430000-00007FF89145E000 IMM32.DLL   	6.2.18362.1
000000006A880000-000000006AA36000 qwindows.dll	5.12.4.0
00007FF88C890000-00007FF88C8A3000 WTSAPI32.dll	6.2.18362.1
00007FF884DE0000-00007FF884FA6000 d3d9.dll    	6.2.18362.267
00007FF88EDA0000-00007FF88EDC0000 dxcore.dll  	6.2.18362.1
00007FF890220000-00007FF89027C000 WINTRUST.DLL	6.2.18362.145
00007FF8917C0000-00007FF8917DD000 imagehlp.dll	6.2.18362.1
00007FF88F510000-00007FF88F543000 rsaenh.dll  	6.2.18362.1
00007FF891B20000-00007FF891C56000 MSCTF.dll   	6.2.18362.295
00007FF867BC0000-00007FF867D0F000 opengl32.dll	6.2.18362.267
00007FF878280000-00007FF8782AC000 GLU32.dll   	6.2.18362.267
00000000032F0000-0000000005A3D000 nvoglv64.dll	26.21.14.3136
00007FF892DB0000-00007FF893220000 SETUPAPI.dll	6.2.18362.1
00007FF88FF30000-00007FF88FF5A000 DEVOBJ.dll  	6.2.18362.1
00007FF88F190000-00007FF88F1C1000 ntmarta.dll 	6.2.18362.1
00007FF869040000-00007FF8692F2000 nvspcap64.dll	3.19.0.107
00007FF88F200000-00007FF88F25C000 WINSTA.dll  	6.2.18362.53
00007FF892C60000-00007FF892D02000 clbcatq.dll 	2001.12.10941.16384
00007FF885580000-00007FF885590000 libEGL.DLL  	5.12.4.0
00007FF8469F0000-00007FF846DC9000 libGLESv2.dll	5.12.4.0
00007FF83FE20000-00007FF840068000 wintab32.dll	1.0.5.10
00007FF868DC0000-00007FF869034000 Wacom_Tablet.dll	6.3.36.1
000000006CC40000-000000006CC74000 qwindowsvistastyle.dll	5.12.4.0
00007FF8782B0000-00007FF8782C2000 kimg_exr.dll
00007FF83CE90000-00007FF83D12B000 libIlmImf.dll
00007FF8770A0000-00007FF8770B3000 libIex.dll
00007FF883AC0000-00007FF883ACF000 libIlmThread.dll
00007FF873520000-00007FF87353A000 libImath.dll
00007FF872820000-00007FF872831000 kimg_kra.dll
00007FF8724F0000-00007FF872501000 kimg_ora.dll
00007FF871FC0000-00007FF871FD3000 kimg_pcx.dll
00007FF86F420000-00007FF86F433000 kimg_pic.dll
00007FF86EAD0000-00007FF86EAE1000 kimg_psd.dll
00007FF86E230000-00007FF86E242000 kimg_ras.dll
00007FF86E210000-00007FF86E224000 kimg_rgb.dll
00007FF86E1F0000-00007FF86E201000 kimg_tga.dll
00007FF86E030000-00007FF86E04E000 kimg_xcf.dll
0000000061F00000-0000000061F13000 qgif.dll    	5.12.4.0
000000006C600000-000000006C615000 qicns.dll   	5.12.4.0
000000006E840000-000000006E853000 qico.dll    	5.12.4.0
00000000626C0000-0000000062729000 qjpeg.dll   	5.12.4.0
0000000061B00000-0000000061B11000 qsvg.dll    	5.12.4.0
000000006CF00000-000000006CF71000 qtiff.dll   	5.12.4.0
0000000066AC0000-0000000066AD1000 qwbmp.dll   	5.12.4.0
00000000675C0000-0000000067652000 qwebp.dll   	5.12.4.0
00007FF883BC0000-00007FF883BFA000 dataexchange.dll	6.2.18362.1
00007FF88DB70000-00007FF88DD4B000 dcomp.dll   	6.2.18362.145
00007FF88D4B0000-00007FF88D70B000 d3d11.dll   	6.2.18362.1
00007FF88EE30000-00007FF88EF1A000 dxgi.dll    	6.2.18362.267
00007FF88E580000-00007FF88E7DA000 twinapi.appcore.dll	6.2.18362.1
00007FF88E900000-00007FF88E929000 RMCLIENT.dll	6.2.18362.267
00007FF86E010000-00007FF86E021000 exchndl.dll 	0.8.2.0
00007FF86D8C0000-00007FF86D922000 mgwhelp.dll 	0.8.2.0
00007FF851FE0000-00007FF85216F000 dbghelp.dll 	6.3.9600.17298
00007FF87BBB0000-00007FF87BEAE000 dwrite.dll  	6.2.18362.267
00007FF885190000-00007FF8851F5000 Oleacc.dll  	7.2.18362.1
00007FF876BB0000-00007FF876E20000 UIAutomationCore.dll	7.2.18362.1
00007FF88FF80000-00007FF89001D000 sxs.dll     	6.2.18362.1
00007FF86DFD0000-00007FF86DFE5000 krita_shape_image.dll
00007FF853F60000-00007FF854040000 krita_shape_text.dll
00007FF851600000-00007FF85178D000 libkritatext.dll
00007FF86A640000-00007FF86A6B4000 libkritatextlayout.dll
00007FF86D690000-00007FF86D6CF000 krita_shape_artistictext.dll
00007FF869350000-00007FF8693B2000 krita_shape_paths.dll
00007FF86DFB0000-00007FF86DFC8000 kritaasccdl.dll
00007FF86D590000-00007FF86D5C2000 kritablurfilter.dll
00007FF86D140000-00007FF86D189000 kritacolorsfilters.dll
00007FF86D3C0000-00007FF86D3D9000 kritaconvertheighttonormalmap.dll
00007FF86C740000-00007FF86C755000 kritaconvolutionfilters.dll
00007FF86BD80000-00007FF86BD94000 kritadodgeburn.dll
00007FF86BD60000-00007FF86BD79000 kritaedgedetection.dll
00007FF86A620000-00007FF86A633000 kritaembossfilter.dll
00007FF86A1E0000-00007FF86A1F4000 kritaexample.dll
00007FF86A160000-00007FF86A17A000 kritaextensioncolorsfilters.dll
00007FF86A140000-00007FF86A159000 kritafastcolortransferfilter.dll
00007FF86A120000-00007FF86A13C000 kritagradientmap.dll
00007FF869330000-00007FF86934C000 kritahalftone.dll
00007FF868AC0000-00007FF868AEB000 kritaimageenhancement.dll
00007FF868AA0000-00007FF868ABD000 kritaindexcolors.dll
00007FF866AD0000-00007FF866AE9000 kritalevelfilter.dll
00007FF866AB0000-00007FF866AC8000 kritanoisefilter.dll
00007FF8667E0000-00007FF8667F5000 kritanormalize.dll
00007FF8667C0000-00007FF8667D7000 kritaoilpaintfilter.dll
00007FF865F70000-00007FF865F96000 kritaphongbumpmap.dll
00007FF865F50000-00007FF865F67000 kritapixelizefilter.dll
00007FF865F30000-00007FF865F47000 kritaposterize.dll
00007FF865EF0000-00007FF865F04000 kritaraindropsfilter.dll
00007FF865BC0000-00007FF865BD9000 kritarandompickfilter.dll
00007FF865BA0000-00007FF865BB7000 kritaroundcornersfilter.dll
00007FF865B80000-00007FF865B95000 kritasmalltilesfilter.dll
00007FF865B60000-00007FF865B7A000 kritathreshold.dll
00007FF865B30000-00007FF865B53000 kritaunsharpfilter.dll
00007FF8659E0000-00007FF8659FB000 kritawavefilter.dll
00007FF865280000-00007FF865298000 kritacolorgenerator.dll
00007FF865260000-00007FF865278000 kritapatterngenerator.dll
00007FF865240000-00007FF86525E000 kritasimplexnoisegenerator.dll
00007FF8614E0000-00007FF861517000 kritacolorsmudgepaintop.dll
00007FF84D880000-00007FF84D998000 libkritalibpaintop.dll
00007FF8224D0000-00007FF823064000 kritalcmsengine.dll
00007FF8588B0000-00007FF858903000 liblcms2.dll
00007FF8614A0000-00007FF8614D9000 krita_colorspaces_extensions.dll
00007FF865210000-00007FF86523B000 kritacurvepaintop.dll
00007FF852660000-00007FF8526BA000 kritadefaultpaintops.dll
00007FF860AF0000-00007FF860B25000 kritadeformpaintop.dll
00007FF85C420000-00007FF85C44D000 kritaexperimentpaintop.dll
00007FF858880000-00007FF8588A8000 kritafilterop.dll
00007FF852630000-00007FF852653000 kritagridpaintop.dll
00007FF8525F0000-00007FF852621000 kritahairypaintop.dll
00007FF8515C0000-00007FF8515F7000 kritahatchingpaintop.dll
00007FF851590000-00007FF8515B8000 kritaparticlepaintop.dll
00007FF8511D0000-00007FF8511F6000 kritaroundmarkerpaintop.dll
00007FF8511A0000-00007FF8511CC000 kritasketchpaintop.dll
00007FF851160000-00007FF85119D000 kritaspraypaintop.dll
00007FF851130000-00007FF85115B000 kritatangentnormalpaintop.dll
00007FF84E320000-00007FF84E35F000 krita_filtereffects.dll
00007FF890050000-00007FF89007F000 SspiCli.dll 	6.2.18362.1
00007FF84E0A0000-00007FF84E0E3000 kritaassistanttool.dll
00007FF84E040000-00007FF84E096000 krita_flaketools.dll
00007FF84DAC0000-00007FF84DB2E000 krita_karbontools.dll
00007FF85FB80000-00007FF85FB92000 krita_tool_basicflakes.dll
00007FF84DAA0000-00007FF84DABB000 libkritabasicflakes.dll
00007FF84D840000-00007FF84D87D000 krita_tool_svgtext.dll
00007FF84D7B0000-00007FF84D835000 kritadefaulttools.dll
00007FF87F0B0000-00007FF87F0C0000 libboost_system-mgw73-mt-1_61.dll
00007FF8471D0000-00007FF847252000 kritaselectiontools.dll
00007FF84DA70000-00007FF84DA9E000 kritatoolSmartPatch.dll
00007FF8469C0000-00007FF8469EC000 kritatoolcrop.dll
00007FF8469A0000-00007FF8469B7000 kritatooldyna.dll
00007FF846970000-00007FF846994000 kritatoollazybrush.dll
00007FF846950000-00007FF846966000 kritatoolpolygon.dll
00007FF846930000-00007FF846946000 kritatoolpolyline.dll
00007FF842E50000-00007FF842F48000 kritatooltransform.dll
00007FF83FD70000-00007FF83FE14000 kritaanimationdocker.dll
00007FF846910000-00007FF846927000 kritasvgcollectiondocker.dll
00007FF8468F0000-00007FF846908000 kritaarrangedocker.dll
00007FF8468C0000-00007FF8468F0000 kritaartisticcolorselector.dll
00007FF8462B0000-00007FF8462D2000 kritachanneldocker.dll
00007FF843660000-00007FF8436C2000 kritacolorselectorng.dll
0000000070700000-0000000070714000 qsvgicon.dll	5.12.4.0
00007FF846290000-00007FF8462AF000 kritacompositiondocker.dll
00007FF846270000-00007FF846285000 kritadigitalmixer.dll
00007FF842E20000-00007FF842E4C000 kritagamutmask.dll
00007FF83FD50000-00007FF83FD6D000 kritagriddocker.dll
00007FF83FD30000-00007FF83FD48000 kritahistogramdocker.dll
00007FF83FD10000-00007FF83FD30000 kritahistorydocker.dll
00007FF83FCC0000-00007FF83FD02000 kritalayerdocker.dll
00007FF83FCA0000-00007FF83FCBA000 kritalogdocker.dll
00007FF83CE60000-00007FF83CE89000 kritalutdocker.dll
00007FF83CBA0000-00007FF83CCF2000 libOpenColorIO.dll
00007FF83FC80000-00007FF83FC9C000 kritaoverviewdocker.dll
00007FF83CE40000-00007FF83CE5C000 kritapalettedocker.dll
00007FF83CDE0000-00007FF83CDF3000 kritapatterndocker.dll
00007FF83CDC0000-00007FF83CDD4000 kritapresetdocker.dll
00007FF83CDA0000-00007FF83CDB5000 kritapresethistory.dll
00007FF83CD70000-00007FF83CD91000 kritasmallcolorselector.dll
00007FF83CD50000-00007FF83CD6C000 kritaspecificcolorselector.dll
00007FF83CD20000-00007FF83CD48000 kritatasksetdocker.dll
00007FF83CB80000-00007FF83CB9C000 kritatouchdocker.dll
00007FF83CB60000-00007FF83CB79000 Qt5QuickWidgets.dll	5.12.4.0
00007FF82C4A0000-00007FF82C893000 Qt5Qml.dll  	5.12.4.0
00007FF8308E0000-00007FF8309F9000 libkritaqml.dll
00007FF829A30000-00007FF829E1D000 Qt5Quick.dll	5.12.4.0
0000000067580000-00000000675A2000 qgenericbearer.dll	5.12.4.0
00007FF88A1B0000-00007FF88A1C6000 dhcpcsvc6.DLL	6.2.18362.267
00007FF88A650000-00007FF88A66C000 dhcpcsvc.DLL	6.2.18362.267
00007FF86DA20000-00007FF86DA43000 edputil.dll 	6.2.18362.1
00007FF83BEF0000-00007FF83BF30000 kritaanimationrenderer.dll
00007FF83CB40000-00007FF83CB56000 kritabuginfo.dll
00007FF83BED0000-00007FF83BEED000 kritaclonesarray.dll
00007FF83BEA0000-00007FF83BEC1000 kritacolorrange.dll
00007FF83BBF0000-00007FF83BC0A000 kritacolorspaceconversion.dll
00007FF83B980000-00007FF83B9B1000 kritaimagesize.dll
00007FF83B960000-00007FF83B97D000 kritaimagesplit.dll
00007FF83B940000-00007FF83B955000 kritalayergroupswitcher.dll
00007FF8308C0000-00007FF8308DF000 kritalayersplit.dll
00007FF830890000-00007FF8308BB000 kritametadataeditor.dll
00007FF830870000-00007FF83088C000 kritamodifyselection.dll
00007FF830840000-00007FF830862000 kritaoffsetimage.dll
00007FF8307F0000-00007FF830835000 kritaqmic.dll
00007FF8307B0000-00007FF8307E7000 kritaresourcemanager.dll
00007FF830790000-00007FF8307AC000 kritarotateimage.dll
00007FF82CB10000-00007FF82CB32000 kritaseparatechannels.dll
00007FF82CAF0000-00007FF82CB05000 kritashearimage.dll
00007FF82CAD0000-00007FF82CAEB000 kritawaveletdecompose.dll
00007FF82CAA0000-00007FF82CACD000 kritapykrita.dll
00007FF82CA00000-00007FF82CA9B000 libkritalibkis.dll
000000006D330000-000000006D6C4000 python36.dll	3.6.2150.1013
00007FF82C9E0000-00007FF82C9F7000 VCRUNTIME140.dll	14.0.23026.0
00007FF82C960000-00007FF82C9D2000 krita.pyd
0000000064F40000-0000000064F64000 sip.pyd
000000006B880000-000000006BBA7000 QtCore.pyd
00007FF87E9E0000-00007FF87E9EF000 python3.dll 	3.6.2150.1013
0000000066300000-000000006662F000 QtGui.pyd
0000000065400000-0000000065A9F000 QtWidgets.pyd
0000000061640000-000000006168E000 QtXml.pyd
000000006D310000-000000006D32A000 _bz2.pyd    	3.6.2150.1013
00007FF82C910000-00007FF82C952000 _lzma.pyd   	3.6.2150.1013
00007FF82C330000-00007FF82C499000 _hashlib.pyd	3.6.2150.1013
000000006D2E0000-000000006D30D000 _elementtree.pyd	3.6.2150.1013
00007FF82C2F0000-00007FF82C323000 pyexpat.pyd 	3.6.2150.1013
000000006D2C0000-000000006D2D5000 _socket.pyd 	3.6.2150.1013
000000006D2B0000-000000006D2BA000 select.pyd  	3.6.2150.1013
000000006D2A0000-000000006D2AE000 _overlapped.pyd	3.6.2150.1013
00007FF88F9A0000-00007FF88FA07000 mswsock.dll 	6.2.18362.1
000000006D290000-000000006D29B000 _multiprocessing.pyd	3.6.2150.1013
00007FF82C8F0000-00007FF82C901000 _asyncio.pyd	3.6.2150.1013
00007FF82C0F0000-00007FF82C2ED000 _ssl.pyd    	3.6.2150.1013
000000006DA80000-000000006DA8F000 qtquick2plugin.dll	5.12.4.0
00007FF82BF20000-00007FF82BFE1000 kritasketchplugin.dll
00007FF8842C0000-00007FF88435E000 TextInputFramework.dll	6.2.18362.267
00007FF88BE20000-00007FF88C14A000 CoreUIComponents.dll	6.2.18362.207
00007FF88E0C0000-00007FF88E194000 CoreMessaging.dll	6.2.18362.1
00007FF88BB00000-00007FF88BC53000 wintypes.dll	6.2.18362.267
00007FF83BB40000-00007FF83BBB4000 kritapsdimport.dll
00007FF883E30000-00007FF8840D6000 iertutil.dll	11.0.18362.267
00007FF87F170000-00007FF87F1E9000 kritapsdexport.dll
00007FF86FB90000-00007FF86FD43000 DUI70.dll   	6.2.18362.1
00007FF8849E0000-00007FF884C65000 Comctl32.dll	6.10.18362.295
00007FF86FAF0000-00007FF86FB83000 DUser.dll   	6.2.18362.1
00007FF87B1F0000-00007FF87B3F5000 explorerframe.dll	6.2.18362.295
00007FF88B770000-00007FF88B91F000 WindowsCodecs.dll	6.2.18362.1
00007FF87A5B0000-00007FF87A60E000 thumbcache.dll	6.2.18362.1
00007FF8728D0000-00007FF872C0A000 MsftEdit.dll	6.2.18362.1
00007FF86F890000-00007FF86FA48000 Windows.Globalization.dll	6.2.18362.86
00007FF873190000-00007FF8731ED000 Bcp47Langs.dll	6.2.18362.1
00007FF872210000-00007FF872240000 bcp47mrm.dll	6.2.18362.1
00007FF8762F0000-00007FF876315000 globinputhost.dll	6.2.18362.1
00007FF87F320000-00007FF87F3C4000 tiptsf.dll  	6.2.18362.1
00007FF88CEC0000-00007FF88CECD000 atlthunk.dll	6.2.18362.1
00007FF87B030000-00007FF87B0AE000 ntshrui.dll 	6.2.18362.1
00007FF86D190000-00007FF86D1A2000 cscapi.dll  	6.2.18362.1
00007FF883A70000-00007FF883AA5000 xmllite.dll 	6.2.18362.295
00007FF86D1D0000-00007FF86D277000 StructuredQuery.dll	7.0.18362.1
00007FF872D40000-00007FF872E75000 Windows.StateRepositoryPS.dll	6.2.18362.1
00007FF86F6A0000-00007FF86F75C000 Windows.Storage.Search.dll	6.2.18362.1
00007FF88CED0000-00007FF88CEF0000 CLDAPI.dll  	6.2.18362.1
00007FF87E630000-00007FF87E63A000 FLTLIB.DLL  	6.2.18362.1
00007FF891740000-00007FF8917B6000 coml2.dll   	6.2.18362.1
00007FF87D890000-00007FF87D931000 twinapi.dll 	6.2.18362.1
00007FF88C450000-00007FF88C45D000 LINKINFO.dll	6.2.18362.1
00007FF88E2D0000-00007FF88E35F000 apphelp.dll 	6.2.18362.1
00007FF88CE00000-00007FF88CE16000 NetworkExplorer.dll	6.2.18362.1
00007FF88C530000-00007FF88C547000 wkscli.dll  	6.2.18362.1
00007FF87D2C0000-00007FF87D338000 provsvc.dll 	6.2.18362.1
00007FF8840E0000-00007FF8842B6000 urlmon.dll  	11.0.18362.207
00007FF8784A0000-00007FF8784D7000 EhStorShell.dll	6.2.18362.1
00007FF88B2C0000-00007FF88B340000 policymanager.dll	6.2.18362.267
00007FF88CA10000-00007FF88CA9A000 msvcp110_win.dll	6.2.18362.1
00007FF875190000-00007FF875666000 WININET.dll 	11.0.18362.267
00007FF86B7C0000-00007FF86B7D6000 ondemandconnroutehelper.dll	6.2.18362.1
00007FF8757D0000-00007FF8758C0000 winhttp.dll 	6.2.18362.207
00007FF88A7D0000-00007FF88A7DB000 WINNSI.DLL  	6.2.18362.1
00007FF8743F0000-00007FF8743FA000 rasadhlp.dll	6.2.18362.1
00007FF889BD0000-00007FF889C47000 fwpuclnt.dll	6.2.18362.207

Windows 6.2.9200
DrMingw 0.8.2


This thing, right?
Comment 3 Bug Janitor Service 2019-08-20 04:33:15 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 4 Halla Rempt 2019-08-20 06:45:39 UTC
Yes, thanks for adding this. I've seen this backtrace before, though I haven't been able to reproduce it.
Comment 5 Halla Rempt 2019-08-20 06:48:47 UTC
Oh, just checking: are you the same person who reported this backtrace on the forum?
Comment 6 Dmitry Kazakov 2019-08-20 16:16:17 UTC
Git commit 2ffdc5b070522bf1df73844ff47f525cb4a9262c by Dmitry Kazakov.
Committed on 20/08/2019 at 16:10.
Pushed by dkazakov into branch 'master'.

Fix ConcurrentMap::migrationInProcess() to handle initialization value (0) properly

Job coordinator of the table may have three states:

1) jobCoordinator == 0: the table was initialized, but no migration
   has ever been started for this table
2) jobCoordinator > 1: a table migration is in progress right now. The
   caller should join *jobCoordinator to help finishing the migration.
3) jobCoordinator == 1: the table migration has been finished. It means
   that the table doesn't have any values in it anymore.

The patch actually fixes the map to consider case 1 as a situation, when
there is no migration.

M  +1    -1    libs/image/3rdparty/lock_free_map/concurrent_map.h

https://invent.kde.org/kde/krita/commit/2ffdc5b070522bf1df73844ff47f525cb4a9262c
Comment 7 Dmitry Kazakov 2019-08-20 16:16:17 UTC
Git commit ac020c6cb41213d65f40be8aafb960af8259ff1d by Dmitry Kazakov.
Committed on 20/08/2019 at 16:10.
Pushed by dkazakov into branch 'master'.

Fix random crash when swap-file location has not got enough disk space

Lockfree hash table iterators have a requirement of no-concurrent-inserts,
so we must ensure that the swapper and pooler do *not* insert any tiles,
why iteration is in progress. KisTileDataStore::trySwapTileData() is called
exactly from inside of the swapper iteration loop.

If we break this requirement, the insert operation may request a table
migration, and the iterator will continue iterating the old, invalid,
table.

The actual crash happened after line 'item = iter->next()' in
KisTileDataSwapper::pass(), which actually returned value '1', meaning
"Redirect". Address 0x0000000000000029 is a fetch of
KisTileData::m_mementoFlag (offset 0x28) with 'this' set to 0x01 :)

M  +3    -0    libs/image/3rdparty/lock_free_map/concurrent_map.h
M  +1    -4    libs/image/tiles3/kis_tile_data_store.cc

https://invent.kde.org/kde/krita/commit/ac020c6cb41213d65f40be8aafb960af8259ff1d
Comment 8 Dmitry Kazakov 2019-08-20 16:20:08 UTC
Hi, 4lph4dr4g0nl1ch!

The fix will be available tomorrow in the nightly builds, please test!
https://binary-factory.kde.org/job/Krita_Nightly_Windows_Build/

And please make sure you have enough of free space on the hard drive, where your swap file is located. The crash happened because Krita behaved incorrectly, when there was not enough disk space left. I have fixed the crash now, but if you don't clean up on your hard drive, Krita will still lack memory, :)
Comment 9 4lph4dr4g0nl1ch 2019-08-21 01:57:41 UTC
(In reply to Dmitry Kazakov from comment #8)
> Hi, 4lph4dr4g0nl1ch!
> 
> The fix will be available tomorrow in the nightly builds, please test!
> https://binary-factory.kde.org/job/Krita_Nightly_Windows_Build/
> 
> And please make sure you have enough of free space on the hard drive, where
> your swap file is located. The crash happened because Krita behaved
> incorrectly, when there was not enough disk space left. I have fixed the
> crash now, but if you don't clean up on your hard drive, Krita will still
> lack memory, :)

----
Thanks for all your help c: <3
Though I should mention this computer is brand new, and this issue has been present ever since I set it up, so it can't be lack of hard drive space.
Comment 10 Dmitry Kazakov 2019-08-21 08:08:01 UTC
Okay, if you happen to get some swap/memory-related bugs, please let me know :)
Comment 11 Dmitry Kazakov 2019-08-21 09:05:42 UTC
Hi,4lph4dr4g0nl1ch!

Could you please make a few tests for me? I still wonder why you had these swap failures.

1) Download and run DebugView to get more logging: 
https://docs.microsoft.com/en-us/sysinternals/downloads/debugview

2) Download 'swap1-fatal' build, uncompress it, run and try to reproduce the crash. It should crash a bit faster. Make sure you have DebugView open during this run. 

swap1-fatal: https://yadi.sk/d/AY_N0uRmBJjY8A

3) Attach the log from DebugView to this bug report. It should have lines like: "KisTileDataStore::trySwapTileData: couldn't swap out tile data" and "KisMemoryWindow: couldn't move sliding window"

4) Clear the log in DebugView (or just restart it).

5) Download 'swap2' build, uncompress it and run. It shouldn't crash and should work normally. Check if it doesn't crash and attach the log as well.

swap2: https://yadi.sk/d/YAYgT4acCJHBsQ
Comment 12 Dmitry Kazakov 2019-08-21 16:12:46 UTC
Git commit 9f4cf95f26e995800aa1028bd0b9c26d86ec1620 by Dmitry Kazakov.
Committed on 21/08/2019 at 16:12.
Pushed by dkazakov into branch 'master'.

Fix checking if swap location is set to a writable location

QFileInfo::isWritable() doesn't work on NTFS by default, so we should
just try to create a test fiel to check that.
Related: bug 411129

M  +31   -5    libs/image/kis_image_config.cpp

https://invent.kde.org/kde/krita/commit/9f4cf95f26e995800aa1028bd0b9c26d86ec1620
Comment 13 Dmitry Kazakov 2019-08-21 16:23:17 UTC
Hi, 4lph4dr4g0nl1ch!

Could you please check the following:

1) Download the following package, unpack and run: 
https://yadi.sk/d/H0y2qxDqOnPtGg

2) Check if it doesn't crash (it shouldn't)
3) Go to Preferences->Performance->General and set "Swap File Location" to some non-writable location, e.g. "C:\Program Files"
4) Restart Krita
5) Go to Preferences->Performance->General again, and check if the location was automatically reset to your local Temp location.
Comment 14 4lph4dr4g0nl1ch 2019-08-21 23:45:50 UTC
(In reply to Dmitry Kazakov from comment #11)
> Hi,4lph4dr4g0nl1ch!
> 
> Could you please make a few tests for me? I still wonder why you had these
> swap failures.
> 
> 1) Download and run DebugView to get more logging: 
> https://docs.microsoft.com/en-us/sysinternals/downloads/debugview
> 
> 2) Download 'swap1-fatal' build, uncompress it, run and try to reproduce the
> crash. It should crash a bit faster. Make sure you have DebugView open
> during this run. 
> 
> swap1-fatal: https://yadi.sk/d/AY_N0uRmBJjY8A
> 
> 3) Attach the log from DebugView to this bug report. It should have lines
> like: "KisTileDataStore::trySwapTileData: couldn't swap out tile data" and
> "KisMemoryWindow: couldn't move sliding window"
> 
> 4) Clear the log in DebugView (or just restart it).
> 
> 5) Download 'swap2' build, uncompress it and run. It shouldn't crash and
> should work normally. Check if it doesn't crash and attach the log as well.
> 
> swap2: https://yadi.sk/d/YAYgT4acCJHBsQ

----
The second version didn't crash, but I ran into a strange error regarding saving (that I thought I fixed), with krita claiming it can't save because the file can't be opened. It seems to fix when I save into another folder, but I thought I should mention it anyway.
These should be the right logs for tests 1 and 2.
https://sta.sh/22f0xbyuvkcc
Comment 15 4lph4dr4g0nl1ch 2019-08-21 23:47:58 UTC
(In reply to Dmitry Kazakov from comment #13)
> Hi, 4lph4dr4g0nl1ch!
> 
> Could you please check the following:
> 
> 1) Download the following package, unpack and run: 
> https://yadi.sk/d/H0y2qxDqOnPtGg
> 
> 2) Check if it doesn't crash (it shouldn't)
> 3) Go to Preferences->Performance->General and set "Swap File Location" to
> some non-writable location, e.g. "C:\Program Files"
> 4) Restart Krita
> 5) Go to Preferences->Performance->General again, and check if the location
> was automatically reset to your local Temp location.

----
I ran it by your instructions, and the temp location switched back to its default after restarting.
Comment 16 Dmitry Kazakov 2019-08-22 08:24:57 UTC
Hi, 4lph4dr4g0nl1ch!

It looks like the original bug has been fixed! :)

Though I can see some weird things in your log file. Krita cannot open brush bundles, like these:
C:/Users/nitef/AppData/Roaming/krita/bundles/HC_Paintbrush.bundle
C:/Users/nitef/AppData/Roaming/krita/bundles/concept&illustration.bundle
C:/Users/nitef/AppData/Roaming/krita/bundles/vb1B_CONCEPT.bundle

You might just try to remove (or backup) all these bundles.

During the first run, Krita also didn't manage to create a swap file with the following location:

C:/Users/nitef/AppData/Local/Temp

Please check if this location exists and you have write access to it. There might also be some antivirus software, that blocks Krita from accessing these folders.
Comment 17 Dmitry Kazakov 2019-08-22 08:27:02 UTC
I will close the report, since the original bug has been fixed. Please contact me on IRC to get more help about swap/bundle file locations (my name is dmitryK|log at https://krita.org/en/irc/).

If you happen to get original crash again in future builds, please reopen the bug.
Comment 18 4lph4dr4g0nl1ch 2019-08-23 03:47:37 UTC
(In reply to Dmitry Kazakov from comment #17)
> I will close the report, since the original bug has been fixed. Please
> contact me on IRC to get more help about swap/bundle file locations (my name
> is dmitryK|log at https://krita.org/en/irc/).
> 
> If you happen to get original crash again in future builds, please reopen
> the bug.

-----
(In reply to Dmitry Kazakov from comment #16)
> Hi, 4lph4dr4g0nl1ch!
> 
> It looks like the original bug has been fixed! :)
> 
> Though I can see some weird things in your log file. Krita cannot open brush
> bundles, like these:
> C:/Users/nitef/AppData/Roaming/krita/bundles/HC_Paintbrush.bundle
> C:/Users/nitef/AppData/Roaming/krita/bundles/concept&illustration.bundle
> C:/Users/nitef/AppData/Roaming/krita/bundles/vb1B_CONCEPT.bundle
> 
> You might just try to remove (or backup) all these bundles.
> 
> During the first run, Krita also didn't manage to create a swap file with
> the following location:
> 
> C:/Users/nitef/AppData/Local/Temp
> 
> Please check if this location exists and you have write access to it. There
> might also be some antivirus software, that blocks Krita from accessing
> these folders.

----
Seems the bug is still there, just conveniently didn't happen during the initial testing of the nightly build.
I checked and the temp location does exist. 
I've never had a problem with the bundles before. What makes them incompatible?
Comment 19 Halla Rempt 2019-08-27 12:38:03 UTC
*** Bug 410866 has been marked as a duplicate of this bug. ***
Comment 20 Dmitry Kazakov 2019-08-28 12:55:17 UTC
Hi, 4lph4dr4g0nl1ch!

Could you check today's nightly build, is the bug finally fixed for you?
https://binary-factory.kde.org/job/Krita_Stable_Windows_Build/

If the crash still happens, please generate a log with DebugView for me:
https://docs.microsoft.com/en-us/sysinternals/downloads/debugview
Comment 21 4lph4dr4g0nl1ch 2019-08-29 15:58:22 UTC
(In reply to Dmitry Kazakov from comment #20)
> Hi, 4lph4dr4g0nl1ch!
> 
> Could you check today's nightly build, is the bug finally fixed for you?
> https://binary-factory.kde.org/job/Krita_Stable_Windows_Build/
> 
> If the crash still happens, please generate a log with DebugView for me:
> https://docs.microsoft.com/en-us/sysinternals/downloads/debugview

---
Not completely, but another issue concerning the reference tool was fixed (that I was about to make another bug report for). That having to do with it freaking out and becoming unresponsive when I tried deleting images and serious lag when I moved or resize them. So that's good, I guess.

Here's the debugview log.
https://sta.sh/0ihpi62miy6
Comment 22 Dmitry Kazakov 2019-08-30 13:11:19 UTC
Ah, I'm sorry. I gave you a link to a wrong branch, sorry :(

Could you try this one:
https://binary-factory.kde.org/job/Krita_Nightly_Windows_Build/

And at the same time, could you check if you have access to this folder?
C:\Users\nitef\AppData\Local\Temp

It looks like Krita tries to create a swap file there, but fails. 

If you still have a crash, try to go to Preferences->Performance->SwapFileLocation and select some writable location, which you are sure about. After that restart Krita.

If you still have a problem, attach a log from DebugView :)
Comment 23 Halla Rempt 2019-08-30 13:21:21 UTC
Setting to needinfo
Comment 24 Dmitry Kazakov 2019-09-05 08:23:29 UTC
Git commit 2fdd504dfe6ec63b654ee0878c9f95cb69d4a6ad by Dmitry Kazakov.
Committed on 05/09/2019 at 08:22.
Pushed by dkazakov into branch 'master'.

Fix QRandomGenerator initialization on AMD CPUs

Some AMD CPUs (e.g. AMD A4-6250J and AMD Ryzen 3000-series) have a
failing random generation instruction, which always returns
0xffffffff, even when generation was "successful".

This code checks if hardware random generator can generate four
consecutive distinct numbers. If it fails the test, then we probably
have a failing one and should disable it completely.

Gerrit review:
https://codereview.qt-project.org/c/qt/qtbase/+/272837

A  +214  -0    3rdparty/ext_qt/0070-Fix-QRandomGenerator-initialization-on-AMD-CPUs.patch
M  +7    -0    3rdparty/ext_qt/CMakeLists.txt

https://invent.kde.org/kde/krita/commit/2fdd504dfe6ec63b654ee0878c9f95cb69d4a6ad
Comment 25 4lph4dr4g0nl1ch 2019-09-06 22:06:14 UTC
(In reply to Dmitry Kazakov from comment #22)
> Ah, I'm sorry. I gave you a link to a wrong branch, sorry :(
> 
> Could you try this one:
> https://binary-factory.kde.org/job/Krita_Nightly_Windows_Build/
> 
> And at the same time, could you check if you have access to this folder?
> C:\Users\nitef\AppData\Local\Temp
> 
> It looks like Krita tries to create a swap file there, but fails. 
> 
> If you still have a crash, try to go to
> Preferences->Performance->SwapFileLocation and select some writable
> location, which you are sure about. After that restart Krita.
> 
> If you still have a problem, attach a log from DebugView :)

-----
Sorry for waiting so long to reply, but because it didn't show itself last time, I took a few days to test the build for the crash. I've been actively trying to duplicate the crash, and so far it hasn't happened yet.
Comment 26 4lph4dr4g0nl1ch 2019-09-07 20:59:11 UTC
(In reply to Dmitry Kazakov from comment #24)
> Git commit 2fdd504dfe6ec63b654ee0878c9f95cb69d4a6ad by Dmitry Kazakov.
> Committed on 05/09/2019 at 08:22.
> Pushed by dkazakov into branch 'master'.
> 
> Fix QRandomGenerator initialization on AMD CPUs
> 
> Some AMD CPUs (e.g. AMD A4-6250J and AMD Ryzen 3000-series) have a
> failing random generation instruction, which always returns
> 0xffffffff, even when generation was "successful".
> 
> This code checks if hardware random generator can generate four
> consecutive distinct numbers. If it fails the test, then we probably
> have a failing one and should disable it completely.
> 
> Gerrit review:
> https://codereview.qt-project.org/c/qt/qtbase/+/272837
> 
> A  +214  -0   
> 3rdparty/ext_qt/0070-Fix-QRandomGenerator-initialization-on-AMD-CPUs.patch
> M  +7    -0    3rdparty/ext_qt/CMakeLists.txt
> 
> https://invent.kde.org/kde/krita/commit/
> 2fdd504dfe6ec63b654ee0878c9f95cb69d4a6ad

----
I do run on an AMD Ryzen 5 3600X 6-Core Processor, so that
(In reply to 4lph4dr4g0nl1ch from comment #25)
> (In reply to Dmitry Kazakov from comment #22)
> > Ah, I'm sorry. I gave you a link to a wrong branch, sorry :(
> > 
> > Could you try this one:
> > https://binary-factory.kde.org/job/Krita_Nightly_Windows_Build/
> > 
> > And at the same time, could you check if you have access to this folder?
> > C:\Users\nitef\AppData\Local\Temp
> > 
> > It looks like Krita tries to create a swap file there, but fails. 
> > 
> > If you still have a crash, try to go to
> > Preferences->Performance->SwapFileLocation and select some writable
> > location, which you are sure about. After that restart Krita.
> > 
> > If you still have a problem, attach a log from DebugView :)
> 
> -----
> Sorry for waiting so long to reply, but because it didn't show itself last
> time, I took a few days to test the build for the crash. I've been actively
> trying to duplicate the crash, and so far it hasn't happened yet.

---
Scratch that, it's crashed again.(In reply to Dmitry Kazakov from comment #24)
> Git commit 2fdd504dfe6ec63b654ee0878c9f95cb69d4a6ad by Dmitry Kazakov.
> Committed on 05/09/2019 at 08:22.
> Pushed by dkazakov into branch 'master'.
> 
> Fix QRandomGenerator initialization on AMD CPUs
> 
> Some AMD CPUs (e.g. AMD A4-6250J and AMD Ryzen 3000-series) have a
> failing random generation instruction, which always returns
> 0xffffffff, even when generation was "successful".
> 
> This code checks if hardware random generator can generate four
> consecutive distinct numbers. If it fails the test, then we probably
> have a failing one and should disable it completely.
> 
> Gerrit review:
> https://codereview.qt-project.org/c/qt/qtbase/+/272837
> 
> A  +214  -0   
> 3rdparty/ext_qt/0070-Fix-QRandomGenerator-initialization-on-AMD-CPUs.patch
> M  +7    -0    3rdparty/ext_qt/CMakeLists.txt
> 
> https://invent.kde.org/kde/krita/commit/
> 2fdd504dfe6ec63b654ee0878c9f95cb69d4a6ad

----
I do run on an AMD Ryzen-3600 processor, so that adds up. What am I supposed to do there at those links? Are those just separate forums discussing the issue or?
Comment 27 4lph4dr4g0nl1ch 2019-09-07 23:32:24 UTC
(In reply to Dmitry Kazakov from comment #22)
> Ah, I'm sorry. I gave you a link to a wrong branch, sorry :(
> 
> Could you try this one:
> https://binary-factory.kde.org/job/Krita_Nightly_Windows_Build/
> 
> And at the same time, could you check if you have access to this folder?
> C:\Users\nitef\AppData\Local\Temp
> 
> It looks like Krita tries to create a swap file there, but fails. 
> 
> If you still have a crash, try to go to
> Preferences->Performance->SwapFileLocation and select some writable
> location, which you are sure about. After that restart Krita.
> 
> If you still have a problem, attach a log from DebugView :)

----
Nevermind, it once again decided to wait until I marked the bug as "worksforme". 
Here's the log:
https://sta.sh/02cz710pg0gx
I'm going to do more testing with the build vs the latest nightly build, and try the swap file thing again. I'll let you know what happens.
Comment 28 Dmitry Kazakov 2019-09-09 11:50:37 UTC
Hi, 4lph4dr4g0nl1ch!

The nightlies starting from 6th of September should actually fix the crash on broken AMD CPUs, please check the latest one: 
https://binary-factory.kde.org/job/Krita_Nightly_Windows_Build/

There is also a workaround for this crash for the non-patched versions. You should just go to:

C:/Users/nitef/AppData/Local/Temp

and remove all the files that start with KRITA_SWAP_FILE_*

The crash will disappear till the next crash/hard-shutdown of Kirta. Then you'll have to remove this file again.
Comment 29 Dmitry Kazakov 2019-09-10 10:39:10 UTC
*** Bug 411779 has been marked as a duplicate of this bug. ***
Comment 30 Dmitry Kazakov 2019-09-13 09:59:53 UTC
Git commit 8b436ffc8ab13998a3d04702583f07c38a20a319 by Dmitry Kazakov.
Committed on 13/09/2019 at 08:55.
Pushed by dkazakov into branch 'krita/4.2'.

Fix checking if swap location is set to a writable location

QFileInfo::isWritable() doesn't work on NTFS by default, so we should
just try to create a test fiel to check that.
Related: bug 411129

M  +31   -5    libs/image/kis_image_config.cpp

https://invent.kde.org/kde/krita/commit/8b436ffc8ab13998a3d04702583f07c38a20a319
Comment 31 Dmitry Kazakov 2019-09-13 09:59:53 UTC
Git commit ea97d0bc790d1be287ab61ac910586eecd23d1e7 by Dmitry Kazakov.
Committed on 13/09/2019 at 08:53.
Pushed by dkazakov into branch 'krita/4.2'.

Fix ConcurrentMap::migrationInProcess() to handle initialization value (0) properly

Job coordinator of the table may have three states:

1) jobCoordinator == 0: the table was initialized, but no migration
   has ever been started for this table
2) jobCoordinator > 1: a table migration is in progress right now. The
   caller should join *jobCoordinator to help finishing the migration.
3) jobCoordinator == 1: the table migration has been finished. It means
   that the table doesn't have any values in it anymore.

The patch actually fixes the map to consider case 1 as a situation, when
there is no migration.

M  +1    -1    libs/image/3rdparty/lock_free_map/concurrent_map.h

https://invent.kde.org/kde/krita/commit/ea97d0bc790d1be287ab61ac910586eecd23d1e7
Comment 32 Dmitry Kazakov 2019-09-13 09:59:53 UTC
Git commit 57c8db26dc9486eff6fab9e046b2df2320f23183 by Dmitry Kazakov.
Committed on 13/09/2019 at 08:54.
Pushed by dkazakov into branch 'krita/4.2'.

Fix random crash when swap-file location has not got enough disk space

Lockfree hash table iterators have a requirement of no-concurrent-inserts,
so we must ensure that the swapper and pooler do *not* insert any tiles,
why iteration is in progress. KisTileDataStore::trySwapTileData() is called
exactly from inside of the swapper iteration loop.

If we break this requirement, the insert operation may request a table
migration, and the iterator will continue iterating the old, invalid,
table.

The actual crash happened after line 'item = iter->next()' in
KisTileDataSwapper::pass(), which actually returned value '1', meaning
"Redirect". Address 0x0000000000000029 is a fetch of
KisTileData::m_mementoFlag (offset 0x28) with 'this' set to 0x01 :)

M  +3    -0    libs/image/3rdparty/lock_free_map/concurrent_map.h
M  +1    -4    libs/image/tiles3/kis_tile_data_store.cc

https://invent.kde.org/kde/krita/commit/57c8db26dc9486eff6fab9e046b2df2320f23183
Comment 33 Dmitry Kazakov 2019-09-13 09:59:54 UTC
Git commit 8c399da9600dbaa635a1a87f06556d5b5094d5fa by Dmitry Kazakov.
Committed on 13/09/2019 at 08:59.
Pushed by dkazakov into branch 'krita/4.2'.

Fix QRandomGenerator initialization on AMD CPUs

Some AMD CPUs (e.g. AMD A4-6250J and AMD Ryzen 3000-series) have a
failing random generation instruction, which always returns
0xffffffff, even when generation was "successful".

This code checks if hardware random generator can generate four
consecutive distinct numbers. If it fails the test, then we probably
have a failing one and should disable it completely.

Gerrit review:
https://codereview.qt-project.org/c/qt/qtbase/+/272837

A  +214  -0    3rdparty/ext_qt/0070-Fix-QRandomGenerator-initialization-on-AMD-CPUs.patch
M  +7    -0    3rdparty/ext_qt/CMakeLists.txt

https://invent.kde.org/kde/krita/commit/8c399da9600dbaa635a1a87f06556d5b5094d5fa