Bug 381246 - 4.0 pre-alpha crashes after a few minutes of sketching
Summary: 4.0 pre-alpha crashes after a few minutes of sketching
Status: RESOLVED WORKSFORME
Alias: None
Product: krita
Classification: Applications
Component: General (show other bugs)
Version: 4.0 pre-alpha
Platform: Microsoft Windows Microsoft Windows
: NOR normal
Target Milestone: ---
Assignee: Krita Bugs
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2017-06-15 19:53 UTC by Gremriel
Modified: 2017-06-16 13:47 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 Gremriel 2017-06-15 19:53:13 UTC
After creating a new canvas of 6000x8500 pixels @300 dpi (and at 600 dpi) and a few minutes of just sketching, Krita crashes.

The crashlog has a few similar entries, and this is the last one:

Error occurred on Thursday, June 15, 2017 at 21:39:28.

krita.exe caused an Access Violation at location 74A89A47 in module msvcrt.dll Writing to location 00000000.

Registers:
eax=00000000 ebx=357c5020 ecx=00000080 edx=00000000 esi=357c5020 edi=00000000
eip=74a89a47 esp=00a5c800 ebp=00a5c808 iopl=0         nv up ei pl nz na pe nc
cs=0023  ss=002b  ds=002b  es=002b  fs=0053  gs=002b             efl=00010202

AddrPC   Params
74A89A47 00000000 357C5020 00004000  msvcrt.dll!__VEC_memcpy
74A89983 00000000 77372D7E 357C5020  msvcrt.dll!__VEC_memcpy
52AA2D72 00000000 357C5020 00004000  libkritaimage.dll!KisTileData::allocateData
52AA3056 5CB52848 00000001 5BBDBC11  libkritaimage.dll!KisTileData::KisTileData
52AA48D6 5CB52848 5BD65491 00A5C928  libkritaimage.dll!KisTileDataStore::duplicateTileData
52AA267B 5BD65480 0000001F 00000034  libkritaimage.dll!KisTile::lockForWrite
52AAE7A6 27B1C090 0000001F 00000034  libkritaimage.dll!KisHLineIterator2::fetchTileDataForCache
52AAF458 5D86E398 00000000 00000D00  libkritaimage.dll!KisHLineIterator2::KisHLineIterator2
52CF5765 5D962380 5D86E398 00000000  libkritaimage.dll!KisPaintDevice::Private::KisPaintDeviceStrategy::createHLineIteratorNG
52BC00FF 5BD652E0 00000000 00000D00  libkritaimage.dll!KisPaintDevice::createHLineIteratorNG
52D132A7 5BD652E0 5BD652E0 E3B49AAC  libkritaimage.dll!KisTransformWorker::transformPass<KisSharedPtr<KisHLineIteratorNG> >
52BE22B8 E3B49AAC 3F9E5C58 00000000  libkritaimage.dll!KisTransformWorker::runPartial
52BBD1F5 3F9E5C58 00000000 00000000  libkritaimage.dll!KisPaintDevice::MemoryReleaseObject::~MemoryReleaseObject
E3B49AAC 00000000 00000000 00000000
3F9E5C58 00000000 00000000 00000000

