Krita 5.0 is EXTREMELY unstable, constant crashes

Krita 4 used to be a rather pleasant and stable experience, but since I switched to Krita 5 I had at least 4 or 5 crashes every day, on average once every hour. Problem is that I have no idea what is causing it, as it just happens at random. Sometimes I fill an area and it crashes, sometimes I just pan around the window and it crashes. It’s not bad enough that I can’t do anything but it is definitely affecting my productivity.

It is weird that a jump in versions like this would compromise stability this much.

Does anyone have any idea what I should do to improve this and figure out what is going on? I am rather clueless as to how to proceed.

I’m running Xubuntu 20.04 LTS

Hello and welcome to the forum :slight_smile:

Are you running the appimage or did you get krita from the Ubuntu repo or somewhere else?

When did you upgrade to 5.x and which version number are you using?

Hello Ahab! I am running 5.0.2 from the appimage downloaded from the website. I upgraded the day it came out on the website.

Are you comfortable with renaming resources folders and configuration files? Do this when krita is not running.

If so, go to ~/.config and rename the file ‘kritarc’ to ‘kritarc-previous’.
Then go to ~/.local/share and rename the folder called ‘krita’ to ‘krita-previous’.
Then run krita and see if it fixes the problem.

That will give a brand new set of default configurations and resources but your old/existing ones will be recoverable later in the ‘-previous’ places when this is sorted out.

If that doesn’t work, you can get the 4.4.8 appimage from here:
https://download.kde.org/stable/krita/4.4.8/krita-4.4.8-x86_64.appimage
and try that instead to see if that affects the situation.

I’ll be leaving now for a large number of hours but other people will be able to follow this up, if they’re around.

Okay, I backed up the old configuration and started working with a fresh install of Krita. Only things I changed in the new install are a few shortcuts and a few adjustments to some default brushes.

I feel like it already helped a little, I think my Krita configuration dates back to Krita 2.9 so I guess there was some configuration sludge that was conflicting in some way (I suppose at least). I have immediately noticed a couple of things: tools like transform, fill and color select are much snappier than before, and panning around is much faster. Before there seemed to be some lag when doing the same operations.

Unfortunately, the program crashed once during my drawing session after about an hour, and to be exact when I pressed the “Select All” shortcut. So even if it seemed to improve things a little it is definitely not solved.

1 Like

Would be interesting to get the text output or backtrace

krita.log (can’t seem to see anything interesting about the crash)

SESSION: 03 Apr 2022 22:57:16 +0200. Executing /home/andrea/bin/krita

