PathFinding.js icon indicating copy to clipboard operation
PathFinding.js copied to clipboard

Restart Search leaves garbage

Open llbit opened this issue 12 years ago • 3 comments

Sometimes "Restart Search" leaves garbage. See attached image:

garbage

The blue node on the left, and the green one on the right are garbage. After pressing "Cancel Search" I get this:

garbage2

It seems to leave at most one garbage node at a time, but these can be accumulated.

llbit avatar Apr 24 '13 13:04 llbit

Thanks for the report. Could you please tell me what browser are you using and if there's a way to reproduce the bug?

qiao avatar Apr 24 '13 13:04 qiao

I am using Opera. I can reproduce it by pressing "Restart Search" multiple times. Sometimes it leaves these garbage nodes.

The simplest way to reproduce it is to clear all walls, select breadth-first search, then spam "Restart Search".

garbage3

llbit avatar Apr 24 '13 13:04 llbit

Confirmed. I'll try to locate and fix the bug.

qiao avatar Apr 24 '13 13:04 qiao