DaVinci Resolve 18.1 not starting any more: libDeckLinkAPI.so not found

Hello,
I’m using DaVinci Resolve Studio from the AUR. Until version 18.0.4 this works well, but since 18.1 it doesn’t start any more:

$ /opt/resolve/bin/resolve
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 (BtCommon).
log4cxx: Please initialize the log4cxx system properly.
18.1.1.0007 Linux/Clang x86_64
Main thread starts: D3FA1680
0x7f93d3fa1680 | Undefined            | INFO  | 2022-12-01 22:58:46,347 | --------------------------------------------------------------------------------
0x7f93d3fa1680 | Undefined            | INFO  | 2022-12-01 22:58:46,347 | Loaded log config from /home/myuser/.local/share/DaVinciResolve/configs/log-conf.xml
0x7f93d3fa1680 | Undefined            | INFO  | 2022-12-01 22:58:46,347 | --------------------------------------------------------------------------------

This seems to be a relatively generic error message, which doesn’t directly lead to the root cause (I found a lot of content around this in the web). The debug log located in ~/.local/share/DaVinciResolve/logs/ResolveDebug.txt shows more:

$ cat ~/.local/share/DaVinciResolve/logs/ResolveDebug.txt
0x7f93d3fa1680 | Main                 | INFO  | 2022-12-01 22:58:46,348 | Running DaVinci Resolve Studio v18.1.1.0007 (Linux/Clang x86_64)
0x7f93d3fa1680 | Main                 | INFO  | 2022-12-01 22:58:46,348 | BMD_BUILD_UUID b131bc76-9f45-4769-8c7e-a32ff3c701f4
0x7f93d3fa1680 | Main                 | INFO  | 2022-12-01 22:58:46,348 | BMD_GIT_COMMIT 846172c4eaa9099c2e2c3ab8fccadbdfada0a949
0x7f93d3fa1680 | GPUDetect            | INFO  | 2022-12-01 22:58:46,348 | Starting GPUDetect 1.2_3-a1
0x7f93d3fa1680 | GPUDetect            | INFO  | 2022-12-01 22:58:46,405 | Done in 57 ms.
0x7f93d3fa1680 | GPUDetect            | INFO  | 2022-12-01 22:58:46,405 | Detected System:
0x7f93d3fa1680 | GPUDetect            | INFO  | 2022-12-01 22:58:46,405 |   - OS: Linux Manjaro
0x7f93d3fa1680 | GPUDetect            | INFO  | 2022-12-01 22:58:46,405 |   - Model: Micro-Star X570-A PRO (MS-7C37)
0x7f93d3fa1680 | GPUDetect            | INFO  | 2022-12-01 22:58:46,405 |   - System ID: 9c3db3a9ba3b4628b3131f3e661d5001
0x7f93d3fa1680 | GPUDetect            | INFO  | 2022-12-01 22:58:46,405 |   - CPU: AMD Ryzen 9 3900X, 24 threads, x86-64
0x7f93d3fa1680 | GPUDetect            | INFO  | 2022-12-01 22:58:46,406 |   - RAM: 9.0 GiB used of 62.7 GiB
0x7f93d3fa1680 | GPUDetect            | INFO  | 2022-12-01 22:58:46,406 |   - NVIDIA GPU Driver: 520.56, supports CUDA 11.8
0x7f93d3fa1680 | GPUDetect            | INFO  | 2022-12-01 22:58:46,406 | Detected 1 GPUs:
0x7f93d3fa1680 | GPUDetect            | INFO  | 2022-12-01 22:58:46,406 |   - "NVIDIA GeForce GTX 970" (gpu:a78898ef.d1ccf9f4) <- Main Display GPU
0x7f93d3fa1680 | GPUDetect            | INFO  | 2022-12-01 22:58:46,406 |     Discrete, 1.3 GiB used of 3.8 GiB VRAM, PCI:45:0.0
0x7f93d3fa1680 | GPUDetect            | INFO  | 2022-12-01 22:58:46,406 |     Matches: CUDA, NVML, OpenCL, XOrg
0x7f93d3fa1680 | GPUDetect            | INFO  | 2022-12-01 22:58:46,406 | Detected 1 monitors:
0x7f93d3fa1680 | GPUDetect            | INFO  | 2022-12-01 22:58:46,406 |   - "Monitor" <- Main Monitor
0x7f93d3fa1680 | GPUDetect            | INFO  | 2022-12-01 22:58:46,406 |     6400x2160, connected to "NVIDIA GeForce GTX 970" (gpu:a78898ef.d1ccf9f4)
0x7f93d3fa1680 | Main.GPUConfig       | INFO  | 2022-12-01 22:58:46,406 | Compute API set to automatic, defaulting to CUDA.
0x7f93d3fa1680 | Main.GPUConfig       | INFO  | 2022-12-01 22:58:46,406 | Selected compute API: CUDA
0x7f93d3fa1680 | Main.GPUConfig       | INFO  | 2022-12-01 22:58:46,406 | Automatic GPU Selection:
0x7f93d3fa1680 | Main.GPUConfig       | INFO  | 2022-12-01 22:58:46,406 |   - "NVIDIA GeForce GTX 970" (gpu:a78898ef.d1ccf9f4)
0x7f93d3fa1680 | IO                   | INFO  | 2022-12-01 22:58:46,406 | RED InitializeSdk with library path at /opt/resolve/libs
0x7f93d3fa1680 | IO                   | INFO  | 2022-12-01 22:58:46,476 | R3DAPI 8.3.1-52407 (20220725 Lx64S) R3DSDK 8.3.1-52407 (20220725 Lx64D C3B1) RED CUDA 8.3.1-52408 (20220725) [/opt/resolve/libs/] init is successful
0x7f93d3fa1680 | Main                 | INFO  | 2022-12-01 22:58:46,476 | 0 RED rocket cards available
libDeckLinkAPI.so: Kann die Shared-Object-Datei nicht öffnen: Datei oder Verzeichnis nicht gefunden
0x7f93d3fa1680 | Main                 | INFO  | 2022-12-01 22:58:46,477 | Decklink model name: '', version: ''
0x7f93d3fa1680 | DVIP                 | INFO  | 2022-12-01 22:58:46,477 | DVIP release/18.1.1 build 4 (786f5c5d788414c587f6222d260fe196d62a6ffe). Release, version 18.1.1.
0x7f93a0aec6c0 | IO                   | INFO  | 2022-12-01 22:58:46,477 | Using DNxHR library v2.7.3.27r
0x7f937f7fe6c0 | SyManager            | ERROR | 2022-12-01 22:58:46,477 | GetProjectLibraries() - Access token is empty
0x7f93a12ed6c0 | Fusion               | INFO  | 2022-12-01 22:58:46,546 | Fusion Build: 4f23442b_0007 (Nov 22 2022 14:46:42)
0x7f93717fd6c0 | Fusion               | INFO  | 2022-12-01 22:58:46,653 | fusionsystem: = "/opt/resolve/libs/Fusion/libfusionsystem.so"
0x7f93a0aec6c0 | IO                   | INFO  | 2022-12-01 22:58:46,656 | NVDEC is using upto (504) MB
0x7f93a0aec6c0 | IO                   | INFO  | 2022-12-01 22:58:46,659 | NVDEC decodes H264, chroma 4:2:0, bitdepth 8, upto 4096 x 4096
0x7f93717fd6c0 | Fusion               | INFO  | 2022-12-01 22:58:46,660 | FusionLibs: = "/opt/resolve/libs/Fusion/"
0x7f93717fd6c0 | Fusion               | INFO  | 2022-12-01 22:58:46,660 | UserData:   = "/home/myuser/.local/share/DaVinciResolve/Fusion"
0x7f93717fd6c0 | Fusion               | INFO  | 2022-12-01 22:58:46,660 | Profiles:   = "UserData:Profiles/"


