marcnormandin / pso_js

Particle Swarm Optimization implemented in java script with interactive plot animations
6 stars 1 forks source link

Bug: Sometimes the page is unresponsive and crashes #19

Open marcnormandin opened 9 years ago

marcnormandin commented 9 years ago

Sometimes, mostly when refreshing the demo page, the page will be unresponsive. It sometimes seems to correct itself after the maximum number of iterations are reached, but sometimes, after starting again, it will become unresponsive once more.

The problem can go away if the page is closed, and then reopened until the problem doesn't reappear.

marcnormandin commented 9 years ago

I moved the script includes to the end of the body. Perhaps this will fix whatever problem was causing the crashes. Perhaps it was a race condition of some sort. Let me know if you guys have any more crashes, thanks!

martinberoiz commented 9 years ago

It's much responsive now on my side, but with stopping condition set to never it will eventually stop responding.

marcnormandin commented 9 years ago

This will probably turn out to be a nasty bug. It seems that it is resource related.