Here is a curious little bug that I've been trying to solve for days. If you use the "vis 1" / "vis 0" messages to dynamically open and close a patch, sometimes the atom objects (float or symbol) hang in the GOP area. By hang I mean that a dead copy is created just below the original atom. It doesn't function, but it stays there on the canvas if you move the GOP object, and it can't be selected or deleted. I am attaching a little patch which demonstrates this.
My guess is that this has something to do with the grey rectangle that is usually imposed over the GOP area when you open it through the menu. This doesn't work when you use the "vis 1" message, and so the parent canvas must be receiving a TCL command to recreate the float, when it wasn't destroyed in the first place.
Does anyone have a clearer idea of what is going on, and, more importantly, how I can work around it? I know that dynamic patching isn't officially supported, but I'm still crossing my fingers for a way to prevent this bug.
A few more curiosities: