Bug 386962 - Tangent_normal_hairy brush crashes Krita
Summary: Tangent_normal_hairy brush crashes Krita
Status: RESOLVED UNMAINTAINED
Alias: None
Product: krita
Classification: Applications
Component: Brush engines (show other bugs)
Version: 3.3.2
Platform: Microsoft Windows Microsoft Windows
: NOR crash
Target Milestone: ---
Assignee: Krita Bugs
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2017-11-15 20:32 UTC by Alvin Wong
Modified: 2018-06-27 18:19 UTC (History)
3 users (show)

See Also:
Latest Commit:
Version Fixed In:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Alvin Wong 2017-11-15 20:32:54 UTC
Got crashes on both 3.3.2 and master on Windows

3.3.2:

krita.exe caused an Access Violation at location 00007FFC3A625E60 in module libkritapigment.dll Reading from location 00000000FFFFD8B1.

AddrPC           Params
00007FFC3A625E60 0000000000000000 0000000023479B78 0000000052AAF978  libkritapigment.dll!KoColor::~KoColor
00007FFC469B41D3 0000000023140A78 0000000023140AC8 0000000052AAF970  kritatangentnormalpaintop.dll!KisTangentNormalPaintOp::paintAt
00007FFC28976F3B 0000000052AAFAE8 0000000000000000 00007FFC28A590D0  libkritaimage.dll!KisPaintOpUtils::paintLine<KisPaintOp>
00007FFC2872E5F0 00007FFC288FD750 00007FFC28A590D0 0000000003A03430  libkritaimage.dll!KisPaintOp::paintLine
00007FFC469B57C8 00000000239B1320 00000000239B1330 00000000232DAB10  kritatangentnormalpaintop.dll!KisTangentNormalPaintOp::paintLine
00007FFC2872C5FD 0000000023479B50 0000000052AAFD30 0000000023479B50  libkritaimage.dll!KisStrokeRandomSource::setLevelOfDetail
00007FFC2872C7FB 0000000000000000 000000002328A370 000000001F850050  libkritaimage.dll!KisPaintOp::paintBezierCurve
00007FFC28D83CD7 0000000026A80DE0 0100000027046960 0000000000000000  libkritaui.dll!FreehandStrokeStrategy::doStrokeCallback
00007FFC28A05DF7 0000000026B175F0 00000000037E93E0 0000000026B175F0  libkritaimage.dll!non-virtual thunk to KisUpdateJobItem::run()
00000000034ACF61 00000000272C7C90 0000000026AA0C00 0000000000000000  Qt5Core.dll!QThreadPoolPrivate::clear
00000000034B0AA6 0000000000000000 0000000000000000 0000000000000000  Qt5Core.dll!QThreadStorageData::finish
00007FFC60C21FE4 0000000000000000 0000000000000000 0000000000000000  KERNEL32.DLL!BaseThreadInitThunk
00007FFC6313EF91 0000000000000000 0000000000000000 0000000000000000  ntdll.dll!RtlUserThreadStart


---

master:

krita.exe caused an Access Violation at location 00007FFC3B6F4DD7 in module kritatangentnormalpaintop.dll Reading from location 00000000FFFFDC85.

