Installing DaVinci Resolve 16.2.6 on Pop!_OS 20.04 LTS, cannot start.
Suddenly wanted to edit videos. Davinci seems to run on Linux, so let’s install it!
References
- System76 - Install DaVinci Resolve
- MakeResolveDeb - Install DaVinci Resolve or DaVinci Resolve Studio on Debian
The first is the official Pop!_OS tutorial, the second is the official Davinci tutorial.
I use an AMD GPU. Before installing Davinci, I needed to install the AMDGPU-Pro driver to get OpenCL support.
Install GPU Driver
Download the Ubuntu driver package for your GPU from AMD’s website.
Follow the official install manual and run it.
Only one small problem: during install, the script said Unsupported OS. Just edit the script:
function os_release() { if [[ -r /etc/os-release ]]; then . /etc/os-release
case "$ID" in ubuntu|linuxmint|debian)Change ubuntu|linuxmint|debian to ubuntu|linuxmint|debian|pop.
After the driver is installed, reboot.
Install Davinci
Davinci natively supports CentOS. On Debian-based distros you need the official MakeResolveDeb script to convert the installer.
Just follow the two tutorials above. It’s fairly simple.
But! After installation, it still couldn’t open.
Following the troubleshooting section at the end of MakeResolveDeb - Install DaVinci Resolve or DaVinci Resolve Studio on Debian (When Resolve doesn't start at all or exits immediately), items 1 and 2 were fine.
Item 3: log:
==========[CRASH DUMP]==========Please send this to support:
#TIME 2020-MM-DD HH:MM:SS - Uptime 00:00:02 (hh:mm:ss)#PROGRAM_NAME DaVinci Resolve v16.2.6.005 (Linux/Clang)
/opt/resolve/bin/resolve() [0x550cb49]/opt/resolve/bin/resolve() [0x550c33a]/lib/x86_64-linux-gnu/libpthread.so.0(+0x153c0) [0x7fc4db38b3c0]/opt/amdgpu-pro/lib/x86_64-linux-gnu/libOpenCL.so.1(clGetDeviceInfo+0xc) [0x7fc4e1437ccc]/opt/resolve/bin/resolve() [0x60cc6ef]/opt/resolve/bin/resolve() [0x60d14b1]/opt/resolve/bin/resolve() [0x6035013]/opt/resolve/bin/resolve() [0x60350d7]/opt/resolve/bin/resolve() [0x21f911d]/opt/resolve/bin/resolve() [0x21fd65d]/lib/x86_64-linux-gnu/libpthread.so.0(+0x9609) [0x7fc4db37f609]/lib/x86_64-linux-gnu/libc.so.6(clone+0x43) [0x7fc4d8d27103]Signal Number = 11
================================[0x7fc48b8ae700] | GPUManager | INFO | 2020-MM-DD HH:MM:SS,025 | Completed prebuild of basic OpenCL kernels in 9500 msec[0x7fc48b8ae700] | GPUManager | INFO | 2020-MM-DD HH:MM:SS,025 | Entering loop to wait for commands[0x7fc48ca36700] | GPUManager | INFO | 2020-MM-DD HH:MM:SS,025 | Finished initializing OpenCL board 0 <Radeon RX Vega> on platform <AMD Accelerated Parallel Processing> clock rate <1750> multiprocessor count <64> global mem size (MB) 8176, available mem size (MB) 0, shared mem size (KB) 64, on SBM[0|0][0x7fc48ca36700] | GPUManager | INFO | 2020-MM-DD HH:MM:SS,025 | Hired OpenCL board 0 <Radeon RX Vega>[0x7fc48ca36700] | GPUManager | INFO | 2020-MM-DD HH:MM:SS,025 | Let There Be OpenCL Light, Done!!Board 0 - Radeon_RX_Vega1 REACTOR GPU NAMES = Radeon_RX_Vega,LS data handler thread starts: 8CA36700[0x7fc3ee5c3700] | CrashReport | ERROR | 2020-MM-DD HH:MM:SS,484 | Compress() : Failed to add file:/home/*/.local/share/DaVinciResolve/configs/UI.preset to archive.[0x7fc3ee5c3700] | CrashReport | ERROR | 2020-MM-DD HH:MM:SS,484 | Compress() : Failed to add file:/home/*/.local/share/DaVinciResolve/configs/config.user.xml to archive.[0x7fc3ee5c3700] | CrashReport | ERROR | 2020-MM-DD HH:MM:SS,484 | Compress() : Failed to add file:/home/*/.local/share/DaVinciResolve/Fusion/Profiles/Default/Fusion.prefs to archive.ActCCMessage Already in Table: Code= c005, Mode= 13, Level= 1, CmdKey= -1, Option= 0ActCCMessage Already in Table: Code= c006, Mode= 13, Level= 1, CmdKey= -1, Option= 0ActCCMessage Already in Table: Code= c007, Mode= 13, Level= 1, CmdKey= -1, Option= 0ActCCMessage Already in Table: Code= 2282, Mode= 0, Level= 0, CmdKey= 8, Option= 0PnlMsgActionStringAdapter Already in Table: Code= 615e, Mode= 0, Level= 0, CmdKey= -1, Option= 0log4cxx: No appender could be found for logger (Main).log4cxx: Please initialize the log4cxx system properly.Searching For A Fix
I searched for an hour and finally found a post with exactly the same issue:
amdgpu-pro OpenCL not working on Ubuntu 20.04 — Davinci Resolve not starting
The error log is almost identical to mine.
Someone in the replies gave a temporary workaround.
Below is the original post
I believe that i have the fix (More like workaround), well i tried it on pop_OS! 20.04 probably it have the same base as ubuntu 20.04
Yes, the openCl works however there is another requirement for davinci to run and that is the openGL driver.
The default openGL amdgpu driver is kind of finnicky under a specialized loadand sometimes caused gpu reset at random occourence using blender ( even though its rare ).
This problem or quirks shall i say, is also documented in Archlinux Wiki https://wiki.archlinux.org/index.php/DaVinci_Resolve
so what i’m going to do is launching Davinci Resolve by using virtual opengl rather than amdgpu opengl by launching it using xephyr
here is my script to launch the Davinci Resolve
#!/bin/bashXephyr -screen 1920x900 :6942 &export xephyrPID=$!env DISPLAY=:6942 /opt/resolve/bin/resolvekill -9 $xephyrPIDit worked for me but, there is a huge performance penalty in 3D rendering since now the UI is rendered using the CPU rather than the GPU but the effects mostly still uses openCl.
I tried that method, and Davinci finally opened.
(But!) It still wasn’t usable… Opening a video shows only the audio track, no video track; the preview window is black, no sound either.
((Too hard.
Maybe I’ll try an older version of Davinci later if I have time.
(Or wait for a newer version.)