Bug 407693 - Transparent Interface using OpenGL on Windows
Summary: Transparent Interface using OpenGL on Windows
Status: RESOLVED WORKSFORME
Alias: None
Product: krita
Classification: Applications
Component: HDR (show other bugs)
Version: 4.2.0
Platform: Microsoft Windows Microsoft Windows
: NOR normal
Target Milestone: ---
Assignee: Dmitry Kazakov
URL:
Keywords:
: 408089 412654 414166 422326 (view as bug list)
Depends on:
Blocks:
 
Reported: 2019-05-18 15:13 UTC by Rafael
Modified: 2022-09-20 10:22 UTC (History)
7 users (show)

See Also:
Latest Commit:
Version Fixed In:


Attachments
Krita 4.2-BETA transparent interface (1.97 MB, image/png)
2019-05-18 15:13 UTC, Rafael
Details
Krita 4.2.0 OpenGL (1.71 MB, image/png)
2019-05-30 23:38 UTC, Rafael
Details
Krita 4.2.0 Direct3D 11 (269.73 KB, image/png)
2019-05-30 23:40 UTC, Rafael
Details
Krita 4.2.1 OpenGL (1.67 MB, image/png)
2019-06-07 02:07 UTC, Rafael
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Rafael 2019-05-18 15:13:20 UTC
Created attachment 120170 [details]
Krita 4.2-BETA transparent interface

Hi!
I having issue in Krita interface since the HDR implement, it have some transparency there and it's impossible to paint or drawing as usual.

Krita

 Version: 4.2.0-beta
 Languages: pt_BR, en_US
 Hidpi: false

Qt

  Version (compiled): 5.12.2
  Version (loaded): 5.12.2

OS Information

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


Hardware Information

  GPU Acceleration: desktop
  Memory: 8147 Mb
  Number of Cores: 4
Comment 1 wolthera 2019-05-29 16:42:10 UTC
A similar situation was noted for Windows 7 here, but there turning off aero fixed it:

https://www.deviantart.com/comments/1/799531875/4737939621

No idea what windows 10 might have that could trigger similar behaviour.

Rafael, if you could, can you try to find information on what kind of graphics card/driver you have? There should be some opengl/angle info in the help->system information for bugreports that would be useful for instance.
Comment 2 Rafael 2019-05-30 00:35:35 UTC
As requested, here is the log from Krita 4.2.0. I turned off the "transparency effect" in Windows 10 theme color, but unfortunately doesn't works.

SESSION: 29 May 2019 21:08:02 -0300. Executing C:\Program Files\Krita (x64)\bin\krita.exe

WARNING: This file contains information about your system and the
images you have been working with.

If you have problems with Krita, the Krita developers might ask
you to share this file with them. The information in this file is
not shared automatically with the Krita developers in any way. You
can disable logging to this file in Krita's Configure Krita Dialog.

Please review the contents of this file before sharing this file with
anyone.

Krita

 Version: 4.2.0
 Languages: en_US, en_US
 Hidpi: false

Qt

  Version (compiled): 5.12.2
  Version (loaded): 5.12.2

OS Information

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


Hardware Information

  GPU Acceleration: desktop
  Memory: 8147 Mb
  Number of Cores: 4
  Swap Location: C:/Users/rafah/AppData/Local/Temp