Krita Version: 5.0.2, Qt version compiled: 5.12.12, loaded: 5.12.12. Process ID: 37329
-- -- -- -- -- -- -- --
03 Apr 2022 22:57:16 +0200: Style: fusion. Available styles: Windows, Fusion
03 Apr 2022 23:00:01 +0200: KisAppimageUpdater: update check finished. Result: 0 Exit status: 0
path: /home/andrea/bin/krita-5.0.2-x86_64.appimage
output: 
03 Apr 2022 23:00:55 +0200: Importing application/x-krita to application/x-krita. Location: /home/andrea/krita/wendy-angry.kra. Real location: /home/andrea/krita/wendy-angry.kra. Batchmode: 0
03 Apr 2022 23:00:58 +0200: Loaded image from application/x-krita. Size: 3500 * 3500 pixels, 4.16667 dpi. Color model: 8-bit integer/channel RGB/Alpha (sRGB-elle-V2-srgbtrc.icc). Layers: 23
03 Apr 2022 23:18:47 +0200: Saving Document /home/andrea/krita/wendy-angry.kra as /home/andrea/krita/wendy-angry.kra (mime: application/x-krita). 3500 * 3500 pixels, 23 layers.  101 frames, 24 framerate. Export configuration: No configuration
03 Apr 2022 23:18:47 +0200: Create a simple backup for /home/andrea/krita/wendy-angry.kra in the same location as the file.
03 Apr 2022 23:18:47 +0200: Converting from application/x-krita to application/x-krita. Location: /home/andrea/krita/wendy-angry.kra. Real location: /home/andrea/krita/wendy-angry.kra. Batchmode: 0. Configuration: none
03 Apr 2022 23:18:49 +0200: Completed saving /home/andrea/krita/wendy-angry.kra (mime: application/x-krita). Result: OK. Warning: . Size: 27623714
03 Apr 2022 23:18:49 +0200: Saving Completed
03 Apr 2022 23:35:51 +0200: Autosaving: /home/andrea/krita/.wendy-angry.kra-autosave.kra
03 Apr 2022 23:35:51 +0200: Converting from application/x-krita to application/x-krita. Location: /home/andrea/krita/.wendy-angry.kra-autosave.kra. Real location: /home/andrea/krita/.wendy-angry.kra-autosave.kra. Batchmode: 0. Configuration: none
03 Apr 2022 23:35:52 +0200: Completed saving /home/andrea/krita/.wendy-angry.kra-autosave.kra (mime: application/x-krita). Result: OK. Warning: . Size: 27282978
03 Apr 2022 23:42:01 +0200: Saving Document /home/andrea/krita/wendy-angry.kra as /home/andrea/krita/wendy-angry.kra (mime: application/x-krita). 3500 * 3500 pixels, 24 layers.  101 frames, 24 framerate. Export configuration: No configuration
03 Apr 2022 23:42:01 +0200: Create a simple backup for /home/andrea/krita/wendy-angry.kra in the same location as the file.
03 Apr 2022 23:42:01 +0200: Converting from application/x-krita to application/x-krita. Location: /home/andrea/krita/wendy-angry.kra. Real location: /home/andrea/krita/wendy-angry.kra. Batchmode: 0. Configuration: none
03 Apr 2022 23:42:04 +0200: Completed saving /home/andrea/krita/wendy-angry.kra (mime: application/x-krita). Result: OK. Warning: . Size: 30327678
03 Apr 2022 23:42:04 +0200: Removing autosave file: /home/andrea/krita/.wendy-angry.kra-autosave.kra
03 Apr 2022 23:42:04 +0200: Saving Completed
03 Apr 2022 23:43:34 +0200: Saving Document /home/andrea/krita/wendy-angry.kra as /home/andrea/krita/wendy-angry.kra (mime: application/x-krita). 3500 * 3500 pixels, 24 layers.  101 frames, 24 framerate. Export configuration: No configuration
03 Apr 2022 23:43:34 +0200: Create a simple backup for /home/andrea/krita/wendy-angry.kra in the same location as the file.
03 Apr 2022 23:43:35 +0200: Converting from application/x-krita to application/x-krita. Location: /home/andrea/krita/wendy-angry.kra. Real location: /home/andrea/krita/wendy-angry.kra. Batchmode: 0. Configuration: none
03 Apr 2022 23:43:37 +0200: Completed saving /home/andrea/krita/wendy-angry.kra (mime: application/x-krita). Result: OK. Warning: . Size: 30332601
03 Apr 2022 23:43:37 +0200: Saving Completed
03 Apr 2022 23:45:12 +0200: Saving Document /home/andrea/krita/wendy-angry.kra as /home/andrea/krita/wendy-angry.kra (mime: application/x-krita). 3500 * 3500 pixels, 24 layers.  101 frames, 24 framerate. Export configuration: No configuration
03 Apr 2022 23:45:12 +0200: Create a simple backup for /home/andrea/krita/wendy-angry.kra in the same location as the file.
03 Apr 2022 23:45:12 +0200: Converting from application/x-krita to application/x-krita. Location: /home/andrea/krita/wendy-angry.kra. Real location: /home/andrea/krita/wendy-angry.kra. Batchmode: 0. Configuration: none
03 Apr 2022 23:45:15 +0200: Completed saving /home/andrea/krita/wendy-angry.kra (mime: application/x-krita). Result: OK. Warning: . Size: 30345933
03 Apr 2022 23:45:15 +0200: Saving Completed
03 Apr 2022 23:49:22 +0200: Autosaving: /home/andrea/krita/.wendy-angry.kra-autosave.kra
03 Apr 2022 23:49:22 +0200: Converting from application/x-krita to application/x-krita. Location: /home/andrea/krita/.wendy-angry.kra-autosave.kra. Real location: /home/andrea/krita/.wendy-angry.kra-autosave.kra. Batchmode: 0. Configuration: none
03 Apr 2022 23:49:23 +0200: Completed saving /home/andrea/krita/.wendy-angry.kra-autosave.kra (mime: application/x-krita). Result: OK. Warning: . Size: 29091623
03 Apr 2022 23:53:28 +0200: Autosaving: /home/andrea/krita/.wendy-angry.kra-autosave.kra
03 Apr 2022 23:53:28 +0200: Converting from application/x-krita to application/x-krita. Location: /home/andrea/krita/.wendy-angry.kra-autosave.kra. Real location: /home/andrea/krita/.wendy-angry.kra-autosave.kra. Batchmode: 0. Configuration: none
03 Apr 2022 23:53:29 +0200: Completed saving /home/andrea/krita/.wendy-angry.kra-autosave.kra (mime: application/x-krita). Result: OK. Warning: . Size: 29186665
03 Apr 2022 23:54:08 +0200: Saving Document /home/andrea/krita/wendy-angry.kra as /home/andrea/krita/wendy-angry.kra (mime: application/x-krita). 3500 * 3500 pixels, 24 layers.  101 frames, 24 framerate. Export configuration: No configuration
03 Apr 2022 23:54:08 +0200: Create a simple backup for /home/andrea/krita/wendy-angry.kra in the same location as the file.
03 Apr 2022 23:54:08 +0200: Converting from application/x-krita to application/x-krita. Location: /home/andrea/krita/wendy-angry.kra. Real location: /home/andrea/krita/wendy-angry.kra. Batchmode: 0. Configuration: none
03 Apr 2022 23:54:10 +0200: Completed saving /home/andrea/krita/wendy-angry.kra (mime: application/x-krita). Result: OK. Warning: . Size: 30916644
03 Apr 2022 23:54:10 +0200: Removing autosave file: /home/andrea/krita/.wendy-angry.kra-autosave.kra
03 Apr 2022 23:54:10 +0200: Saving Completed
03 Apr 2022 23:58:39 +0200: Autosaving: /home/andrea/krita/.wendy-angry.kra-autosave.kra
03 Apr 2022 23:58:39 +0200: Converting from application/x-krita to application/x-krita. Location: /home/andrea/krita/.wendy-angry.kra-autosave.kra. Real location: /home/andrea/krita/.wendy-angry.kra-autosave.kra. Batchmode: 0. Configuration: none
03 Apr 2022 23:58:40 +0200: Completed saving /home/andrea/krita/.wendy-angry.kra-autosave.kra (mime: application/x-krita). Result: OK. Warning: . Size: 29442341
04 Apr 2022 00:02:41 +0200: Autosaving: /home/andrea/krita/.wendy-angry.kra-autosave.kra
04 Apr 2022 00:02:41 +0200: Converting from application/x-krita to application/x-krita. Location: /home/andrea/krita/.wendy-angry.kra-autosave.kra. Real location: /home/andrea/krita/.wendy-angry.kra-autosave.kra. Batchmode: 0. Configuration: none
04 Apr 2022 00:02:42 +0200: Completed saving /home/andrea/krita/.wendy-angry.kra-autosave.kra (mime: application/x-krita). Result: OK. Warning: . Size: 30409821
04 Apr 2022 00:06:46 +0200: Autosaving: /home/andrea/krita/.wendy-angry.kra-autosave.kra
04 Apr 2022 00:06:56 +0200: Autosaving: /home/andrea/krita/.wendy-angry.kra-autosave.kra
04 Apr 2022 00:06:56 +0200: Converting from application/x-krita to application/x-krita. Location: /home/andrea/krita/.wendy-angry.kra-autosave.kra. Real location: /home/andrea/krita/.wendy-angry.kra-autosave.kra. Batchmode: 0. Configuration: none
04 Apr 2022 00:06:57 +0200: Completed saving /home/andrea/krita/.wendy-angry.kra-autosave.kra (mime: application/x-krita). Result: OK. Warning: . Size: 31607053

