DaVinci Resolve on Linux - Install issues

Get answers to your questions about color grading, editing and finishing with DaVinci Resolve.
  • Author
  • Message
Offline

Jeeggs

  • Posts: 3
  • Joined: Fri Nov 27, 2020 12:27 am
  • Real Name: Ric Lim

Re: DaVinci Resolve on Linux - Install issues

PostFri Nov 27, 2020 12:40 am

Heep042 wrote:I got Resolve to launch using Mesa OpenGL, and just the amdocl64 part from AMDGPU-PRO.


Just amdocl64? Would this work to install opencl only?
Code: Select all
amdgpu-pro-install --opencl=legacy,pal --headless --no-dkms


Then your code after?

Thanks
Offline
User avatar

vitaminx

  • Posts: 10
  • Joined: Thu Jun 06, 2019 12:59 pm
  • Real Name: Roman Schmidt

Re: DaVinci Resolve on Linux - Install issues

PostFri Nov 27, 2020 3:13 am

Heep042 wrote:I got Resolve to launch using Mesa OpenGL, and just the amdocl64 part from AMDGPU-PRO. Color grading seems to work, transitions work (including fusion ones). The issue was one OpenCL extension misbehaving (particularly, clGetGLContextInfoKHR), so I blacklisted it using LD_PRELOAD trick, and all the code for it can be found on my GitHub repo (h33p/resolve-amdocl-fix).

Alternatively, try this GDB script:
Code: Select all
set breakpoint pending on
b clGetGLContextInfoKHR
run
p $device_ptr = (unsigned long*)$rcx
finish
p *$device_ptr = 0
p $rax = -30
c


Wow, you're a master! That actually works for me (I mean the h33p/resolve-amdocl-fix part, I didn't try gdb) :)
I'm on Debian + Radeon Vega64 + Resolve 16 + amdgpu-pro OpenCL drivers

Thank you so much :)
Offline

Jeeggs

  • Posts: 3
  • Joined: Fri Nov 27, 2020 12:27 am
  • Real Name: Ric Lim

Re: DaVinci Resolve on Linux - Install issues

PostSat Nov 28, 2020 7:50 pm

Davinci Resolve 16 load with error dialog box: "DaVinci Resolve could not find any OpenCl capable GPUs. Would you like to review and update your DaVinci Resolve Hardware Configuration?" Quit or Update Configuration button.

I've clicked on Update Configuration button and on Media Storage System tab I can choose on drop down under GPU processing mode (of M emory and GPU) the OpenCL option. But when I try to save it tells me to add at least one media storage volume. and it just terminate. Before I could go in to Media Storage to add a folder but it also terminates after.

My config.dat file is below and shows Site.1.FS.1.Root = /Videos. Before just says HOMEDIR or something. That root Video folder have create and delete access for root. Tried running DaVinci as root but same issue.

I've added amdgpu-pro opencl only with:
Code: Select all
./amdgpu-pro-install -y --opencl=pal,legacy –headless –no-dkms


and use Heep042 fix from his github. so I run my make file that I named resolvemake
Code: Select all
make -f resolvemake


which created the amdocl_fix.so file
This is all in the path ~/Documents/DaVinci_Resolve_Fix

So for the run_resolve.sh file I've pointed LD_PRELOAD to the path

Code: Select all
LD_PRELOAD=.~/Documents/DaVinci_Resolve_Fix/amdocl_fix.so /opt/resolve/bin/resolve


My system:
Ryzen 5 3600x 16GB with RX 580 8GB
Linux Mint 20

When I first installed and run DaVinci Resolve 17 beta directly I got similar error but don't have the option to choose GPU mode. Now I can choose opencl but still terminates and media storage have nothing in it. But even with config.dat pointing to /Videos it is still blank and still prompt me to add and then terminates.

