Bug 490260 - When drawing only small square sections of the canvas are displayed.
Summary: When drawing only small square sections of the canvas are displayed.
Status: REPORTED
Alias: None
Product: krita
Classification: Applications
Component: OpenGL Canvas (show other bugs)
Version: 5.2.2
Platform: Android Android 7.x
: NOR normal
Target Milestone: ---
Assignee: Krita Bugs
URL:
Keywords:
: 459225 (view as bug list)
Depends on:
Blocks:
 
Reported: 2024-07-14 08:50 UTC by Isla M
Modified: 2024-07-19 09:19 UTC (History)
2 users (show)

See Also:
Latest Commit:
Version Fixed In:
Sentry Crash Report:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Isla M 2024-07-14 08:50:52 UTC
***
If you're not sure this is actually a bug, instead post about it at https://discuss.kde.org

If you're reporting a crash, attach a backtrace with debug symbols; see https://community.kde.org/Guidelines_and_HOWTOs/Debugging/How_to_create_useful_crash_reports
***

SUMMARY
When drawing only small square sections of the canvas are displayed. When I rotate and scale the whole canvas comes back into view.

STEPS TO REPRODUCE
1. On Lenovo Yoga Book yb1-x90f 
2. Draw on any file, any layer
3. Rotate or Scale canvas to reset

OBSERVED RESULT
Canvas is split up into small square sections wherever the pen draws this section is only displayed, the rest of the canvas is the grey and white transparency checkerboard pattern. The full canvas comes back into view when scaling or rotating.

EXPECTED RESULT
Full canvas should be shown whilst drawing

SOFTWARE/OS VERSIONS
Windows: 
macOS: 
Linux/KDE Plasma: 
(available in About System)
KDE Plasma Version: 
KDE Frameworks Version: 
Qt Version: 

ADDITIONAL INFORMATION

Krita

 Version: 5.2.2.1 (git ef922fb)
 Hidpi: true

Qt

  Version (compiled): 5.15.7
  Version (loaded): 5.15.7

OS Information

  Build ABI: x86_64-little_endian-lp64
  Build CPU: x86_64
  CPU: x86_64
  Kernel Type: linux
  Kernel Version: 3.14.79-x86_64-g7f80a31
  Pretty Productname: Android Nougat (7.1)
  Product Type: android
  Product Version: 7.1
  Product Model: LENOVO Lenovo YB1-X90F

Locale

  Languages: en_GB, en_Latn_GB
  C locale: C
  QLocale current: en
  QLocale system: en
  QTextCodec for locale: UTF-8

