VRCSDK3-2019.12.19.19.56
UDONSDK-2019.12.19.18.37_Public
Testing in editor
When using a subgraph multiple times within the same for loop, the Udon VM exits with error code 1 at the end of the first loop. A sample of the graph and subgraph can be seen in the images below.
Calling the subgraph in sequence without a for loop runs as expected. Having only one subgraph call per loop works as expected.
Upon closer inspection of the Udon Assembly code, the JUMP address at the end of the for loop 0x000053 does not correspond to the start of the for loop that increments the index, but another code segment.
After modifying the bytecode in the .asset file to correspond to the correct JUMP address of 0x00002F, the code runs as expected.
The compiled assembly by the graph compiler that doesn't work:
And the modified assembly that does work:
Original .asset:
.asset with modified bytecode that works: https://nyanpa.su/f/vrc/working.asset

Photo Viewer

View photos in a modal