【求助】Davinci 无法预览、播放视频,日志中报错:Failed to create OpenCL context

System Info:

  • OS: Arch Linux
  • CPU: AMD 7500F
  • Memory: 32G 6000MHz C36
  • GPU: AMD RX9060XT 16G

之前还好好的,今天有个小视频要剪辑一下打开就发现没法播放和预览视频素材了,查看日志发现报错:

0x7f2a86326000 | Main                 | INFO  | 2025-11-18 17:21:06,366 | Show splash screen message: ???????????????
0x7f28ca3ee000 | GPU.MultiBoardMgr    | INFO  | 2025-11-18 17:21:06,367 | Let There Be OpenCL Light!
0x7f28ca3ee000 | GPU.MultiBoardMgr    | INFO  | 2025-11-18 17:21:06,367 | Initializing OpenCL board manager for Main Display GPU gpu:f928ae02.a0aa77a0.
0x7f28c8beb000 | UI.GLContext         | INFO  | 2025-11-18 17:21:06,367 | Creating shared OpenGL context for this thread (2 total).
0x7f28c8beb000 | DVIP                 | INFO  | 2025-11-18 17:21:06,368 | Created OpenCL context for devices gpu:f928ae02.a0aa77a0
sh: 行 1: python2: 未找到命令
0x7f28c8beb000 | DVIP                 | ERROR | 2025-11-18 17:21:06,369 | Failed to create OpenCL context:

DVIP Exception: OpenCL Context Manager failed to create context.
 - API: OpenCL
 - Call stack:
   1   davinci-resolve                         0x9949ae2 
   2   davinci-resolve                         0x99c7c3a 
   3   davinci-resolve                         0x99cbb6c 
   4   davinci-resolve                         0x79274de 
   5   davinci-resolve                         0x7929c7b 
   6   davinci-resolve                         0x792a1da 
   7   davinci-resolve                         0x79304ff 
   8   libc.so.6                          0x7f2a73c9698b 
   9   libc.so.6                          0x7f2a73d1a9cc 

0x7f28c8beb000 | GPU.SingleBoardMgr   | ERROR | 2025-11-18 17:21:06,369 | Failed to initialize OpenCL board manager for "AMD Radeon RX 9060 XT" (gpu:f928ae02.a0aa77a0): Failed to initialize OpenCL context
0x7f28ca3ee000 | GPU.SingleBoardMgr   | ERROR | 2025-11-18 17:21:06,369 | Failed to initialize SingleBoardManager.
0x7f28ca3ee000 | GPU.MultiBoardMgr    | ERROR | 2025-11-18 17:21:06,369 | Failed to initialize board manager for gpu:f928ae02.a0aa77a0.
libScannerAPI.so: cannot open shared object file: No such file or directory
0x7f2a86326000 | Main                 | INFO  | 2025-11-18 17:21:06,822 | Application state changed to Active
0x7f2a86326000 | Main                 | INFO  | 2025-11-18 17:21:06,822 | Show splash screen message: ?????????????????????
0x7f2a86326000 | Main                 | INFO  | 2025-11-18 17:21:06,823 | Show splash screen message: ????????????????????????
0x7f2a86326000 | Main                 | INFO  | 2025-11-18 17:21:06,823 | Show splash screen message: ??????????????????
0x7f29177ff000 | IO                   | INFO  | 2025-11-18 17:21:06,826 | IO codec initialization completed in 3 ms.
0x7f2a86326000 | Main                 | INFO  | 2025-11-18 17:21:06,876 | Show splash screen message: ??????Fairlight??????
Unable to read VR Path Registry from /home/xxxx/.config/openvr/openvrpaths.vrpath
0x7f2a86326000 | Fairlight            | INFO  | 2025-11-18 17:21:07,333 | 00.00.00.456(001): Running Fairlight (4086170b73afec00614b088239dbf4395dacecd0)
0x7f2a86326000 | FairlightLoader      | INFO  | 2025-11-18 17:21:07,333 | Fairlight lib initialized in 456 ms.
0x7f291cbf8000 | UI.GLContext         | INFO  | 2025-11-18 17:21:07,333 | Creating shared OpenGL context for this thread (3 total).
0x7f291cbf8000 | DVIP                 | INFO  | 2025-11-18 17:21:07,335 | Re-using OpenCL context for devices gpu:f928ae02.a0aa77a0
0x7f291cbf8000 | DVIP                 | ERROR | 2025-11-18 17:21:07,335 | Failed to create OpenCL context:

DVIP Exception: OpenCL Context Manager failed to create context.
 - API: OpenCL
 - Call stack:
   1   davinci-resolve                         0x9949ae2 
   2   davinci-resolve                         0x99c7c3a 
   3   davinci-resolve                         0x99cbb6c 
   4   davinci-resolve                         0x998d8a2 
   5   davinci-resolve                         0x998dadf 
   6   davinci-resolve                         0x3802035 
   7   davinci-resolve                         0x38058bf 
   8   libc.so.6                          0x7f2a73c9698b 
   9   libc.so.6                          0x7f2a73d1a9cc 

