049 DaVinci Resolve インストールログ

公開日

原文言語: 中国語 。 AI翻訳: 英語 日本語


Pop!_OS 20.04 LTS に DaVinci Resolve 16.2.6 を入れたが起動できない。


急に動画編集がしたくなった。Davinci はLinuxでも動くらしいので入れてみる!

参考教程

1つ目は Pop!_OS の公式チュートリアル、2つ目は Davinci の公式チュートリアル。

自分はAMD GPU。Davinci を入れる前に AMDGPU-Pro ドライバを入れて OpenCL を有効化する必要がある。

GPUドライバを入れる

AMD公式サイトでGPUに対応するUbuntu向けドライバを探してダウンロード。
公式のインストール手順に従って実行する。

ただ一つ問題があって、インストール中にスクリプトが Unsupported OS と出す。スクリプトを少し修正する:

Terminal window
function os_release() {
if [[ -r /etc/os-release ]]; then
. /etc/os-release
case "$ID" in
ubuntu|linuxmint|debian)

この ubuntu|linuxmint|debianubuntu|linuxmint|debian|pop に変えればOK。

ドライバを入れたら再起動。

Davinciを入れる

DavinciはCentOSをネイティブ対応。Debian系で入れるには公式の MakeResolveDeb でインストーラを変換する必要がある。
手順は冒頭の2つの公式チュートリアル通りで、難しくない。

しかし!インストール後に起動できない。
MakeResolveDeb - Install DaVinci Resolve or DaVinci Resolve Studio on Debian の最後の When Resolve doesn't start at all or exits immediately に従って調べる。
1と2は問題なし。3のログ:

Terminal window
==========[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.

チュートリアル探し

1時間探して、やっと同じ問題の投稿を見つけた:
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

#!/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を試すかもしれない。
(あるいは新版待ち)