KRITA DID NOT CLOSE CORRECTLY
================================================================================
SESSION: 04 Apr 2022 00:09:11 +0200. Executing /home/andrea/bin/krita

Krita Version: 5.0.2, Qt version compiled: 5.12.12, loaded: 5.12.12. Process ID: 45385
-- -- -- -- -- -- -- --
04 Apr 2022 00:09:11 +0200: Style: fusion. Available styles: Windows, Fusion
04 Apr 2022 00:09:12 +0200: Database is up to date. Version: 0.0.15, created by Krita 5.0.2, at dom apr 3 22:57:22 2022
04 Apr 2022 00:09:18 +0200: KisAppimageUpdater: update check finished. Result: 0 Exit status: 0
path: /home/andrea/bin/krita-5.0.2-x86_64.appimage
output: 
04 Apr 2022 00:09:31 +0200: Importing application/x-krita to application/x-krita. Location: /home/andrea/krita/.wendy-angry.kra-autosave.kra. Real location: /home/andrea/krita/.wendy-angry.kra-autosave.kra. Batchmode: 0
04 Apr 2022 00:09:34 +0200: Loaded image from application/x-krita. Size: 3500 * 3500 pixels, 4.16667 dpi. Color model: 8-bit integer/channel RGB/Alpha (sRGB-elle-V2-srgbtrc.icc). Layers: 29
04 Apr 2022 00:09:42 +0200: Saving Document /home/andrea/krita/wendy-angry.kra as /home/andrea/krita/wendy-angry.kra (mime: application/x-krita). 3500 * 3500 pixels, 29 layers.  101 frames, 24 framerate. Export configuration: No configuration
04 Apr 2022 00:09:42 +0200: Create a simple backup for /home/andrea/krita/wendy-angry.kra in the same location as the file.
04 Apr 2022 00:09:42 +0200: Converting from application/x-krita to application/x-krita. Location: /home/andrea/krita/wendy-angry.kra. Real location: /home/andrea/krita/wendy-angry.kra. Batchmode: 0. Configuration: none
04 Apr 2022 00:09:45 +0200: Completed saving /home/andrea/krita/wendy-angry.kra (mime: application/x-krita). Result: OK. Warning: . Size: 33902140
04 Apr 2022 00:09:45 +0200: Removing autosave file: /home/andrea/krita/.wendy-angry.kra-autosave.kra
04 Apr 2022 00:09:45 +0200: Saving Completed
04 Apr 2022 00:10:41 +0200: Saving Document /home/andrea/krita/wendy-angry.kra as /home/andrea/krita/wendy-angry.kra (mime: application/x-krita). 3500 * 3500 pixels, 29 layers.  101 frames, 24 framerate. Export configuration: No configuration
04 Apr 2022 00:10:41 +0200: Create a simple backup for /home/andrea/krita/wendy-angry.kra in the same location as the file.
04 Apr 2022 00:10:41 +0200: Converting from application/x-krita to application/x-krita. Location: /home/andrea/krita/wendy-angry.kra. Real location: /home/andrea/krita/wendy-angry.kra. Batchmode: 0. Configuration: none
04 Apr 2022 00:10:43 +0200: Completed saving /home/andrea/krita/wendy-angry.kra (mime: application/x-krita). Result: OK. Warning: . Size: 33803648
04 Apr 2022 00:10:43 +0200: Saving Completed
04 Apr 2022 00:11:13 +0200: Saving Document /home/andrea/krita/wendy-angry.kra as /home/andrea/krita/wendy-angry.kra (mime: application/x-krita). 3500 * 3500 pixels, 29 layers.  101 frames, 24 framerate. Export configuration: No configuration
04 Apr 2022 00:11:13 +0200: Create a simple backup for /home/andrea/krita/wendy-angry.kra in the same location as the file.
04 Apr 2022 00:11:13 +0200: Converting from application/x-krita to application/x-krita. Location: /home/andrea/krita/wendy-angry.kra. Real location: /home/andrea/krita/wendy-angry.kra. Batchmode: 0. Configuration: none
04 Apr 2022 00:11:15 +0200: Completed saving /home/andrea/krita/wendy-angry.kra (mime: application/x-krita). Result: OK. Warning: . Size: 33800237
04 Apr 2022 00:11:15 +0200: Saving Completed

