I'm having unexpected results using geometry generator with the following expression:
…which was an answer given in this topic. I have used this previously with the expected result, but now something is strange. It appears that the geometry is being collected (and buffered) not once, but over and over—see the attached screencast. It's not infinite; it will do this about 20-25 times and then stop.
I can't tell which part of the function is the problem. If I just call
collect($geometry), I'll get the same result (but rendered faster as it's not buffering). If I just call
buffer($geometry, 0), then it renders some features only once, and others a varying multiple of times (see screenshot).
I'm sure it's data related because it doesn't happen on all layers. What can I look for that would cause this multiple rendering?