FIXED: 2018.25850 Python recursion crash

Author:
Erwan d’Orgeville info@erwandorgeville.com

Date:
2018-09-28 14:25:00

Bug:
Recursion errors using prints make TouchDesigner instantly close without warning

Intended behavior:

  • Select the “run_me” TextDAT operator
  • CTRL+R to run (or right click Run)
  • Returns the error seen in the “error” TextDAT operator

How to reproduce:

  • Select the “run_me_print” TextDAT operator
  • CTRL+R to run (or right click Run)
  • TouchDesigner will close without creating any CrashAutoSave or dump files.

run_me

def hello():
	hello()
	
hello()

run_me_print

def hello():
	print('Hello world')
	hello()
	
hello()

expected error

Traceback (most recent call last):
  File "</project1/recursion_test/text1:op('/project1/recursion_test/text1').run()>", line 1
td.Error: File "/project1/text1", line 4
  File "/project1/text1", line 2, in test
  File "/project1/text1", line 2, in test
  
[...]

  File "/project1/text1", line 2, in test
  File "/project1/text1", line 2, in test
RecursionError: maximum recursion depth exceeded
Results of run operation resulted in exception. <type:textDAT path:/project1/recursion_test/text1> <class 'td.textDAT'>

recursion_test.tox (862 Bytes)

Can confirm, thanks for the report.

This will be fixed in 2018.26680+

Thanks! Any ETA for the release?

Hi.

We’re aiming to get an update out soon, this week.

Cheers,
Rob.