Bug 509622

Summary: Mask plugin constantly crashing
Product: [Applications] kdenlive Reporter: Renato Dias <kingdomhearts20075>
Component: Video Effects & TransitionsAssignee: Jean-Baptiste Mardelle <jb>
Status: REPORTED ---    
Severity: crash CC: kingdomhearts20075
Priority: NOR    
Version First Reported In: 25.08.0   
Target Milestone: ---   
Platform: Microsoft Windows   
OS: Other   
Latest Commit: Version Fixed/Implemented In:
Sentry Crash Report:

Description Renato Dias 2025-09-17 22:49:50 UTC
***
If you're not sure this is actually a bug, instead post about it at https://discuss.kde.org

If you're reporting a crash, attach a backtrace with debug symbols; see https://community.kde.org/Guidelines_and_HOWTOs/Debugging/How_to_create_useful_crash_reports

Please remove this comment after reading and before submitting - thanks!
***

SUMMARY
Mask plugin crashing after 2 or so minutes after creating a mask. Log says dependencies don't exist, but the mentioned files ARE in the specified folder.

STEPS TO REPRODUCE
1. Add a mask and wait
2. 
3. 

OBSERVED RESULT
A orange window pops up at the bottom of the effects panel, saying "Mask plugin crashed". Show log button only displays at the first time it happens.

EXPECTED RESULT
Mask should work

SOFTWARE/OS VERSIONS
Windows: 11: 
KDEnlive: 25.08.0
KDE Frameworks: 6.17

ADDITIONAL INFORMATION
Traceback (most recent call last):
  File "C:\Apps\KDEnlive\kdenlive-25.08.0_standalone\bin\data\kdenlive\scripts\automask\sam-objectmask.py", line 9, in <module>
    import torch
  File "C:\Users\Renato\AppData\Local\kdenlive\venv-sam\Lib\site-packages\torch\__init__.py", line 278, in <module>
    _load_dll_libraries()
    ~~~~~~~~~~~~~~~~~~~^^
  File "C:\Users\Renato\AppData\Local\kdenlive\venv-sam\Lib\site-packages\torch\__init__.py", line 274, in _load_dll_libraries
    raise err
OSError: [WinError 126] The specified module could not be found. Error loading "C:\Users\Renato\AppData\Local\kdenlive\venv-sam\Lib\site-packages\torch\lib\caffe2_nvrtc.dll" or one of its dependencies.