SUMMARY *** NOTE: If you are reporting a crash, please try to attach a backtrace with debug symbols. See https://community.kde.org/Guidelines_and_HOWTOs/Debugging/How_to_create_useful_crash_reports *** Hi, my laptop runs with Windows 11 Home, |—|—| |Processor|11th Gen Intel(R) Core™ i5-1135G7 @ 2.40GHz 2.42 GHz| |Installed RAM|8.00 GB (7.70 GB usable)| |System type|64-bit operating system, x64-based processor| |Pen and touch|No pen or touch input is available for this display| Edition Windows 11 Home Version 22H2 Installed on 12/12/2022 OS build 22621.963 Experience Windows Feature Experience Pack 1000.22638.1000.0 I had Krita 5.1.4 installed and it closed as soon as it tried to open a specific psd file (generated by photopea.com and opening well there). Checked the Application Event viewer log and nothing there. Uninstalled it. Installed Krita 5.1.5, same issue. What I did: *********** Isolation: I figured out that the issue is triggered by a specific layer which once hidden make the psd opening. This layer is Mr.X see image layer_causing_krita_to_quit.png I copied each layer from the document to another blank document, and saved, then try to open: same issue so it's really a layer issue, not a file issue. Logging: I made 2 procdump dump with .\procdump64.exe -t -ma -w krita Available at: https://www.dropbox.com/s/vz4weqlf0z0el5u/Procdump%20krita%205.1.5%20quit%20at%20opening%206.psd.rar?dl=0 If you need more logs please let me know. STEPS TO REPRODUCE 1. open 6.psd with krita 5.1.5 2. krita quits silently OBSERVED RESULT Krita quits silently EXPECTED RESULT Krita open the file to be able to edit it SOFTWARE/OS VERSIONS Windows: 11 Home ***************** Internal Krita Bug report logs ****************************** Krita Version: 5.1.5 Installation type: installer / portable package Hidpi: true Qt Version (compiled): 5.12.12 Version (loaded): 5.12.12 OS Information Build ABI: x86_64-little_endian-llp64 Build CPU: x86_64 CPU: x86_64 Kernel Type: winnt Kernel Version: 10.0.22621 Pretty Productname: Windows 10 (10.0) Product Type: windows Product Version: 10 Locale Languages: en_US C locale: C QLocale current: en QLocale system: en QTextCodec for locale: UTF-8 Process ACP: 65001 (UTF-8) System locale default ACP: 1252 (ANSI - Latin I) OpenGL Info Vendor: "Google Inc. (Intel)" Renderer: "ANGLE (Intel, Intel(R) Iris(R) Xe Graphics Direct3D11 vs_5_0 ps_5_0, D3D11-30.0.101.3111)" Version: "OpenGL ES 3.0.0 (ANGLE 2.1.0 git hash: f2280c0c5f93+krita_qt5.12.12)" Shading language: "OpenGL ES GLSL ES 3.00 (ANGLE 2.1.0 git hash: f2280c0c5f93+krita_qt5.12.12)" Requested format: QSurfaceFormat(version 3.0, options QFlags<QSurfaceFormat::FormatOption>(DeprecatedFunctions), depthBufferSize 24, redBufferSize 8, greenBufferSize 8, blueBufferSize 8, alphaBufferSize 8, stencilBufferSize 8, samples -1, swapBehavior QSurfaceFormat::DoubleBuffer, swapInterval 0, colorSpace QSurfaceFormat::DefaultColorSpace, profile QSurfaceFormat::CompatibilityProfile) Current format: QSurfaceFormat(version 3.0, options QFlags<QSurfaceFormat::FormatOption>(), depthBufferSize 24, redBufferSize 8, greenBufferSize 8, blueBufferSize 8, alphaBufferSize 8, stencilBufferSize 8, samples 0, swapBehavior QSurfaceFormat::DefaultSwapBehavior, swapInterval 0, colorSpace QSurfaceFormat::DefaultColorSpace, profile QSurfaceFormat::NoProfile) Version: 3.0 Supports deprecated functions false is OpenGL ES: true supportsBufferMapping: true supportsBufferInvalidation: false forceDisableTextureBuffers: true Extensions: "GL_OES_EGL_image" "GL_OES_compressed_ETC2_sRGB8_alpha8_texture" "GL_OES_packed_depth_stencil" "GL_ANGLE_base_vertex_base_instance" "GL_ANGLE_framebuffer_multisample" "GL_ANGLE_robust_client_memory" "GL_EXT_occlusion_query_boolean" "GL_EXT_texture_filter_anisotropic" "GL_OES_texture_float_linear" "GL_ANGLE_provoking_vertex" "GL_CHROMIUM_sync_query" "GL_NV_EGL_stream_consumer_external" "GL_OES_surfaceless_context" "GL_CHROMIUM_bind_generates_resource" "GL_OES_texture_border_clamp" "GL_ANGLE_get_tex_level_parameter" "GL_ANGLE_instanced_arrays" "GL_NV_framebuffer_blit" "GL_ANGLE_translated_shader_source" "GL_OES_EGL_image_external_essl3" "GL_OES_compressed_ETC2_sRGB8_texture" "GL_OES_compressed_ETC2_RGB8_texture" "GL_OES_mapbuffer" "GL_EXT_map_buffer_range" "GL_EXT_texture_compression_dxt1" "GL_EXT_frag_depth" "GL_EXT_robustness" "GL_ANGLE_multi_draw" "GL_EXT_draw_buffers_indexed" "GL_OES_standard_derivatives" "GL_NV_pixel_buffer_object" "GL_CHROMIUM_copy_compressed_texture" "GL_OES_texture_stencil8" "GL_ANGLE_pack_reverse_row_order" "GL_EXT_texture_compression_s3tc_srgb" "GL_OES_compressed_EAC_R11_unsigned_texture" "GL_EXT_multi_draw_indirect" "GL_EXT_texture_storage" "GL_OES_vertex_array_object" "GL_ANGLE_get_serialized_context_string" "GL_ANGLE_texture_compression_dxt5" "GL_EXT_multisampled_render_to_texture" "GL_EXT_sRGB" "GL_OES_compressed_ETC2_RGBA8_texture" "GL_ANGLE_request_extension" "GL_EXT_texture_rg" "GL_AMD_performance_monitor" "GL_ANGLE_texture_usage" "GL_ANGLE_program_cache_control" "GL_ANGLE_memory_size" "GL_OES_draw_elements_base_vertex" "GL_OES_compressed_ETC2_punchthroughA_RGBA8_texture" "GL_OVR_multiview" "GL_OES_fbo_render_mipmap" "GL_EXT_color_buffer_half_float" "GL_OES_get_program_binary" "GL_EXT_EGL_image_external_wrap_modes" "GL_EXT_draw_elements_base_vertex" "GL_EXT_unpack_subimage" "GL_EXT_texture_type_2_10_10_10_REV" "GL_ANGLE_copy_texture_3d" "GL_WEBGL_video_texture" "GL_ANGLE_base_vertex_base_instance_shader_builtin" "GL_NV_pack_subimage" "GL_OES_depth32" "GL_EXT_blend_minmax" "GL_EXT_clip_control" "GL_OES_compressed_EAC_RG11_signed_texture" "GL_EXT_debug_marker" "GL_KHR_debug" "GL_EXT_instanced_arrays" "GL_OES_EGL_image_external" "GL_EXT_draw_buffers" "GL_OVR_multiview2" "GL_EXT_debug_label" "GL_OES_depth24" "GL_EXT_discard_framebuffer" "GL_EXT_shader_texture_lod" "GL_EXT_texture_compression_rgtc" "GL_OES_element_index_uint" "GL_ANGLE_multiview_multisample" "GL_ANGLE_texture_multisample" "GL_EXT_texture_format_BGRA8888" "GL_OES_compressed_EAC_R11_signed_texture" "GL_OES_rgb8_rgba8" "GL_CHROMIUM_lose_context" "GL_NV_fence" "GL_OES_texture_half_float" "GL_ANGLE_lossy_etc_decode" "GL_OES_texture_half_float_linear" "GL_CHROMIUM_copy_texture" "" "GL_ANGLE_texture_compression_dxt3" "GL_OES_compressed_ETC2_punchthroughA_sRGB8_alpha_texture" "GL_OES_draw_buffers_indexed" "GL_EXT_blend_func_extended" "GL_EXT_float_blend" "GL_EXT_texture_compression_bptc" "GL_EXT_read_format_bgra" "GL_ANGLE_framebuffer_blit" "GL_ANGLE_depth_texture" "GL_OES_compressed_EAC_RG11_unsigned_texture" "GL_CHROMIUM_bind_uniform_location" "GL_KHR_parallel_shader_compile" "GL_EXT_texture_norm16" "GL_EXT_color_buffer_float" "GL_OES_texture_npot" "GL_EXT_disjoint_timer_query" "GL_OES_texture_float" "GL_ANGLE_client_arrays" QPA OpenGL Detection Info supportsDesktopGL: true supportsAngleD3D11: true isQtPreferAngle: true useBufferInvalidation (config option): false Hardware Information GPU Acceleration: auto Memory: 7886 Mb Number of Cores: 8 Swap Location: C:/Users/emman/AppData/Local/Temp Built for: sse2 Base instruction set: sse2 Supported instruction sets: avx512bw avx512dq avx512cd avx512f fma3+avx2 avx2 fma3+avx avx fma4 fma3+sse4.2 sse4.2 sse4.1 ssse3 sse3 sse2 Current Settings Current Swap Location: C:/Users/emman/AppData/Local/Temp Current Swap Location writable: true Undo Enabled: true Undo Stack Limit: 200 Use OpenGL: true Use OpenGL Texture Buffer: true Disable Vector Optimizations: false Disable AVX Optimizations: false Canvas State: OPENGL_SUCCESS Autosave Interval: 420 Use Backup Files: true Number of Backups Kept: 1 Backup File Suffix: ~ Backup Location: Same Folder as the File Backup Location writable: false Resource Location: Use Win8 Pointer Input: false Use RightMiddleTabletButton Workaround: false Levels of Detail Enabled: false Use Zip64: false Loaded Python Plugins colorspace comics_project_management_tools documenttools exportlayers filtermanager lastdocumentsdocker plugin_importer quick_settings_docker scripter tenbrushes tenscripts Display Information Number of screens: 1 Screen: 0 Name: \\.\DISPLAY1 Depth: 32 Scale: 1 Physical DPI141.951 Logical DPI120 Physical Size: 344, 193 Position: 0, 0 Resolution in pixels: 1920x1080 Manufacturer: Model: Refresh Rate: 60 --------------------- 31 Dec 2022 15:02:37 +0000. Executing C:\Program Files\Krita (x64)\bin\krita.exe ================================================================================ SSESSION: 23 Jan 2023 15:16:01 +0000. Executing C:\Program Files\Krita (x64)\bin\krita.exe Krita Version: 5.1.5, Qt version compiled: 5.12.12, loaded: 5.12.12. Process ID: 17736 -- -- -- -- -- -- -- -- 23 Jan 2023 15:16:01 +0000: Style: fusion. Available styles: windowsvista, Windows, Fusion 23 Jan 2023 15:16:02 +0000: Database is up to date. Version: 0.0.17, created by Krita 5.1.4, at Sat Dec 31 15:02:37 2022 23 Jan 2023 15:16:02 +0000: Non-store package - creating updater 23 Jan 2023 15:18:05 +0000: CLOSING SESSION ================================================================================ SESSION: 23 Jan 2023 15:18:07 +0000. Executing C:\Program Files\Krita (x64)\bin\krita.exe Krita Version: 5.1.5, Qt version compiled: 5.12.12, loaded: 5.12.12. Process ID: 18408 -- -- -- -- -- -- -- -- 23 Jan 2023 15:18:07 +0000: Style: fusion. Available styles: windowsvista, Windows, Fusion 23 Jan 2023 15:18:08 +0000: Database is up to date. Version: 0.0.17, created by Krita 5.1.4, at Sat Dec 31 15:02:37 2022 23 Jan 2023 15:18:08 +0000: Non-store package - creating updater 23 Jan 2023 15:19:25 +0000: Importing image/vnd.adobe.photoshop to application/x-krita. Location: C:/Users/emman/Desktop/6.psd. Real location: C:/Users/emman/Desktop/6.psd. Batchmode: 0 23 Jan 2023 15:19:25 +0000: SAFE ASSERT (krita): "!localResources.contains(KoResourceSP())" in file C:/Packaging/workspace/Krita_Release_Windows64_Build/krita/libs/resources/KisLocalStrokeResources.cpp, line 79 ================================================================================ SESSION: 23 Jan 2023 15:19:29 +0000. Executing C:\Program Files\Krita (x64)\bin\krita.exe Krita Version: 5.1.5, Qt version compiled: 5.12.12, loaded: 5.12.12. Process ID: 3080 -- -- -- -- -- -- -- -- 23 Jan 2023 15:19:29 +0000: Style: fusion. Available styles: windowsvista, Windows, Fusion 23 Jan 2023 15:19:30 +0000: Database is up to date. Version: 0.0.17, created by Krita 5.1.4, at Sat Dec 31 15:02:37 2022 23 Jan 2023 15:19:30 +0000: Non-store package - creating updater 23 Jan 2023 15:26:47 +0000: CLOSING SESSION ================================================================================ --------------------- ------------------- Error occurred on Saturday, January 21, 2023 at 21:09:10. krita.exe caused an Access Violation at location 00007FFE50C844B0 in module libkritapigment.dll Reading from location 0000000000000030. AddrPC Params ------------------- Error occurred on Saturday, January 21, 2023 at 21:09:22. ------------------- Error occurred on Saturday, January 21, 2023 at 21:10:08. krita.exe caused an Access Violation at location 00007FFE50C844B0 in module libkritapigment.dll Reading from location 0000000000000030. AddrPC Params ------------------- Error occurred on Saturday, January 21, 2023 at 21:17:09. krita.exe caused an Access Violation at location 00007FFE457648A0 in module libkritapigment.dll Reading from location 0000000000000030. AddrPC Params 00007FFE457648A0 000002B3BC946050 00007FFE4F380D47 000002B3C0778508 libkritapigment.dll!KoPattern::hasAlpha+0x0 00007FFE4F4487BB 0000000000000000 0000000000000000 0000000000000000 libkritaimage.dll!KisLsUtils::fillOverlayDevice+0x14b 00007FFE4F437AE9 000000BE38CFF420 00007FFE4F4335CD 000002B3B9D7AF51 libkritaimage.dll!KisLsStrokeFilter::applyStroke+0x849 00007FFE4F437F49 000000BE38CFF628 00007FFE4F4278DE 0000000000000000 libkritaimage.dll!KisLsStrokeFilter::processDirectly+0xb9 00007FFE4F41D22E 00007FFE4F53B9F0 000002B3C076F2A0 0000000000000000 libkritaimage.dll!KisLayerStyleFilterProjectionPlane::recalculate+0xae 00007FFE4F4232D5 0000000000000000 00007FFEA334D87A 000002B3A87802E4 libkritaimage.dll!KisLayerStyleProjectionPlane::recalculate+0x2a5 00007FFE4F2758D9 00007FFE4DB6B038 000002B3BA0419E0 0000000000000000 libkritaimage.dll!KisAsyncMerger::startMerge+0x4d9 ------------------- Error occurred on Saturday, January 21, 2023 at 21:32:05. krita.exe caused an Access Violation at location 00007FFE435548A0 in module libkritapigment.dll Reading from location 0000000000000030. AddrPC Params 00007FFE435548A0 000001D69ADFE7E0 00007FFE4D310D47 000001D69B14EA98 libkritapigment.dll------------------- Error occurred on Saturday, January 21, 2023 at 21:32:35. ------------------- Error occurred on Monday, January 23, 2023 at 14:48:12. krita.exe caused an Access Violation at location 00007FFEA85348A0 in module libkritapigment.dll Reading from location 0000000000000030. AddrPC Params ------------------- Error occurred on Monday, January 23, 2023 at 14:48:30. krita.exe caused an Access Violation at location 00007FFEA85348A0 in module libkritapigment.dll Reading from location 0000000000000030. AddrPC Params ------------------- Error occurred on Monday, January 23, 2023 at 14:48:54. krita.exe caused an Access Violation at location 00007FFEA85348A0 in module libkritapigment.dll Reading from location 0000000000000030. AddrPC Params ------------------- Error occurred on Monday, January 23, 2023 at 14:51:08. krita.exe caused an Access Violation at location 00007FFEA85348A0 in module libkritapigment.dll Reading from location 0000000000000030. AddrPC Params 00007FFEA85348A0 0000020E87DC5660 00007FFE920E0D47 0000020EF67BFEF8 libkritapigment.dll------------------- Error occurred on Monday, January 23, 2023 at 14:54:02. krita.exe caused an Access Violation at location 00007FFEA85348A0 in module libkritapigment.dll Reading from location 0000000000000030. AddrPC Params ------------------- Error occurred on Monday, January 23, 2023 at 14:56:11. krita.exe caused an Access Violation at location 00007FFE503448A0 in module libkritapigment.dll Reading from location 0000000000000030. AddrPC Params ------------------- Error occurred on Monday, January 23, 2023 at 15:12:48. ------------------- Error occurred on Monday, January 23, 2023 at 15:19:25. krita.exe caused an Access Violation at location 00007FFE91B848A0 in module libkritapigment.dll Reading from location 0000000000000030. AddrPC Params ////////////////// ------------------- Error occurred on Saturday, January 21, 2023 at 21:09:10. krita.exe caused an Access Violation at location 00007FFE50C844B0 in module libkritapigment.dll Reading from location 0000000000000030. AddrPC Params ------------------- Error occurred on Saturday, January 21, 2023 at 21:09:22. ------------------- Error occurred on Saturday, January 21, 2023 at 21:10:08. krita.exe caused an Access Violation at location 00007FFE50C844B0 in module libkritapigment.dll Reading from location 0000000000000030. AddrPC Params ------------------- Error occurred on Saturday, January 21, 2023 at 21:17:09. krita.exe caused an Access Violation at location 00007FFE457648A0 in module libkritapigment.dll Reading from location 0000000000000030. AddrPC Params 00007FFE457648A0 000002B3BC946050 00007FFE4F380D47 000002B3C0778508 libkritapigment.dll!KoPattern::hasAlpha+0x0 00007FFE4F4487BB 0000000000000000 0000000000000000 0000000000000000 libkritaimage.dll!KisLsUtils::fillOverlayDevice+0x14b 00007FFE4F437AE9 000000BE38CFF420 00007FFE4F4335CD 000002B3B9D7AF51 libkritaimage.dll!KisLsStrokeFilter::applyStroke+0x849 00007FFE4F437F49 000000BE38CFF628 00007FFE4F4278DE 0000000000000000 libkritaimage.dll!KisLsStrokeFilter::processDirectly+0xb9 00007FFE4F41D22E 00007FFE4F53B9F0 000002B3C076F2A0 0000000000000000 libkritaimage.dll!KisLayerStyleFilterProjectionPlane::recalculate+0xae 00007FFE4F4232D5 0000000000000000 00007FFEA334D87A 000002B3A87802E4 libkritaimage.dll!KisLayerStyleProjectionPlane::recalculate+0x2a5 00007FFE4F2758D9 00007FFE4DB6B038 000002B3BA0419E0 0000000000000000 libkritaimage.dll!KisAsyncMerger::startMerge+0x4d9 ------------------- Error occurred on Saturday, January 21, 2023 at 21:32:05. krita.exe caused an Access Violation at location 00007FFE435548A0 in module libkritapigment.dll Reading from location 0000000000000030. AddrPC Params 00007FFE435548A0 000001D69ADFE7E0 00007FFE4D310D47 000001D69B14EA98 libkritapigment.dll------------------- Error occurred on Saturday, January 21, 2023 at 21:32:35. ------------------- Error occurred on Monday, January 23, 2023 at 14:48:12. krita.exe caused an Access Violation at location 00007FFEA85348A0 in module libkritapigment.dll Reading from location 0000000000000030. AddrPC Params ------------------- Error occurred on Monday, January 23, 2023 at 14:48:30. krita.exe caused an Access Violation at location 00007FFEA85348A0 in module libkritapigment.dll Reading from location 0000000000000030. AddrPC Params ------------------- Error occurred on Monday, January 23, 2023 at 14:48:54. krita.exe caused an Access Violation at location 00007FFEA85348A0 in module libkritapigment.dll Reading from location 0000000000000030. AddrPC Params ------------------- Error occurred on Monday, January 23, 2023 at 14:51:08. krita.exe caused an Access Violation at location 00007FFEA85348A0 in module libkritapigment.dll Reading from location 0000000000000030. AddrPC Params 00007FFEA85348A0 0000020E87DC5660 00007FFE920E0D47 0000020EF67BFEF8 libkritapigment.dll------------------- Error occurred on Monday, January 23, 2023 at 14:54:02. krita.exe caused an Access Violation at location 00007FFEA85348A0 in module libkritapigment.dll Reading from location 0000000000000030. AddrPC Params ------------------- Error occurred on Monday, January 23, 2023 at 14:56:11. krita.exe caused an Access Violation at location 00007FFE503448A0 in module libkritapigment.dll Reading from location 0000000000000030. AddrPC Params ------------------- Error occurred on Monday, January 23, 2023 at 15:12:48. ------------------- Error occurred on Monday, January 23, 2023 at 15:19:25. krita.exe caused an Access Violation at location 00007FFE91B848A0 in module libkritapigment.dll Reading from location 0000000000000030. AddrPC Params ADDITIONAL INFO: Please note I sanitized the log file because it contains data I don't want to be shared. Initially the psd file crashing Krita is not on the desktop, I shortened the path moving it to desktop and issue remains. If you need a specific action plan to be actionned with step by step instructions, please supply it.
Hi, Emmanual! Could you please share the file that fails? The crash happens on the layer that has a "Stroke" layer style with the pattern applied to it. You can modify the file to keep only this specific layer, if the file is private.
Hi! Please sends us the file (or just the layer, as Dmitry said) and I'll take a look into it.
Could you also install DebugView (https://learn.microsoft.com/en-us/sysinternals/downloads/debugview) and see if Krita prints this warning in it when loading that file? "WARNING: failed to parse KisPatternData XML section!" If yes, then the problem is with the pattern compression format
Created attachment 155675 [details] crashing_psd_on_krita.psd Hi All, did you get the file? It was in the archive. I add it here for convenience. Regards E. On 1/23/2023 4:07 PM, Dmitry Kazakov wrote: > https://bugs.kde.org/show_bug.cgi?id=464700 > > --- Comment #3 from Dmitry Kazakov <dimula73@gmail.com> --- > Could you also install DebugView > (https://learn.microsoft.com/en-us/sysinternals/downloads/debugview) and see if > Krita prints this warning in it when loading that file? > > "WARNING: failed to parse KisPatternData XML section!" > > If yes, then the problem is with the pattern compression format >
Created attachment 155676 [details] lucasarts-scumm-outline.zip Hi again, the text entered is using the font I attached so you can test if it´s coming from the font. Regards E. On 1/26/2023 6:39 PM, emmanuel poirier wrote: > Hi All, > > did you get the file? It was in the archive. > > I add it here for convenience. > > Regards > > E. > > > On 1/23/2023 4:07 PM, Dmitry Kazakov wrote: >> https://bugs.kde.org/show_bug.cgi?id=464700 >> >> --- Comment #3 from Dmitry Kazakov <dimula73@gmail.com> --- >> Could you also install DebugView >> (https://learn.microsoft.com/en-us/sysinternals/downloads/debugview) >> and see if >> Krita prints this warning in it when loading that file? >> >> "WARNING: failed to parse KisPatternData XML section!" >> >> If yes, then the problem is with the pattern compression format >> >
On 1/23/2023 4:07 PM, Dmitry Kazakov wrote: > https://bugs.kde.org/show_bug.cgi?id=464700 > > --- Comment #3 from Dmitry Kazakov <dimula73@gmail.com> --- > Could you also install DebugView > (https://learn.microsoft.com/en-us/sysinternals/downloads/debugview) and see if > Krita prints this warning in it when loading that file? > > "WARNING: failed to parse KisPatternData XML section!" > > If yes, then the problem is with the pattern compression format >
Hi Dmitry, krita shows nothing with debugview launched. I attached the log generated. Crash occurred around 10:28 PM on 26/1/22. I found another file which produces a crash but as I can't say if it's the same cause, I'll send it into another email with a note to differentiate. Regards E. On 1/23/2023 4:07 PM, Dmitry Kazakov wrote: > https://bugs.kde.org/show_bug.cgi?id=464700 > > --- Comment #3 from Dmitry Kazakov <dimula73@gmail.com> --- > Could you also install DebugView > (https://learn.microsoft.com/en-us/sysinternals/downloads/debugview) and see if > Krita prints this warning in it when loading that file? > > "WARNING: failed to parse KisPatternData XML section!" > > If yes, then the problem is with the pattern compression format >
File made it in one piece from the looks of Bugzilla. Let's see what's inside...
Can confirm the crash happens here. After adding an early return to work around it, I get the following warnings: krita.general: Unhandled: "/null/FrFX/overprint" class QHash<class QString,class std::function<void __cdecl(bool)> > false krita.general: WARNING: ASL style contains non-existent pattern reference! Searching for uuid: "c7acb22a-47a6-11de-919a-bf574370eaaf" (name: "Default/orangeslices" ) krita.general: convertAndSetBlendMode: Curve conversion is not implemented yet krita.general: Unhandled: "/null/DrSh/Cntn" class QHash<class QString,class std::function<void __cdecl(bool)> > false SAFE ASSERT (krita): "!localResources.contains(KoResourceSP())" in file E:\krita-win\src\libs\resources\KisLocalStrokeResources.cpp, line 79 The "Unhandled" warnings refer to your use of drop shadows in the layer, we don't support those yet. But moving past that, this looks like the Photoshop file is incomplete. The layer references a missing pattern, which causes Krita to insert a null pattern into the list, then remove it, and finally access it outright. Digging further into this.
So upon further checking, the "invalid" placeholder pattern we inject for these cases triggers the counterpart of bug 441605: these patterns were never pushed into the global resource server on layer style read completion. Pushing a hotfix in a few moments.
Git commit 973acffa8a24c640e3a3c95007f99dfe4b4f5f48 by L. E. Segovia. Committed on 28/01/2023 at 01:29. Pushed by lsegovia into branch 'master'. KisAslLayerStyleSerializer: fix layer-local patterns This is the counterpart of bug 441605, we only found this one out because in 464700 Wolthera injects a placeholder pattern, which in turn was never put into global storage. For the sake of completionism, I've added several safe asserts in the path that the nullptr makes, so that we get breakpointable warnings for missing resources in the future. Related: bug 441605 CCMAIL:dimula73@gmail.com CCMAIL:tamtamy.tymona@gmail.com M +15 -5 libs/image/kis_asl_layer_style_serializer.cpp M +2 -0 libs/image/layerstyles/kis_ls_utils.cpp M +5 -0 libs/resources/KisLocalStrokeResources.cpp M +6 -0 libs/resources/KisRequiredResourcesOperators.cpp M +1 -0 libs/resources/KoResourceLoadResult.cpp M +8 -0 plugins/impex/psd/psd_loader.cpp https://invent.kde.org/graphics/krita/commit/973acffa8a24c640e3a3c95007f99dfe4b4f5f48
Git commit 8e83efca125a263dc993cf92e89c290f9339efe3 by L. E. Segovia. Committed on 28/01/2023 at 01:31. Pushed by lsegovia into branch 'krita/5.1'. KisAslLayerStyleSerializer: fix layer-local patterns This is the counterpart of bug 441605, we only found this one out because in 464700 Wolthera injects a placeholder pattern, which in turn was never put into global storage. For the sake of completionism, I've added several safe asserts in the path that the nullptr makes, so that we get breakpointable warnings for missing resources in the future. Related: bug 441605 CCMAIL:dimula73@gmail.com CCMAIL:tamtamy.tymona@gmail.com (cherry picked from commit 973acffa8a24c640e3a3c95007f99dfe4b4f5f48) M +15 -5 libs/image/kis_asl_layer_style_serializer.cpp M +2 -0 libs/image/layerstyles/kis_ls_utils.cpp M +5 -0 libs/resources/KisLocalStrokeResources.cpp M +6 -0 libs/resources/KisRequiredResourcesOperators.cpp M +1 -0 libs/resources/KoResourceLoadResult.cpp M +8 -0 plugins/impex/psd/psd_loader.cpp https://invent.kde.org/graphics/krita/commit/8e83efca125a263dc993cf92e89c290f9339efe3
The file should load now. For the missing pattern, it would be great if you could report it to the authors of Photopea; we cannot supply the patterns that come by default with Photoshop. Let us know if you find any more issues, and thanks for reporting this crash!
Hi guys, I am a creator of Photopea and I have fixed the issue with producing PSD files without a default pattern. This issue says that you have fixed it, however, it is not clear to me how can I test it. I have downloaded Krita 5.1.5, but the PSD file attached here still makes Krita crash.
Hi Ivan! We have Krita Plus for that. Please check out https://krita.org/en/download/krita-desktop/ and select your system from the list in "Nightly Builds".