Davinci Resole errors crash hell and solutions

Do., 12/11/2020 - 19:34
Body

Als erstes... IST DIE HDD voll??

 

Sources

Manjaro dependeny check: https://github.com/Ashark/davinci-resolve-checker

Free(there is also a studio version) Package from the AUR: https://aur.archlinux.org/packages/davinci-resolve

Script for deb creation: https://www.danieltufvesson.com/makeresolvedeb

REQ Checker https://github.com/Ashark/davinci-resolve-checker

 

Make it work on Arch with AMD

Great video: https://www.youtube.com/watch?v=osolD3AgrPY

 

Forum Topics

https://forum.manjaro.org/t/need-help-to-install-opencl-on-nvidia-prime-laptop-for-davinci-resolve/12766/13 | did no twork for me

https://forum.blackmagicdesign.com/viewtopic.php?f=21&t=98528 | interesting

https://forums.developer.nvidia.com/t/davinci-resolve-16-crashes-drm-error/81578

 

Commands for debugging

  1. Run resolve in the shell like "/opt/resolve/bin/resolve" and check console output
  2. Check logs inside "/home/marco/.local/share/DaVinciResolve/" and crashlog

 

System analysis

inxi --full --admin --verbosity=7 --filter --no-host

Outputs something like this:

System:    Kernel: 5.7.19-2-MANJARO x86_64 bits: 64 compiler: gcc v: 10.2.0  
          parameters: BOOT_IMAGE=/boot/vmlinuz-5.7-x86_64 root=UUID=8355b0c2-f100-4e84-a2de-eceb739bac4d rw apparmor=1  
          security=apparmor udev.log_priority=3 amd_iommu=on iommu=pt  
          Desktop: KDE Plasma 5.20.2 tk: Qt 5.15.1 wm: kwin_x11 dm: SDDM Distro: Manjaro Linux  
Machine:   Type: Desktop Mobo: ASUSTeK model: PRIME X470-PRO v: Rev X.0x serial: <filter> UEFI: American Megatrends v: 5603  
          date: 07/28/2020  
Memory:    RAM: total: 62.73 GiB used: 2.78 GiB (4.4%)  
          RAM Report: permissions: Unable to run dmidecode. Root privileges required.  
CPU:       Info: 8-Core model: AMD Ryzen 7 2700X bits: 64 type: MT MCP arch: Zen+ family: 17 (23) model-id: 8 stepping: 2  
          microcode: 800820D L2 cache: 4096 KiB bogomips: 118202  
          Speed: 1884 MHz min/max: 2200/3700 MHz boost: enabled Core speeds (MHz): 1: 1883 2: 2034 3: 2157 4: 1936 5: 3443  
          6: 2065 7: 2060 8: 1755 9: 1886 10: 1912 11: 2416 12: 1784 13: 1682 14: 1927 15: 2406 16: 2159  
          Flags: 3dnowprefetch abm adx aes aperfmperf apic arat avic avx avx2 bmi1 bmi2 bpext clflush clflushopt clzero cmov  
          cmp_legacy constant_tsc cpb cpuid cr8_legacy cx16 cx8 de decodeassists extapic extd_apicid f16c flushbyasid fma fpu  
          fsgsbase fxsr fxsr_opt ht hw_pstate ibpb irperf lahf_lm lbrv lm mca mce misalignsse mmx mmxext monitor movbe msr  
          mtrr mwaitx nonstop_tsc nopl npt nrip_save nx osvw overflow_recov pae pat pausefilter pclmulqdq pdpe1gb  
          perfctr_core perfctr_llc perfctr_nb pfthreshold pge pni popcnt pse pse36 rdrand rdseed rdtscp rep_good sep sev  
          sha_ni skinit smap smca sme smep ssbd sse sse2 sse4_1 sse4_2 sse4a ssse3 succor svm svm_lock syscall tce topoext  
          tsc tsc_scale v_vmsave_vmload vgif vmcb_clean vme vmmcall wdt xgetbv1 xsave xsavec xsaveerptr xsaveopt xsaves  
          Vulnerabilities: Type: itlb_multihit status: Not affected  
          Type: l1tf status: Not affected  
          Type: mds status: Not affected  
          Type: meltdown status: Not affected  
          Type: spec_store_bypass mitigation: Speculative Store Bypass disabled via prctl and seccomp  
          Type: spectre_v1 mitigation: usercopy/swapgs barriers and __user pointer sanitization  
          Type: spectre_v2 mitigation: Full AMD retpoline, IBPB: conditional, STIBP: disabled, RSB filling  
          Type: srbds status: Not affected  
          Type: tsx_async_abort status: Not affected
 

