Bug 475052

Summary: Crop artefacts
Product: [Applications] krita Reporter: Vyacheslav <vyasab>
Component: * UnknownAssignee: Krita Bugs <krita-bugs-null>
Status: RESOLVED DUPLICATE    
Severity: normal CC: dimula73, ghevan
Priority: NOR    
Version: 5.1.5   
Target Milestone: ---   
Platform: macOS (DMG)   
OS: macOS   
Latest Commit: Version Fixed In:
Sentry Crash Report:
Attachments: Example of problem

Description Vyacheslav 2023-09-30 14:00:50 UTC
Created attachment 161974 [details]
Example of problem

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
***


STEPS TO REPRODUCE
1.  Open jpg file or create new document larger than 2000x2000 px.
2. Crop it to smaller.
3. Resize and drag canvas in view

OBSERVED RESULT

Broken canvas with transparent grid artefacts.

EXPECTED RESULT

Just crop of image.

SOFTWARE/OS VERSIONS
Windows: 
macOS: Sonoma 14.0 Apple M1 Pro
Linux/KDE Plasma: 
(available in About System)
KDE Plasma Version: 
KDE Frameworks Version: 
Qt Version: 

ADDITIONAL INFORMATION
Comment 1 Dmitry Kazakov 2023-10-02 07:25:44 UTC
Hi, Vyacheslav!

Could you check two things?

1) What happens if you save the image (into a backup location!) and open it again? Do the artifacts persist?
2) Could you also check if you have Canvas Graphics Acceleration enabled in Krita settings or not?

I have a feeling like this bug might be related to bug 452854...
Comment 2 Dmitry Kazakov 2023-10-02 07:26:15 UTC
Mark as waiting for info
Comment 3 Dmitry Kazakov 2023-10-02 07:32:16 UTC
The bug might also be related to bug 398689
Comment 4 Vyacheslav 2023-10-02 07:53:24 UTC
(In reply to Dmitry Kazakov from comment #1)
> Hi, Vyacheslav!
> 
> Could you check two things?
> 
> 1) What happens if you save the image (into a backup location!) and open it
> again? Do the artifacts persist?
> 2) Could you also check if you have Canvas Graphics Acceleration enabled in
> Krita settings or not?
> 
> I have a feeling like this bug might be related to bug 452854...

1) When i save image and open it again, all ok (is no artifacts). BTW to remove artefacts need just make layer hide and visible again.
2) Canvas Graphics Acceleration - enabled
Comment 5 Dmitry Kazakov 2023-10-02 08:16:33 UTC
Hi, Vyacheslav!

If you disable Canvas Graphics Acceleration, do you still have the bug?

