049 Davinci Resolve install log

本文最后更新于:2021-04-05

Pop!_OS 20.04 LTS 安装 DaVinci Resolve 16.2.6,无法启动软件


突然想剪片了,Davinci似乎能在Linux上运行,装一个!

参考教程

第一个是Pop!_OS的官方教程,第二个是Davinci的官方教程

我用的AMD显卡,安装Davinci之前需要先装AMDGPU-Pro驱动,获得OpenCL支持

装显卡驱动

去AMD官网找显卡对应的Ubuntu系统驱动,下载下来
参考官方安装手册,运行一下

只有一个小问题,安装时,脚本提示Unsupported OS,改一下脚本

1
2
3
4
5
6
function os_release() {
if [[ -r /etc/os-release ]]; then
. /etc/os-release

case "$ID" in
ubuntu|linuxmint|debian)

这个地方
ubuntu|linuxmint|debian改称ubuntu|linuxmint|debian|pop就可以了

驱动装好,重启系统

装Davinci

Davinci原生支持CentOS,在Debian系上安装需要使用官方的MakeResolveDeb脚本,把安装包转换一下
步骤参考开头两篇官方教程就可以了,比较简单

但是!安装完成之后,不能打开
参考 MakeResolveDeb - Install DaVinci Resolve or DaVinci Resolve Studio on Debian 最后 When Resolve doesn't start at all or exits immediately的排查方案
1、2条都没有问题
第3条log日志

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
==========[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_Vega
1 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= 0
ActCCMessage Already in Table: Code= c006, Mode= 13, Level= 1, CmdKey= -1, Option= 0
ActCCMessage Already in Table: Code= c007, Mode= 13, Level= 1, CmdKey= -1, Option= 0
ActCCMessage Already in Table: Code= 2282, Mode= 0, Level= 0, CmdKey= 8, Option= 0
PnlMsgActionStringAdapter Already in Table: Code= 615e, Mode= 0, Level= 0, CmdKey= -1, Option= 0
log4cxx: No appender could be found for logger (Main).
log4cxx: Please initialize the log4cxx system properly.

搜教程

找了一个小时,终于找到篇帖子,跟我一模一样的问题
amdgpu-pro OpenCL not working on Ubuntu 20.04 – Davinci Resolve not starting
错误日志跟我的几乎一样

下面有个老哥给了一个临时的解决方案


下面为帖子 原文

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

1
2
3
4
5
#!/bin/bash
Xephyr -screen 1920x900 :6942 &
export xephyrPID=$!
env DISPLAY=:6942 /opt/resolve/bin/resolve
kill -9 $xephyrPID

it 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.


试了试这个老哥的办法,总算能打开Davinci
(但!还是不能用…..打开一个视频,只有音频轨道,没有视频轨,预览窗口也是黑屏,声音都没有
((太难了


后面也许有时间了再试试旧版本的Davinci?
(或是等新版?


本博客所有文章除特别声明外,均采用 CC BY-NC-ND 4.0协议 。转载请注明出处~