OpenGL Info
 
  Vendor:  "Intel" 
  Renderer:  "Intel(R) HD Graphics for Atom(TM) x5/x7" 
  Driver version:  "OpenGL ES 3.1 - Build 4.70.10069-R" 
  Shading language:  "OpenGL ES GLSL ES 3.10 - Build 4.70.10069-R" 
  Requested format:  QSurfaceFormat(version 3.0, 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::NoProfile) 
  Current format:  QSurfaceFormat(version 3.1, 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) 
  GL version: 3.1 
  Supports deprecated functions false 
  Is OpenGL ES: true 
  supportsBufferMapping: true 
  supportsBufferInvalidation: false 
  forceDisableTextureBuffers: false 
  Extensions: 
     GL_EXT_geometry_shader 
     GL_OES_draw_elements_base_vertex 
     GL_EXT_draw_instanced 
     GL_OES_shader_io_blocks 
     GL_OES_vertex_array_object 
     GL_OES_texture_3D 
     GL_OES_texture_storage_multisample_2d_array 
     GL_OES_EGL_image 
     GL_OES_copy_image 
     GL_EXT_texture_cube_map_array 
     GL_OES_primitive_bounding_box 
     GL_EXT_multi_draw_arrays 
     GL_EXT_texture_sRGB_decode 
     GL_OES_standard_derivatives 
     GL_EXT_blend_minmax 
     GL_OES_rgb8_rgba8 
     GL_OES_fbo_render_mipmap 
     GL_EXT_read_format_bgra 
     GL_EXT_texture_border_clamp 
     GL_EXT_robustness 
     GL_EXT_shader_integer_mix 
     GL_ANDROID_extension_pack_es31a 
     GL_OES_depth24 
     GL_OES_sample_shading 
     GL_EXT_shader_texture_lod 
     GL_OES_gpu_shader5 
     GL_EXT_debug_marker 
     GL_OES_texture_half_float 
     GL_OES_vertex_half_float 
     GL_OES_element_index_uint 
     GL_INTEL_fragment_shader_ordering 
     GL_OES_compressed_paletted_texture 
     GL_KHR_blend_equation_advanced 
     GL_OES_get_program_binary 
     GL_OES_mapbuffer 
     GL_OES_texture_border_clamp 
     GL_EXT_copy_image 
     GL_OES_geometry_point_size 
     GL_EXT_shader_io_blocks 
     GL_EXT_draw_elements_base_vertex 
     GL_EXT_sRGB_write_control 
     GL_EXT_tessellation_shader 
     GL_KHR_robustness 
     GL_OES_EGL_image_external 
     GL_OES_shader_multisample_interpolation 
     GL_EXT_map_buffer_range 
     GL_OES_draw_buffers_indexed 
     GL_EXT_instanced_arrays 
     GL_OES_packed_depth_stencil 
     GL_EXT_unpack_subimage 
     GL_EXT_occlusion_query_boolean 
     GL_OES_compressed_ETC1_RGB8_texture 
     GL_EXT_disjoint_timer_query 
     GL_OES_texture_buffer 
     GL_OES_texture_cube_map_array 
     GL_EXT_color_buffer_float 
     GL_APPLE_texture_max_level 
     GL_EXT_draw_buffers_indexed 
     GL_EXT_draw_buffers 
     GL_OES_texture_float 
     GL_EXT_color_buffer_half_float 
     GL_EXT_texture_compression_dxt1 
     GL_OES_EGL_image_external_essl3 
     GL_OES_geometry_shader 
     GL_OES_texture_float_linear 
     GL_EXT_primitive_bounding_box 
     GL_EXT_texture_rg 
     GL_INTEL_performance_query 
     GL_OES_texture_half_float_linear 
     GL_EXT_shadow_samplers 
     GL_EXT_texture_storage 
     GL_OES_texture_npot 
     GL_EXT_geometry_point_size 
     GL_EXT_texture_buffer 
     GL_INTEL_tessellation 
     GL_OES_sample_variables 
     GL_OES_tessellation_shader 
     GL_KHR_debug 
     GL_EXT_texture_type_2_10_10_10_REV 
     GL_OES_depth_texture 
     GL_OES_EGL_sync 
     GL_EXT_discard_framebuffer 
     GL_INTEL_framebuffer_CMAA 
     GL_OES_required_internalformat 
     GL_EXT_texture_format_BGRA8888 
     GL_EXT_tessellation_point_size 
     GL_OES_texture_stencil8 
     GL_EXT_YUV_target 
     GL_EXT_sRGB 
     GL_OES_depth_texture_cube_map 
     GL_EXT_frag_depth 
     GL_OES_tessellation_point_size 
     GL_EXT_gpu_shader5 
     GL_INTEL_geometry_shader 
     GL_NV_polygon_mode 
     GL_EXT_texture_filter_anisotropic 
     GL_EXT_separate_shader_objects 
     GL_EXT_buffer_storage 
     GL_KHR_texture_compression_astc_ldr 
     GL_OES_surfaceless_context 
     GL_OES_shader_image_atomic 
     GL_EXT_texture_compression_s3tc 

QPA OpenGL Detection Info 
  supportsDesktopGL: false 
  supportsOpenGLES: true 
  isQtPreferOpenGLES: true 
  Detected renderers: 
    (Supported) Intel(R) HD Graphics for Atom(TM) x5/x7 (OpenGL ES 3.1 - Build 4.70.10069-R)  