==========[CRASH DUMP]==========
#TIME Thu Dec  1 22:58:46 2022 - Uptime 00:00:00 (hh:mm:ss)
#PROGRAM_NAME DaVinci Resolve Studio v18.1.1.0007 (Linux/Clang x86_64)
#BMD_ARCHITECTURE x86_64
#BMD_BUILD_UUID b131bc76-9f45-4769-8c7e-a32ff3c701f4
#BMD_GIT_COMMIT 846172c4eaa9099c2e2c3ab8fccadbdfada0a949
#BMD_UTIL_VERSION 18.1.1.0007
#OS Linux

/opt/resolve/bin/resolve() [0x4572979]
/opt/resolve/bin/resolve() [0x4571d60]
/usr/lib/libc.so.6(+0x38a00) [0x7f93d4a51a00]
/usr/lib/libxkbcommon-x11.so.0(+0x34f4) [0x7f93dd4924f4]
/usr/lib/libxkbcommon-x11.so.0(xkb_x11_keymap_new_from_device+0xd3) [0x7f93dd492cf3]
/opt/resolve/libs/libQt5XcbQpa.so.5(+0x41ce1) [0x7f9377291ce1]
/opt/resolve/libs/libQt5XcbQpa.so.5(+0x42d2e) [0x7f9377292d2e]
/opt/resolve/libs/libQt5XcbQpa.so.5(_ZN14QXcbConnectionC1EP19QXcbNativeInterfacebjPKc+0x25e) [0x7f93772899fe]
/opt/resolve/libs/libQt5XcbQpa.so.5(_ZN15QXcbIntegrationC1ERK11QStringListRiPPc+0x479) [0x7f937728f169]
/opt/resolve/libs/plugins/platforms/libqxcb.so(+0x223b) [0x7f93d303123b]
/opt/resolve/bin/../libs/libQt5Gui.so.5(_ZN27QPlatformIntegrationFactory6createERK7QStringRK11QStringListRiPPcS2_+0xc1) [0x7f93c45c6a91]
/opt/resolve/bin/../libs/libQt5Gui.so.5(_ZN22QGuiApplicationPrivate25createPlatformIntegrationEv+0xdd5) [0x7f93c45d4605]
/opt/resolve/bin/../libs/libQt5Gui.so.5(_ZN22QGuiApplicationPrivate21createEventDispatcherEv+0x1b) [0x7f93c45d643b]
/opt/resolve/bin/../libs/libQt5Core.so.5(_ZN23QCoreApplicationPrivate4initEv+0x78d) [0x7f93c404a08d]
/opt/resolve/bin/../libs/libQt5Gui.so.5(_ZN22QGuiApplicationPrivate4initEv+0x19) [0x7f93c45cf469]
/opt/resolve/bin/../libs/libQt5Widgets.so.5(_ZN19QApplicationPrivate4initEv+0x9) [0x7f93df055e99]
/opt/resolve/bin/../libs/libQt5Widgets.so.5(_ZN12QApplicationC2ERiPPci+0xa9) [0x7f93df055e59]
/opt/resolve/bin/resolve() [0x23f0936]
/opt/resolve/bin/resolve() [0x2395718]
/opt/resolve/bin/resolve() [0x239035d]
/usr/lib/libc.so.6(+0x23290) [0x7f93d4a3c290]
/usr/lib/libc.so.6(__libc_start_main+0x8a) [0x7f93d4a3c34a]
/opt/resolve/bin/resolve() [0x238f0eb]
Signal Number = 11