0x7f291cbf8000 | UI.GLIO              | ERROR | 2025-11-18 17:21:07,335 | MainPlayer: Failed to create DVIP context.
0x7f2a86326000 | UI.GLIO              | ERROR | 2025-11-18 17:21:07,336 | MainPlayer: Failed to initialize worker thread.
0x7f2854bb3000 | UI.GLContext         | INFO  | 2025-11-18 17:21:07,336 | Creating shared OpenGL context for this thread (4 total).
0x7f2854bb3000 | DVIP                 | INFO  | 2025-11-18 17:21:07,337 | Re-using OpenCL context for devices gpu:f928ae02.a0aa77a0
0x7f2854bb3000 | DVIP                 | ERROR | 2025-11-18 17:21:07,346 | Failed to create OpenCL context:

DVIP Exception: OpenCL Context Manager failed to create context.
 - API: OpenCL
 - Call stack:
   1   davinci-resolve                         0x9949ae2 
   2   davinci-resolve                         0x99c7c3a 
   3   davinci-resolve                         0x99cbb6c 
   4   davinci-resolve                         0x998d8a2 
   5   davinci-resolve                         0x998dadf 
   6   davinci-resolve                         0x381af1b 
   7   davinci-resolve                         0x38238cf 
   8   libc.so.6                          0x7f2a73c9698b 
   9   libc.so.6                          0x7f2a73d1a9cc 

0x7f2854bb3000 | UI.Scopes            | ERROR | 2025-11-18 17:21:07,346 | Failed to create DVIP context.
0x7f2a86326000 | UI.Scopes            | ERROR | 2025-11-18 17:21:07,346 | Failed to initialize worker thread.
0x7f2a86326000 | Main                 | ERROR | 2025-11-18 17:21:07,346 | Failed to initialize OpenGL texture pool, no valid contexts available.
0x7f28363fc000 | SyManager            | INFO  | 2025-11-18 17:21:07,384 | Starting keyboard device monitor thread...
0x7f2a86326000 | Main                 | INFO  | 2025-11-18 17:21:07,389 | Show splash screen message: ????????????????????????
0x7f2a86326000 | UI.MenuBar           | WARN  | 2025-11-18 17:21:07,570 | Main menu action [workspaceLayoutFusion_sub001Default]'s slot is not defined: workspaceLayoutFusion_sub001Default_triggered()
0x7f2a86326000 | FusionUtils          | WARN  | 2025-11-18 17:21:07,574 | Fusion DoAction ACTION_SET_FUSION_HOTKEY ignored, init not completed
0x7f2a86326000 | Main                 | INFO  | 2025-11-18 17:21:07,760 | Show splash screen message: ????????????????????????
0x7f2a86326000 | UI.ActionManager     | WARN  | 2025-11-18 17:21:07,828 | Action [fairlightImmersiveAmbisonicsMetering] is not a global action
0x7f2a86326000 | UI.ActionManager     | WARN  | 2025-11-18 17:21:07,828 | Action [fairlightImmersiveGenerateImmersiveMaster] is not a valid global action
0x7f2a86326000 | UI.ActionManager     | WARN  | 2025-11-18 17:21:07,828 | Action [fairlightImmersiveRendererSettings] is not a valid global action
0x7f2a86326000 | UI.ActionManager     | WARN  | 2025-11-18 17:21:07,828 | Action [fairlightImmersiveEditADMScene] is not a valid global action
0x7f2a86326000 | UI.ActionManager     | WARN  | 2025-11-18 17:21:07,828 | Action [fairlightImmersiveAmbisonicsMetering] is not a valid global action
0x7f2a86326000 | UI.FairlightInterface | WARN  | 2025-11-18 17:21:07,876 | SetActionEnabled: Failed to find action [viewTimelineScrollingFixed]'s action connector for handler Id [1]

我还寻思 OpenCL 给我滚挂了?用 clinfo 看了一下也能正常识别:

Number of platforms                               1
  Platform Name                                   AMD Accelerated Parallel Processing
  Platform Vendor                                 Advanced Micro Devices, Inc.
  Platform Version                                OpenCL 2.1 AMD-APP.dbg (3649.0)
  Platform Profile                                FULL_PROFILE
  Platform Extensions                             cl_khr_icd cl_amd_event_callback 
  Platform Extensions function suffix             AMD
  Platform Host timer resolution                  1ns

  Platform Name                                   AMD Accelerated Parallel Processing