29 May 2019 21:08:19 -0300: Importing application/x-krita to application/x-krita. Location: D:/rafah/Documents/HRK/Tattoo/T O M I E.kra. Real location: D:/rafah/Documents/HRK/Tattoo/T O M I E.kra. Batchmode: 0
29 May 2019 21:08:21 -0300: Enabled stabilizer.
29 May 2019 21:08:21 -0300: Enabled stabilizer.
29 May 2019 21:08:21 -0300: Enabled stabilizer.
29 May 2019 21:08:21 -0300: Enabled stabilizer.
29 May 2019 21:08:21 -0300: Enabled stabilizer.
29 May 2019 21:08:21 -0300: Enabled stabilizer.
29 May 2019 21:08:45 -0300: Saving Document D:/rafah/Documents/HRK/Tattoo/T O M I E.kra as D:/rafah/Documents/HRK/Tattoo/T O M I E.kra (mime: application/x-krita). 3508 * 4960 pixels, 24 layers.  101 frames, 24 framerate. Export configuration: No configuration
29 May 2019 21:08:45 -0300: Converting from application/x-krita to application/x-krita. Location: D:/rafah/Documents/HRK/Tattoo/T O M I E.kra. Real location: D:/rafah/Documents/HRK/Tattoo/T O M I E.kra. Batchmode: 0. Configuration: none
29 May 2019 21:08:47 -0300: Completed saving D:/rafah/Documents/HRK/Tattoo/T O M I E.kra (mime: application/x-krita). Result: OK
29 May 2019 21:08:50 -0300: Closing.
OpenGL Info
 
  Vendor:  "NVIDIA Corporation" 
  Renderer:  "GeForce GTX 760/PCIe/SSE2" 
  Version:  "4.6.0 NVIDIA 430.64" 
  Shading language:  "4.60 NVIDIA" 
  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 0, swapBehavior QSurfaceFormat::DoubleBuffer, swapInterval 1, colorSpace QSurfaceFormat::sRGBColorSpace, profile  QSurfaceFormat::CompatibilityProfile) 
     Version: 4.6
     Supports deprecated functions true 
     is OpenGL ES: false 

QPA OpenGL Detection Info 
  supportsDesktopGL: true 
  supportsAngleD3D11: true 
  isQtPreferAngle: false 
== log ==
 Supported renderers: QFlags(0x2|0x4) 
Surface format preference list: 
* 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) 
    QSurfaceFormat::OpenGL 
* 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) 
    QSurfaceFormat::OpenGLES 
* QSurfaceFormat(version 3.0, options QFlags<QSurfaceFormat::FormatOption>(DeprecatedFunctions), depthBufferSize 24, redBufferSize 16, greenBufferSize 16, blueBufferSize 16, alphaBufferSize 16, stencilBufferSize 8, samples -1, swapBehavior QSurfaceFormat::DoubleBuffer, swapInterval 0, colorSpace QSurfaceFormat::scRGBColorSpace, profile  QSurfaceFormat::CompatibilityProfile) 
    QSurfaceFormat::OpenGL 
* QSurfaceFormat(version 3.0, options QFlags<QSurfaceFormat::FormatOption>(DeprecatedFunctions), depthBufferSize 24, redBufferSize 10, greenBufferSize 10, blueBufferSize 10, alphaBufferSize 2, stencilBufferSize 8, samples -1, swapBehavior QSurfaceFormat::DoubleBuffer, swapInterval 0, colorSpace QSurfaceFormat::bt2020PQColorSpace, profile  QSurfaceFormat::CompatibilityProfile) 
    QSurfaceFormat::OpenGL 
* QSurfaceFormat(version 3.0, options QFlags<QSurfaceFormat::FormatOption>(DeprecatedFunctions), depthBufferSize 24, redBufferSize 16, greenBufferSize 16, blueBufferSize 16, alphaBufferSize 16, stencilBufferSize 8, samples -1, swapBehavior QSurfaceFormat::DoubleBuffer, swapInterval 0, colorSpace QSurfaceFormat::scRGBColorSpace, profile  QSurfaceFormat::CompatibilityProfile) 
    QSurfaceFormat::OpenGLES 
* QSurfaceFormat(version 3.0, options QFlags<QSurfaceFormat::FormatOption>(DeprecatedFunctions), depthBufferSize 24, redBufferSize 10, greenBufferSize 10, blueBufferSize 10, alphaBufferSize 2, stencilBufferSize 8, samples -1, swapBehavior QSurfaceFormat::DoubleBuffer, swapInterval 0, colorSpace QSurfaceFormat::bt2020PQColorSpace, profile  QSurfaceFormat::CompatibilityProfile) 
    QSurfaceFormat::OpenGLES 
Probing format... QSurfaceFormat::DefaultColorSpace QSurfaceFormat::OpenGL 
Found 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) 
    QSurfaceFormat::OpenGL 
 
== end log ==
Comment 3 wolthera 2019-05-30 03:35:19 UTC
Ah, thank you for the info!

Now we'll have to see if we can find hardware to reproduce on, or whether we can pin down what causes this.

There might be some more questions coming up.
Comment 4 Neptunian 2019-05-30 16:48:44 UTC
Question: Does it fix itself if you switch out of OpenGL or sRGB(8bit) on display settings and restart? That did it over here on windows 7...
Comment 5 Rafael 2019-05-30 23:38:50 UTC
Created attachment 120420 [details]
Krita 4.2.0 OpenGL