krita.exe
ntdll.dll   	6.2.15063.0
KERNEL32.DLL	6.2.15063.296
aswhookx.dll	17.4.3.1767
KERNELBASE.dll	6.2.15063.296
msvcrt.dll  	7.0.15063.0
libkritaui.dll
USER32.dll  	6.2.15063.0
win32u.dll  	6.2.15063.0
GDI32.dll   	6.2.15063.0
gdi32full.dll	6.2.15063.296
msvcp_win.dll	6.2.15063.0
ucrtbase.dll	6.2.15063.0
libkritawidgetutils.dll
libKF5I18n.dll
Qt5Core.dll 	5.6.1.0
ADVAPI32.dll	6.2.15063.0
sechost.dll 	6.2.15063.0
RPCRT4.dll  	6.2.15063.0
SspiCli.dll 	6.2.15063.0
CRYPTBASE.dll	6.2.15063.0
bcryptPrimitives.dll	6.2.15063.138
ole32.dll   	6.2.15063.296
combase.dll 	6.2.15063.296
SHELL32.dll 	6.2.15063.250
cfgmgr32.dll	6.2.15063.0
shcore.dll  	6.2.15063.0
windows.storage.dll	6.2.15063.0
shlwapi.dll 	6.2.15063.0
kernel.appcore.dll	6.2.15063.0
powrprof.dll	6.2.15063.0
profapi.dll 	6.2.15063.0
WS2_32.dll  	6.2.15063.0
Qt5Gui.dll  	5.6.1.0
libgcc_s_dw2-1.dll
libstdc++-6.dll
libkritacolor.dll
libkritacommand.dll
libkritaflake.dll
libkritaglobal.dll
libkritaimage.dll
libkritaimpex.dll
libkritalibbrush.dll
libkritaodf.dll
libkritapigment.dll
libkritaplugin.dll
libkritapsd.dll
libkritastore.dll
libkritaversion.dll
libkritawidgets.dll
libexiv2.dll
PSAPI.DLL   	6.2.15063.0
libKF5Completion.dll
libKF5ConfigCore.dll
libKF5CoreAddons.dll
libKF5GuiAddons.dll
libKF5ItemViews.dll
libKF5WidgetsAddons.dll
Qt5Multimedia.dll	5.6.1.0
Qt5Network.dll	5.6.1.0
Qt5PrintSupport.dll	5.6.1.0
COMDLG32.DLL	6.2.15063.0
Qt5Xml.dll  	5.6.1.0
libpng16.dll
libKF5WindowSystem.dll
MPR.DLL     	6.2.15063.0
OPENGL32.DLL	6.2.15063.0
libwinpthread-1.dll	1.0.0.0
Qt5Svg.dll  	5.6.1.0
libfftw3-3.dll
Qt5Concurrent.dll	5.6.1.0
libKF5Archive.dll
libexpat.dll
iconv.dll
libz.dll    	1.2.8.0
NETAPI32.dll	6.2.15063.0
USERENV.dll 	6.2.15063.0
DNSAPI.dll  	6.2.15063.0
NSI.dll     	6.2.15063.0
IPHLPAPI.DLL	6.2.15063.0
COMCTL32.dll	5.82.15063.0
WINSPOOL.DRV	6.2.15063.138
GLU32.dll   	6.2.15063.0
bcrypt.dll  	6.2.15063.0
NETUTILS.DLL	6.2.15063.0
LOGONCLI.DLL	6.2.15063.0
SAMCLI.DLL  	6.2.15063.0
Qt5Widgets.dll	5.6.1.0
libKF5ConfigGui.dll
libHalf.dll
libintl.DLL 	0.18.0.0
IMM32.DLL   	6.2.15063.0
qwindows.dll	5.6.1.0
OLEAUT32.dll	6.2.15063.296
WINMM.DLL   	6.2.15063.0
WINMMBASE.dll	6.2.15063.0
uxtheme.dll 	6.2.15063.0
tiptsf.dll  	6.2.15063.0
dwmapi.dll  	6.2.15063.0
nvoglv32.DLL	22.21.13.8205
SETUPAPI.dll	6.2.15063.0
WTSAPI32.dll	6.2.15063.0
VERSION.dll 	6.2.15063.0
DEVOBJ.dll  	6.2.15063.0
WINTRUST.dll	6.2.15063.0
MSASN1.dll  	6.2.15063.0
CRYPT32.dll 	6.2.15063.296
ntmarta.dll 	6.2.15063.0
MSCTF.dll   	6.2.15063.0
nvspcap.dll 	3.6.0.74
WINHTTP.dll 	6.2.15063.0
WINSTA.dll  	6.2.15063.0
qdds.dll    	5.6.1.0
qgif.dll    	5.6.1.0
qicns.dll   	5.6.1.0
qico.dll    	5.6.1.0
qjpeg.dll   	5.6.1.0
qsvg.dll    	5.6.1.0
qtga.dll    	5.6.1.0
qtiff.dll   	5.6.1.0
qwbmp.dll   	5.6.1.0
qwebp.dll   	5.6.1.0
clbcatq.dll 	2001.12.10941.16384
dataexchange.dll	6.2.15063.0
d3d11.dll   	6.2.15063.0
dcomp.dll   	6.2.15063.0
dxgi.dll    	6.2.15063.0
twinapi.appcore.dll	6.2.15063.0
exchndl.dll 	0.8.1.0
mgwhelp.dll 	0.8.1.0
dbghelp.dll 	6.3.9600.17336
wintab32.dll	1.0.5.8
Wacom_Tablet.dll	6.3.21.10
TextInputFramework.dll	6.2.15063.0
CoreMessaging.dll	6.2.15063.296
CoreUIComponents.dll	6.2.15063.296
wintypes.dll	6.2.15063.0
usermgrcli.dll	6.2.15063.0
uiautomationcore.dll	7.2.15063.0
sxs.dll     	6.2.15063.0
OLEACC.dll  	7.2.15063.0
twinapi.dll 	6.2.15063.0
PROPSYS.dll 	7.0.15063.0
LINKINFO.dll	6.2.15063.0
kritalcmsengine.dll
liblcms2.dll
krita_colorspaces_extensions.dll
krita_shape_image.dll
krita_shape_text.dll
libkritatext.dll
libkritatextlayout.dll
krita_flaketools.dll
krita_karbontools.dll
krita_tool_basicflakes.dll
libkritabasicflakes.dll
krita_shape_vector.dll
libkritavectorimage.dll
krita_shape_artistictext.dll
krita_shape_paths.dll
krita_filtereffects.dll
kritachalkpaintop.dll
libkritalibpaintop.dll
kritacolorsmudgepaintop.dll
kritacurvepaintop.dll
kritadefaultpaintops.dll
kritadeformpaintop.dll
kritadynapaintop.dll
kritaexperimentpaintop.dll
kritafilterop.dll
kritagridpaintop.dll
kritahairypaintop.dll
kritahatchingpaintop.dll
kritaparticlepaintop.dll
kritaroundmarkerpaintop.dll
kritasketchpaintop.dll
kritaspraypaintop.dll
kritatangentnormalpaintop.dll
kritablurfilter.dll
kritacolorsfilters.dll
kritaconvolutionfilters.dll
kritadodgeburn.dll
kritaembossfilter.dll
kritaexample.dll
kritaextensioncolorsfilters.dll
kritafastcolortransferfilter.dll
kritagradientmap.dll
kritahalftone.dll
kritaimageenhancement.dll
kritaindexcolors.dll
kritalevelfilter.dll
kritanoisefilter.dll
kritanormalize.dll
kritaoilpaintfilter.dll
kritaphongbumpmap.dll
kritapixelizefilter.dll
kritaposterize.dll
kritaraindropsfilter.dll
kritarandompickfilter.dll
kritaroundcornersfilter.dll
kritasmalltilesfilter.dll
kritasobelfilter.dll
kritathreshold.dll
kritaunsharpfilter.dll
kritawavefilter.dll
kritacolorgenerator.dll
kritapatterngenerator.dll
kritadefaulttools.dll
libboost_system-mgw54-mt-1_61.dll
kritarulerassistanttool.dll
kritaselectiontools.dll
kritatoolSmartPatch.dll
kritatoolcrop.dll
kritatooldyna.dll
kritatoollazybrush.dll
kritatoolpolygon.dll
kritatoolpolyline.dll
kritatooltext.dll
kritatooltransform.dll
kritaanimationdocker.dll
krita_docker_defaults.dll
kritaarrangedocker.dll
kritaartisticcolorselector.dll
kritachanneldocker.dll
kritacolorselectorng.dll
qsvgicon.dll	5.6.1.0
kritacolorslider.dll
kritacompositiondocker.dll
kritadefaultdockers.dll
kritadigitalmixer.dll
kritagriddocker.dll
kritahistogramdocker.dll
kritahistorydocker.dll
kritaimagedocker.dll
kritalutdocker.dll
libOpenColorIO.dll
kritaoverviewdocker.dll
kritapalettedocker.dll
kritapatterndocker.dll
kritapresetdocker.dll
kritapresethistory.dll
kritasmallcolorselector.dll
kritaspecificcolorselector.dll
kritatasksetdocker.dll
edputil.dll 	6.2.15063.0
kritaanimationrenderer.dll
kritabigbrother.dll
kritabuginfo.dll
kritaclonesarray.dll
kritacolorrange.dll
kritacolorspaceconversion.dll
kritagmic.dll
libgomp-1.dll
kritahistogram.dll
kritaimagesize.dll
kritaimagesplit.dll
kritalayergroupswitcher.dll
kritalayersplit.dll
kritametadataeditor.dll
kritamodifyselection.dll
kritaoffsetimage.dll
kritaresourcemanager.dll
kritarotateimage.dll
kritaseparatechannels.dll
kritashearimage.dll
kritawaveletdecompose.dll
SAMLIB.dll  	6.2.15063.0
kritakraexport.dll
libkritalibkra.dll
WININET.dll 	11.0.15063.296
iertutil.dll	11.0.15063.296
ondemandconnroutehelper.dll	6.2.15063.0
mswsock.dll 	6.2.15063.0
WINNSI.DLL  	6.2.15063.0
urlmon.dll  	11.0.15063.296
msiso.dll   	11.0.15063.138
rasadhlp.dll	6.2.15063.0
fwpuclnt.dll	6.2.15063.0

