Bug 440494

Summary: Text Color is overwritten
Product: [Applications] krita Reporter: Nikola <okuma_10>
Component: Tool/TextAssignee: Krita Bugs <krita-bugs-null>
Status: RESOLVED NOT A BUG    
Severity: normal CC: ahab.greybeard
Priority: NOR    
Version First Reported In: nightly build (please specify the git hash!)   
Target Milestone: ---   
Platform: Compiled Sources   
OS: All   
Latest Commit: Version Fixed In:
Sentry Crash Report:
Attachments: Video Capture of issue

Description Nikola 2021-08-01 13:19:55 UTC
Created attachment 140444 [details]
Video Capture of issue

SUMMARY
Text tool automatically changing color 

STEPS TO REPRODUCE
1. Create a text 
2. Change it's color any way
3. 

OBSERVED RESULT
Changing the color in text editor is nullified after the text editor is closed. Changing the color in the `Tool Options` panel is nullified.

EXPECTED RESULT
When changing color of the text, the color to remain to the selected color.

SOFTWARE/OS VERSIONS
Krita

 Version: 5.0.0-prealpha (git eac1c71)
 Languages: en_US, en
 Hidpi: true

Qt

  Version (compiled): 5.12.11
  Version (loaded): 5.12.11

OS Information

  Build ABI: x86_64-little_endian-llp64
  Build CPU: x86_64
  CPU: x86_64
  Kernel Type: winnt
  Kernel Version: 10.0.19043
  Pretty Productname: Windows 10 (10.0)
  Product Type: windows
  Product Version: 10

OpenGL Info
 
  Vendor:  "Google Inc." 
  Renderer:  "ANGLE (Radeon RX 570 Series 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 

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

Hardware Information

  GPU Acceleration: auto
  Memory: 24532 Mb
  Number of Cores: 8
  Swap Location: C:/Users/Nikola/AppData/Local/Temp

Current Settings

  Current Swap Location: C:/Users/Nikola/AppData/Local/Temp
  Current Swap Location writable: true
  Undo Enabled: true
  Undo Stack Limit: 30
  Use OpenGL: true
  Use OpenGL Texture Buffer: true
  Canvas State: OPENGL_SUCCESS
  Autosave Interval: 300
  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: 1920x1080
		Manufacturer: 
		Model: 
		Refresh Rate: 59
	Screen: 1
		Name: \\.\DISPLAY2
		Depth: 32
		Scale: 1
		Resolution in pixels: 1024x1280
		Manufacturer: 
		Model: 
		Refresh Rate: 60

Current Settings

  Current Swap Location: C:/Users/Nikola/AppData/Local/Temp
  Current Swap Location writable: true
  Undo Enabled: true
  Undo Stack Limit: 30
  Use OpenGL: true
  Use OpenGL Texture Buffer: true
  Canvas State: OPENGL_SUCCESS
  Autosave Interval: 300
  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

Windows 6.2.9200
DrMingw 0.8.2
Comment 1 Ahab Greybeard 2021-08-07 20:57:15 UTC
I can't reproduce this with the Aug 04 5.0.0-prealpha (git 3dc6b64) on Debuan 10
Comment 2 Nikola 2021-08-10 06:33:37 UTC
I've noticed that this happens when I have the addon Pigment.IO enabled in the settings. When disabling the addon(and restarting for the change to take effect), the text tool handles the color as it should.
Tried few sessions with the addon turned `on` and `off`, and in all `on` sessions the automatic color change was there.

I've contacted the addon developer and here is his statement:

"I don’t think that is something that is for me to solve at least just yet, that seems like a PreAlpha issue I never work on Alphas because they are unstable. on 4.4.5 it is working properly as expected when I do that.

As you can see on your video you set the Orange color for the text but the color on the canvas was still on Red the whole time. So you had orange for the vector text but not for the color on the canvas as they did not match.

Pigmento nor Tela own any values, they just check them in Krita and update themselves to it, and apply if you change them. If Krita does not matches itself then Pigmento and Tela will cause issues and spiral out of control as things never match with itself. Each cycle they have ends with an apply to be double sure everything is in line."

I guess he is saying the issue is not with his addon, or at least because he does not develop for the nightly builds.
Comment 3 Ahab Greybeard 2021-08-10 07:37:37 UTC
I suggest that you turn it off when using a 5.0.0-prealpha.

If the same problem happens with 4.4.7 or with the 5.0.0-beta (expected to be released soon) then you can raise the issue at https://krita-artists.org/

I'll set this report to Resolved Not A Bug but that can be changed at some time in the future.