useBufferInvalidation (config option): false


Hardware Information

  GPU Acceleration: auto
  Memory: 3849 Mb
  Number of Cores: 4
  Swap Location: /data/user/0/org.krita/cache
  Built for: sse4.2
  Base instruction set: sse4.1
  Supported instruction sets: sse4.2 sse4.1 ssse3 sse3 sse2 

Current Settings

  Current Swap Location: /data/user/0/org.krita/cache
  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_NOT_TRIED
  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


Display Information
Number of screens: 1
	Screen: 0
		Name: 
		Depth: 32
		Scale: 1.75
		Physical DPI129
		Logical DPI72
		Physical Size: 216, 127
		Position: 0, 0
		Resolution in pixels: 1097x645
		Manufacturer: 
		Model: 
		Refresh Rate: 60
		Serial Number: 


---------------------
================================================================================
SESSION: 14 Jul 2024 00:11:06 +0100. Executing /data/app/org.krita-1/lib/arm64/libkrita.so

Krita Version: 4.4.5, Qt version compiled: 5.12.9, loaded: 5.12.9. Process ID: 17612
-- -- -- -- -- -- -- --
14 Jul 2024 00:11:06 +0100: Style: fusion. Available styles: android, Windows, Fusion

KRITA DID NOT CLOSE CORRECTLY
================================================================================
SESSION: 14 Jul 2024 00:11:19 +0100. Executing /data/app/org.krita-1/lib/arm64/libkrita.so

Krita Version: 4.4.5, Qt version compiled: 5.12.9, loaded: 5.12.9. Process ID: 17699
-- -- -- -- -- -- -- --
14 Jul 2024 00:11:19 +0100: Style: fusion. Available styles: android, Windows, Fusion
14 Jul 2024 00:12:44 +0100: Importing application/x-krita to application/x-krita. Location: content://com.android.externalstorage.documents/document/primary%3AFurry Artcontent://com.android.externalstorage.documents/document/primary%3AFurry Art0FSheepy v1FSheepy v1. Real location: %4. Batchmode: %5
14 Jul 2024 00:12:47 +0100: Loaded image from application/x-krita. Size: 900 * 1600 pixels, 1 dpi. Color model: 8-bit integer/channel RGB/Alpha (sRGB-elle-V2-srgbtrc.icc). Layers: 3
14 Jul 2024 00:22:19 +0100: Saving Document content://com.android.externalstorage.documents/document/primary%3AFurry Art%2FSheepy v1 as content://com.android.externalstorage.documents/document/primary900AFurry Artapplication/x-kritaFSheepy v1 (mime: application/x-krita). 900 * 1600 pixels, 3 layers.  101 frames, 24 framerate. Export configuration: No configuration
14 Jul 2024 00:22:19 +0100: Create a simple backup for content://com.android.externalstorage.documents/document/primary%3AFurry Art/storage/emulated/0/Android/data/org.krita/files/Documents/krita-backupFSheepy v1 in /storage/emulated/0/Android/data/org.krita/files/Documents/krita-backup.
14 Jul 2024 00:22:20 +0100: Converting from application/x-krita to application/x-krita. Location: content://com.android.externalstorage.documents/document/primarynoneAFurry Artcontent://com.android.externalstorage.documents/document/primarynoneAFurry Art0FSheepy v1FSheepy v1. Real location: %4. Batchmode: %5. Configuration: %6
14 Jul 2024 00:22:21 +0100: Saving Document content://com.android.externalstorage.documents/document/primary%3AFurry Art%2FSheepy v1 as content://com.android.externalstorage.documents/document/primary900AFurry Artapplication/x-kritaFSheepy v1 (mime: application/x-krita). 900 * 1600 pixels, 3 layers.  101 frames, 24 framerate. Export configuration: No configuration
14 Jul 2024 00:22:21 +0100: Create a simple backup for content://com.android.externalstorage.documents/document/primary%3AFurry Art/storage/emulated/0/Android/data/org.krita/files/Documents/krita-backupFSheepy v1 in /storage/emulated/0/Android/data/org.krita/files/Documents/krita-backup.
14 Jul 2024 00:22:21 +0100: Completed saving content://com.android.externalstorage.documents/document/primaryOKAFurry Artapplication/x-kritaFSheepy v1 (mime: application/x-krita). Result: OK. Size: 588747. MD5 Hash: c2ab09e6ff6748c6df881a00a67c32e3
14 Jul 2024 00:22:21 +0100: Saving Completed
14 Jul 2024 00:22:22 +0100: Converting from application/x-krita to application/x-krita. Location: content://com.android.externalstorage.documents/document/primarynoneAFurry Artcontent://com.android.externalstorage.documents/document/primarynoneAFurry Art0FSheepy v1FSheepy v1. Real location: %4. Batchmode: %5. Configuration: %6
14 Jul 2024 00:22:23 +0100: Completed saving content://com.android.externalstorage.documents/document/primaryOKAFurry Artapplication/x-kritaFSheepy v1 (mime: application/x-krita). Result: OK. Size: 588747. MD5 Hash: 95783dfeff642af4f132c8801ed4b55f
14 Jul 2024 00:22:23 +0100: Saving Completed