krita-sysinfo.log

Krita

 Version: 5.0.2
 Languages: en_US, en, en_US, en
 Hidpi: true

Qt

  Version (compiled): 5.12.12
  Version (loaded): 5.12.12

OS Information

  Build ABI: x86_64-little_endian-lp64
  Build CPU: x86_64
  CPU: x86_64
  Kernel Type: linux
  Kernel Version: 5.4.0-107-generic
  Pretty Productname: Ubuntu 20.04.4 LTS
  Product Type: ubuntu
  Product Version: 20.04
  Desktop: XFCE

OpenGL Info
 
  Vendor:  "AMD" 
  Renderer:  "Radeon RX 560 Series (POLARIS11, DRM 3.35.0, 5.4.0-107-generic, LLVM 12.0.0)" 
  Version:  "4.6 (Compatibility Profile) Mesa 21.2.6" 
  Shading language:  "4.60" 
  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 4.6, 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) 
     Version: 4.6
     Supports deprecated functions true 
     is OpenGL ES: false 
  supportsBufferMapping: true 
  supportsBufferInvalidation: true 
  Extensions: 
     "GL_AMD_draw_buffers_blend" 
     "GL_NV_packed_depth_stencil" 
     "GL_NV_conditional_render" 
     "GL_ARB_conservative_depth" 
     "GL_ARB_transpose_matrix" 
     "GL_ARB_texture_float" 
     "GL_EXT_framebuffer_object" 
     "GL_ARB_explicit_uniform_location" 
     "GL_ARB_blend_func_extended" 
     "GL_ARB_conditional_render_inverted" 
     "GL_AMD_vertex_shader_viewport_index" 
     "GL_EXT_blend_func_separate" 
     "GL_ARB_fragment_program_shadow" 
     "GL_EXT_draw_instanced" 
     "GL_ARB_texture_swizzle" 
     "GL_EXT_separate_specular_color" 
     "GL_EXT_abgr" 
     "GL_SGIS_generate_mipmap" 
     "GL_EXT_gpu_program_parameters" 
     "GL_EXT_framebuffer_multisample" 
     "GL_ARB_half_float_vertex" 
     "GL_ARB_buffer_storage" 
     "GL_KHR_blend_equation_advanced" 
     "GL_KHR_robust_buffer_access_behavior" 
     "GL_S3_s3tc" 
     "GL_EXT_blend_color" 
     "GL_ARB_draw_buffers_blend" 
     "GL_ARB_vertex_attrib_binding" 
     "GL_ARB_seamless_cubemap_per_texture" 
     "GL_ARB_shader_texture_image_samples" 
     "GL_NV_depth_clamp" 
     "GL_ARB_texture_view" 
     "GL_ARB_viewport_array" 
     "GL_ARB_separate_shader_objects" 
     "GL_EXT_texture_env_dot3" 
     "GL_ARB_draw_buffers" 
     "GL_NV_light_max_exponent" 
     "GL_EXT_shader_integer_mix" 
     "GL_ARB_multisample" 
     "GL_ARB_shading_language_packing" 
     "GL_ARB_texture_filter_anisotropic" 
     "GL_ATI_texture_mirror_once" 
     "GL_ARB_texture_query_levels" 
     "GL_ARB_internalformat_query" 
     "GL_ARB_shading_language_420pack" 
     "GL_MESA_pack_invert" 
     "GL_EXT_rescale_normal" 
     "GL_ARB_enhanced_layouts" 
     "GL_EXT_texture_compression_dxt1" 
     "GL_ARB_compatibility" 
     "GL_KHR_no_error" 
     "GL_EXT_packed_depth_stencil" 
     "GL_ARB_texture_cube_map" 
     "GL_ARB_vertex_buffer_object" 
     "GL_EXT_texture_buffer_object" 
     "GL_AMD_texture_texture4" 
     "GL_ARB_sample_shading" 
     "GL_ARB_internalformat_query2" 
     "GL_NV_vdpau_interop" 
     "GL_ARB_shader_image_size" 
     "GL_APPLE_packed_pixels" 
     "GL_EXT_texture3D" 
     "GL_EXT_transform_feedback" 
     "GL_ARB_arrays_of_arrays" 
     "GL_ARB_invalidate_subdata" 
     "GL_AMD_shader_stencil_export" 
     "GL_EXT_EGL_sync" 
     "GL_ARB_ES3_1_compatibility" 
     "GL_AMD_multi_draw_indirect" 
     "GL_EXT_window_rectangles" 
     "GL_EXT_packed_pixels" 
     "GL_EXT_texture_sRGB_decode" 
     "GL_OES_read_format" 
     "GL_ARB_get_program_binary" 
     "GL_KHR_parallel_shader_compile" 
     "GL_ARB_draw_instanced" 
     "GL_EXT_texture_cube_map" 
     "GL_AMD_query_buffer_object" 
     "GL_ATI_fragment_shader" 
     "GL_NV_texture_env_combine4" 
     "GL_ARB_copy_buffer" 
     "GL_ARB_sampler_objects" 
     "GL_EXT_direct_state_access" 
     "GL_ARB_transform_feedback2" 
     "GL_ARB_transform_feedback_overflow_query" 
     "GL_ARB_texture_mirror_clamp_to_edge" 
     "GL_EXT_shadow_funcs" 
     "GL_ARB_color_buffer_float" 
     "GL_EXT_gpu_shader4" 
     "GL_EXT_framebuffer_sRGB" 
     "GL_ATI_meminfo" 
     "GL_ARB_depth_clamp" 
     "GL_NV_texture_barrier" 
     "GL_EXT_shader_samples_identical" 
     "GL_ARB_pipeline_statistics_query" 
     "GL_ARB_texture_non_power_of_two" 
     "GL_ARB_query_buffer_object" 
     "GL_EXT_stencil_two_side" 
     "GL_IBM_rasterpos_clip" 
     "GL_ARB_texture_gather" 
     "GL_NV_texture_rectangle" 
     "GL_NV_compute_shader_derivatives" 
     "GL_ARB_shader_viewport_layer_array" 
     "GL_ARB_cull_distance" 
     "GL_ARB_texture_compression" 
     "GL_EXT_vertex_array" 
     "GL_ARB_framebuffer_sRGB" 
     "GL_ARB_texture_multisample" 
     "GL_NVX_gpu_memory_info" 
     "GL_ARB_vertex_type_10f_11f_11f_rev" 
     "GL_EXT_texture_compression_s3tc" 
     "GL_ARB_pixel_buffer_object" 
     "GL_ARB_multitexture" 
     "GL_AMD_pinned_memory" 
     "GL_EXT_texture_swizzle" 
     "GL_EXT_pixel_buffer_object" 
     "GL_ARB_shadow" 
     "GL_ARB_texture_env_dot3" 
     "GL_ARB_direct_state_access" 
     "GL_EXT_shader_image_load_formatted" 
     "GL_ARB_bindless_texture" 
     "GL_EXT_copy_texture" 
     "GL_EXT_memory_object" 
     "GL_EXT_compiled_vertex_array" 
     "GL_OES_EGL_image" 
     "GL_ARB_shader_image_load_store" 
     "GL_ARB_texture_rg" 
     "GL_EXT_framebuffer_multisample_blit_scaled" 
     "GL_ARB_shader_atomic_counters" 
     "GL_AMD_shader_trinary_minmax" 
     "GL_MESA_window_pos" 
     "GL_EXT_texture_mirror_clamp" 
     "GL_ARB_vertex_array_bgra" 
     "GL_ARB_texture_buffer_object" 
     "GL_ATI_blend_equation_separate" 
     "GL_EXT_bgra" 
     "GL_ARB_half_float_pixel" 
     "GL_IBM_multimode_draw_arrays" 
     "GL_NV_half_float" 
     "GL_ARB_draw_elements_base_vertex" 
     "GL_ANGLE_texture_compression_dxt3" 
     "GL_ARB_robustness" 
     "GL_EXT_stencil_wrap" 
     "GL_ARB_texture_border_clamp" 
     "GL_ARB_texture_rgb10_a2ui" 
     "GL_ARB_occlusion_query2" 
     "GL_KHR_context_flush_control" 
     "GL_ARB_derivative_control" 
     "GL_NV_primitive_restart" 
     "GL_EXT_texture_env_add" 
     "GL_KHR_texture_compression_astc_sliced_3d" 
     "GL_SGIS_texture_border_clamp" 
     "GL_KHR_robustness" 
     "GL_ARB_vertex_attrib_64bit" 
     "GL_KHR_debug" 
     "GL_AMD_framebuffer_multisample_advanced" 
     "GL_ARB_robust_buffer_access_behavior" 
     "GL_ARB_copy_image" 
     "GL_ARB_shader_objects" 
     "GL_EXT_texture_compression_latc" 
     "GL_EXT_texture_sRGB" 
     "GL_ARB_multi_draw_indirect" 
     "GL_ARB_texture_barrier" 
     "GL_EXT_texture_shadow_lod" 
     "GL_EXT_draw_range_elements" 
     "GL_ARB_map_buffer_range" 
     "GL_SUN_multi_draw_arrays" 
     "GL_ANGLE_texture_compression_dxt5" 
     "GL_ARB_polygon_offset_clamp" 
     "GL_EXT_texture_object" 
     "GL_ARB_tessellation_shader" 
     "GL_ARB_shader_ballot" 
     "GL_ARB_compute_shader" 
     "GL_ARB_texture_buffer_object_rgb32" 
     "GL_NV_texgen_reflection" 
     "GL_EXT_texture_env_combine" 
     "GL_ARB_texture_compression_bptc" 
     "GL_ARB_indirect_parameters" 
     "GL_ARB_explicit_attrib_location" 
     "GL_EXT_texture" 
     "GL_EXT_secondary_color" 
     "GL_ARB_instanced_arrays" 
     "GL_ARB_vertex_array_object" 
     "GL_ARB_shader_precision" 
     "GL_ARB_texture_buffer_range" 
     "GL_EXT_polygon_offset_clamp" 
     "GL_ARB_base_instance" 
     "GL_EXT_point_parameters" 
     "GL_INGR_blend_func_separate" 
     "GL_AMD_vertex_shader_layer" 
     "GL_ARB_texture_stencil8" 
     "GL_EXT_depth_bounds_test" 
     "GL_ARB_clear_texture" 
     "GL_NV_copy_depth_to_color" 
     "GL_ARB_provoking_vertex" 
     "GL_ARB_occlusion_query" 
     "GL_ARB_framebuffer_object" 
     "GL_EXT_multi_draw_arrays" 
     "GL_ARB_shader_clock" 
     "GL_EXT_semaphore" 
     "GL_ARB_texture_compression_rgtc" 
     "GL_EXT_texture_array" 
     "GL_MESA_texture_signed_rgba" 
     "GL_ARB_window_pos" 
     "GL_ARB_transform_feedback_instanced" 
     "GL_ATI_texture_env_combine3" 
     "GL_NV_shader_atomic_int64" 
     "GL_AMD_conservative_depth" 
     "GL_EXT_vertex_attrib_64bit" 
     "GL_ARB_shader_subroutine" 
     "GL_ARB_shader_texture_lod" 
     "GL_ARB_fragment_coord_conventions" 
     "GL_ARB_ES2_compatibility" 
     "GL_ARB_texture_storage" 
     "GL_ARB_parallel_shader_compile" 
     "GL_ATI_draw_buffers" 
     "GL_ARB_fragment_shader" 
     "GL_EXT_memory_object_fd" 
     "GL_ARB_ES3_compatibility" 
     "GL_ARB_texture_rectangle" 
     "GL_NV_fog_distance" 
     "GL_SGIS_texture_edge_clamp" 
     "GL_EXT_texture_filter_anisotropic" 
     "GL_EXT_blend_equation_separate" 
     "GL_ARB_shader_group_vote" 
     "GL_ARB_gl_spirv" 
     "GL_EXT_texture_integer" 
     "GL_INTEL_blackhole_render" 
     "GL_EXT_texture_sRGB_R8" 
     "GL_ARB_uniform_buffer_object" 
     "GL_KHR_texture_compression_astc_ldr" 
     "GL_EXT_texture_edge_clamp" 
     "GL_ARB_debug_output" 
     "GL_EXT_framebuffer_blit" 
     "GL_ARB_get_texture_sub_image" 
     "GL_EXT_semaphore_fd" 
     "GL_ARB_shading_language_include" 
     "GL_EXT_draw_buffers2" 
     "GL_EXT_texture_rectangle" 
     "GL_EXT_texture_snorm" 
     "GL_ARB_gpu_shader5" 
     "GL_EXT_blend_subtract" 
     "GL_EXT_shader_image_load_store" 
     "GL_ARB_clip_control" 
     "GL_ARB_vertex_type_2_10_10_10_rev" 
     "GL_ARB_shader_stencil_export" 
     "GL_NV_alpha_to_coverage_dither_control" 
     "GL_ARB_texture_env_combine" 
     "GL_ARB_multi_bind" 
     "GL_ARB_vertex_shader" 
     "GL_ARB_point_parameters" 
     "GL_AMD_seamless_cubemap_per_texture" 
     "GL_ARB_shading_language_100" 
     "GL_IBM_texture_mirrored_repeat" 
     "GL_ARB_stencil_texturing" 
     "GL_EXT_demote_to_helper_invocation" 
     "GL_ARB_map_buffer_alignment" 
     "GL_ARB_compressed_texture_pixel_storage" 
     "GL_ARB_gpu_shader_fp64" 
     "GL_ARB_seamless_cube_map" 
     "GL_ARB_shader_atomic_counter_ops" 
     "GL_ARB_compute_variable_group_size" 
     "GL_ARB_texture_env_add" 
     "GL_ARB_timer_query" 
     "GL_EXT_subtexture" 
     "GL_EXT_packed_float" 
     "GL_EXT_vertex_array_bgra" 
     "GL_ARB_shader_bit_encoding" 
     "GL_EXT_provoking_vertex" 
     "GL_ARB_texture_mirrored_repeat" 
     "GL_ARB_depth_texture" 
     "GL_ARB_point_sprite" 
     "GL_ARB_fragment_program" 
     "GL_ARB_draw_indirect" 
     "GL_ARB_fragment_layer_viewport" 
     "GL_ARB_shader_storage_buffer_object" 
     "GL_ATI_texture_float" 
     "GL_EXT_EGL_image_storage" 
     "GL_ATI_texture_compression_3dc" 
     "GL_ARB_transform_feedback3" 
     "GL_ATI_separate_stencil" 
     "GL_ARB_gpu_shader_int64" 
     "GL_ARB_spirv_extensions" 
     "GL_SGIS_texture_lod" 
     "GL_ARB_sync" 
     "GL_ARB_texture_cube_map_array" 
     "GL_EXT_texture_compression_rgtc" 
     "GL_NV_copy_image" 
     "GL_EXT_fog_coord" 
     "GL_AMD_depth_clamp_separate" 
     "GL_MESA_shader_integer_functions" 
     "GL_ARB_texture_query_lod" 
     "GL_MESA_framebuffer_flip_y" 
     "GL_ARB_program_interface_query" 
     "GL_ARB_texture_env_crossbar" 
     "GL_ARB_framebuffer_no_attachments" 
     "GL_ARB_shader_draw_parameters" 
     "GL_EXT_texture_shared_exponent" 
     "GL_ARB_depth_buffer_float" 
     "GL_NV_blend_square" 
     "GL_AMD_performance_monitor" 
     "GL_EXT_blend_minmax" 
     "GL_ARB_texture_storage_multisample" 
     "GL_EXT_timer_query" 
     "GL_EXT_texture_lod_bias" 
     "GL_ARB_vertex_program" 
     "GL_ARB_clear_buffer_object" 

