Log in

View Full Version : VSEdit - cuFFT issue


Cary Knoop
8th November 2025, 20:47
When a script using vs-dfttest2 with the cuFFT backend is reloaded in VSEdit (or when closing the editor), VapourSynth throws:

setVideoInfo: The VSVideoFormat pointer passed by DFTTest was not obtained from registerFormat() or getFormatPreset()

Conditions

Happens only on script reload or editor exit, not during normal encoding.

Only occurs when DFTTest2() is used with Backend.cuFFT().

The crash occurs even if the clip formats are unchanged and all processing is valid.

Any throughts?

WolframRhodium
9th November 2025, 04:38
I'm sorry. What's the cideo format of the source?

Cary Knoop
9th November 2025, 07:22
I'm sorry. What's the cideo format of the source?
Source is a float 32 GRAY plane.

WolframRhodium
9th November 2025, 08:34
Sorry but I can't reproduce the issue.

Cary Knoop
13th November 2025, 04:33
I tried this but that did not make the problem go away:


try:
from dfttest2 import DFTTest as DFTTest2, Backend

# Create once, reuse forever
_DFTTEST_BACKEND = None
def get_dfttest_backend():
global _DFTTEST_BACKEND
if _DFTTEST_BACKEND is None:
_DFTTEST_BACKEND = Backend.cuFFT(device_id=0, in_place=True)
return _DFTTEST_BACKEND

_DFTTEST_BACKEND = get_dfttest_backend()
except ImportError:
raise RuntimeError("PMOyster Error: dfttest2 not found.")

WolframRhodium
13th November 2025, 09:17
This is expected because the Python code doesn't change the logic at the underlying C API level.