KRITA DID NOT CLOSE CORRECTLY
================================================================================
SESSION: 14 Jul 2024 09:21:49 +0100. Executing /data/app/org.krita-1/lib/arm64/libkrita.so

Krita Version: 4.4.5, Qt version compiled: 5.12.9, loaded: 5.12.9. Process ID: 10142
-- -- -- -- -- -- -- --
14 Jul 2024 09:21:49 +0100: Style: fusion. Available styles: android, Windows, Fusion

KRITA DID NOT CLOSE CORRECTLY
================================================================================
SESSION: 14 Jul 2024 09:28:17 +0100. Executing /data/app/org.krita-2/lib/x86_64/libkrita_x86_64.so

Krita Version: 5.2.2.1 (git ef922fb), Qt version compiled: 5.15.7, loaded: 5.15.7. Process ID: 11194
-- -- -- -- -- -- -- --
14 Jul 2024 09:28:17 +0100: Style: fusion. Available styles: android, Windows, Fusion
14 Jul 2024 09:28:20 +0100: Creating database from scratch (database didn't exist, new schema version: 0.0.17).
14 Jul 2024 09:28:59 +0100: Created image "Unnamed", 2480 * 3508 pixels, 300 dpi. Color model: 8-bit integer/channel RGB/Alpha (sRGB-elle-V2-srgbtrc.icc). Layers: 2

--------------------
Comment 1 Isla M 2024-07-14 08:53:01 UTC
The video file is too large for an attachment so I've uploaded this to YouTube here: https://youtu.be/DLsdZMkoQNc?si=9qYEIMzWfkYpNfWM
Comment 2 Isla M 2024-07-14 09:16:22 UTC
Update: Krita 5.0.6 does not have this issue on my tablet
Comment 3 Dmitry Kazakov 2024-07-18 12:45:45 UTC
It seems like the bug is caused by a combination of partial updates functionality and the framebuffer caching. It seems like the framebuffer doesn't work on this (old) GPU. I wonder how we can address that. We will surely need a lot of testing on this particular device.
Comment 4 Isla M 2024-07-19 07:48:58 UTC
(In reply to Dmitry Kazakov from comment #3)
> It seems like the bug is caused by a combination of partial updates
> functionality and the framebuffer caching. It seems like the framebuffer
> doesn't work on this (old) GPU. I wonder how we can address that. We will
> surely need a lot of testing on this particular device.

Hello Dmirty,

It's really great ot hear that you will address this issue, especially as it's an old GPU.
I'm more than happy to test versions of the software on my device and give feedback. 😊
Comment 5 Dmitry Kazakov 2024-07-19 09:19:17 UTC
*** Bug 459225 has been marked as a duplicate of this bug. ***