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

            Bug ID: 499036
           Summary: KWin freezes, then crashes when running Vulkan
                    applcation on AMD GPU
    Classification: Plasma
           Product: kwin
           Version: 6.2.5
          Platform: Arch Linux
                OS: Linux
            Status: REPORTED
          Keywords: drkonqi
          Severity: crash
          Priority: NOR
         Component: general
          Assignee: kwin-bugs-n...@kde.org
          Reporter: bashing.serene...@icloud.com
  Target Milestone: ---

Application: kwin_wayland (6.2.5)

ApplicationNotResponding [ANR]: false
Qt Version: 6.8.1
Frameworks Version: 6.10.0
Operating System: Linux 6.12.10-arch1-1 x86_64
Windowing System: Wayland
Distribution: "Arch Linux"
DrKonqi: 6.2.5 [CoredumpBackend]

-- Information about the crash:
For the past several months (since about October/November last year), whenever
I try to play Baldur's Gate 3 (version 4.1.1.6072089) using its Vulkan backend
on my AMD laptop, my whole session freezes. The same issue occurs when I play
with using the game's DX11 backend on DXVK (DirectX on Vulkan). The issue does
not occur when I play using DX11 on WineD3D (DirectX on OpenGL), but this
halves the framerate.

When the issue occurs, the only way I've found to unfreeze my system is to
close the lid of the laptop to lock the screen, open the lid again, wait for
KWin to crash, then wait for the login screen to appear so I can log back in.

The kernel log has some messages that might be relevant:

```
[  487.492119] amdgpu 0000:c4:00.0: [drm] *ERROR* flip_done timed out
[  487.492129] amdgpu 0000:c4:00.0: [drm] *ERROR* [CRTC:79:crtc-0] commit wait
timed out
[  497.518713] amdgpu 0000:c4:00.0: [drm] *ERROR* flip_done timed out
[  497.518722] amdgpu 0000:c4:00.0: [drm] *ERROR* [PLANE:58:plane-3] commit
wait timed out
```

Please let me know if you need any more information.

The crash can be reproduced every time.

-- Backtrace (Reduced):
#5  KWin::DrmGpu::presentationClock (this=0x89c00) at
/usr/src/debug/kwin/kwin-6.2.5/src/backends/drm/drm_gpu.cpp:138
#6  KWin::DrmGpu::pageFlipHandler (fd=19, sequence=29289, sec=518, usec=573246,
crtc_id=79, user_data=0x7a2bb8006dc0) at
/usr/src/debug/kwin/kwin-6.2.5/src/backends/drm/drm_gpu.cpp:572
#7  0x00007a2c09277f30 in drmHandleEvent (fd=19, evctx=0x7ffe0fdc2250) at
../libdrm-2.4.124/xf86drmMode.c:1070
#8  0x00007a2c0c6190ad in KWin::DrmGpu::dispatchEvents (this=<optimized out>)
at /usr/src/debug/kwin/kwin-6.2.5/src/backends/drm/drm_gpu.cpp:587
#9  0x00007a2c09bb1b29 in QtPrivate::QSlotObjectBase::call (this=<optimized
out>, r=<optimized out>, a=<optimized out>, this=<optimized out>, r=<optimized
out>, a=<optimized out>) at
/usr/src/debug/qt6-base/qtbase/src/corelib/kernel/qobjectdefs_impl.h:486


Reported using DrKonqi

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

Reply via email to