My error log 

==========[CRASH DUMP]==========
Please send this to support:

#TIME Thu Nov 12 18:24:05 2020 - Uptime 00:00:32 (hh:mm:ss)
#PROGRAM_NAME DaVinci Resolve Studio v16.2.7.010 (Linux/Clang)

./resolve() [0x557b519]
./resolve() [0x557ad0a]
/usr/lib/libpthread.so.0(+0x140f0) [0x7f40243b50f0]
/usr/lib/libc.so.6(__select+0x6b) [0x7f4021e46b7b]
/opt/resolve/bin/../libs/libQt5Core.so.5(+0x24ca95) [0x7f40392a1a95]
/opt/resolve/bin/../libs/libQt5Core.so.5(+0x9c7c0) [0x7f40390f17c0]
/usr/lib/libpthread.so.0(+0x93e9) [0x7f40243aa3e9]
/usr/lib/libc.so.6(clone+0x43) [0x7f4021e4f293]
Signal Number = 1

================================
[0x7f4002b8d640] | CrashReport          | ERROR | 2020-11-12 18:24:06,354 | Compress() : Failed to add file:/home/marco/.local/share/DaVinciResolve/configs/UI.preset to archive.
[0x7f4002b8d640] | CrashReport          | ERROR | 2020-11-12 18:24:06,355 | Compress() : Failed to add file:/home/marco/.local/share/DaVinciResolve/Fusion/Profiles/Default/Fusion.prefs to archive.
 

Nouveau blacklisten 

It seems it is installed by default and always loaded so we need to blacklist it.

https://wiki.archlinux.org/index.php/nouveau

Did nothing

 

 

Ok now we have the cancer. Manjaro has a helper tool "mhwd" taht can be used to auto install the graphic driver. It also adds a blacklist file into "/etc/modprobe.d"

That file was the cancer of the problem.

Happy too early..reboot, doesnt work

 

Blacklist nouveau now! Go to /etc/modprobe.d and create a blacklist.conf and inset thefollowing:

blacklist nouveau
options nouveau modeset=0

I installed davinci-resolve now and rebooted, works now. 

Install resolve-studio...DOES NOT WORK AGAIN FML SO MUCH ANGER ******§*§****!!!§$!§§§§

 

Back to the roots

https://forum.blackmagicdesign.com/viewtopic.php?f=21&t=56878

Installed dkms

Arch Linux docs: https://forum.blackmagicdesign.com/viewtopic.php?f=21&t=56878&p=456990#p456924

 

Check we use the nvidia driver

lsmod | grep -i nvidia

yes we do

nvidia_uvm           1122304  2
nvidia_drm             57344  9
nvidia_modeset       1118208  29 nvidia_drm
drm_kms_helper        258048  1 nvidia_drm
nvidia              20721664  2017 nvidia_uvm,nvidia_modeset
ipmi_msghandler        73728  2 ipmi_devintf,nvidia
drm                   581632  12 drm_kms_helper,nvidia_drm

Check more nvidia settings 

nvidia-smi

Check for missing libs:

ldd /opt/resolve/bin/resolve:

Nothing...

No idea all hope lost. Kill the whole system.

  • Installed Manjaro 20.1, only install no update after! Kernel 5.8 now (tried 5.7 before)
  • Installed "base-devel"
  • Installed resolve-studio, chose 440 nvidia drivers!
  • Crash:

----------------------------------------------------------------------
#TIME Fri Nov 13 11:37:33 2020 - Uptime 00:00:01 (hh:mm:ss)
#PROGRAM_NAME DaVinci Resolve Studio v16.2.7.010 (Linux/Clang)

/opt/resolve/bin/resolve() [0x557b519]
/opt/resolve/bin/resolve() [0x557ad0a]
/usr/lib/libpthread.so.0(+0x140f0) [0x7feca7cd20f0]
/usr/lib/libc.so.6(+0x1648a8) [0x7feca58508a8]
/opt/resolve/libs/libFairlightPage.so(_ZN6SDebugC2EPKcS1_ibbNS_8CategoryENS_8LoadWhenEb+0x39) [0x7fec42fc4e89]
/opt/resolve/libs/libFairlightPage.so(+0xe649a5) [0x7fec432fa9a5]
/opt/resolve/libs/libFairlightPage.so(+0x13117d6) [0x7fec437a77d6]
Signal Number = 11

At least a crash and no crash with full memory ghoste freeze unkillabe process.

  • Now i get all updates of the system.
  • Crash, forever checking licenses

The package only installed opencl-nvidia-440xx nothing else. wtf