Could you please also attach the info from Help->System Information?
Comment 6 Vyacheslav 2023-10-02 08:23:39 UTC
(In reply to Dmitry Kazakov from comment #5)
> Hi, Vyacheslav!
> 
> If you disable Canvas Graphics Acceleration, do you still have the bug?
> 
> Could you please also attach the info from Help->System Information?

If Canvas Graphics Acceleration disabled looks like all ok.

Krita

 Version: 5.1.5
 Hidpi: true

Qt

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

OS Information

  Build ABI: arm64-little_endian-lp64
  Build CPU: arm64
  CPU: arm64
  Kernel Type: darwin
  Kernel Version: 23.0.0
  Pretty Productname: macOS 14.0
  Product Type: osx
  Product Version: 14.0

Locale

  Languages: en_RU
  C locale: C
  QLocale current: en
  QLocale system: en
  QTextCodec for locale: UTF-8

OpenGL Info
 
  Vendor:  "Apple" 
  Renderer:  "Apple M1 Pro" 
  Version:  "4.1 Metal - 86" 
  Shading language:  "4.10" 
  Requested format:  QSurfaceFormat(version 3.2, options QFlags<QSurfaceFormat::FormatOption>(), depthBufferSize 24, redBufferSize 8, greenBufferSize 8, blueBufferSize 8, alphaBufferSize 8, stencilBufferSize 8, samples -1, swapBehavior QSurfaceFormat::DoubleBuffer, swapInterval 0, colorSpace QSurfaceFormat::DefaultColorSpace, profile  QSurfaceFormat::CoreProfile) 
  Current format:  QSurfaceFormat(version 4.1, options QFlags<QSurfaceFormat::FormatOption>(), depthBufferSize 32, redBufferSize 8, greenBufferSize 8, blueBufferSize 8, alphaBufferSize 8, stencilBufferSize 8, samples 0, swapBehavior QSurfaceFormat::DoubleBuffer, swapInterval 0, colorSpace QSurfaceFormat::DefaultColorSpace, profile  QSurfaceFormat::CoreProfile) 
     Version: 4.1
     Supports deprecated functions false 
     is OpenGL ES: false 
  supportsBufferMapping: true 
  supportsBufferInvalidation: false 
  forceDisableTextureBuffers: false 
  Extensions: 
     "GL_ARB_gpu_shader_fp64" 
     "GL_ARB_texture_gather" 
     "GL_EXT_framebuffer_multisample_blit_scaled" 
     "GL_ARB_texture_rgb10_a2ui" 
     "GL_EXT_debug_label" 
     "GL_ARB_separate_shader_objects" 
     "GL_ARB_shader_subroutine" 
     "GL_APPLE_client_storage" 
     "GL_EXT_texture_filter_anisotropic" 
     "GL_ARB_texture_swizzle" 
     "GL_APPLE_row_bytes" 
     "GL_ARB_sample_shading" 
     "GL_EXT_texture_compression_s3tc" 
     "GL_ARB_explicit_attrib_location" 
     "GL_ARB_instanced_arrays" 
     "GL_ARB_tessellation_shader" 
     "GL_ARB_gpu_shader5" 
     "GL_APPLE_container_object_shareable" 
     "GL_ARB_texture_buffer_object_rgb32" 
     "GL_ARB_vertex_attrib_64bit" 
     "GL_ARB_draw_buffers_blend" 
     "GL_APPLE_flush_render" 
     "GL_EXT_debug_marker" 
     "GL_ARB_ES2_compatibility" 
     "GL_NV_texture_barrier" 
     "GL_ARB_draw_indirect" 
     "GL_ARB_internalformat_query" 
     "GL_ARB_timer_query" 
     "GL_ARB_sampler_objects" 
     "GL_APPLE_rgb_422" 
     "GL_ARB_transform_feedback2" 
     "GL_ARB_transform_feedback3" 
     "GL_ARB_occlusion_query2" 
     "GL_APPLE_texture_range" 
     "GL_ARB_vertex_type_2_10_10_10_rev" 
     "GL_ARB_texture_storage" 
     "GL_EXT_texture_sRGB_decode" 
     "GL_ARB_viewport_array" 
     "GL_ARB_shader_bit_encoding" 
     "GL_ARB_texture_query_lod" 
     "GL_ARB_blend_func_extended" 
     "GL_ARB_texture_cube_map_array" 
     "GL_ARB_shading_language_include" 

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

useBufferInvalidation (config option): false


Hardware Information

  GPU Acceleration: desktop
  Memory: 16384 Mb
  Number of Cores: 8
  Swap Location: /private/var/folders/3k/cfbb23wj4973b38bqbs_n1z00000gn/T
  Built for: arm64+neon
  Base instruction set: arm64+neon
  Supported instruction sets: arm64+neon arm32+neon 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: /private/var/folders/3k/cfbb23wj4973b38bqbs_n1z00000gn/T
  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: /Users/slava/Library/Application Support/krita
  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: 2
	Screen: 0
		Name: 
		Depth: 24
		Scale: 2
		Physical DPI89.75
		Logical DPI72
		Physical Size: 600.569, 339.707
		Position: 0, 0
		Resolution in pixels: 2128x1197
		Manufacturer: 
		Model: 
		Refresh Rate: 75
	Screen: 1
		Name: 
		Depth: 24
		Scale: 2
		Physical DPI127.5
		Logical DPI72
		Physical Size: 301.214, 195.63
		Position: 304, 1197
		Resolution in pixels: 1512x982
		Manufacturer: 
		Model: 
		Refresh Rate: 120

Current Settings

  Current Swap Location: /private/var/folders/3k/cfbb23wj4973b38bqbs_n1z00000gn/T
  Current Swap Location writable: true
  Undo Enabled: true
  Undo Stack Limit: 200
  Use OpenGL: false
  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: /Users/slava/Library/Application Support/krita
  Use Win8 Pointer Input: false
  Use RightMiddleTabletButton Workaround: false
  Levels of Detail Enabled: false
  Use Zip64: false


Current Settings

  Current Swap Location: /private/var/folders/3k/cfbb23wj4973b38bqbs_n1z00000gn/T
  Current Swap Location writable: true
  Undo Enabled: true
  Undo Stack Limit: 200
  Use OpenGL: false
  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: /Users/slava/Library/Application Support/krita
  Use Win8 Pointer Input: false
  Use RightMiddleTabletButton Workaround: false
  Levels of Detail Enabled: false
  Use Zip64: false
Comment 7 Dmitry Kazakov 2023-10-02 08:51:43 UTC
Hi, Vyacheslav!

Could you please check one more thing for me? What happens if you do the following:

1) Enable Canvas Graphics Acceleration
2) Disable "Use texture buffers" option
3) Restart Krita

Does it "fix" the bug?
Comment 8 vanyossi 2023-10-02 14:33:28 UTC

*** This bug has been marked as a duplicate of bug 398689 ***