https://bugs.kde.org/show_bug.cgi?id=522400

            Bug ID: 522400
           Summary: Krita black screen on launch with NVIDIA GPU and
                    Wayland (EGL_BAD_MATCH 3009)
    Classification: Applications
           Product: krita
      Version First 6.0.2.1
       Reported In:
          Platform: Arch Linux
                OS: Linux
            Status: REPORTED
          Severity: crash
          Priority: NOR
         Component: OpenGL Canvas
          Assignee: [email protected]
          Reporter: [email protected]
  Target Milestone: ---

Created attachment 193851
  --> https://bugs.kde.org/attachment.cgi?id=193851&action=edit
A error log.

When launching Krita on a system with an NVIDIA discrete GPU (using the
proprietary driver) and a Wayland session (KDE Plasma), the main window remains
completely black. No UI elements or canvas content are rendered.

This issue does *not* occur when using the AMD integrated GPU (Radeon 780M) on
the same system, confirming it is specific to the NVIDIA driver/EGL
combination.

**Steps to Reproduce:**
1. Log into a Wayland session (KDE Plasma) with NVIDIA GPU active (or using
`prime-run`).
2. Launch Krita from the terminal: `krita`
3. Observe that the window opens but stays black.

**Observed Result:**
- The Krita window is black, and the application becomes unresponsive to
rendering.
- Terminal output shows errors:
```
QEGLPlatformContext: Failed to create context: 3009
Cannot find EGLConfig, returning null config
Unable to find an X11 visual which matches EGL config 0
Falling back to using screens root_visual.
Cannot find EGLConfig, returning null config
```

**Expected Result:**
- Krita should display its user interface and canvas correctly, as it does on
the AMD iGPU.

**Temporary Workarounds (with limitations):**
- Setting `QT_OPENGL=desktop` forces the use of the GLX backend, which makes
Krita work correctly. However, this is not a permanent fix, as it disables the
EGL performance improvements.
- Setting `QT_QPA_PLATFORM=wayland` also bypasses the black screen, but it
introduces a new issue: the tablet pen cursor position becomes
misaligned/erratic (likely due to the Wayland platform not being fully
supported for tablet input in this context). Therefore, this workaround is not
acceptable for production use.

**System Environment:**
- OS: (e.g., Arch Linux, kernel 6.8.9)
- Krita Version: (e.g., 6.2.2)
- KDE Plasma Version: (e.g., 6.0.5)
- Qt Version: (e.g., 6.7.2)
- NVIDIA GPU: (e.g., GeForce RTX 4070)
- NVIDIA Driver: (e.g., 610.43.02)
- Graphics Platform: Wayland (XWayland for X11 apps)

**Additional Notes:**
- The issue is reproducible consistently.
- The same Krita binary runs fine on the AMD iGPU (Radeon 780M) with EGL.
- The error code `3009` corresponds to `EGL_BAD_MATCH`, indicating that the
EGLConfig selected by Qt is incompatible with the X11 visual under the NVIDIA
driver.

**Attachments:**
- Full terminal output log.

-- 
You are receiving this mail because:
You are watching all bug changes.

Reply via email to