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

            Bug ID: 488381
           Summary: Java GUI applications black window on Wayland, works
                    on Plasma X11 or Gnome Wayland
    Classification: Plasma
           Product: kwin
           Version: 6.0.5
          Platform: Fedora RPMs
                OS: Linux
            Status: REPORTED
          Severity: normal
          Priority: NOR
         Component: wayland-generic
          Assignee: kwin-bugs-n...@kde.org
          Reporter: k...@copper.lt
  Target Milestone: ---

Created attachment 170390
  --> https://bugs.kde.org/attachment.cgi?id=170390&action=edit
simple java app showing a window with text in it

SUMMARY
Java GUI application shows a grey or black window instead of the window
contents on Plasma Wayland. Works well on Plasma X11 and Gnome Wayland or if
GPU acceleration is turned off for the VM.

STEPS TO REPRODUCE
1. run in CLI "java test_window.java" (the file is attached)

OBSERVED RESULT
window titled "MyPanel" opens with a completely black or grey filling, no
contents visible. Dragging the window makes it rapidly flicker between grey and
black  (still no contents visible though).

EXPECTED RESULT
window titled "MyPanel" opens and the text "Working fine." is clearly visible
in the window. Dragging the window goes smoothly, nothing flickers, the
contents do not disappear.

SOFTWARE/OS VERSIONS
macOS: Sonoma 14.5
Linux: Fedora 40 aarch64

KDE Plasma Version: 6.0.5
KDE Frameworks Version: 6.3.0
Qt Version: 6.7.1
OpenJDK Runtime Environment (Red_Hat-21.0.3.0.9-1) (build 21.0.3+9)

ADDITIONAL INFORMATION
This is happening in a Fedora 40 aarch64 VM that is run on an Apple M1 Max via
UTM (a QEMU frontend, https://mac.getutm.app). The Java version is the latest
one provided by the fedora "java" package, though it seems to behave the same
with other java versions (e.g. Jetbrains bundled java).

The emulated display card in UTM is "virtio-gpu-gl-pci (GPU Supported)". GPU
acceleration is enabled by default.
"Retina mode" (hidpi) is enabled.

Changing the emulated display card in UTM to "virtio-gpu-gl-pci" (without "GPU
Supported") fixes the issue, but then the VM lags heavily not being GPU
accelerated.
Disabling "Retina mode" does not fix the issue.

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

Reply via email to