Skip to content

Conversation

@louis-e
Copy link
Owner

@louis-e louis-e commented Nov 16, 2025

The flood fill algorithm was getting stuck in an infinite or near-infinite loop due to:

  • Insufficient timeout checks: Only checking every 100 filled blocks, which may never trigger for small problematic polygons
  • No iteration limit: No safeguard against pathological cases where the algorithm gets stuck

@louis-e louis-e merged commit 819b03e into main Nov 16, 2025
2 checks passed
@louis-e louis-e deleted the floodfill-stuck-fix branch November 16, 2025 17:57
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants