SOLVED: TouchDesigner Crashes When Adding Script TOP

I’m experiencing a crash in TouchDesigner whenever I add a Script TOP to my project. As soon as I place the node, the program immediately crashes. I’ve tried reinstalling TouchDesigner and updating my GPU drivers, but the problem persists.

Here are my system details:

Windows 11 (64-bit)
[AMD Ryzen 7 7800X3D]
[NVIDIA  RTX 4080 Super]

Has anyone else encountered this issue or found a workaround? Any help would be greatly appreciated.

Thank you!

Could you confirm you are running the latest 2023.12120 build of TouchDesigner?

Do you get any crash .dmp files produced, if so those would be helpful.

Hi @Demogroove

We had multiple reports in the recent weeks that were caused by conflicting versions of NumPy.

Are you:

  • Setting up a custom python search path in preferences?
  • Sideloading a custom python library using a component such as TD-PIP ?
  • Sideloading a custom environment such as a Conda environment?

If one of this point is true, while those approaches are allowed, they are custom and external to the core distribution of TouchDesigner and we cannot provide support in case of crashes or instabilities.

The possible issues are documented at the following page: Python - Derivative

Note that if the issue is indeed caused by a conflicting NumPy version, it will be solved in a future experimental build where the NumPy library shipping with TouchDesigner is updated.

Best,
Michel

I hadn’t noticed it because the chop script was still working, so I didn’t immediately think of the NumPy library.

Just removed and it works like a charm, thank for the support

You mean you removed the import statement in the Script TOP ? This will prevent the issue from happening in that specific case, but it could still show up and cause instabilities in other parts of TouchDesigner.

If removing the import statement fixed things, it’s pointing to the aforementioned issues being the origin of the problem.

Best,
Michel

No i’ve removed the new version of numpy on my computer

1 Like

@JetXS
When I am following these three checks (no custom search path or sideloading),
I’m still experiencing similar problems with the Script TOP. I use if for a Ultralytics-Yolo integration. As soon as I place it, TD (2023.12120) just crashes. However Script DAT is running fine.

I’m pretty sure it has to do with some python libraries I’m using (
numpy 2.2.3
opencv-python 4.10.0.84
pip 24.3.1),
but could not further locate the issue or find the way to fix it.

Is there any other idea what I could try?

Merci!

Running on: Windows 10 Pro 64-bit, Intel(R) Core™ i5-7500T CPU, Intel(R) HD Graphics 530 GPU

Hi @patmagoon

I use if for a Ultralytics-Yolo integration

How are you answering no to those 3 checks above but trying to add Ultralytics-Yolo to TouchDesigner?

The issue is that you are indeed sideloading an external python library and you are creating a version conflict between TouchDesigner and an external library, triggering the crash.

The only solution is to find the proper combination of versions (likely downgrading YOLO), or running your scripts in a another Python process.