DR crashes with open source amdgpu driver with certain gpus
Describe the issue
DaVinci Resolve crashes with segmentation fault if using open source OpenGL driver on RX 580 GPU. However it works normal with opengl with AMD Radeon Pro W6600 GPU. See the following table:
GPU | progl | opengl |
---|---|---|
RX580 | works | crashes |
W6600 | works | works |
I would like to avoid using progl when possible. And it would be good if DR worked with opengl all the times.
Log files as attachment
When dr crashes, the ~/.local/share/DaVinciResolve/logs/ResolveDebug.txt
only contains four lines:
[0x7f9b8a16f5c0] | Main | INFO | 2022-04-04 12:53:56,282 | Running DaVinci Resolve Studio v17.4.5.0007 (Linux/Clang x86_64)
[0x7f9b8a16f5c0] | Main | INFO | 2022-04-04 12:53:56,282 | BMD_BUILD_UUID e9d6c482-f29c-4364-8e4a-d695686a5bbe
[0x7f9b8a16f5c0] | Main | INFO | 2022-04-04 12:53:56,282 | BMD_GIT_COMMIT 351707b351dc6797b3f28570da9d63b63bfdc0ed
[0x7f9b8a16f5c0] | GPUDetect | INFO | 2022-04-04 12:53:56,282 | Starting GPUDetect 1.2-a3
Any extra information would be greatly appreciated
DR requires OpenCL to run. I installed opencl-amd from aur, which combines rocm and orca implementations in one package. The orca is used on polaris gpus (in this case on rx580), and rocm on vega and onward (in this case on w6600).
I also guess this may be the DR's issue. Probably, its gpudetect function is unstable/half-broken.
System information
inxi -GSC -xx
with W6600:
System: Host: unihost Kernel: 5.17.1-arch1-1 x86_64 bits: 64 compiler: N/A Desktop: KDE Plasma 5.24.4 tk: Qt 5.15.3
wm: kwin_wayland dm: SDDM Distro: Arch Linux
CPU: Topology: 6-Core model: Intel Core i7-8700 bits: 64 type: MT MCP arch: Kaby Lake rev: A L2 cache: 12.0 MiB
flags: avx avx2 lm nx pae sse sse2 sse3 sse4_1 sse4_2 ssse3 vmx bogomips: 76831
Speed: 800 MHz min/max: 800/4600 MHz Core speeds (MHz): 1: 800 2: 800 3: 800 4: 800 5: 800 6: 800 7: 800 8: 800
9: 800 10: 800 11: 800 12: 800
Graphics: Device-1: Advanced Micro Devices [AMD/ATI] Navi 23 WKS-XL [Radeon PRO W6600] driver: amdgpu v: kernel
bus ID: 03:00.0 chip ID: 1002:73e3
Display: wayland server: X.Org 1.22.1 driver: amdgpu unloaded: modesetting alternate: ati,fbdev,vesa
compositor: kwin_wayland resolution: 1920x1080~60Hz
OpenGL: renderer: AMD Radeon Pro W6600 (dimgrey_cavefish LLVM 13.0.1 DRM 3.44 5.17.1-arch1-1) v: 4.6 Mesa 22.0.0
direct render: Yes