Now i install:

  • linux58-nvidia-440xx (Kernel) also will require nvidia-440xx-utils

Start again, does nothig, loading screen freeze. But the log now has some infos:

Ignoring OpenCL error -1001: 'Unspecified Error', GPUPropertiesUtilUnix.cpp:339.

Ok, more weird shit in manjaro. Octopi does not show the packages i installed before meaning linux58-nvidia-440xx

Ok lets use the integrated MHWD implementation taht can be found inside kde settings in the "hardware tab", we chose 440xx

The result:

Waiting for user input...

Starting

> Installing video-nvidia-440xx...

Sourcing /etc/mhwd-x86_64.conf

Has lib32 support: true

Sourcing /var/lib/mhwd/db/pci/graphic_drivers/nvidia-440xx/MHWDCONFIG

Processing classid: 0300

Sourcing /var/lib/mhwd/scripts/include/0300

Processing classid: 0302

:: Synchronizing package databases...

core is up to date

extra is up to date

community is up to date

multilib is up to date

resolving dependencies...

looking for conflicting packages...

 

Packages (3) lib32-nvidia-440xx-utils-440.100-1 linux58-nvidia-440xx-440.100-27 nvidia-440xx-utils-440.100-1

 

Total Download Size: 153.54 MiB

Total Installed Size: 403.13 MiB

 

:: Proceed with installation? [Y/n]

:: Retrieving packages...

downloading nvidia-440xx-utils-440.100-1-x86_64.pkg.tar.zst...

downloading linux58-nvidia-440xx-440.100-27-x86_64.pkg.tar.zst...

downloading lib32-nvidia-440xx-utils-440.100-1-x86_64.pkg.tar.zst...

checking keyring...

checking package integrity...

loading package files...

checking for file conflicts...

checking available disk space...

:: Processing package changes...

installing nvidia-440xx-utils...

==> If you run into trouble with CUDA not being available, run nvidia-modprobe first.

Optional dependencies for nvidia-440xx-utils

gtk3: nvidia-settings [installed]

xorg-server-devel: nvidia-xconfig

opencl-nvidia: OpenCL support [installed]

installing lib32-nvidia-440xx-utils...

Optional dependencies for lib32-nvidia-440xx-utils

lib32-opencl-nvidia-440xx

installing linux58-nvidia-440xx...

In order to use nvidia module, reboot the system.

:: Running post-transaction hooks...

(1/6) Creating system user accounts...

Creating group nvidia-persistenced with gid 143.

Creating user nvidia-persistenced (NVIDIA Persistence Daemon) with uid 143 and gid 143.

(2/6) Reloading system manager configuration...

(3/6) Arming ConditionNeedsUpdate...

(4/6) Updating module dependencies...

(5/6) Updating Kernel initcpios for Nvidia-DRM...

==> Building image from preset: /etc/mkinitcpio.d/linux58.preset: 'default'

-> -k /boot/vmlinuz-5.8-x86_64 -c /etc/mkinitcpio.conf -g /boot/initramfs-5.8-x86_64.img

==> Starting build: 5.8.18-1-MANJARO

-> Running build hook: [base]

-> Running build hook: [udev]

-> Running build hook: [autodetect]

-> Running build hook: [modconf]

-> Running build hook: [block]

-> Running build hook: [keyboard]

-> Running build hook: [keymap]

-> Running build hook: [filesystems]

==> Generating module dependencies

==> Creating gzip-compressed initcpio image: /boot/initramfs-5.8-x86_64.img

==> Image generation successful

==> Building image from preset: /etc/mkinitcpio.d/linux58.preset: 'fallback'

-> -k /boot/vmlinuz-5.8-x86_64 -c /etc/mkinitcpio.conf -g /boot/initramfs-5.8-x86_64-fallback.img -S autodetect

==> Starting build: 5.8.18-1-MANJARO

-> Running build hook: [base]

-> Running build hook: [udev]

-> Running build hook: [modconf]

-> Running build hook: [block]

-> Running build hook: [keyboard]

-> Running build hook: [keymap]

-> Running build hook: [filesystems]

==> Generating module dependencies

==> Creating gzip-compressed initcpio image: /boot/initramfs-5.8-x86_64-fallback.img

==> Image generation successful

(6/6) Updating the desktop file MIME type cache...

nvidia-440xx-utils: install reason has been set to 'explicitly installed'

lib32

-nvidia-440xx-utils: install reason has been set to 'explicitly installed'

linux58-nvidia-440xx: install reason has been set to 'explicitly installed'

xorg configuration file: '/etc/X11/mhwd.d/nvidia.conf'