Here is part of the content of the log file.
Code: Select all
[0x7f993d348640] | Main                 | INFO  | 2020-11-28 12:17:41,630 | Running DaVinci Resolve v16.2.7.010 (Linux/Clang)
[0x7f993d348640] | Main                 | INFO  | 2020-11-28 12:17:41,631 | Updating display GPU information...
Ignoring OpenCL error -1001: 'Unspecified Error', GPUPropertiesUtilUnix.cpp:339.
[0x7f993d348640] | Main                 | INFO  | 2020-11-28 12:17:41,631 | There is no OpenCL platform
[0x7f993d348640] | Main                 | INFO  | 2020-11-28 12:17:41,631 | 0 GPUs (excluding display GPU) found. Using OpenCL for processing.
[0x7f993d348640] | Main                 | INFO  | 2020-11-28 12:17:41,631 | Not GLmap capable. GPUs: 0 discrete, 0 integrated, 0 external. Auto mapping, OpenCL processing, main display not on external GPU.
[0x7f993d348640] | Main                 | INFO  | 2020-11-28 12:17:41,631 | Setting LsManager.3.NumGPUs = 1
[0x7f993d348640] | IO                   | INFO  | 2020-11-28 12:17:41,631 | RED InitializeSdk with library path at /opt/resolve/libs
[0x7f993d348640] | IO                   | INFO  | 2020-11-28 12:17:41,676 | R3DAPI 7.3.4-47A00 (20200818 L64S) R3DSDK 7.3.4-47A00 (20200818 L64D C3B1) RED OPENCL 7.3.4-49818 (20200819) [/opt/resolve/libs/] init is successful
[0x7f993d348640] | Main                 | INFO  | 2020-11-28 12:17:41,676 | 0 RED rocket cards available
There are 1 GPUs in the system.
libDeckLinkAPI.so: cannot open shared object file: No such file or directory
[0x7f993d348640] | Main                 | INFO  | 2020-11-28 12:17:41,676 | Decklink model name: '', version: ''
[0x7f993d348640] | DVIP                 | INFO  | 2020-11-28 12:17:41,676 | DVIP Version : 16.2.7, Revision r006780-946c5d99, Branch release/16.2.7 (Release)
[0x7f993d348640] | Main                 | INFO  | 2020-11-28 12:17:41,700 | Installed custom font: Open Sans
[0x7f993d348640] | Main                 | INFO  | 2020-11-28 12:17:41,700 | Installed custom font: Open Sans
[0x7f993d348640] | Main                 | INFO  | 2020-11-28 12:17:41,700 | Installed custom font: Open Sans
[0x7f993d348640] | Main                 | INFO  | 2020-11-28 12:17:41,704 | Finished loading Application style sheet
Local.Speed.Debug switched OFF - ''
[0x7f991c67e700] | LeManager            | INFO  | 2020-11-28 12:17:41,795 | 521, 38
[0x7f993d348640] | BtCommon             | INFO  | 2020-11-28 12:17:42,313 | Memory config: reserved=6000M pinned=4000M log=0
[0x7f993d348640] | BtCommon             | INFO  | 2020-11-28 12:17:42,313 | Using default pooled memory manager
[0x7f991be7d700] | BtCommon             | INFO  | 2020-11-28 12:17:42,313 | BtResourceManager Process Thread Started
[0x7f993d348640] | BtCommon             | INFO  | 2020-11-28 12:17:42,313 | Daemon DPDecoder is started 8750
[0x7f993d348640] | BtCommon             | INFO  | 2020-11-28 12:17:42,313 | Daemon DPDecoder is started 8751
[0x7f993d348640] | BtCommon             | INFO  | 2020-11-28 12:17:42,314 | Daemon DPDecoder is started 8752
[0x7f993d348640] | BtCommon             | INFO  | 2020-11-28 12:17:42,314 | Daemon DPDecoder is started 8753
[0x7f993d348640] | BtCommon             | INFO  | 2020-11-28 12:17:42,314 | Daemon DPDecoder is started 8754
[0x7f993d348640] | BtCommon             | INFO  | 2020-11-28 12:17:42,314 | Daemon DPDecoder is started 8755
[0x7f993d348640] | BtCommon             | INFO  | 2020-11-28 12:17:42,314 | Daemon DPDecoder is started 8756
[0x7f993d348640] | BtCommon             | INFO  | 2020-11-28 12:17:42,314 | Daemon DPDecoder is started 8757
[0x7f993d348640] | SyManager            | INFO  | 2020-11-28 12:17:42,318 | Total: 20, NumDtThreads: 8, NumComms: 0, NumSites: 1

[0x7f993d348640] | SyManager            | INFO  | 2020-11-28 12:17:42,318 | Lookaheads -> playback = 20, record = 20, stop = 2

Sy High Command Handler Thread ----- (140295541331712)
SY high priority cmd handler thread starts: 19E79700
Sy Data Handler Thread ----- (140295524546304)
SY data handler thread starts: 18E77700
Sy Low Command Handler Thread ----- (140295532939008)
SY low priority cmd handler thread starts: 19678700
Gs High Command Handler Thread ----- (140295499368192)
GS high priority cmd handler thread starts: 17674700
Gs Low Command Handler Thread ----- (140295490975488)
GS low priority cmd handler thread starts: 16E73700
Dp High Command Handler Thread ----- (140295474190080)
DP high priority cmd handler thread starts: 15E71700
Dt High Command Handler Thread ----- (140295457404672)
DT high priority cmd handler thhread starts: 14E6F700
[0x7f9916672700] | GsManager            | INFO  | 2020-11-28 12:17:42,319 | Gs Processor Thread ----- (140295482582784)

