GLSL POP - inexplicably crashing

I am trying to create new points with the GLSL advanced POP, based on the example in the snippets. I recreated the network but when I connect the target POP to the feedback TD crashes.

Is this a bug or am I missing something? :confused:

GLSLEmitPoints.2.toe (18.8 KB)

Are you referring to feedback1 in your example? When setting null5 as the Target POP, the feedback loop and merge1 are adding more and more points until we are running out of GPU memory. To avoid running out of memory, you can enable Use Memory Limit on the Feedback POP and set an Input Multiplier limit.

@Guillaume.L the original setup was using Topology POP instead of the feedback POP limiter to limit allocated memory.

@lion.toe so what happens in the bottom setup that crashes when connecting the target to the feedback is that the gpu memory allocation explodes very quickly.

It took me a minute to understand why because it’s pretty similar to the top setup, the culprit is on point1 you have Create point primitives on, but the Topology POP only limit the allocation of points, not point primitives, so every feedback loop the number of allocated point primitives double.
Easy fix is to turn off Create point primitives on point1. Other fix would be would to have the topology POPs set the number of point primitives to 0.

otherwise if I disconnect merge1 from topology2 and reconnect the link appears similar to the top setup, that might be a visual bug. the link is because of the expression in maxpoints in Topology POP
min(me.inputs[0].numPoints(max=True), 1000000) inputs[0] is the merge.

I hope that makes sense!