5

I'm trying to get DaVinci Resolve running for the first time. I'm running Ubuntu 22.04. Initially I was getting an error about GPU processing mode before the program would even open.

After some tweaking I got rid of that one but now I'm getting a 'Your GPU memory is full' whenever I start a timeline, and although I can see the videos I load on the thumbnail, they don't show up in the window where they are supposed to.

I have tried upgrading the NVIDIA drivers, changing kernel to HWE, back to GA (as advised here), and doing multiple runs of purging and installing the drivers, CUDA, the headers, and the nvidia linux modules.

The output of nvidia-smi:

Tue Jan  2 14:10:18 2024       
+---------------------------------------------------------------------------------------+
| NVIDIA-SMI 545.23.08              Driver Version: 545.23.08    CUDA Version: 12.3     |
|-----------------------------------------+----------------------+----------------------+
| GPU  Name                 Persistence-M | Bus-Id        Disp.A | Volatile Uncorr. ECC |
| Fan  Temp   Perf          Pwr:Usage/Cap |         Memory-Usage | GPU-Util  Compute M. |
|                                         |                      |               MIG M. |
|=========================================+======================+======================|
|   0  NVIDIA GeForce GTX 1060        On  | 00000000:01:00.0  On |                  N/A |
| N/A   70C    P8               7W /  88W |    229MiB /  6144MiB |      0%      Default |
|                                         |                      |                  N/A |
+-----------------------------------------+----------------------+----------------------+

+---------------------------------------------------------------------------------------+ | Processes: | | GPU GI CI PID Type Process name GPU Memory | | ID ID Usage | |=======================================================================================| | 0 N/A N/A 3548 G /usr/lib/xorg/Xorg 45MiB | | 0 N/A N/A 6251 C /opt/resolve/bin/resolve 180MiB | +---------------------------------------------------------------------------------------+

(not sure why it shows 545, I have 535 installed)

Output of nvcc --version:

Copyright (c) 2005-2017 NVIDIA Corporation
Built on Fri_Sep__1_21:08:03_CDT_2017
Cuda compilation tools, release 9.0, V9.0.176

uname -r:

5.15.0-91-generic

Any help would be greatly appreciated.

ja-94
  • 51

4 Answers4

3
  • Uninstall / reinstall 535 driver
  • Reboot
  • NVIDIA X Server Settings > PRIME profiles > Performance Mode
  • Reboot

I faced this issue recently when an apt upgrade messed up my drivers. After reinstalling I kept getting the "GPU memory full" error and Resolve wouldn't work properly. Turns out reinstalling the driver had reset the PRIME profile, and switching back to performance mode fixed it for me.

3

Eventhough you may have selected the GPU in davinci resolve, you may not be utilizing it.

The Previous answer suggests to change the nvidia profile to PRIME (use discrete graphics only) which you may not want to enable globally, eg. when you have a laptop.

Another solution is to right click on the application shortcut and choose "Launch using Discrete Graphics Card"
enter image description here

If you want to include that into a script, eg for a custom shortcut, you can use:

 #for nvidia graphics:
__NV_PRIME_RENDER_OFFLOAD=1 __GLX_VENDOR_LIBRARY_NAME=nvidia /opt/resolve/bin/resolve
#for amd graphics:
#DRI_PRIME=1 /opt/resolve/bin/resolve
0

adding this environment variables -

__NV_PRIME_RENDER_OFFLOAD=1 __GLX_VENDOR_LIBRARY_NAME=nvidia

in the kde menu editor let me use flatpak version of davinci resolve enter image description here

or

edit desktop file exec line -

Exec=env __NV_PRIME_RENDER_OFFLOAD=1 __GLX_VENDOR_LIBRARY_NAME=nvidia /usr/bin/flatpak run --branch=master --arch=x86_64 --command=/app/bin/resolve.sh --file-forwarding com.blackmagic.Resolve @@u %U @@
0

I had the same problem, after a lot of research nothing has solved the problem, I am under kubuntu 25.04 with Wayland and I had the idea to try by returning to X11 and it works, so I suppose that it is Wayland which is not adapted or rather it is davinci which is not adapted to Wayland