zelikos / davincibox

Container for DaVinci Resolve installation and runtime dependencies on Linux
Apache License 2.0
97 stars 4 forks source link

No playback with AMD GPUs #74

Open jannuary opened 1 month ago

jannuary commented 1 month ago

Describe the bug

Resolve Studio installs successfully, launches, but refuses to playback any media imported or created within the editor, with the playback head getting stuck.

With rusticl, the behavior is similar – but with an actual error message: Screenshot from 2024-06-05 11-15-25

Installation method used

To Reproduce

Steps to reproduce the behavior:

  1. Install and open Davinci Resolve Studio
  2. Drag a clip in the timeline, or create a title
  3. Try to playback the timeline

Expected behavior

Video playing back and appearing in the preview pane.

System information (please complete the following)

ItsRogueRen commented 3 weeks ago

I'm having the same GPU error on my RX 7700XT with the free version of Resolve. My error is almost exactly the same except the error code is -1 instead of -57

My install was also done with the setup.sh file for Resolve 18.6.5, using KDE Plasma 6 (Wayland) on Nobara 40 (Fedora based).

Is this something we will have to wait for Black Magic to fix?

zelikos commented 3 weeks ago

Moreso we're waiting on driver updates than DaVinci Resolve updates

error code -1 is happening on ROCm (AMD's official compute stack, currently the default for AMD GPUs with davincibox)

error -57 happens with Mesa's rusticl (Mesa's OpenCL, opt-in experimental option), but until recently (2-3 weeks ago) it was working fine for me, so maybe with Mesa 24.1 rusticl will be working again?

iirc, all of the reports about this issue have been on Fedora 40, so it's also possible a kernel update broke something, and this isn't solely on ROCm and rusticl

zelikos commented 3 weeks ago

ROCm is still borked, but as of Mesa 24.1.1, rusticl seems to be working with Resolve again.

Screenshot from 2024-06-15 22-30-37

Testing instructions can be found here in the README. Also be sure to run distrobox enter davincibox -- sudo dnf update to make sure Mesa is updated (I'll add a note about doing that into the README soon).

zelikos commented 2 weeks ago

As of #89, rusticl is now the default for AMD GPUs instead of ROCm, since the latter has been a frequent source of problems and even relatively newer AMD GPUs (like the RX 6000 series) aren't officially supported by ROCm.

Since rusticl is the default now, simply update davincibox and retest for this issue, no special steps required.