Custom curve preview bug - does not draw when animated by a slider

I cannot share my files but try it:

make a component that randomly generate thousands of lines, then connect it to a custom curve preview to display. Then connect a number slider to the component and animate the slider.

At the beginning it works, then after several rounds, the custom curve preview stops displaying lines. Only if you reconnect the wire of the custom curve preview, which i cannot do while I’m animating the entire grasshopper code.

What I tried:

  1. restart computer
  2. Paste the model to a new Rhino file
  3. Paste the code to a new grasshopper document

Doesn’t work

But maybe you could recreate a simplified definition?

custom_curve_preview_test.gh (6.5 KB)

Hi Martin,

I tried to make a simplified file for you (removed some Ladybug Tools components, removed some irrelevant python2 codes), then the bug disappeard.

Really wired. I don’t know if Ladybug Tools has corrupted the display pipeline or what.

But thank you very much.