Number of devices                                 1
  Device Name                                     gfx1200
  Device Vendor                                   Advanced Micro Devices, Inc.
  Device Vendor ID                                0x1002
  Device Version                                  OpenCL 2.0 
  Driver Version                                  3649.0 (HSA1.1,LC)
  Device OpenCL C Version                         OpenCL C 2.0 
  Device Type                                     GPU
  Device Board Name (AMD)                         AMD Radeon RX 9060 XT
  Device PCI-e ID (AMD)                           0x7590
  Device Topology (AMD)                           PCI-E, 0000:03:00.0
  Device Profile                                  FULL_PROFILE
  Device Available                                Yes
  Compiler Available                              Yes
  Linker Available                                Yes
  Max compute units                               16
  SIMD per compute unit (AMD)                     4
  SIMD width (AMD)                                32
  SIMD instruction width (AMD)                    1
  Max clock frequency                             2780MHz
  Graphics IP (AMD)                               12.0
  Device Partition                                (core)
    Max number of sub-devices                     16
    Supported partition types                     None
    Supported affinity domains                    (n/a)
  Max work item dimensions                        3
  Max work item sizes                             1024x1024x1024
  Max work group size                             256
  Preferred work group size (AMD)                 256
  Max work group size (AMD)                       1024
  Preferred work group size multiple (kernel)     32
  Wavefront width (AMD)                           32
  Preferred / native vector sizes                 
    char                                                 4 / 4       
    short                                                2 / 2       
    int                                                  1 / 1       
    long                                                 1 / 1       
    half                                                 1 / 1        (cl_khr_fp16)
    float                                                1 / 1       
    double                                               1 / 1        (cl_khr_fp64)
  Half-precision Floating-point support           (cl_khr_fp16)
    Denormals                                     Yes
    Infinity and NANs                             Yes
    Round to nearest                              Yes
    Round to zero                                 Yes
    Round to infinity                             Yes
    IEEE754-2008 fused multiply-add               Yes
    Support is emulated in software               No
  Single-precision Floating-point support         (core)
    Denormals                                     Yes
    Infinity and NANs                             Yes
    Round to nearest                              Yes
    Round to zero                                 Yes
    Round to infinity                             Yes
    IEEE754-2008 fused multiply-add               Yes
    Support is emulated in software               No
    Correctly-rounded divide and sqrt operations  Yes
  Double-precision Floating-point support         (cl_khr_fp64)
    Denormals                                     Yes
    Infinity and NANs                             Yes
    Round to nearest                              Yes
    Round to zero                                 Yes
    Round to infinity                             Yes
    IEEE754-2008 fused multiply-add               Yes
    Support is emulated in software               No
  Address bits                                    64, Little-Endian
  Global memory size                              17095983104 (15.92GiB)
  Global free memory (AMD)                        16474112 (15.71GiB) 16474112 (15.71GiB)
  Global memory channels (AMD)                    4
  Global memory banks per channel (AMD)           4
  Global memory bank width (AMD)                  256 bytes
  Error Correction support                        No
  Max memory allocation                           14531585632 (13.53GiB)
  Unified memory for Host and Device              No
  Shared Virtual Memory (SVM) capabilities        (core)
    Coarse-grained buffer sharing                 Yes
    Fine-grained buffer sharing                   Yes
    Fine-grained system sharing                   No
    Atomics                                       No
  Minimum alignment for any data type             128 bytes
  Alignment of base address                       2048 bits (256 bytes)
  Preferred alignment for atomics                 
    SVM                                           0 bytes
    Global                                        0 bytes
    Local                                         0 bytes
  Max size for global variable                    14531585632 (13.53GiB)
  Preferred total size of global vars             17095983104 (15.92GiB)
  Global Memory cache type                        Read/Write
  Global Memory cache size                        32768 (32KiB)
  Global Memory cache line size                   256 bytes
  Image support                                   Yes
    Max number of samplers per kernel             16
    Max size for 1D images from buffer            134217728 pixels
    Max 1D or 2D image array size                 8192 images
    Base address alignment for 2D image buffers   256 bytes
    Pitch alignment for 2D image buffers          256 pixels
    Max 2D image size                             16384x16384 pixels
    Max 3D image size                             16384x16384x8192 pixels
    Max number of read image args                 128
    Max number of write image args                8
    Max number of read/write image args           64
  Max number of pipe args                         16
  Max active pipe reservations                    16
  Max pipe packet size                            1646683744 (1.534GiB)
  Local memory type                               Local
  Local memory size                               65536 (64KiB)
  Local memory size per CU (AMD)                  65536 (64KiB)
  Local memory banks (AMD)                        32
  Max number of constant args                     8
  Max constant buffer size                        14531585632 (13.53GiB)
  Preferred constant buffer size (AMD)            16384 (16KiB)
  Max size of kernel argument                     1024
  Queue properties (on host)                      
    Out-of-order execution                        No
    Profiling                                     Yes
  Queue properties (on device)                    
    Out-of-order execution                        Yes
    Profiling                                     Yes
    Preferred size                                262144 (256KiB)
    Max size                                      8388608 (8MiB)
  Max queues on device                            1
  Max events on device                            1024
  Prefer user sync for interop                    Yes
  Number of P2P devices (AMD)                     0
  Profiling timer resolution                      1ns
  Profiling timer offset since Epoch (AMD)        0ns (Thu Jan  1 08:00:00 1970)
  Execution capabilities                          
    Run OpenCL kernels                            Yes
    Run native kernels                            No
    Thread trace supported (AMD)                  No
    Number of async queues (AMD)                  8
    Max real-time compute queues (AMD)            8
    Max real-time compute units (AMD)             16
  printf() buffer size                            4194304 (4MiB)
  Built-in kernels                                (n/a)
  Device Extensions                               cl_khr_fp64 cl_khr_global_int32_base_atomics cl_khr_global_int32_extended_atomics cl_khr_local_int32_base_atomics cl_khr_local_int32_extended_atomics cl_khr_int64_base_atomics cl_khr_int64_extended_atomics cl_khr_3d_image_writes cl_khr_byte_addressable_store cl_khr_fp16 cl_khr_gl_sharing cl_amd_device_attribute_query cl_amd_media_ops cl_amd_media_ops2 cl_khr_image2d_from_buffer cl_khr_subgroups cl_khr_depth_images cl_amd_copy_buffer_p2p cl_amd_assembly_program 