QPA OpenGL Detection Info 
  supportsDesktopGL: true 
  supportsOpenGLES: true 
  isQtPreferOpenGLES: false 

useBufferInvalidation (config option): false


Hardware Information

  GPU Acceleration: auto
  Memory: 7952 Mb
  Number of Cores: 4
  Swap Location: /tmp

Current Settings

  Current Swap Location: /tmp
  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: TRY_OPENGL
  Autosave Interval: 240
  Use Backup Files: true
  Number of Backups Kept: 1
  Backup File Suffix: ~
  Backup Location: Same Folder as the File
  Backup Location writable: false
  Use Win8 Pointer Input: false
  Use RightMiddleTabletButton Workaround: false
  Levels of Detail Enabled: false
  Use Zip64: false


Display Information
Number of screens: 2
	Screen: 0
		Name: DVI-D-0
		Depth: 24
		Scale: 1
		Resolution in pixels: 1920x1080
		Manufacturer: HPN
		Model: HP 22w-
		Refresh Rate: 60
	Screen: 1
		Name: HDMI-A-0
		Depth: 24
		Scale: 1
		Resolution in pixels: 1920x1080
		Manufacturer: Wacom Tech
		Model: Cintiq 16-
		Refresh Rate: 60

I will try and catch a crash log

Your personal-custom keyboard shortcuts should have been kept because they are stored in the ~/.config/kritashortcutsrc file.
If you mean custom canvas input settings then yes, those are stored in the ~/.local/share/krita folder.