Krita 4.2.0 in OpenGL mode
Comment 6 Rafael 2019-05-30 23:40:52 UTC
Created attachment 120421 [details]
Krita 4.2.0 Direct3D 11

Krita 4.2.0 in Direct3D 11 mode
Comment 7 Rafael 2019-05-30 23:43:02 UTC
(In reply to Neptunian from comment #4)
> Question: Does it fix itself if you switch out of OpenGL or sRGB(8bit) on
> display settings and restart? That did it over here on windows 7...

Hi Neptunian!
I switched the "current renderer" setting to Direct3D 11 and restarted. It fixed! That's weird, because in OpenGL mode it isn't able to recognise the display format.
I have attached 2 new prints of this problem.
I don't mind using Direct3D 11, it's working normally. :)
Comment 8 Halla Rempt 2019-06-05 14:06:45 UTC
Could you check whether this works better in 4.2.1?
Comment 9 Rafael 2019-06-07 02:07:06 UTC
(In reply to Boudewijn Rempt from comment #8)
> Could you check whether this works better in 4.2.1?

It's still having same problem with OpenGL. I attached the print of 4.2.1.
Comment 10 Rafael 2019-06-07 02:07:53 UTC
Created attachment 120645 [details]
Krita 4.2.1 OpenGL
Comment 11 Bug Janitor Service 2019-06-07 04:33:08 UTC
Thanks for your comment!

Automatically switching the status of this bug to REPORTED so that the KDE team
knows that the bug is ready to get confirmed.

In the future you may also do this yourself when providing needed information.
Comment 12 Halla Rempt 2019-06-07 08:01:02 UTC
Okay, either we need to disable opengl and make angle the only option on Windows, or fix this. I've assigned the bug to Dmitry.
Comment 13 Dmitry Kazakov 2019-06-25 15:42:11 UTC
Hi, Rafael!

Could you please check if this package fixes the problem for you?

https://yadi.sk/d/xl2TNx3_IsyE5Q

It disables alpha channel of the window completely. In general, such approach doesn't work on all the systems, but in might help on yours.
Comment 14 Halla Rempt 2019-07-15 13:12:53 UTC
Please check this package!
Comment 15 Bug Janitor Service 2019-07-30 04:33:10 UTC
Dear Bug Submitter,

This bug has been in NEEDSINFO status with no change for at least
15 days. Please provide the requested information as soon as
possible and set the bug status as REPORTED. Due to regular bug
tracker maintenance, if the bug is still in NEEDSINFO status with
no change in 30 days the bug will be closed as RESOLVED > WORKSFORME
due to lack of needed information.

For more information about our bug triaging procedures please read the
wiki located here:
https://community.kde.org/Guidelines_and_HOWTOs/Bug_triaging

If you have already provided the requested information, please
mark the bug as REPORTED so that the KDE team knows that the bug is
ready to be confirmed.

Thank you for helping us make KDE software even better for everyone!
Comment 16 Bug Janitor Service 2019-08-14 04:33:11 UTC
This bug has been in NEEDSINFO status with no change for at least
30 days. The bug is now closed as RESOLVED > WORKSFORME
due to lack of needed information.

For more information about our bug triaging procedures please read the
wiki located here:
https://community.kde.org/Guidelines_and_HOWTOs/Bug_triaging

Thank you for helping us make KDE software even better for everyone!
Comment 17 Halla Rempt 2019-10-07 08:07:25 UTC
*** Bug 412654 has been marked as a duplicate of this bug. ***
Comment 18 Halla Rempt 2019-10-07 08:07:51 UTC
This still happens in 4.2.7
Comment 19 Halla Rempt 2019-11-15 10:44:18 UTC
*** Bug 414166 has been marked as a duplicate of this bug. ***
Comment 20 Halla Rempt 2019-11-15 10:46:56 UTC
*** Bug 408089 has been marked as a duplicate of this bug. ***
Comment 21 Halla Rempt 2020-06-01 12:32:17 UTC
*** Bug 422326 has been marked as a duplicate of this bug. ***
Comment 22 Halla Rempt 2022-09-20 10:22:19 UTC
Okay, this has been open for too long, too much has changed on the opengl canvas front, and nobody has reported doing any testing with Dmitry's special package. Going to close it now.