> Successfully installed video-nvidia-440xx

Fertig ...#

ok start resolve-studio again, but i dont expect anything. Checking licenses forever.

DaVinci Resolve was unable to initialize CUDA and is currently running in OpenCL mode.||If your graphics card supports CUDA 10, please install the latest NVIDIA driver for optimal performance. Alternatively, you can set the GPU processing mode to OpenCL in Preferences.

We have no cura but it should run.

libDeckLinkAPI.so can not be found

Well no idea if that is a problem, so we install "decklink" and "decklink-sdk" from AUR.

Decklink error is gone BUT still freeze on startup! YAY....fml

[0x7f76537bb5c0] | Main                 | INFO  | 2020-11-13 12:49:56,802 | Running DaVinci Resolve Studio v16.2.7.010 (Linux/Clang)
[0x7f76537bb5c0] | Main                 | INFO  | 2020-11-13 12:49:56,803 | Updating display GPU information...
[0x7f76537bb5c0] | Main                 | INFO  | 2020-11-13 12:49:56,879 | Detecting Main Display properties
[0x7f76537bb5c0] | Main                 | INFO  | 2020-11-13 12:49:56,886 | Process to detect main display has finished
[0x7f76537bb5c0] | Main                 | INFO  | 2020-11-13 12:49:56,898 | Fallback process to detect main display has finished
[0x7f76537bb5c0] | Main                 | INFO  | 2020-11-13 12:49:56,898 | GPU Name = 'NVIDIA GeForce GTX 1070 Ti', Main display = 0
## The log exec obj is still not set. The following message will be re-issued when it is set.
DaVinci Resolve was unable to initialize CUDA and is currently running in OpenCL mode.||If your graphics card supports CUDA 10, please install the latest NVIDIA driver for optimal performance. Alternatively, you can set the GPU processing mode to OpenCL in Preferences.
[0x7f76537bb5c0] | Main                 | INFO  | 2020-11-13 12:49:56,899 | 1 GPUs (excluding display GPU) found. Using OpenCL for processing.
[0x7f76537bb5c0] | Main                 | INFO  | 2020-11-13 12:49:56,899 | Not GLmap capable. GPUs: 1 discrete, 0 integrated, 0 external. Auto mapping, OpenCL processing, main display not on external GPU.
[0x7f76537bb5c0] | Main                 | INFO  | 2020-11-13 12:49:56,899 | Setting LsManager.3.NumGPUs = 1
[0x7f76537bb5c0] | IO                   | INFO  | 2020-11-13 12:49:56,899 | RED InitializeSdk with library path at /opt/resolve/libs
[0x7f76537bb5c0] | IO                   | INFO  | 2020-11-13 12:49:56,945 | 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
[0x7f76537bb5c0] | Main                 | INFO  | 2020-11-13 12:49:56,945 | 0 RED rocket cards available
There are 1 GPUs in the system.
[0x7f76537bb5c0] | SyManager.DeckLink   | INFO  | 2020-11-13 12:49:56,947 | DL::DisplayDevices: (0/0)
[0x7f76537bb5c0] | Main                 | INFO  | 2020-11-13 12:49:56,947 | Decklink model name: '', version: '11.7.0'
[0x7f76537bb5c0] | DVIP                 | INFO  | 2020-11-13 12:49:56,947 | DVIP Version : 16.2.7, Revision r006780-946c5d99, Branch release/16.2.7 (Release)
[0x7f76537bb5c0] | SyManager            | WARN  | 2020-11-13 12:49:57,137 | Failed to load user preferences.
[0x7f76537bb5c0] | Main                 | INFO  | 2020-11-13 12:49:57,151 | Installed custom font: Open Sans
[0x7f76537bb5c0] | Main                 | INFO  | 2020-11-13 12:49:57,152 | Installed custom font: Open Sans
[0x7f76537bb5c0] | Main                 | INFO  | 2020-11-13 12:49:57,153 | Installed custom font: Open Sans
[0x7f76537bb5c0] | Main                 | INFO  | 2020-11-13 12:49:57,162 | Finished loading Application style sheet

Ha ok well, lets install various nvidia drivers and check again:

Ok great work. Uninstall runs for 40 minutes now, so it seems it does not work. gui stuff ftw..great.

 

  • 440x failed so far, so we deinstall it now
  • 450xx testing..install...remove 440x. Ok
  • 455xx not tested

Now we get crashdumps again

==========[CRASH DUMP]==========
Please send this to support:

#TIME Fri Nov 13 13:44:27 2020 - Uptime 00:00:28 (hh:mm:ss)
#PROGRAM_NAME DaVinci Resolve Studio v16.2.7.010 (Linux/Clang)

