Page 1 of 1

Davinci Resolve hangs on project screen

PostPosted: Wed Feb 28, 2024 10:50 am
by titantomorrow
Hi, I had this problem where Resolve would hang just after closing the splash screen.

I looked in the logs and it said...

Code: Select all
<snip>
[0x00005ab0] | UI                   | INFO  | 2024-02-28 21:05:17,180 | Launching project manager
[0x00005ab0] | SyManager.Signals    | INFO  | 2024-02-28 21:05:17,181 | Main view page is changed to 12
[0x00005ab0] | Main                 | INFO  | 2024-02-28 21:05:17,207 | Show splash screen message: Ready
[0x00005ab0] | UI                   | INFO  | 2024-02-28 21:05:17,209 | Gallery pointer is changed, refreshing color gallery
[0x00005ab0] | UI                   | INFO  | 2024-02-28 21:05:17,218 | Gallery pointer is changed, refreshing gallery browser
[0x00005ab0] | Main                 | INFO  | 2024-02-28 21:05:17,307 | Close splash screen
[0x00005ab0] | Main                 | INFO  | 2024-02-28 21:05:17,309 | Launching main loop
Python path configuration:
  PYTHONHOME = 'C:\Python312\'
  PYTHONPATH = (not set)
  program name = 'python'
  isolated = 0
  environment = 1
  user site = 1
  safe_path = 0
  import site = 1
  is in build tree = 0
  stdlib dir = 'C:\Python312\Lib'
  sys._base_executable = 'C:\\Program Files\\Blackmagic Design\\DaVinci Resolve\\Resolve.exe'
  sys.base_prefix = 'C:\\Python312\\'
  sys.base_exec_prefix = 'C:\\Python312\\'
  sys.platlibdir = 'DLLs'
  sys.executable = 'C:\\Program Files\\Blackmagic Design\\DaVinci Resolve\\Resolve.exe'
  sys.prefix = 'C:\\Python312\\'
  sys.exec_prefix = 'C:\\Python312\\'
  sys.path = [
    'C:\\Python312\\python312.zip',
    'C:\\Python312\\DLLs',
    'C:\\Python312\\Lib',
    'C:\\Program Files\\Blackmagic Design\\DaVinci Resolve',
  ]
Fatal Python error: init_fs_encoding: failed to get the Python codec of the filesystem encoding
Python runtime state: core initialized
ModuleNotFoundError: No module named 'encodings'

Current thread 0x00006a44 (most recent call first):
  <no Python frame>
[0x000063a4] | UI.Scopes            | INFO  | 2024-02-28 21:05:17,347 | GPU Scopes thread done.

So I uninstalled Python and now it works (does not hang). Should I be installing some random codec?

Re: Davinci Resolve hangs on project screen

PostPosted: Tue Apr 23, 2024 3:41 pm
by Vince Anido
This took me forever to solve so I'm posting here and a few other threads for anyone else who's having this issue, but cannot live without Python.

The issue seems to be installing a new version of Python on a system after Davinci Resolve is installed. The application seems to remember across installations which version of Python it originally was linked to, so it continues to try to access that, but something goes wrong with the environment variables so everything breaks, and you hang at the projects screen.

Another symptom is seeing this error below in your debug logs:
Code: Select all
Fatal Python error: init_fs_encoding: failed to get the Python codec of the filesystem encoding
Python runtime state: core initialized
ModuleNotFoundError: No module named 'encodings'


To fix the issue on Windows, go to your System Environment Variables and add a new System variable name: "PYTHONHOME". The Variable value should be the directory of the newest version of Python you have installed. Eg: C:\Python311\

This seems to fix the Python versioning/home directory issue Resolve has and allows the application to start correctly.

Re: Davinci Resolve hangs on project screen

PostPosted: Tue Apr 23, 2024 5:06 pm
by Joe Shapiro
Great work finding and telling us about this. Hope they fix that hard-to-find bug soon.