Dt Low Command Handler Thread ----- (140295449011968)
Dp Low Command Handler Thread ----- (140295465797376)
DT low priority cmd handler thread starts: 1466E700
DP low priority cmd handler thread starts: 15670700
GS processor thread starts: 16672700
[0x7f993d348640] | DtManager            | INFO  | 2020-11-28 12:17:42,319 | Using 8 generic IO threads
Local.Speed.Verbose switched OFF - ''
[0x7f993d348640] | DtManager            | INFO  | 2020-11-28 12:17:42,319 | Total of 16 IO threads (including 8 generic and 8 Red decode threads)
[0x7f9913e6d700] | DtManager            | INFO  | 2020-11-28 12:17:42,319 | Dt Data Handler Thread Started
DT data handler thread starts: 13E6D700
[0x7f991366c700] | DtManager            | INFO  | 2020-11-28 12:17:42,319 | Dt Worker Thread Started
[0x7f9917e75700] | SyManager            | ERROR | 2020-11-28 12:17:42,319 | Failed to connect to panel socket
[0x7f9910666700] | DtManager            | INFO  | 2020-11-28 12:17:42,319 | Dt Worker Thread Started
[0x7f9911e69700] | DtManager            | INFO  | 2020-11-28 12:17:42,319 | Dt Worker Thread Started
[0x7f991266a700] | DtManager            | INFO  | 2020-11-28 12:17:42,319 | Dt Worker Thread Started
[0x7f990ce5f700] | DtManager            | INFO  | 2020-11-28 12:17:42,319 | Dt Worker Thread Started
[0x7f9917e75700] | SyManager            | ERROR | 2020-11-28 12:17:42,319 | DRIVER: open /var/tmp/davinci_socket failed
[0x7f990fe65700] | DtManager            | INFO  | 2020-11-28 12:17:42,319 | Dt Worker Thread Started
Ls High Command Handler Thread ----- (140295281157888)
Ls Low Command Handler Thread ----- (140295272765184)
LS low priority cmd handler thread starts: 09E59700
[0x7f990e662700] | DtManager            | INFO  | 2020-11-28 12:17:42,319 | Dt Worker Thread Started
Ls Data Handler Thread ----- (140295264372480)
Ls High Command Handler Thread ----- (140295255979776)
Ls Low Command Handler Thread ----- (140295247587072)
Ls Data Handler Thread ----- (140295239194368)
LS low priority cmd handler thread starts: 08656700
LS data handler thread starts: 09658700
[0x7f990f664700] | DtManager            | INFO  | 2020-11-28 12:17:42,319 | Dt Worker Thread Started
LS data handler thread starts: 07E55700
Ls High Command Handler Thread ----- (140295230801664)
Ls Data Handler Thread ----- (140295214016256)
Ls Low Command Handler Thread ----- (140295222408960)
Mem Data Transmitter Thread ----- (140295205623552)
[0x7f9912e6b700] | DtManager            | INFO  | 2020-11-28 12:17:42,319 | Dt Worker Thread Started
LS low priority cmd handler thread starts: 06E53700
Mem data transmitter thread starts: 05E51700
[0x7f9906652700] | GPUManager           | INFO  | 2020-11-28 12:17:42,319 | Let There Be OpenCL Light!
[0x7f9910e67700] | DtManager            | INFO  | 2020-11-28 12:17:42,319 | Dt Worker Thread Started
[0x7f990d660700] | DtManager            | INFO  | 2020-11-28 12:17:42,319 | Dt Worker Thread Started
[0x7f9911668700] | DtManager            | INFO  | 2020-11-28 12:17:42,319 | Dt Worker Thread Started
[0x7f990c65e700] | DtManager            | INFO  | 2020-11-28 12:17:42,319 | Dt Worker Thread Started
[0x7f990be5d700] | DtManager            | INFO  | 2020-11-28 12:17:42,319 | Dt Worker Thread Started
[0x7f990b65c700] | DtManager            | INFO  | 2020-11-28 12:17:42,319 | Dt Worker Thread Started
[0x7f990ee63700] | DtManager            | INFO  | 2020-11-28 12:17:42,319 | Dt Worker Thread Started
[0x7f990ae5b700] | DtManager            | INFO  | 2020-11-28 12:17:42,319 | Dt Worker Thread Started
[0x7f993d348640] | DbCommon2            | INFO  | 2020-11-28 12:17:42,319 | Loading dblist file: /root/.local/share/DaVinciResolve/configs/.dblist
[0x7f990de61700] | DtManager            | INFO  | 2020-11-28 12:17:42,319 | Dt Worker Thread Started
[0x7f9906652700] | GPUManager           | INFO  | 2020-11-28 12:17:42,324 | Start detecting OpenCL boards
Ignoring OpenCL error -1001: 'Unspecified Error', OpenCLBoardManager.cpp:232.
[0x7f9906652700] | GPUManager           | WARN  | 2020-11-28 12:17:42,324 | There is no OpenCL platform
[0x7f9906652700] | GPUManager           | INFO  | 2020-11-28 12:17:42,324 | 0 OpenCL boards detected
Urgent message: CRITICAL_PREF: DaVinci Resolve could not find any OpenCL capable GPUs. Would you like to review and update your DaVinci Resolve Hardware Configuration? ||Please ensure that appropriate GPU drivers are installed and your DaVinci Resolve hardware is configured appropriately.
[0x7f9906652700] | GPUManager           | ERROR | 2020-11-28 12:17:42,324 | CRITICAL_PREF: DaVinci Resolve could not find any OpenCL capable GPUs. Would you like to review and update your DaVinci Resolve Hardware Configuration? ||Please ensure that appropriate GPU drivers are installed and your DaVinci Resolve hardware is configured appropriately.
[0x7f9906652700] | IP                   | ERROR | 2020-11-28 12:17:42,324 | Failed to initialize OpenCL boards
LS data handler thread starts: 06652700
/opt/resolve/bin/BlackmagicRawAPI/libBlackmagicRawAPI.so: cannot open shared object file: No such file or directory
/opt/resolve/bin/libBlackmagicRawAPI.so: cannot open shared object file: No such file or directory
[0x7f993d348640] | IO                   | INFO  | 2020-11-28 12:17:42,328 | Using DNxHR library v2.5.2.68r
[0x7f993d348640] | IO                   | INFO  | 2020-11-28 12:17:42,331 | Kdu ctx(0), bundle(0), thds(2)
[0x7f993d348640] | IO                   | INFO  | 2020-11-28 12:17:42,331 | Kdu ctx(2), bundle(0), thds(2)
[0x7f993d348640] | IO                   | INFO  | 2020-11-28 12:17:42,331 | Kdu ctx(4), bundle(0), thds(2)
[0x7f993d348640] | IO                   | INFO  | 2020-11-28 12:17:42,331 | Kdu ctx(6), bundle(0), thds(2)
[0x7f993d348640] | IO                   | INFO  | 2020-11-28 12:17:42,331 | Kdu ctx(8), bundle(0), thds(1)
[0x7f993d348640] | IO                   | INFO  | 2020-11-28 12:17:42,331 | Kdu ctx(9), bundle(0), thds(1)
[0x7f993d348640] | IO                   | INFO  | 2020-11-28 12:17:42,331 | Kdu ctx(10), bundle(0), thds(1)
[0x7f993d348640] | IO                   | INFO  | 2020-11-28 12:17:42,331 | Kdu ctx(11), bundle(0), thds(1)
ALSA lib pcm_dmix.c:1089:(snd_pcm_dmix_open) unable to open slave

MidiInDummy: This class provides no functionality.


MidiOutDummy: This class provides no functionality.

ALSA lib pcm_dmix.c:1089:(snd_pcm_dmix_open) unable to open slave

about 48 lines of the ALSA error.

