- i select colorize interactive inside the gmic windows and krita crash immediately and some other filter not all. i'm on win 7 64bit Reproducible: Always Steps to Reproduce: 1. select layer with a scan drawing linear art 2. select Gmic > black & white > colorize [interactive] 3. and Krita crash
I know... G'Mic on Windows is a bit of a challenge... It takes over five hours to compile, even!
Hi everyone, Just tested myself Krita 2.9 on Windows 7 (64 bit). Many G'MIC filters worked fine on the previous ZIP version of Krita (beta 3) on Windows - 7 (64 bit). I have tried for instance: - Array faded (Array & Tiles) and it crashes Krita 2.9 but it works fine on the previous beta 3. - Chessboards (Array & Tiles) which crashes Krita 2.9 but it works fine on the previous beta 3. These 2 G'MIC filters work fine with Krita 2.9 stable on Kubuntu 14.10 - Kde desktop (ppy by Dmitry). These same 2 filters both work fine on Gimp 2.8.14. Just tested them tonight with G'MIC 1.6.1.0 (today's newest version).
BTW, I have just tested on Windows 7 - 64 bit (zip version of Krita) other G'MIC filters (with the same jpeg image as usual for all my tests): - Cubism (Artistic): it crashes as soon as you select it (it works fine on Krita beta 3 instead); - Felt pen (Artistic): it crashes as soon as you select it (it works fine on Krita beta 3 instead); - Hope poster (Artistic): it crashes as soon as you select it (it works fine on Krita beta 3 instead); - Pen Drawing (Artistic): it crashes as soon as you select it (it works fine on Krita beta 3 instead); etc etc (more tests later since this list looks huge... ) :-) :-)
ye i confirm those bug krita beta 3 is more stable than official release
I think that's because of the update to a newer g'mic version. I don't get crashes, but cubism says: Sorry! G'Mic failed, reason:*** Error in ./gimp_cubism_preview/gimp_split_preview/(...)/cubism/*repeat/*local/*if/ *** Command '-j3d': [instance(195,122,1,4,00000000528983F0,non-shared)] gmic<float>::draw_object3d(): Invalid primitive[0] with size 0 (should have size 1,2,3,4,5,6,9 or 12). Felt pen works on my new build Hope Poster crashes: ntdll.dll!0000000077bb8389() Unknown AcXtrnal.dll!000007fee8dc7bb9() Unknown kernel32.dll!0000000077a91a4a() Unknown msvcr110.dll!free(void * pBlock) Line 51 C > kritagmic.dll!cimg_library::CImgList<char>::get_append(const char axis, const float align) Line 46971 C++ kritagmic.dll!cimg_library::CImgList<char>::operator>(const char axis) Line 45678 C++ kritagmic.dll!gmic::substitute_item<float>(const char * const source, cimg_library::CImgList<float> & images, cimg_library::CImgList<char> & images_names, cimg_library::CImgList<float> & parent_images, cimg_library::CImgList<char> & parent_images_names, const unsigned int * const variables_sizes) Line 4157 C++ kritagmic.dll!gmic::_run<float>(const cimg_library::CImgList<char> & commands_line, unsigned int & position, cimg_library::CImgList<float> & images, cimg_library::CImgList<char> & images_names, cimg_library::CImgList<float> & parent_images, cimg_library::CImgList<char> & parent_images_names, const unsigned int * const variables_sizes, bool * const is_noarg) Line 4296 C++ Pen drawing works here.
Can you try to reproduce the problem with updated filter definitions? Maybe that could help. Currently we ship gmic 1.6.1.0 beta with Krita, so it is still in development and filter recipes can change and cause crashes.
Hum... That was maybe not the best idea then... To ship a beta of G'Mic with Krita instead of the last stabel release :-( I totally missed that part.
Hi everyone, I have just tried to update G'MIC (by pressing the button "Update definitions" on the G'MIC GUI) to no avail. No improvement noted. According to my preliminary tests on Windows 7 - 64 bit and Krita 2.9 (zip) these filters all crash G'MIC: ARTISTIC: CUBISM (crash on Krita 2.9 - Windows 7 - 64 bit) FELT PEN (crash on Krita 2.9 - Windows 7 - 64 bit) FINGER PAINT (crash on Krita 2.9 - Windows 7 - 64 bit) HOPE POSTER (crash on Krita 2.9 - Windows 7 - 64 bit) MORPHOLOGY PAINTING (crash on Krita 2.9 - Windows 7 - 64 bit) PHOTOILLUSTRATION: window with error > (https://dl.dropboxusercontent.com/u/3095134/BUGS_REPORT/KRITA_2.9/PHOTOILLUSTRATION_GMIC_ERROR.png) POLIGONIZE DELANAY (crash on Krita 2.9 - Windows 7 - 64 bit) POSTER EDGES (crash on Krita 2.9 - Windows 7 - 64 bit) SHAPEISM (crash on Krita 2.9 - Windows 7 - 64 bit) WARHOL (crash on Krita 2.9 - Windows 7 - 64 bit) WATERCOLOR (crash on Krita 2.9 - Windows 7 - 64 bit) BLACK - WHITE: COLORIZE INTERACTIVE (crash on Krita 2.9 - Windows 7 - 64 bit) HOUGH SKETCH (crash on Krita 2.9 - Windows 7 - 64 bit) STAMP (crash on Krita 2.9 - Windows 7 - 64 bit) COLORS: BOOST FADE: window with error > (https://dl.dropboxusercontent.com/u/3095134/BUGS_REPORT/KRITA_2.9/BOOST_FADE_GMIC_ERROR.png) BOOST CHROMATICITY (crash on Krita 2.9 - Windows 7 - 64 bit) CMYK TONE (crash on Krita 2.9 - Windows 7 - 64 bit) CURVE (crash on Krita 2.9 - Windows 7 - 64 bit) CURVE INTERACTIVE (crash on Krita 2.9 - Windows 7 - 64 bit) etc etc Krita 2.9 beta 3 (G'MIC 1.6.0.3) does not crash with these same abovementioned filters. I have tested all of them with the same jpeg image (as usual, on Windows 7 - 64 bit). Krita 2.9 on Linux works beautifully with these same G'MIC filters. Tested on Kubuntu 14.10 - Kde (ppa by Dmitry)
Hi everyone, Today, I have tested ALL 1.6.1.0 G'MIC filters with the latest build of kRITA 2.9.1 (.exe) Windows 7 - 64 bit CPU INTEL I7 2630 QM; 8 GB RAM; NVIDIA GEEFORCE GT 540M Tested with this small jpeg image (to "minimize out of memory" errors): https://dl.dropboxusercontent.com/u/3095134/BUGS_REPORT/MONOCHAMUS_GMIC.JPG As you know, many G'MIC filters have problems with memory usage even on my system with an Intel CPU I7 and 8 Gb Ram (message is: "invalid request of subset memory") The usual window pops-up: https://dl.dropboxusercontent.com/u/3095134/BUGS_REPORT/KRITA_2.9/TILED_NORMALIZATION_MEMORY_ERROR.png Later on, G'mic 1.6.1.0 crashes when you try to use some other filter which would normally works. This crash occurs even when you close the G'MIC filter menu altogether and you reopen it later (it looks like the memory is never available - free later on). Only the filter ADD GRAIN filter has a different window error: https://dl.dropboxusercontent.com/u/3095134/BUGS_REPORT/KRITA_2.9/ADD_GRAIN_NETWORK_ERROR_CMIGZ.png ARRAYS & TILES ================== TILEABLE ROTATION: crash TILED NORMALIZATION: window with error (invalid request of a memory subset) ARTISTIC ================== BOOST FADE: window with error (invalid request of a memory subset) BOOST CHROMACITY: crash CUBISM: crash FELT PEN: crash PAINTING: window with error (invalid request of a memory subset) BLACK AND WHITE ================== COLORIZE INTERACTIVE: crash (and previously window with error) HOUGH SKETCH: crash STAMP: crash COLORS ================== BOOST FADE: window with error (invalid request of a memory subset) BOOST CHROMACITY: crah CURVE: crash CURVE INTERACTIVE: crash CURVE RGB: crash as soon as you select a channel in the sub-menu (e.g. red) CURVE YCbCr: crash as soon as you select a channel in the sub-menu (e.g. luminance) CURVE LAB: crash as soon as you select a channel in the sub-menu (e.g. lightness) DETECHT SKIN: crash EQUALIZE HSV: crash MIXER YCbCr: crash CONTOURS ================== CONVOLVE: crash EXTRACT FOREGROUND (INTERACTIVE): crash DEFORMATIONS ================== all filters work fine ! DEGRADATIONS ================== BLUR DEPTH OF FIELD: crash DETAILS ================== LOCAL NORMALIZATION: window with error (invalid request of a memory subset) SHARPEN DEBLUR: crash SPLIT DETAIL (ALPHA): crash TONE MAPPING: window with error (invalid request of a memory subset) TONE MAPPING (FAST): crash FILM DEFINITION ================== ADD GRAIN: window with different error as usual, not related to memory COLLAGES > crash when you select some of these sub-filters. E.g. B&W film - collages: crash FRAMES ================== FRAME (CUBE): crash LAYERS ================== COLORS TO LAYER: crash MORPH LAYER: crash LIGHTS & SHADOWS ================== LIGHT RAYS: crash RELIEF LIGHT PATTERNS ================== BAYER FILTER: crash HEARTS: crash PACK SPRITES: crash STARS: crash WEAVE: crash REPAIR ================== BAYER RECONSTRUCTION: crash INPAINT (PATCH-BASED): crash RED-EYE ATTENUATION: window with error (invalid request of a memory subset) SMOOTH SKIN: crash SMOOTH (THIN BRUSH): crash UPSCALE DIFFUSION: window with error (invalid request of a memory subset) RENDERING =================== 3D IMAGE OBJECT: crash EQUATION PLOT (paramtric): crash EQUATION PLOT (Y=fx): crash HEART: crash LISSAJOUS: crash RAINBOW: crash SUPER FORMULA: crash SEQUENCES: all filters crash ================== 3D ELEVATION (ANIMATED): crash 3D EXTRUTION (ANIMATED): crash 3D IMAGE OBJECT: crash 3D TEXT POINTCLOUD: crash CARTON ANIMATED: crash EDGES ON FIRE: crash etc etc SPECTRALS FILTERS ================== All filters work fine ! VARIOUS ================== IMPORT DATA: crash SOLVE MAZE: crash
Hi everyone, I have just installed Krita 2.9.1 - 64 bit (.exe) on: Windows 8.1 - 64 bit CPU Intel I7 3537U, 8 Gb RAM, NVIDA GEEFORCE 740M 2Gb RAM This in order to ascertain whether I can reproduce this bug report about G'MIC 1.6.10 (crash - errors) on Windows 8.1- 64 bit as well. To make it short, on Windows 8.1 these same crashes - errors occur. Once in a while, a known broken G'MIC filter of my list does not crash on W 8.1 but the usual nasty window pops up ("Invalid request of subset memory") and I need to close Krita because it is very likely to crash later on (with some other G'MIC 1.6.1.0 filters).
This is what I see when debugging under MSVC debugger: The thread 0x124c has exited with code 0 (0x0). krita(4332): No ksycoca4 database available! krita(4332)/kdecore (trader) class QList<class KSharedPtr<class KService> > __cdecl KServiceTypeTrader::defaultOffers(const class QString &,const class QString &) const: KServiceTypeTrader: serviceType "ThumbCreator" not found krita(4332): No ksycoca4 database available! krita(4332)/kdecore (trader) class QList<class KSharedPtr<class KService> > __cdecl KServiceTypeTrader::defaultOffers(const class QString &,const class QString &) const: KServiceTypeTrader: serviceType "ThumbCreator" not found The thread 0x430 has exited with code 0 (0x0). The thread 0xd40 has exited with code 0 (0x0). krita(4332)/koffice (lib komain) void __cdecl KoRuler::createGuideToolConnection(class KoCanvasBase *): No guides tool found, skipping connection krita(4332)/koffice (lib komain) void __cdecl KoRuler::createGuideToolConnection(class KoCanvasBase *): No guides tool found, skipping connection 'krita.exe' (Win32): Loaded 'C:\Windows\System32\sspicli.dll'. Cannot find or open the PDB file. First-chance exception at 0x00007FF850E58B9C (KernelBase.dll) in krita.exe: 0x000006BA: The RPC server is unavailable. 'krita.exe' (Win32): Loaded 'C:\Windows\System32\samlib.dll'. Cannot find or open the PDB file. krita(4332) void __cdecl CanvasData::activateToolActions(void): "InteractionTool" : action "object_order_raise" conflicts with canvas action "rotate_canvas_right" shortcut: "Ctrl+]" krita(4332) void __cdecl CanvasData::activateToolActions(void): "InteractionTool" : action "object_order_lower" conflicts with canvas action "rotate_canvas_left" shortcut: "Ctrl+[" krita(4332) void __cdecl CanvasData::activateToolActions(void): "InteractionTool" : action "object_order_raise" conflicts with canvas action "rotate_canvas_right" shortcut: "Ctrl+]" krita(4332) void __cdecl CanvasData::activateToolActions(void): "InteractionTool" : action "object_order_lower" conflicts with canvas action "rotate_canvas_left" shortcut: "Ctrl+[" The thread 0xba4 has exited with code 0 (0x0). The thread 0xdc4 has exited with code 0 (0x0). The thread 0xc68 has exited with code 0 (0x0). The thread 0xd10 has exited with code 0 (0x0). The thread 0x1024 has exited with code 0 (0x0). The thread 0xa04 has exited with code 0 (0x0). The thread 0x1298 has exited with code 0 (0x0). First-chance exception at 0x00007FF850E58B9C in krita.exe: Microsoft C++ exception: cimg_library::CImgArgumentException at memory location 0x000000B5A4BCD1F0. First-chance exception at 0x00007FF850E58B9C in krita.exe: Microsoft C++ exception: cimg_library::CImgArgumentException at memory location 0x000000B5A4BAE3E0. First-chance exception at 0x00007FF850E58B9C in krita.exe: Microsoft C++ exception: cimg_library::CImgArgumentException at memory location 0x000000B5A4BD13B0. First-chance exception at 0x00007FF850E58B9C in krita.exe: Microsoft C++ exception: cimg_library::CImgArgumentException at memory location 0x000000B5A4BB6760. First-chance exception at 0x00007FF850E58B9C in krita.exe: Microsoft C++ exception: cimg_library::CImgArgumentException at memory location 0x000000B5A4BD5570. First-chance exception at 0x00007FF850E58B9C in krita.exe: Microsoft C++ exception: cimg_library::CImgArgumentException at memory location 0x000000B5A4BBEAE0. First-chance exception at 0x00007FF850E58B9C in krita.exe: Microsoft C++ exception: cimg_library::CImgArgumentException at memory location 0x000000B5A4BD13B0. First-chance exception at 0x00007FF850E58B9C in krita.exe: Microsoft C++ exception: cimg_library::CImgArgumentException at memory location 0x000000B5A4BB6760. First-chance exception at 0x00007FF850E58B9C in krita.exe: Microsoft C++ exception: cimg_library::CImgArgumentException at memory location 0x000000B5A4BC9360. First-chance exception at 0x00007FF850E58B9C in krita.exe: Microsoft C++ exception: cimg_library::CImgArgumentException at memory location 0x000000B5A4BD15B0. First-chance exception at 0x00007FF850E58B9C in krita.exe: Microsoft C++ exception: gmic_exception at memory location 0x000000B5A4BCEA40. First-chance exception at 0x00007FF850E58B9C in krita.exe: Microsoft C++ exception: gmic_exception at memory location 0x000000B5A57D82E0. First-chance exception at 0x00007FF850E58B9C in krita.exe: Microsoft C++ exception: gmic_exception at memory location 0x000000B5A63C36B0. First-chance exception at 0x00007FF850E58B9C in krita.exe: Microsoft C++ exception: gmic_exception at memory location 0x000000B5A6FAEA40. Critical error detected c0000374 krita.exe has triggered a breakpoint. Call Stack: ntdll.dll!00007ff853d211ff() Unknown ntdll.dll!00007ff853d24482() Unknown ntdll.dll!00007ff853d25080() Unknown ntdll.dll!00007ff853cd8edb() Unknown > msvcr110.dll!free(void * pBlock) Line 51 C msvcr110.dll!_CallSettingFrame() Line 51 Unknown msvcr110.dll!__FrameUnwindToState(unsigned __int64 * pRN, _xDISPATCHER_CONTEXT * pDC, const _s_FuncInfo * pFuncInfo, int targetState) Line 1064 C++ msvcr110.dll!__FrameUnwindToEmptyState(unsigned __int64 * pRN, _xDISPATCHER_CONTEXT * pDC, const _s_FuncInfo * pFuncInfo) Line 158 C++ msvcr110.dll!__InternalCxxFrameHandler(EHExceptionRecord * pExcept, unsigned __int64 * pRN, _CONTEXT * pContext, _xDISPATCHER_CONTEXT * pDC, const _s_FuncInfo * pFuncInfo, int CatchDepth, unsigned __int64 * pMarkerRN, unsigned char recursive) Line 393 C++ msvcr110.dll!__CxxFrameHandler3(EHExceptionRecord * pExcept, unsigned __int64 RN, _CONTEXT * pContext, _xDISPATCHER_CONTEXT * pDC) Line 224 C++ kritagmic.dll!00007ff83573deae() Unknown [External Code] kritagmic.dll!00007ff83573deae() Unknown [External Code] kritagmic.dll!00007ff8354fa088() Unknown kritagmic.dll!00007ff8354f9b3c() Unknown kritagmic.dll!00007ff8354ab85a() Unknown kritagmic.dll!00007ff8354f9b3c() Unknown kritagmic.dll!00007ff8354f9b3c() Unknown kritagmic.dll!00007ff835503e7e() Unknown kritagmic.dll!00007ff8354740e7() Unknown kritagmic.dll!00007ff83544d61e() Unknown kritagmic.dll!00007ff83541652a() Unknown kritagmic.dll!00007ff83541a3da() Unknown QtCore4.dll!0000000074c082e8() Unknown [External Code] Unhandled exception at 0x00007FF853D21240 (ntdll.dll) in krita.exe: 0xC0000374: A heap has been corrupted (parameters: 0x00007FF853D5DD50).
>Hum... That was maybe not the best idea then... To ship a beta of G'Mic with Krita instead of the >last stabel release :-( I totally missed that part. Well, the previous stable version had also broken filters and we were trying to improve situation at the last minute without testing the gmic change. I compiled gmic under Windows with MSVC 2013 using KDE's server and the filters there do not crash. I must say that I compiled it without dependencies. So we can try to eliminate dependencies to get to the state in beta 3. Boud, can you produce build without FFTW3? Ping me for tips how to compile gmic in 1 minute instead of 5 hours :)
Looking at 2e3746ef2ae70301a78d9af4435dee54dd0d6677: +else() + +set (FFTW3_FOUND true) +set (FFTW3_LIBRARIES /dev/desktop64/i/lib/libfftw3f-3.lib + /dev/desktop64/i/lib/libfftw3l-3.lib + /dev/desktop64/i/lib/libfftw3-3.lib ) +set (FFTW3_INCLUDE_DIR /dev/desktop64/i/include/fftw3.h ) + +endif() We probably should link just one lib, just /dev/desktop64/i/lib/libfftw3-3.lib and ship only one dll (only libfftw3-3.dll) That's what we do on Linux. This might make problems...
ldd from cygwin tells this so only one dll is linked in the end. ldd bin/krita.exe | grep -i fftw libfftw3-3.dll => /cygdrive/c/dev/inst/krita_x64_2.9.0.1/bin/libfftw3-3.dll (0x70680000) ldd kritagmic.dll ntdll.dll => /cygdrive/c/Windows/SYSTEM32/ntdll.dll (0x7ff853c30000) KERNEL32.DLL => /cygdrive/c/Windows/system32/KERNEL32.DLL (0x7ff851d50000) KERNELBASE.dll => /cygdrive/c/Windows/system32/KERNELBASE.dll (0x7ff850e50000) USER32.dll => /cygdrive/c/Windows/system32/USER32.dll (0x7ff851540000) GDI32.dll => /cygdrive/c/Windows/system32/GDI32.dll (0x7ff851730000) IMM32.DLL => /cygdrive/c/Windows/system32/IMM32.DLL (0x7ff852360000) MSCTF.dll => /cygdrive/c/Windows/system32/MSCTF.dll (0x7ff851be0000) msvcrt.dll => /cygdrive/c/Windows/system32/msvcrt.dll (0x7ff851370000) ??? => ??? (0x7ff83a4c0000) ??? => ??? (0x7ff852560000)
It looks like I'm able to reproduce the problem with G'Mic on my Windows 7, 32-bit system with 3GB of RAM when compiling upstream gmic from git: First-chance exception at 0x7546812F in gmic.exe: Microsoft C++ exception: cimg_library::CImgArgumentException at memory location 0x0336C28C. First-chance exception at 0x7546812F in gmic.exe: Microsoft C++ exception: cimg_library::CImgArgumentException at memory location 0x0336C28C. First-chance exception at 0x010599D7 in gmic.exe: 0xC00000FD: Stack overflow (parameters: 0x00000000, 0x013A2000). Unhandled exception at 0x010599D7 in gmic.exe: 0xC00000FD: Stack overflow (parameters: 0x00000000, 0x013A2000). The program '[2348] gmic.exe' has exited with code 0 (0x0).
What was the optimization setting again?
Here is the screenshot David made for me from MSVC: http://i.imgur.com/URxvY4d.png http://i.imgur.com/8iUSzUY.png Basically turn off O2 optimization to Od and turn on some others to get at least some optimizations instead
replace /O2 by /Oi /Ot /Oy /Ob2 /Gs /GF /Gy -- that shoiuld be doable from cmake. I've never used the visual studio gui to actually build something :-)
So something like this? if (MSVC) string(REPLACE "/O2" " /Oi /Ot /Oy /Ob2 /Gs /GF /Gy" CMAKE_CXX_FLAGS_RELWITHDEBINFO NEW_FLAGS) set (CMAKE_CXX_FLAGS_RELWITHDEBINFO {$NEW_FLAGS}) endif(MSVC) in kritagmic's CMakeLists.txt
dtschump: the key point (I guess) is to disable the 'Inline function expansion' flag which makes sense in our case, and if the compiler really tried to expand all inline functions I now understand why the stack had to be huge, here it is : http://i.imgur.com/imGd2k3.png dtschump: so, the compile flag to set absolutely I guess is /Ob0 dtschump: instead of /Ob2 or /Ob1
Git commit 9a0eb68f50c09a6742f7cd4257218b25b3db9da4 by Lukáš Tvrdý. Committed on 07/03/2015 at 08:19. Pushed by lukast into branch 'calligra/2.9'. Disable O2,Ob1,Ob2 in Release and RelWithDebInfo for MSVC compiler M +11 -0 krita/plugins/extensions/gmic/CMakeLists.txt http://commits.kde.org/calligra/9a0eb68f50c09a6742f7cd4257218b25b3db9da4
*** Bug 343841 has been marked as a duplicate of this bug. ***
These bug reteurn in Krita v2.9.9.2 Animation Edition Beta... At first I have tested "Colorize [interactive]". After that I have chcecked randomly G'MIC filters... All these crashes...
*** Bug 356222 has been marked as a duplicate of this bug. ***
http://valdyas.org/~boud/krita-3.0-Alpha-master-d236382-x64.zip fixes the crashes by building with mingw, _but_ apparently cross-compiling gmic isn't easy, so now it expects an X server to be present!
I've now got a mingw build that just works: http://valdyas.org/~boud/krita-master-44fb938-x64.zip