NULL platform behavior
  clGetPlatformInfo(NULL, CL_PLATFORM_NAME, ...)  AMD Accelerated Parallel Processing
  clGetDeviceIDs(NULL, CL_DEVICE_TYPE_ALL, ...)   Success [AMD]
  clCreateContext(NULL, ...) [default]            Success [AMD]
  clCreateContextFromType(NULL, CL_DEVICE_TYPE_DEFAULT)  Success (1)
    Platform Name                                 AMD Accelerated Parallel Processing
    Device Name                                   gfx1200
  clCreateContextFromType(NULL, CL_DEVICE_TYPE_CPU)  No devices found in platform
  clCreateContextFromType(NULL, CL_DEVICE_TYPE_GPU)  Success (1)
    Platform Name                                 AMD Accelerated Parallel Processing
    Device Name                                   gfx1200
  clCreateContextFromType(NULL, CL_DEVICE_TYPE_ACCELERATOR)  No devices found in platform
  clCreateContextFromType(NULL, CL_DEVICE_TYPE_CUSTOM)  No devices found in platform
  clCreateContextFromType(NULL, CL_DEVICE_TYPE_ALL)  Success (1)
    Platform Name                                 AMD Accelerated Parallel Processing
    Device Name                                   gfx1200

ICD loader properties
  ICD loader Name                                 OpenCL ICD Loader
  ICD loader Vendor                               OCL Icd free software
  ICD loader Version                              2.3.4
  ICD loader Profile                              OpenCL 3.0

求助各位大佬帮忙看看吧,孩子搞了一下午了都没搞定:joy:

补充:

还有一个问题,每次启动达芬奇后新建项目是可以正常新建的,但是如果要打开已有项目,就会卡死。

0x7faf8a3fd000 | Main                 | INFO  | 2025-11-18 17:45:05,878 | Launching main loop
0x7faf8a3fd000 | Main                 | INFO  | 2025-11-18 17:45:15,789 | Application state changed to Inactive
0x7faee77ef000 | LsManager            | INFO  | 2025-11-18 17:45:15,863 | Exit LS data handler
0x7faee47e9000 | LsManager            | INFO  | 2025-11-18 17:45:15,863 | Exit LS data handler
0x7faee5fec000 | LsManager            | INFO  | 2025-11-18 17:45:15,863 | Exit LS data handler
0x7fae54be5000 | SyManager            | INFO  | 2025-11-18 17:45:15,871 | Exiting keyboard device monitor thread.
0x7faf8a3fd000 | SyManager            | INFO  | 2025-11-18 17:45:15,871 | Thread release successful.
0x7faf8a3fd000 | DbCommon2            | INFO  | 2025-11-18 17:45:16,046 | Sm2SysIdEntry is not supported in local project library (xml) mode
Assertion 'close_nointr(fd) != -EBADF' failed at src/basic/fd-util.c:70, function safe_close(). Aborting.

wiki 上有关于opencl版本的说明和一些常见问题。要不去看看?

我之前也是搞不定,换 kdenlive 凑合用了。对于拼拼剪剪足够了

看过了,都没用。

我发现13号的时候mesa更新了一版,现在Arch Extra库里的ROCm OpenCL的软件包被标记过时了,我觉得有可能是 OpenCL 版本的问题。

滚动更新对这种软件还是太不友好了。
实在不行chroot跑个debian吧