Bug 447526 - The content cannot be deleted correctly after selection using the Contiguous Selection Tool.
Summary: The content cannot be deleted correctly after selection using the Contiguous ...
Status: RESOLVED NOT A BUG
Alias: None
Product: krita
Classification: Applications
Component: Tools/Selection (other bugs)
Version First Reported In: 5.0.0
Platform: Other Other
: NOR normal
Target Milestone: ---
Assignee: Krita Bugs
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2021-12-26 07:29 UTC by Eranthis stellata Maxim
Modified: 2021-12-26 12:06 UTC (History)
1 user (show)

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


Attachments
Screenshot of the trigger bug (93.59 KB, image/png)
2021-12-26 07:29 UTC, Eranthis stellata Maxim
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Eranthis stellata Maxim 2021-12-26 07:29:09 UTC
Created attachment 144870 [details]
Screenshot of the trigger bug

SUMMARY

The content cannot be deleted correctly after selection using the Contiguous Selection Tool. 


STEPS TO REPRODUCE
1. Paint some similar colors. 
2. Adjust the Fuzziness value of the Contiguous Selection Tool option to override them.
3. Use Contiguous Selection Tool.
4. Use the shortcut key DEL to delete. 

OBSERVED RESULT

Did not delete cleanly. 

EXPECTED RESULT

Deleted completely. 

Krita

 Version: 5.0.0
 Languages: en_US, en, en_US, en, en_US, en, en_US, en, en_US, en, en_US, en, en_US, en, en_US, en, zh_CN, zh, en_US, en
 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.19042
  Pretty Productname: Windows 10 (10.0)
  Product Type: windows
  Product Version: 10

OpenGL Info
 
  Vendor:  "Google Inc." 
  Renderer:  "ANGLE (NVIDIA GeForce GTX 970 Direct3D11 vs_5_0 ps_5_0)" 
  Version:  "OpenGL ES 3.0 (ANGLE 2.1.0.57ea533f79a7)" 
  Shading language:  "OpenGL ES GLSL ES 3.00 (ANGLE 2.1.0.57ea533f79a7)" 
  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 
  Extensions: 
     "GL_ANGLE_translated_shader_source" 
     "GL_OES_EGL_image_external_essl3" 
     "GL_OES_EGL_image" 
     "GL_EXT_blend_minmax" 
     "GL_ANGLE_lossy_etc_decode" 
     "GL_CHROMIUM_bind_generates_resource" 
     "GL_ANGLE_client_arrays" 
     "GL_EXT_map_buffer_range" 
     "GL_EXT_disjoint_timer_query" 
     "GL_OES_standard_derivatives" 
     "GL_ANGLE_program_cache_control" 
     "GL_CHROMIUM_copy_texture" 
     "GL_ANGLE_texture_usage" 
     "GL_ANGLE_texture_compression_dxt5" 
     "GL_EXT_color_buffer_float" 
     "GL_ANGLE_pack_reverse_row_order" 
     "GL_CHROMIUM_copy_compressed_texture" 
     "GL_OES_texture_npot" 
     "GL_ANGLE_depth_texture" 
     "GL_OES_packed_depth_stencil" 
     "GL_EXT_robustness" 
     "GL_OES_texture_half_float" 
     "GL_OES_vertex_array_object" 
     "GL_EXT_texture_format_BGRA8888" 
     "GL_EXT_sRGB" 
     "GL_EXT_texture_compression_s3tc_srgb" 
     "GL_EXT_color_buffer_half_float" 
     "GL_NV_EGL_stream_consumer_external" 
     "GL_OES_compressed_ETC1_RGB8_texture" 
     "GL_OES_texture_half_float_linear" 
     "GL_ANGLE_framebuffer_blit" 
     "GL_CHROMIUM_sync_query" 
     "GL_OES_get_program_binary" 
     "" 
     "GL_EXT_frag_depth" 
     "GL_EXT_occlusion_query_boolean" 
     "GL_EXT_draw_buffers" 
     "GL_KHR_debug" 
     "GL_NV_pixel_buffer_object" 
     "GL_CHROMIUM_color_buffer_float_rgb" 
     "GL_EXT_texture_compression_dxt1" 
     "GL_OES_surfaceless_context" 
     "GL_ANGLE_multiview" 
     "GL_OES_EGL_image_external" 
     "GL_EXT_texture_filter_anisotropic" 
     "GL_CHROMIUM_color_buffer_float_rgba" 
     "GL_EXT_texture_norm16" 
     "GL_OES_rgb8_rgba8" 
     "GL_NV_fence" 
     "GL_ANGLE_robust_client_memory" 
     "GL_OES_element_index_uint" 
     "GL_CHROMIUM_bind_uniform_location" 
     "GL_OES_texture_float_linear" 
     "GL_EXT_shader_texture_lod" 
     "GL_ANGLE_framebuffer_multisample" 
     "GL_OES_texture_float" 
     "GL_EXT_texture_rg" 
     "GL_ANGLE_request_extension" 
     "GL_EXT_read_format_bgra" 
     "GL_OES_depth32" 
     "GL_ANGLE_instanced_arrays" 
     "GL_OES_mapbuffer" 
     "GL_NV_pack_subimage" 
     "GL_EXT_discard_framebuffer" 
     "GL_ANGLE_texture_compression_dxt3" 
     "GL_EXT_debug_marker" 
     "GL_EXT_unpack_subimage" 
     "GL_EXT_texture_storage" 