AddrPC           Params
00007FFC3B6F4DD7 0000000000000090 0000000000000000 0000000053C3F8C0  kritatangentnormalpaintop.dll!KisTangentNormalPaintOp::paintAt
00007FFC278324C8 0000000000000000 0000000053C3FAC8 0000000000000000  libkritaimage.dll!KisPaintOpUtils::paintLine<KisPaintOp>
00007FFC275E4A10 0000000053C3FAC8 0000000000000000 00007FFC2791C9C0  libkritaimage.dll!KisPaintOp::paintLine
00007FFC3B6F5E98 0000000500000001 00000000000012C8 0000000028E268C0  kritatangentnormalpaintop.dll!KisTangentNormalPaintOp::paintLine
00007FFC275E29CD 0000000032C47EF0 0000000053C3FD10 0000000032C47EF0  libkritaimage.dll!KisPaintOp::updateTimingImpl
00007FFC275E2BCB 0000000033838060 0000000053C3FD90 0000000000000000  libkritaimage.dll!KisPaintOp::paintBezierCurve
00007FFC28D42B32 0000000028CD3E10 0000000000000000 0000000300000000  libkritaui.dll!FreehandStrokeStrategy::doStrokeCallback
00007FFC2783C282 000000003331B3C0 00007FFC2893A3E0 000000003331B3C0  libkritaimage.dll!KisUpdateJobItem::run
00007FFC285FCF61 0000000028876430 0000000032B91B00 0000000000000000  Qt5Core.dll!QThreadPoolPrivate::clear
00007FFC28600AA6 0000000000000000 0000000000000000 0000000000000000  Qt5Core.dll!QThreadStorageData::finish
00007FFC60C21FE4 0000000000000000 0000000000000000 0000000000000000  KERNEL32.DLL!BaseThreadInitThunk
00007FFC6313EF91 0000000000000000 0000000000000000 0000000000000000  ntdll.dll!RtlUserThreadStart
Comment 1 Halla Rempt 2017-11-21 10:41:52 UTC
Weird... I just cannot reproduce this crash, not on Windows, not on Linux.
Comment 2 Alvin Wong 2017-11-21 12:43:41 UTC
Looks like it crashes with colour spaces other than 8-bit integer.
Comment 3 Halla Rempt 2017-11-26 14:54:04 UTC
Um... I've tried with 8, 16, 16 rgba and 8 cmyka, and no crash...
Comment 4 Halla Rempt 2017-11-26 14:56:21 UTC
It seems to be windows specific; I can reproduce with 3.3.2 on Windows 10, but not on Linux.
Comment 5 mvowada 2018-01-20 19:30:50 UTC
(I can't reproduce this on Ubuntu 14.04 - Krita 4.0.0-beta1.1, with any bit depth and color model)
Comment 6 Alvin Wong 2018-01-21 16:55:14 UTC
Still happens on master (584ed07335651dfccec594db765d0aaeed5a72dd).

Here's a backtrace with debug symbols, though it listed the source locations of inlined functions without the callee location, which is pretty unhelpful...

krita.exe caused an Access Violation at location 00007FFE98874DB7 in module kritatangentnormalpaintop.dll Reading from location 00000000FFFF7FFF.

AddrPC           Params
00007FFE98874DB7 000000001F67E858 0000000000000001 000000005488F760  kritatangentnormalpaintop.dll!paintAt  [C:/MingW/x86_64-7.2.0-posix-seh-rt_v5-rev0/mingw64/lib/gcc/x86_64-w64-mingw32/7.2.0/include/c++/bits/atomic_base.h @ 396]
00007FFE9EE08E98 0000000000000000 000000005488FA90 00007FFE00000000  libkritaimage.dll!paintLine<KisPaintOp>  [C:/Packaging/workspace/Krita_Nightly_Build/krita/libs/image/brushengine/kis_paint_information.h @ 115]
00007FFE9EBA6F40 000000005488F908 00007FFE88504010 000000005488F8F8  libkritaimage.dll!paintLine  [C:/Packaging/workspace/Krita_Nightly_Build/krita/libs/image/brushengine/kis_paintop.cc @ 156]
00007FFE98875E78 0000000000000000 0000000000000000 000000005488FBC8  kritatangentnormalpaintop.dll!paintLine  [C:/Packaging/workspace/Krita_Nightly_Build/krita/plugins/paintops/tangentnormal/kis_tangent_normal_paintop.cpp @ 251]
00007FFE9EBA4E75 0000000000000000 0000000000000002 0000000000000001  libkritaimage.dll!paintBezierCurve  [C:/Packaging/workspace/Krita_Nightly_Build/krita/libs/image/brushengine/kis_paintop.cc @ 125]
00007FFE9EBA4FBA 0000000000000000 00007FFE89053300 00007FFE8904E7F0  libkritaimage.dll!paintBezierCurve  [C:/Packaging/workspace/Krita_Nightly_Build/krita/libs/image/brushengine/kis_paintop.cc @ 137]
00007FFE9EBA506B 0000000026A5CC40 00007FFE8904E7F0 0000000026A5CC40  libkritaimage.dll!paintBezierCurve  [C:/Packaging/workspace/Krita_Nightly_Build/krita/libs/image/brushengine/kis_paintop.cc @ 148]
00007FFE88BDDF4B 0000000000000000 0000000000000000 0000000000000000  libkritaui.dll!paintBezierCurve  [C:/Packaging/workspace/Krita_Nightly_Build/krita/libs/ui/tool/strokes/KisMaskedFreehandStrokePainter.cpp @ 67]
00007FFE88BD5638 0000000000000000 000000001F718DC0 0000000300000000  libkritaui.dll!doStrokeCallback  [C:/Packaging/workspace/Krita_Nightly_Build/krita/libs/ui/tool/strokes/freehand_stroke.cpp @ 179]
00007FFE9EE13AD2 0000000026E91200 00007FFE887C93E0 0000000026E91200  libkritaimage.dll!run  [C:/Packaging/workspace/Krita_Nightly_Build/krita/libs/image/kis_base_node.h @ 320]
00007FFE8848EB42 000000001F67E4B0 0000000026E1E200 0000000000000000  Qt5Core.dll!QThreadPool::tryStart
00007FFE884902A6 0000000000000000 0000000000000000 0000000000000000  Qt5Core.dll!QThreadStorageData::finish
00007FFEC8AF1FE4 0000000000000000 0000000000000000 0000000000000000  KERNEL32.DLL!BaseThreadInitThunk
00007FFEC8EFEFB1 0000000000000000 0000000000000000 0000000000000000  ntdll.dll!RtlUserThreadStart
Comment 7 Antti Savolainen 2018-06-27 18:19:32 UTC
Closing this as outdated. The brush no longer exists.