Windows 6.2.9200
DrMingw 0.8.1

I'm not doing anything special and did not use any of the new vector things
Comment 1 Halla Rempt 2017-06-16 08:26:27 UTC
Hi,

Thanks for your report. Are you by any chance running out of memory? The crash seems to happen when Krita tries to allocate memory for image data. This might might be an indication we broke the swap, if you're running out of memory. If not, we'll have to look further, which is tricky, since we cannot reproduce the crash here :-(.
Comment 2 Gremriel 2017-06-16 09:23:44 UTC
(In reply to Boudewijn Rempt from comment #1)
> Hi,
> 
> Thanks for your report. Are you by any chance running out of memory? The
> crash seems to happen when Krita tries to allocate memory for image data.
> This might might be an indication we broke the swap, if you're running out
> of memory. If not, we'll have to look further, which is tricky, since we
> cannot reproduce the crash here :-(.

I did a system reboot after another crash that resulted in a 4.5mb crash file. I have 32gb system ram, and when I look in taskmanager, I have 30gb free ram.
Just now, I did a little doodle, then went on to do something else on another monitor. After a few minutes, Krita crashed again. The last I saw, Krita was using 400mb for the cnavas I had open.

The latest crash file looks similar as to the one I posted here, so I'm not sure if you want me to post it.

The crash before I rebooted my computer was taking it's sweet time to show the message Krita stopped working. The crash file was 4.5mb with a similar report, although this time the AddrPC Params colomns had row upon row of FFFFFFFF's
Comment 3 Halla Rempt 2017-06-16 09:44:08 UTC
Then it definitely isn't a lack of ram. Can you maybe redownload the x64 build and check whether it's not some corruption of the previous download?
Comment 4 Gremriel 2017-06-16 13:20:01 UTC
OK, I redownloaded the zip, and Krita behaves now, I have it open for a couple of hours now, did some doodling and other stuff and it hasn't crashed.

Whatever it was with the first download, I don't know, although I do remember seeing a message about the file being run was 32-bits. I clicked it away without reading it, so I don't know if that has any meaning.
Comment 5 Halla Rempt 2017-06-16 13:47:32 UTC
Ah, right... I accidentally created a 32 bits binary, and that was really limited to 2gb of memory. I think that for 4.0, I will just retire the 32 bits option completely.