QPA OpenGL Detection Info 
  supportsDesktopGL: true 
  supportsAngleD3D11: true 
  isQtPreferAngle: true 

useBufferInvalidation (config option): false


Hardware Information

  GPU Acceleration: auto
  Memory: 32693 Mb
  Number of Cores: 16
  Swap Location: C:/Users/xi/AppData/Local/Temp

Current Settings

  Current Swap Location: C:/Users/xi/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
  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: \\.\DISPLAY1
		Depth: 32
		Scale: 1
		Resolution in pixels: 2560x1440
		Manufacturer: 
		Model: 
		Refresh Rate: 59
	Screen: 1
		Name: \\.\DISPLAY2
		Depth: 32
		Scale: 1
		Resolution in pixels: 1920x1080
		Manufacturer: 
		Model: 
		Refresh Rate: 60

Current Settings

  Current Swap Location: C:/Users/xi/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
  Use Win8 Pointer Input: false
  Use RightMiddleTabletButton Workaround: false
  Levels of Detail Enabled: false
  Use Zip64: false



---------------------
================================================================================
SESSION: 26 Dec 2021 15:09:25 +0800. Executing C:\Program Files\Krita (x64)\bin\krita.exe

Krita Version: 5.0.0, Qt version compiled: 5.12.12, loaded: 5.12.12. Process ID: 1436
-- -- -- -- -- -- -- --
26 Dec 2021 15:09:25 +0800: Style: fusion. Available styles: windowsvista, Windows, Fusion
26 Dec 2021 15:09:40 +0800: Non-store package - creating updater
26 Dec 2021 15:15:40 +0800: CLOSING SESSION
================================================================================
SESSION: 26 Dec 2021 15:15:42 +0800. Executing C:\Program Files\Krita (x64)\bin\krita.exe