The appimage doesn’t produce a crash log.
You need a build with debug symbols in it and a process that I’ve only done once before and found confusing:
Getting Krita logs — Krita Manual 5.2.0 documentation

The terminal output may be useful and that’s easy to do.
Open a terminal and navigate to the folder where the appimage is.
Then type ./krita-5.0.2-x86_64.appimage as a command to run the 5.0.2 appimage.
(This is why I rename appimages to ‘krita-5.0.2’ etc, it’s easier to type.)

Now and then, look at the terminal output to see what’s happening and what looks ‘normal’. If there’s a crash, there may be some messages at the end that might give a clue as to what went wrong.

Your personal-custom keyboard shortcuts should have been kept because they are stored in the ~/.config/kritashortcutsrc file.

Oh I see, I guess I was overzealous in renaming configuration files haha. Not a big deal though.

Today I tried again with the console on, and I got it to crash. I noticed that when the program is about to crash it slows considerably, hangs for like a second, and then it crashes. After checking the console the only output related to the crash was a “Segmentation Fault (Core Dumped)”. No other information reported. So my guess is that it isn’t that helpful.

Is creating a crash log without symbols useful at all or I shouldn’t even bother? In case compiling it with debug symbols wouldn’t be a huge hassle when I get some time. And I really want to get to the bottom of this anyways haha