================================
0x7f93a0aec6c0 | IO                   | INFO  | 2022-12-01 22:58:46,681 | Nvidia GPU (0) is initialised as decoding and encoding device.
0x7f93a0aec6c0 | IO                   | ERROR | 2022-12-01 22:58:46,681 | Error initializing ArriImageSdk Some requested platforms could not be loaded. See log for details.
0x7f93a0aec6c0 | IO                   | INFO  | 2022-12-01 22:58:46,682 | IO codec library load completed in 205 ms.
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

I think the problem is a missing library called libDeckLinkAPI.so, which seems also the case in this thread. But he has an AMD GPU, mine is from Nvidia as you can see in the logs. The diff between 18.0.4 (latest working version) and 18.1 (first non-working version) doesn’t show anything special, it seems that just the proprietary binaries of resolve were updated together with their hash.

The issue is reproduceable. When I checkout the e13935f branch (update to 18.0.4), it works.

$ git log --oneline
...
e13935f Update to version 18.0.4
...
$ git checkout e13935f .
$ makepkg -si
# Now DaVinci Resolve is working again

But if I checkout one of the 18.1 branches, it doesn’t start with the error from the logs. ldd doesn’t show that anything is missing:

$ ldd /opt/resolve/bin/resolve | grep not | wc -l
0

I can’t find much information about libDeckLinkAPI.so. It seems to be a proprietary library from Black Magic. But the desktop video package is not avaliable for resolve. According to the description, it seems only required for some capture cards to add more formats on high resolution usage. So I’m unsure if it really solve this issue or where I can get the missing library.

Some additional infos about my system (I’m using the Xfce edition if this matters, all stable updates are installed):

$ lsb_release -a
LSB Version:	n/a
Distributor ID:	ManjaroLinux
Description:	Manjaro Linux
Release:	22.0.0
Codename:	Sikaris

$ uname -a
Linux my-pc 5.15.78-1-MANJARO #1 SMP PREEMPT Thu Nov 10 20:50:09 UTC 2022 x86_64 GNU/Linux