ShortestPathLab / posthoc-app

Posthoc is a way to build simple and effective visualisations ✨ for sequential decision-making algorithms, such as search.
http://posthoc-app.pathfinding.ai/
28 stars 5 forks source link

Race condition: Map type is not supported #37

Closed spaaaacccee closed 4 months ago

spaaaacccee commented 8 months ago

In 1.2.0, when you load a map, sometimes it'll get stuck and say "Map type is not supported".

This is a known issue which should be fixed by a small change.

This issue is due to a race condition where the user can sometimes upload a map before the parsers are loaded. The parser loading is done together with solver loading, so it'll take up to 5 seconds to become available, even though they theoretically could load instantly.

Proposal: Wait for parsers to load before allowing users to upload a map.

spaaaacccee commented 4 months ago

This should be fixed in 79b81b740c3c655db8848e060e5d2e5d0b86a50f