Segmentation fault is a pretty big ouch. That core dump could be useful perhaps. Stack trace is usually better but hard to come by without a debugger attached. You wouldn’t have to compile Krita, you could install the debug symbols separately from the repo but they don’t work with the AppImage, only the native binary. You could try attaching gdb to the running AppImage but I don’t know if that yields anything useful.

The developers can build an appimage with debug symbols in it and that would be a useful thing to provide along with the usual release.

@fullmontis Can you try this when you have the time:
With krita not running, delete ~/.config/kritadisplayrc then run krita.
In Settings → Configure Krita → Display, disable Canvas Graphics Acceleration, press OK then close krita.
Run it again and use it to see if it crashes after some use.
(Zooming will be slow and sticky with canvas acceleration disabled.)

Also, when you have time, make an isolated 4.4.8 appimage environment as follows:
Somewhere in your home folder, make a folder called Iso-krita-4.4.8 with contents as shown here:

You make the krita-4.4.8.home folder and then the appimage will see it and use it for its configuration and resources storage when you run it.

This technique makes it easy and convenient to compare different versions/configurations of krita, even running at the same time if you want to.
Now you can run 4.4.8 without any cross-coupling with 5.0.2 configs/resources to see if 4.4.8 is as crash free as you remember it.

Okay, I tried disabling the Canvas Graphics Acceleration, but it made Krita completely unusable for me, like several seconds between each zoom, so I couldn’t work with it for more than an hour. It didn’t crash during that time, but I’m not sure how indicative it is. I really can’t work with it long enough for it to crash (maybe it’s because my CPU is really old).

I ended up compiling a 5.0.2 debug krita build during lunchtime (or at least I hope I did!). This evening I tried using it with gdb to build a stack trace. It crashed, so I have the backtrace. I attached them to the post

