Component only works properly when its network is viewed

Hello TD Forum! I’ve hit a very weird edge case, and I suspect it might be a bug but not quite sure. It involves DAT Exports controlling a clone parameter inside a component, and its behavior changing when the component’s network is viewed. I’ve attached a minimal Tox demonstrating the issue.

clone_issue.tox (1.0 KB)

Here’s the setup:

  • A Table DAT (table1) is set in Export mode
  • Every 0.5 seconds, the table is modified by execute1. In my actual project, this is a CPlusPlus DAT but the issue appears regardless.
  • There are two components, base1 and base2 which each have a component called inner inside
  • table1 controls the clone parameter of these two inner components, switching them between cloning the top-level red or blue components

Here’s the issue:

  • The desired behavior works only when you step inside base1 / base2 and view their network.
  • While viewing the top-level network, nothing changes. Incorrect behavior.
  • Entering base1 or base2, you will see the desired red/blue flash behavior

In other words, the behavior of the network seems to depend on whether you’re viewing it or not. Observer Effect in action! This seems like a bug to me, but I could be wrong. In any case, anyone have a suggested workaround?

This is on version 2021.14360, reproduced on both Mac and Windows. I can also make a screencast if my written description is unclear. Thank you!

Thanks @raphieps that’s a bug for sure. Attached a simple workaround using a parexecDAT to cook properly when clone changes.
clone_issue.1.toe (4.0 KB)

Workaround is perfect, and I really appreciate your replying so quickly @Ivan. Cheers!

1 Like

No problem :slight_smile: Bug is reported so if all goes well you will be able to remove the workaround in the next experimental release.