Krita Version: 5.0.0, Qt version compiled: 5.12.12, loaded: 5.12.12. Process ID: 12168
-- -- -- -- -- -- -- --
26 Dec 2021 15:15:42 +0800: Style: fusion. Available styles: windowsvista, Windows, Fusion
26 Dec 2021 15:15:44 +0800: Database is up to date. Version: 0.0.15, created by Krita 5.0.0, at 周日 12月 26 15:09:27 2021
26 Dec 2021 15:15:45 +0800: Non-store package - creating updater
26 Dec 2021 15:15:58 +0800: Created image "Unnamed", 2480 * 3508 pixels, 300 dpi. Color model: 8-bit integer/channel RGB/Alpha (sRGB-elle-V2-srgbtrc.icc). Layers: 2
26 Dec 2021 15:18:05 +0800: Created image "Unnamed", 2480 * 3508 pixels, 300 dpi. Color model: 8-bit integer/channel RGB/Alpha (sRGB-elle-V2-srgbtrc.icc). Layers: 2
26 Dec 2021 15:23:11 +0800: Exporting Document: C:/Users/xi/Desktop/Screenshot of the trigger bug.kra as application/x-krita. 1701 * 730 pixels, 5 layers, 101 frames, 24 framerate. Export configuration: No configuration
26 Dec 2021 15:23:11 +0800: Converting from application/x-krita to application/x-krita. Location: C:/Users/xi/Desktop/Screenshot of the trigger bug.kra. Real location: C:/Users/xi/Desktop/Screenshot of the trigger bug.kra. Batchmode: 0. Configuration: none
26 Dec 2021 15:23:11 +0800: Completed saving C:/Users/xi/Desktop/Screenshot of the trigger bug.kra (mime: application/x-krita). Result: OK. Warning: . Size: 522001
26 Dec 2021 15:23:11 +0800: Saving Completed
26 Dec 2021 15:23:23 +0800: Exporting Document: C:/Users/xi/Desktop/Screenshot of the trigger bug.png as image/png. 1701 * 730 pixels, 5 layers, 101 frames, 24 framerate. Export configuration: No configuration
26 Dec 2021 15:23:26 +0800: Converting from application/x-krita to image/png. Location: C:/Users/xi/Desktop/Screenshot of the trigger bug.png. Real location: C:/Users/xi/Desktop/Screenshot of the trigger bug.png. Batchmode: 0. Configuration: <!DOCTYPE params>
<params>
 <param name="alpha" type="internal">true</param>
 <param name="compression" type="internal">9</param>
 <param name="forceSRGB" type="internal">false</param>
 <param name="indexed" type="internal">false</param>
 <param name="interlaced" type="internal">false</param>
 <param name="saveAsHDR" type="internal">false</param>
 <param name="saveSRGBProfile" type="internal">false</param>
 <param name="storeAuthor" type="internal">false</param>
 <param name="storeMetaData" type="internal">false</param>
 <param name="transparencyFillcolor" type="color"><![CDATA[<!DOCTYPE color>
<color>
 <RGB r="1" space="sRGB-elle-V2-g10.icc" g="1" b="1"/>
</color>
]]></param>
</params>

26 Dec 2021 15:23:26 +0800: Completed saving C:/Users/xi/Desktop/Screenshot of the trigger bug.png (mime: image/png). Result: OK. Warning: . Size: 95840
26 Dec 2021 15:23:26 +0800: Saving Completed

---------------------
Comment 1 Ahab Greybeard 2021-12-26 10:06:51 UTC
I think that this is not a bug.
In the Tool Options docker, you have Anti-aliasing enabled which will vary the selection 'strength' depending on how similar a colour is to the one selected. (The selection is actually a mask with greyscale values.)

Please try again with Anti-aliasing turned off in the Tool Options docker.
Comment 2 Eranthis stellata Maxim 2021-12-26 11:04:28 UTC
(In reply to Ahab Greybeard from comment #1)
> I think that this is not a bug.
> In the Tool Options docker, you have Anti-aliasing enabled which will vary
> the selection 'strength' depending on how similar a colour is to the one
> selected. (The selection is actually a mask with greyscale values.)
> 
> Please try again with Anti-aliasing turned off in the Tool Options docker.

It is effective to turn off Anti-aliasing.
I still think this is a bug.

This is described in the document:
Anti-aliasing
This toggles whether or not to give selections feathered edges. Some people prefer hard-jagged edges for their selections.
https://docs.krita.org/en/reference_manual/tools/contiguous_select.html

So why is it correct to work internally?

Shouldn't it work on the selected edge?

Or is the description of the document wrong?
Comment 3 Ahab Greybeard 2021-12-26 11:44:31 UTC
The Contiguous Selection tool is the only one that has Fuzziness and Anti-aliasing.
It also creates a selection mask that has grey scale according to the amount that the colour is different from the selected point colour.
So, it can be confusing when this is first used and the effects are noticed.

The Anti-aliasing being disabled also disables the mask greyscale effect.

Anti-aliasing on other selection tools does work as stated in the manual.

If you need further discussion of this then please create a topic at https://krita-artists.org/
Comment 4 Eranthis stellata Maxim 2021-12-26 11:50:54 UTC
(In reply to Ahab Greybeard from comment #3)
> The Contiguous Selection tool is the only one that has Fuzziness and
> Anti-aliasing.
> It also creates a selection mask that has grey scale according to the amount
> that the colour is different from the selected point colour.
> So, it can be confusing when this is first used and the effects are noticed.
> 
> The Anti-aliasing being disabled also disables the mask greyscale effect.
> 
> Anti-aliasing on other selection tools does work as stated in the manual.
> 
> If you need further discussion of this then please create a topic at
> https://krita-artists.org/

Okay, thanks, I should indeed go to https://krita-artists.org/ to discuss.
Comment 5 Ahab Greybeard 2021-12-26 12:06:05 UTC
Setting to resolved: Not a bug

This can be changed at a later time if needed.