Short backtrace: https://drive.google.com/file/d/15l14EnJnPhTIgCqgK1jjUEao083gjiuJ/view?usp=sharing
Long backtrace: https://drive.google.com/file/d/1FleV-yCbCyMgPxK0TnIidacVzku42f3k/view?usp=sharing

I will try out 4.4.8 with your configuration again tomorrow to see if it crashes too.

EDIT: like last time it crashed with segmentation fault

Thread 1 "krita" received signal SIGSEGV, Segmentation fault.
0x00007fff78d0e540 in ?? ()
1 Like

Your Radeon driver gets quite a few mentions.
Maybe it was updated around the time you upgraded krita from 4.x to 5.x?

This needs comment and advice from someone who knows about this area and knows how to read backtraces.

Your Radeon driver gets quite a few mentions.
Maybe it was updated around the time you upgraded krita from 4.x to 5.x?

I had suspicions from the start that it was probably something driver related, but I’m pretty sure it isn’t a rogue update that did this. I remember trying the 5.0 beta early because I wanted to play with the mypaint brush engine, and after it crashed like 3 times in two hours I decided to wait for the final release. Which was eventually better but was still rather unstable. I went back to 4.4.8 for a while and it felt significantly stabler.

If anything, I feel like it’s a lack of updates that may be the problem, since the LTS version I’m using is anything but cutting edge, and I’m rather lazy in updating my system :sweat_smile:

I still switched to 5.0 because some quality of life improvements like the timelapse recorder were worth standing a few crashes.

Just for confirmation, I used 4.4.8 for a few hours today, and it never crashed. I’ll use it again tomorrow just to see if it was a stroke of luck, but my hunch is that some internal change in 5.0 is triggering the crash somehow.

Well 5.0 has partially rewritten OpenGL code, to help some performance issues on macOS.
The crashing thread has nothing to do with radeonsi though, and the other threads are all idle from what I can tell.

I’m a bit clueless why KisDelayedSaveDialog is involved…though you mentioned “Select All”, there was a race condition with that action that Dmitry fixed not too long ago (Feb. 18).
Did you give Krita Plus a try yet?

Did you give Krita Plus a try yet?

I didn’t, I will give it a try today.

Also the “Select All” incident is just one occurrence, the crashes happen mostly at random, sometimes just when I zoom in, other times when I fill an area, one time it also happened when I was stroking with a brush. Which is why I couldn’t make a more detailed bug report.

Hey @fullmontis , I have a really close setup to yours; on 20.04LTS, Kubuntu Plasma, but still same kernels and drivers because I’m on Mesa too, AMD graphic card. I’m running 5.0.2appimage since weeks without a single crash.

Maybe the crash is related to something you use in layer stack or in animation (I’m not testing animation here at all) that corrupt memory. I remember I had during Krita 5 alpha a long hunt to a repetitive crash as you had; and it was related with layer visibility corrupting memory. Maybe adding animation to the equation or special layer mask… That can be a lead to something to investigate.

Also, you can get a more detailed backtrace log with starting the appimage with Gdb in a terminal:

gdb -ex=r --args /home/<usernamehere>/path/to/yourkrita.appimage

And after the crash, type on GDB prompt:

thread apply all bt

(+ ‘enter’ mulitple time)
And you’ll unscroll a detailed backtrace for developpers.

Maybe the crash is related to something you use in layer stack or in animation (I’m not testing animation here at all) that corrupt memory.

Hey Deevad! That sounds plausible, I don’t do animation but I do use a lot of layers. I’m not sure by what you mean with “layer visibility” though, do you mean like isolating or hiding layers? Cause I tend to heavily use that in case. It would make sense because usually Krita crashes when I have a lot of layers, and I can’t seem to remember cases when that happened with just one or two layers active.

Also, you can get a more detailed backtrace log with starting the appimage with Gdb in a terminal

That’s what I did with the backtrace I posted yesterday, I followed the tutorial that Ahab posted

TL;DR: I’m seeing some random hard/silent crashes too. Let me help produce some crash reports.

Some details on my 'crashing' experience so far.

Since the beggining of the year I’m not using krita that much, as I’m focused on other projects (with Python, Godot and Blender).
However this month I had to use Krita a little and strangely enough I too am encountering some silent/hard random crashes.

Always in documents with more than one layer, and with unrepeatable steps to replicate the issue. Once when I clicked Select Opaque, another when I turn off the visibility of a group, and a couple of times when making a stroke (don’t remember if a the beginning or middle stroke).
The last two times it was when I was fairly zoomed in, and I was editing some already made images. One texture in png and other image as jpeg.

My system:

AMD Ryzen 5 2400G with the integrated graphics Vega 11. 16 Gb of Ram 3200Mhz.
Pop! OS 21.10. Kernel 5.16.15-76051615-generic.
Mesa drivers 21.3.5

The Krita on the package manager still is on version 4.4.8 (Yeesh!) and the .appimage don’t have debug symbols.
For building Krita 5.0.2 should I git clone the branch master or krita/5.0?

Cheers.

@fullmontis: oh, now I see the backtrace, I missed it while reading backlog the first time, sorry. The crash I had with visibility is documented here: 444516 – Crash while painting , maybe you’ll need also a special appimage as in the thread (a ASAN build). That’s something developpers produces to hunt this type of bugs.