./resolve() [0x557b519]
./resolve() [0x557ad0a]
/usr/lib/libpthread.so.0(+0x140f0) [0x7fe9efbeb0f0]
/usr/lib/libc.so.6(__select+0x6b) [0x7fe9ed67cb7b]
/opt/resolve/bin/../libs/libQt5Core.so.5(+0x24ca95) [0x7fea04ad0a95]
/opt/resolve/bin/../libs/libQt5Core.so.5(+0x9c7c0) [0x7fea049207c0]
/usr/lib/libpthread.so.0(+0x93e9) [0x7fe9efbe03e9]
/usr/lib/libc.so.6(clone+0x43) [0x7fe9ed685293]
Signal Number = 1

================================
[0x7fe9c5e19640] | CrashReport          | ERROR | 2020-11-13 13:44:28,497 | Compress() : Failed to add file:/home/marco/.local/share/DaVinciResolve/configs/UI.preset to archive.
[0x7fe9c5e19640] | CrashReport          | ERROR | 2020-11-13 13:44:28,497 | Compress() : Failed to add file:/home/marco/.local/share/DaVinciResolve/configs/config.user.xml to archive.
[0x7fe9c5e19640] | CrashReport          | ERROR | 2020-11-13 13:44:28,497 | Compress() : Failed to add file:/home/marco/.local/share/DaVinciResolve/Fusion/Profiles/Default/Fusion.prefs to archive.

Ok i installed it on a secondpc that has a 1050 and one monitor, manjaro too. Here some date

  • 440 nvidia
  • kernel 5.8.1.18-1 (same as mine)
  • Manjaro 5.20.2 (same as mine)
  • QT 5.15.1 (same as mine)

This kind of "not working" is hell level 99...

RAGE JUST RAGE!

I removed 3 of 4 monitores and installed resolve-studio. Started YAY..happy... closed. Startet...again this Fu**ing license check shit forever.

 

Ok i compared the two computers. Turns out i have TRIZEN installed here and YAY on the other. Installed YAY..now works. Seems TRIZEN is shit when it comes to install davinci resolve. Cheers. Solved

Used 440xx using MHWD install! So it works, my bad.

FML, installed software like darktable etc. and HERE WE GO AGAIN!

Ok think.....disconnected all monitors but one, disconnected all USB devices. Works.

Ok it seems that this friggin HUB that i had plugged in is killing it...nice. So i kill(remove) the hub and it works!

 

03.06.2022 New Problems Fusion Killed

Fusion is killed on startup. Resolve does not start.

----------------------------------------------------------------------
#TIME Fri Jun  3 10:55:38 2022 - Uptime 00:00:04 (hh:mm:ss)
#PROGRAM_NAME DaVinci Resolve Studio v17.4.6.0004 (Linux/Clang x86_64)
#BMD_ARCHITECTURE x86_64
#BMD_BUILD_UUID 474c2f3c-2612-488b-b56f-7d8be336ce19
#BMD_GIT_COMMIT 02202f962b16f0d0e861d9284b1b1dcb10a68182
#BMD_UTIL_VERSION 17.4.6.0004
#OS Linux

./resolve() [0x4144d29]
./resolve() [0x414416b]
/usr/lib/libc.so.6(+0x3e8e0) [0x7faebd8318e0]
/usr/lib/libc.so.6(+0x8e36c) [0x7faebd88136c]
/usr/lib/libc.so.6(raise+0x18) [0x7faebd831838]
/usr/lib/libc.so.6(abort+0xcf) [0x7faebd81b535]
./resolve(_ZN9__gnu_cxx27__verbose_terminate_handlerEv+0x15d) [0x7eb1d2d]
/opt/resolve/bin/../libs/libc++abi.so.1(+0x29813) [0x7faedec29813]
/opt/resolve/bin/../libs/libc++abi.so.1(__cxa_throw+0xa6) [0x7faedec2c686]
./resolve() [0x42c3c68]
./resolve() [0x43a2964]
./resolve() [0x43b5f6a]
./resolve() [0x43b4dcc]
./resolve() [0x24e487b]
./resolve() [0x24e441c]
./resolve() [0x215e585]
./resolve() [0x215c534]
./resolve() [0x2149051]
/usr/lib/libc.so.6(+0x29290) [0x7faebd81c290]
/usr/lib/libc.so.6(__libc_start_main+0x8a) [0x7faebd81c34a]
./resolve() [0x21480bb]
Signal Number = 6

  • Kernel is 5.15.40 
  • It may have something to do with gpu?

 

 

betriebssysteme