Created attachment 122949 [details] A patch to fix the problem Palapeli sometimes crashes when using piece holders. What seems to happen is that two pieces in different scenes/views are merged, and the code trying to update the piece list for one of these scenes fails to remove the piece because it's not on the list. The piece then gets deleted (through a deleteLater call), but it's still in the list for another scene, and we get a use-after-free scenario. I'm attaching a patch which seems to fix it - I've been unable to reproduce crashes after this.
I don't think this is the correct fix, i think it's just masking that piece->logicalNeighbors() is giving wrong information and that's what we should aim at fixing in my opinion