Continuation of the log file:
Code: Select all
[0x7f993d348640] | Fairlight            | INFO  | 2020-11-28 12:17:43,529 | 00.00.00.872(000): Running Fairlight (r001014-43fe498b)
[0x7f993d348640] | UI.GLContext         | INFO  | 2020-11-28 12:17:43,537 | Creating shared OpenGL context for this thread (2 total).
[0x7f993d348640] | UI.GLContext         | INFO  | 2020-11-28 12:17:43,538 | Initialized OpenGL 4.6 (requested 2.0) on device 'X.Org Radeon RX 580 Series (POLARIS10, DRM 3.35.0, 5.4.0-26-generic, LLVM 10.0.0)'
ALSA lib pcm_dmix.c:1089:(snd_pcm_dmix_open) unable to open slave
ALSA lib pcm_dmix.c:1089:(snd_pcm_dmix_open) unable to open slave
ALSA lib pcm_dmix.c:1089:(snd_pcm_dmix_open) unable to open slave
ALSA lib pcm_dmix.c:1089:(snd_pcm_dmix_open) unable to open slave
ALSA lib pcm_dmix.c:1089:(snd_pcm_dmix_open) unable to open slave
ALSA lib pcm_dmix.c:1089:(snd_pcm_dmix_open) unable to open slave
All textures are loaded : 1.
[0x7f993d348640] | Fusion               | INFO  | 2020-11-28 12:17:43,688 | Fusion Build: r067722-ef6f045d_004 (Sep 15 2020 11:32:26)
[0x7f993d348640] | Fusion               | INFO  | 2020-11-28 12:17:43,688 | fusionsystem: = "/opt/resolve/libs/Fusion/libfusionsystem.so"
[0x7f993d348640] | Fusion               | INFO  | 2020-11-28 12:17:43,692 | FusionLibs: = "/opt/resolve/libs/Fusion/"
[0x7f993d348640] | Fusion               | INFO  | 2020-11-28 12:17:43,692 | UserData:   = "/root/.local/share/DaVinciResolve/Fusion"
[0x7f993d348640] | Fusion               | INFO  | 2020-11-28 12:17:43,692 | Profiles:   = "UserData:Profiles/"
ERROR: ld.so: object '.~/Documents/DaVinci_Resolve_Fix/amdocl_fix.so' from LD_PRELOAD cannot be preloaded (cannot open shared object file): ignored.

That ERROR ld.so repeated about seven more times followed by the ALSA error again for several more times.
then:
Code: Select all
[0x7f9860a10700] | UI.GLContext         | INFO  | 2020-11-28 12:17:43,766 | Creating shared OpenGL context for this thread (3 total).
[0x7f9860a10700] | DVIP                 | ERROR | 2020-11-28 12:17:43,769 | DeviceContextInterface.cpp:40: DVIP Exception: OpenCL error
 - API: OpenCL
 - API Error Code: Unknown CL error. (-1001)
 - Call stack:
     /opt/resolve/bin/resolve() [0x604f8f4]
     /opt/resolve/bin/resolve() [0x602bdcd]
     /opt/resolve/bin/resolve() [0x6044f84]
     /opt/resolve/bin/resolve() [0x60d2687]
     /opt/resolve/bin/resolve() [0x60d24b0]
     /opt/resolve/bin/resolve() [0x6036143]
     /opt/resolve/bin/resolve() [0x6036207]
     /opt/resolve/bin/resolve() [0x21f902d]
     /opt/resolve/bin/resolve() [0x21fd56d]
     /lib/x86_64-linux-gnu/libpthread.so.0(+0x9609) [0x7f994deb2609]

[0x7f9860a10700] | UI.GLIO              | ERROR | 2020-11-28 12:17:43,769 | Failed to create DVIP context.
[0x7f993d348640] | UI.GLIO              | ERROR | 2020-11-28 12:17:43,769 | Failed to initialize worker thread.
[0x7f993d348640] | Undefined            | ERROR | 2020-11-28 12:17:43,769 | Failed to initialize GPU Scopes, OpenGL Interop or GLIO is required.
ALSA lib pcm_dmix.c:1089:(snd_pcm_dmix_open) unable to open slave
ALSA lib pcm_dmix.c:1089:(snd_pcm_dmix_open) unable to open slave
[0x7f993d348640] | UI                   | ERROR | 2020-11-28 12:17:43,799 | Failed to find text 'Apple ProRes' in combo-box
[0x7f993d348640] | UI                   | WARN  | 2020-11-28 12:17:43,799 | Failed to find value '0' in combo-box
ALSA lib pcm_dmix.c:1089:(snd_pcm_dmix_open) unable to open slave
ALSA lib pcm_dmix.c:1089:(snd_pcm_dmix_open) unable to open slave
ALSA lib pcm_dmix.c:1089:(snd_pcm_dmix_open) unable to open slave
ALSA lib pcm_dmix.c:1089:(snd_pcm_dmix_open) unable to open slave
ALSA lib pcm_dmix.c:1089:(snd_pcm_dmix_open) unable to open slave
ALSA lib pcm_dmix.c:1089:(snd_pcm_dmix_open) unable to open slave
libScannerAPI.so: cannot open shared object file: No such file or directory
ALSA lib pcm_dmix.c:1089:(snd_pcm_dmix_open) unable to open slave
[0x7f993d348640] | DbCommon2            | INFO  | 2020-11-28 12:17:43,898 | Sm2SysIdEntry is not supported in disk database (xml) mode
ALSA lib pcm_dmix.c:1089:(snd_pcm_dmix_open) unable to open slave
ALSA lib pcm_dmix.c:1089:(snd_pcm_dmix_open) unable to open slave
SY panel handler thread starts: 17E75700
[0x7f9917e75700] | SyManager            | ERROR | 2020-11-28 12:17:43,921 | Failed to connect to panel socket
ALSA lib pcm_dmix.c:1089:(snd_pcm_dmix_open) unable to open slave
ALSA lib pcm_dmix.c:1089:(snd_pcm_dmix_open) unable to open slave
ALSA lib pcm_dmix.c:1089:(snd_pcm_dmix_open) unable to open slave
ALSA lib pcm_dmix.c:1089:(snd_pcm_dmix_open) unable to open slave
ALSA lib pcm_dmix.c:1089:(snd_pcm_dmix_open) unable to open slave
ALSA lib pcm_dmix.c:1089:(snd_pcm_dmix_open) unable to open slave
ALSA lib pcm_dmix.c:1089:(snd_pcm_dmix_open) unable to open slave
ALSA lib pcm_dmix.c:1089:(snd_pcm_dmix_open) unable to open slave
ALSA lib pcm_dmix.c:1089:(snd_pcm_dmix_open) unable to open slave
ALSA lib pcm_dmix.c:1089:(snd_pcm_dmix_open) unable to open slave
ALSA lib pcm_dmix.c:1089:(snd_pcm_dmix_open) unable to open slave
ALSA lib pcm_dmix.c:1089:(snd_pcm_dmix_open) unable to open slave
ALSA lib pcm_dmix.c:1089:(snd_pcm_dmix_open) unable to open slave
ALSA lib pcm_dmix.c:1089:(snd_pcm_dmix_open) unable to open slave
ALSA lib pcm_dmix.c:1089:(snd_pcm_dmix_open) unable to open slave
ALSA lib pcm_dmix.c:1089:(snd_pcm_dmix_open) unable to open slave
ALSA lib pcm_dmix.c:1089:(snd_pcm_dmix_open) unable to open slave
[0x7f993d348640] | UI                   | WARN  | 2020-11-28 12:17:44,169 | Failed to load media metadata preset list or the list is empty.
[0x7f993d348640] | UI                   | WARN  | 2020-11-28 12:17:44,174 | Failed to load media metadata preset list or the list is empty.
ALSA lib pcm_dmix.c:1089:(snd_pcm_dmix_open) unable to open slave
ALSA lib pcm_dmix.c:1089:(snd_pcm_dmix_open) unable to open slave
ALSA lib pcm_dmix.c:1089:(snd_pcm_dmix_open) unable to open slave
ALSA lib pcm_dmix.c:1089:(snd_pcm_dmix_open) unable to open slave
ALSA lib pcm_dmix.c:1089:(snd_pcm_dmix_open) unable to open slave


Same error repeating over and over and other than the ALSA lines repeated other lines includes the following (i've condensed and removed the long lines of repetitive ALSA error):
Code: Select all
[0x7f993d348640] | UI                   | INFO  | 2020-11-28 12:17:45,460 | Not creating special GL widget for screen 0
ALSA lib pcm_dmix.c:1089:(snd_pcm_dmix_open) unable to open slave
ALSA lib pcm_dmix.c:1089:(snd_pcm_dmix_open) unable to open slave
[0x7f993d348640] | UI.ActionManager     | WARN  | 2020-11-28 12:17:45,685 | Action [sessionDolbyVisionAnalyzeAllShots] is not a valid global action
[0x7f993d348640] | UI.ActionManager     | WARN  | 2020-11-28 12:17:45,685 | Action [sessionDolbyVisionAnalyzeSelectedShots] is not a valid global action
[0x7f993d348640] | UI.ActionManager     | WARN  | 2020-11-28 12:17:45,685 | Action [sessionDolbyVisionAnalyzeSelectedAndGroup] is not a valid global action
[0x7f993d348640] | UI.ActionManager     | WARN  | 2020-11-28 12:17:45,685 | Action [sessionDolbyVisionAnalyzeCurrentFrame] is not a valid global action
[0x7f993d348640] | UI.ActionManager     | WARN  | 2020-11-28 12:17:45,685 | Action [sessionHDR10PlusAnalyzeAllShots] is not a valid global action
[0x7f993d348640] | UI.ActionManager     | WARN  | 2020-11-28 12:17:45,685 | Action [sessionHDR10PlusAnalyzeSelectedShots] is not a valid global action
[0x7f993d348640] | UI.ActionManager     | WARN  | 2020-11-28 12:17:45,685 | Action [sessionHDR10PlusAnalyzeSelectedAndGroup] is not a valid global action
[0x7f993d348640] | UI.ActionManager     | WARN  | 2020-11-28 12:17:45,685 | Action [sessionHDR10PlusAnalyzeCurrentFrame] is not a valid global action
ALSA lib pcm_dmix.c:1089:(snd_pcm_dmix_open) unable to open slave
[0x7f993d348640] | UI                   | WARN  | 2020-11-28 12:17:45,767 | Failed to find value '8192' in combo-box
ALSA lib pcm_dmix.c:1089:(snd_pcm_dmix_open) unable to open slave
[0x7f993d348640] | UI                   | WARN  | 2020-11-28 12:17:45,821 | Failed to find value '100' in combo-box
ALSA lib pcm_dmix.c:1089:(snd_pcm_dmix_open) unable to open slave
ALSA lib pcm_dmix.c:1089:(snd_pcm_dmix_open) unable to open slave
[0x7f993d348640] | UI.MenuBar           | WARN  | 2020-11-28 12:17:46,053 | Plugged In Action [fusion_menu1_triggered(bool)] is owned by [0x7f9856523bb0]
[0x7f993d348640] | UI.MenuBar           | WARN  | 2020-11-28 12:17:46,053 | Plugged In Action [fusion_menu2_triggered()] is owned by [0x7f9856523bb0]
[0x7f993d348640] | UI.MenuBar           | WARN  | 2020-11-28 12:17:46,053 | Plugged In Action [fusion_menu3_triggered()] is owned by [0x7f9856523bb0]
[0x7f993d348640] | UI.MenuBar           | WARN  | 2020-11-28 12:17:46,053 | Plugged In Action [fusion_menu5_triggered()] is owned by [0x7f9856523bb0]
[0x7f993d348640] | UI.MenuBar           | WARN  | 2020-11-28 12:17:46,053 | Plugged In Action [fusion_menu8_triggered()] is owned by [0x7f9856523bb0]
[0x7f993d348640] | UI.MenuBar           | WARN  | 2020-11-28 12:17:46,053 | Plugged In Action [workspace_sub1_menu1_triggered()] is owned by [0x7f9856523bb0]
ALSA lib pcm_dmix.c:1089:(snd_pcm_dmix_open) unable to open slave
ALSA lib pcm_dmix.c:1089:(snd_pcm_dmix_open) unable to open slave
****************** Flushing GPU Buffers
ALSA lib pcm_dmix.c:1089:(snd_pcm_dmix_open) unable to open slave
ALSA lib pcm_dmix.c:1089:(snd_pcm_dmix_open) unable to open slave
[0x7f993d348640] | IO                   | INFO  | 2020-11-28 12:17:46,122 | RED rocket decode has been disabled in the config file
ALSA lib pcm_dmix.c:1089:(snd_pcm_dmix_open) unable to open slave
[0x7f993d348640] | UI                   | WARN  | 2020-11-28 12:17:46,185 | Failed to find value '0' in combo-box
[0x7f993d348640] | UI                   | WARN  | 2020-11-28 12:17:46,185 | Failed to find value '0' in combo-box
[0x7f993d348640] | UI                   | WARN  | 2020-11-28 12:17:46,185 | Failed to find value '0' in combo-box
[0x7f993d348640] | UI                   | WARN  | 2020-11-28 12:17:46,185 | Failed to find value '0' in combo-box
[0x7f993d348640] | UI                   | WARN  | 2020-11-28 12:17:46,185 | Failed to find value '0' in combo-box
[0x7f993d348640] | UI                   | WARN  | 2020-11-28 12:17:46,185 | Failed to find value '0' in combo-box
ALSA lib pcm_dmix.c:1089:(snd_pcm_dmix_open) unable to open slave
ALSA lib pcmERROR: ld.so: object '.~/Documents/DaVinci_Resolve_Fix/amdocl_fix.so' from LD_PRELOAD cannot be preloaded (cannot open shared object file): ignored.
_dmix.c:1089:(snd_pcm_dmix_open) unable to open slave
ALSA lib pcm_dmix.c:1089:(snd_pcm_dmix_open) unable to open slave
[0x7f9830976700] | UI                   | ERROR | 2020-11-28 12:17:49,280 | UiAutoUpdateController: Failed to get response from server (responseCode:2) (httpStatus:-1) (response:)
ALSA lib pcm_dmix.c:1089:(snd_pcm_dmix_open) unable to open slave
[0x7f993d348640] | UI                   | WARN  | 2020-11-28 12:17:51,967 | Failed to find value '0' in combo-box
[0x7f993d348640] | UI                   | WARN  | 2020-11-28 12:17:51,967 | Failed to find value '0' in combo-box
[0x7f993d348640] | UI                   | WARN  | 2020-11-28 12:17:51,967 | Failed to find value '0' in combo-box
[0x7f993d348640] | UI                   | WARN  | 2020-11-28 12:17:51,967 | Failed to find value '0' in combo-box
[0x7f993d348640] | UI                   | WARN  | 2020-11-28 12:17:51,968 | Failed to find value '-1' in combo-box
ALSA lib pcm_dmix.c:1089:(snd_pcm_dmix_open) unable to open slave
[0x7f993d348640] | DbCommon2            | INFO  | 2020-11-28 12:18:00,403 | Sm2SysIdEntry is not supported in disk database (xml) mode
ALSA lib pcm_dmix.c:1089:(snd_pcm_dmix_open) unable to open slave
[0x7f991c67e700] | LeManager            | INFO  | 2020-11-28 12:18:00,812 | 522, 101
[0x7f993d348640] | Main                 | INFO  | 2020-11-28 12:18:00,950 | Starting terminate sequence by calling g_MainTerm

[0x7f993d348640] | Main                 | INFO  | 2020-11-28 12:18:00,950 | Closing components
[0x7f993d348640] | UI                   | INFO  | 2020-11-28 12:18:00,950 | Audio thread terminated.
[0x7f993d348640] | Main                 | INFO  | 2020-11-28 12:18:00,950 | g_MainTerm: BtStartupShutdownControl.Shutdown() - begin
Exit SY panel handler
[0x7f9919678700] | SyManager            | INFO  | 2020-11-28 12:18:01,005 | Exit SY low priority cmd handler
[0x7f9919e79700] | SyManager            | INFO  | 2020-11-28 12:18:01,005 | Exit SY high priority cmd handler
Exit SY data handler
[0x7f993d348640] | Main                 | INFO  | 2020-11-28 12:18:01,029 | SvcManager: SyManager.StopThreads() - end
[0x7f9916672700] | GsManager            | INFO  | 2020-11-28 12:18:01,029 | Exit GS process handler
[0x7f993d348640] | Main                 | INFO  | 2020-11-28 12:18:01,030 | SvcManager: GsManager.StopThreads() - end
[0x7f993d348640] | Main                 | INFO  | 2020-11-28 12:18:01,030 | SvcManager: DpManager.StopThreads() - end
[0x7f9913e6d700] | DtManager            | INFO  | 2020-11-28 12:18:01,040 | Exit DT data handler thread
Exit GS low priority cmd handler
Exit GS high priority cmd handler
[0x7f991466e700] | DtManager            | INFO  | 2020-11-28 12:18:01,045 | Exit DT low priority cmd handler
[0x7f9914e6f700] | DtManager            | INFO  | 2020-11-28 12:18:01,045 | Exit DT high priority cmd handler
[0x7f9915670700] | DpManager            | INFO  | 2020-11-28 12:18:01,045 | Exit DP low priority cmd handler
[0x7f9915e71700] | DpManager            | INFO  | 2020-11-28 12:18:01,045 | Exit DP high priority cmd handler
[0x7f990f664700] | DtManager            | INFO  | 2020-11-28 12:18:01,056 | Exit DT worker thread
[0x7f990ee63700] | DtManager            | INFO  | 2020-11-28 12:18:01,056 | Exit DT worker thread
[0x7f990ae5b700] | DtManager            | INFO  | 2020-11-28 12:18:01,056 | Exit DT worker thread
[0x7f9911e69700] | DtManager            | INFO  | 2020-11-28 12:18:01,056 | Exit DT worker thread
[0x7f9912e6b700] | DtManager            | INFO  | 2020-11-28 12:18:01,056 | Exit DT worker thread
[0x7f990e662700] | DtManager            | INFO  | 2020-11-28 12:18:01,056 | Exit DT worker thread
[0x7f9910666700] | DtManager            | INFO  | 2020-11-28 12:18:01,056 | Exit DT worker thread
[0x7f990be5d700] | DtManager            | INFO  | 2020-11-28 12:18:01,056 | Exit DT worker thread
[0x7f9910e67700] | DtManager            | INFO  | 2020-11-28 12:18:01,056 | Exit DT worker thread
[0x7f990de61700] | DtManager            | INFO  | 2020-11-28 12:18:01,056 | Exit DT worker thread
[0x7f990fe65700] | DtManager            | INFO  | 2020-11-28 12:18:01,056 | Exit DT worker thread
[0x7f990c65e700] | DtManager            | INFO  | 2020-11-28 12:18:01,056 | Exit DT worker thread
[0x7f991366c700] | DtManager            | INFO  | 2020-11-28 12:18:01,056 | Exit DT worker thread
[0x7f990d660700] | DtManager            | INFO  | 2020-11-28 12:18:01,056 | Exit DT worker thread
[0x7f9911668700] | DtManager            | INFO  | 2020-11-28 12:18:01,056 | Exit DT worker thread
[0x7f990b65c700] | DtManager            | INFO  | 2020-11-28 12:18:01,056 | Exit DT worker thread
[0x7f991266a700] | DtManager            | INFO  | 2020-11-28 12:18:01,056 | Exit DT worker thread
[0x7f990ce5f700] | DtManager            | INFO  | 2020-11-28 12:18:01,056 | Exit DT worker thread
[0x7f993d348640] | Main                 | INFO  | 2020-11-28 12:18:01,076 | SvcManager: DtManager.StopThreads() - end
[0x7f9909658700] | LsManager            | INFO  | 2020-11-28 12:18:01,081 | Exit LS data handler
[0x7f990a65a700] | LsManager            | INFO  | 2020-11-28 12:18:01,085 | Exit LS high priority cmd handler
[0x7f9909e59700] | LsManager            | INFO  | 2020-11-28 12:18:01,085 | Exit LS low priority cmd handler
[0x7f993d348640] | Main                 | INFO  | 2020-11-28 12:18:01,102 | SvcManager: LsManager.StopThreads() - end
[0x7f9908656700] | LsManager            | INFO  | 2020-11-28 12:18:01,105 | Exit LS low priority cmd handler
[0x7f9908e57700] | LsManager            | INFO  | 2020-11-28 12:18:01,105 | Exit LS high priority cmd handler
[0x7f9907e55700] | LsManager            | INFO  | 2020-11-28 12:18:01,121 | Exit LS data handler
[0x7f993d348640] | Main                 | INFO  | 2020-11-28 12:18:01,129 | SvcManager: LsManager.StopThreads() - end
[0x7f9906652700] | LsManager            | INFO  | 2020-11-28 12:18:01,141 | Exit LS data handler
[0x7f9907654700] | LsManager            | INFO  | 2020-11-28 12:18:01,145 | Exit LS high priority cmd handler
[0x7f9906e53700] | LsManager            | INFO  | 2020-11-28 12:18:01,145 | Exit LS low priority cmd handler
[0x7f993d348640] | Main                 | INFO  | 2020-11-28 12:18:01,155 | SvcManager: LsManager.StopThreads() - end
Exit memory data transmitter
[0x7f993d348640] | DpManager            | INFO  | 2020-11-28 12:18:01,156 | Stopping DpWfmWorker threads -- start
[0x7f985b88a700] | DpManager            | INFO  | 2020-11-28 12:18:01,156 | DpWfmWorker thread exit
[0x7f985a888700] | DpManager            | INFO  | 2020-11-28 12:18:01,156 | DpWfmWorker thread exit
[0x7f985b089700] | DpManager            | INFO  | 2020-11-28 12:18:01,156 | DpWfmWorker thread exit
[0x7f985c08b700] | DpManager            | INFO  | 2020-11-28 12:18:01,156 | DpWfmWorker thread exit
[0x7f993d348640] | DpManager            | INFO  | 2020-11-28 12:18:01,160 | Stopping DpWfmWorker threads -- done
Delete service manager
Delete cmd transmitter/receiver
Delete data transmitter/receiver
Delete remote cmd receiver
Delete remote data receiver
Exit SiteManager
[0x7f993d348640] | IO                   | INFO  | 2020-11-28 12:18:01,164 | RED FinalizeSdk
[0x7f993d348640] | SyManager.Project    | INFO  | 2020-11-28 12:18:01,180 | Unlock project Untitled Project
[0x7f991be7d700] | BtCommon             | INFO  | 2020-11-28 12:18:01,183 | Exit BtResourceManager Process Thread
Offline

Walter Sonius

  • Posts: 82
  • Joined: Wed May 03, 2017 9:53 am

Re: DaVinci Resolve on Linux - Install issues

PostSun Nov 29, 2020 11:52 pm

Heep042 wrote:I got Resolve to launch using Mesa OpenGL, and just the amdocl64 part from AMDGPU-PRO. Color grading seems to work, transitions work (including fusion ones). The issue was one OpenCL extension misbehaving (particularly, clGetGLContextInfoKHR), so I blacklisted it using LD_PRELOAD trick, and all the code for it can be found on my GitHub repo (h33p/resolve-amdocl-fix).

Alternatively, try this GDB script:
Code: Select all
set breakpoint pending on
b clGetGLContextInfoKHR
run
p $device_ptr = (unsigned long*)$rcx
finish
p *$device_ptr = 0
p $rax = -30
c


Thanks h33p, Davinci Resolve 16.2.7 does finally work again (16.1 or higher required amdgpu Pro OpenGL) on AMD Radeon R9 390x 8GB on Ubuntu-mate 20.04.1 with default xorg & mesa and only opencl=legacy component from "amdgpu Pro 20.30-1109583".

The latest DR 17.0b2 still crashes when playing/editing any video with or without your blacklist trick on mesa, however this is also confirmed in didier.villevalois his post while his use indicates Pro OpenGL.

One strange thing is that the brawspeedtest does not show "opencl" anymore only "cpu" but it may have been the windows version which worked in the past... The independent Braw player did work fine btw in all versions.
Offline

didier.villevalois

  • Posts: 29
  • Joined: Fri Nov 13, 2020 12:54 pm
  • Real Name: Didier Villevalois

Re: DaVinci Resolve on Linux - Install issues

PostMon Nov 30, 2020 10:29 am

Heep042 wrote:I got Resolve to launch using Mesa OpenGL, and just the amdocl64 part from AMDGPU-PRO. Color grading seems to work, transitions work (including fusion ones). The issue was one OpenCL extension misbehaving (particularly, clGetGLContextInfoKHR), so I blacklisted it using LD_PRELOAD trick, and all the code for it can be found on my GitHub repo (h33p/resolve-amdocl-fix).

@h33p, thanks your fix rocks!

So I was able to able a fully functional DR 16.2.7 under Fedora 33 (even the black hole in the Fairlight page is gone !).

Following in the footsteps of Arch people (thanks a lot to the incredible maintainers of the opencl-amd AUR package!), I wrapped the OpenCL part of the debian packages of AMDGPU-PRO 20.45 for Ubuntu 20.04.1 in an RPM for Fedora 33. The rational here is that Ubuntu 20.04.1 has more recent kernels than CentOS 8. You can find the whole shenanigan here:
https://github.com/ptitjes/opencl-amd.

Used in addition with https://github.com/h33p/resolve-amdocl-fix, I now have a fully functional DaVinci Resolve 16.2.7:
  • gone is the problem with some sub-menus not being displayed correctly (problem b. with AMDGPU-PRO 20.45 under Ubuntu 20.04.1, described in viewtopic.php?f=21&t=127060)
  • gone is the black hole in the Fairlight page (problem c. with AMDGPU-PRO 20.45 under Ubuntu 20.04.1, described in viewtopic.php?f=21&t=127060)

Overall, this means that the OpenGL part of the in-kernel amdgpu drivers is far more stable than the legacy (as coined by themselves in the help of `amdgpu-pro-install`) "Pro" OpenGL provided in AMDGPU-PRO drivers.

For the record, my kernel version is `5.9.10-200.fc33.x86_64` and I'm running Wayland.

I will soon publish a new "Painless DR 16.2.7 install on Fedora 33" topic after some more testing.
Resolve 16.2.7 – Fedora 33 – Wayland – Kernel 5.9.12-200.fc33 – opencl-amd-20.45.1164792-3.fc33
AMD Ryzen Threadripper 3960X – AMD Radeon RX 5700 – 64GB DDR4 3200 – Samsung 980 Pro 1TB
Offline

lost_soul

  • Posts: 123
  • Joined: Fri May 31, 2019 12:30 am
  • Location: Vancouver
  • Real Name: Shawn Metheny

Re: DaVinci Resolve on Linux - Install issues

PostThu Dec 24, 2020 10:57 pm

If any one cares there are now rocm-runtime 3.9 and related packages available in Fedora 34. ROCm 3.7 was supposed to bring image support but rocm-runtime 3.9 doesn't.
Offline

didier.villevalois

  • Posts: 29
  • Joined: Fri Nov 13, 2020 12:54 pm
  • Real Name: Didier Villevalois

Re: DaVinci Resolve on Linux - Install issues

PostSat Dec 26, 2020 12:56 pm

lost_soul wrote:If any one cares there are now rocm-runtime 3.9 and related packages available in Fedora 34. ROCm 3.7 was supposed to bring image support but rocm-runtime 3.9 doesn't.


If you read the fedora package release notes, they say that the rocm-device-libraries is needed for image support. Also some other package for opencl are required. Tom Stellar did package those foundation libraries but he has not yet packaged some other core components of ROCm necessary for OpenCL support : device-librariers, comgr, and rocr-open-runtime... I had the idea to try to create the spec files but I believe it is too much of an endeavor for me.
Resolve 16.2.7 – Fedora 33 – Wayland – Kernel 5.9.12-200.fc33 – opencl-amd-20.45.1164792-3.fc33
AMD Ryzen Threadripper 3960X – AMD Radeon RX 5700 – 64GB DDR4 3200 – Samsung 980 Pro 1TB
Offline

lost_soul

  • Posts: 123
  • Joined: Fri May 31, 2019 12:30 am
  • Location: Vancouver
  • Real Name: Shawn Metheny

Re: DaVinci Resolve on Linux - Install issues

PostFri Jan 01, 2021 11:04 pm

didier.villevalois wrote:
lost_soul wrote:If any one cares there are now rocm-runtime 3.9 and related packages available in Fedora 34. ROCm 3.7 was supposed to bring image support but rocm-runtime 3.9 doesn't.


If you read the fedora package release notes, they say that the rocm-device-libraries is needed for image support. Also some other package for opencl are required. Tom Stellar did package those foundation libraries but he has not yet packaged some other core components of ROCm necessary for OpenCL support : device-librariers, comgr, and rocr-open-runtime... I had the idea to try to create the spec files but I believe it is too much of an endeavor for me.


That was some rally great info. Thanks for sharing. I will keep an eye on Koji for it. As for building a spec file if it includes code from AMD then you will definitely want to pass. My understanding is that the AMD repo does not align well with the way any of the Linux distros lay out their files so a LOT of transmorgafying needs to be done to get it to work for each distro.
Offline

didier.villevalois

  • Posts: 29
  • Joined: Fri Nov 13, 2020 12:54 pm
  • Real Name: Didier Villevalois

Re: DaVinci Resolve on Linux - Install issues

PostSat Jan 02, 2021 9:28 pm

lost_soul wrote:My understanding is that the AMD repo does not align well with the way any of the Linux distros lay out their files so a LOT of transmorgafying needs to be done to get it to work for each distro.


Well that is not really a problem, package spec files (and the other packaging format for that matter) are made to make that easy, as a lot of projects organize the built artefacts differently. The problem is more of the building part of ROCm. They use CMake but with some custom plugins and I don't know CMake enough.
Resolve 16.2.7 – Fedora 33 – Wayland – Kernel 5.9.12-200.fc33 – opencl-amd-20.45.1164792-3.fc33
AMD Ryzen Threadripper 3960X – AMD Radeon RX 5700 – 64GB DDR4 3200 – Samsung 980 Pro 1TB
Previous

Return to DaVinci Resolve

Who is online

Users browsing this forum: Bing [Bot], Google [Bot], Google Feedfetcher, vivoices and 83 guests