UdonXML icon indicating copy to clipboard operation
UdonXML copied to clipboard

10 Second VM Time Limit

Open muzdavines opened this issue 3 years ago • 1 comments

When trying to load a large XML, the operation fails due to a 10 second time limit on the VM:

[UdonSharp] Assets/Resources/Foorack/UdonXML/UdonXML.cs(246,25): Udon runtime exception detected! The VM encountered an error! Program execution time exceeded max VM time of 10 seconds. You may want to check for infinite loops/recursion. Program Counter was at 6488

muzdavines avatar Oct 01 '21 00:10 muzdavines

Hello, thanks for reporting this!

This is a known bug, and is a limitation in Udon itself. The Udon VM is killed if something is taking longer than 10 seconds (which means a single frame is 10 seconds long!).

Ways to fix this would either be optimization of the parser, or splitting it up onto multiple frames.

I'm currently away over the weekend, but will try to look at this next week.

Foorack avatar Oct 01 '21 22:10 Foorack

Great work. This is painful. I hate UdonSharp :D

elgansayer avatar Oct 11 '24 16:10 elgansayer