AI Flow
Public Made by Adomby adom
Adom's AI Flow: a tool to help the AI follow all of the steps it takes to build a board.
Router panic (index out of bounds) when a part is left outside the board outline
Target wiki: adom/adom-aiflow
Versions
- AI Flow 0.2.47
- Fusion Bridge 1.13.67
- Hydrogen on a Windows laptop, WSL
Adom-Workspace
What happened
Thanks for the router. It's been really impressive on the boards we've run through it. I wanted to report one crash.
The board is a small 4-layer design with parts on both sides. One part had been left outside the board outline by mistake. Place check and land both passed without flagging that part. Pack did report N-1 of N parts, which in hindsight was the clue. The router then panicked instead of returning an error.
Exact error text
thread 'main' panicked at crates/aiflow-router/src/lib.rs:842:45:
index out of bounds: the len is 105891 but the index is 340656
Steps to reproduce (generic)
- Use a 4-layer board with an inner GND plane.
- Leave one part outside the board outline.
- Run place check and land. Both pass, and pack reports N-1 of N parts.
- Run route. The router panics with the message above.
Expected vs actual
- Expected: Place check, land, or the router stops with a clear error that names the part that is off the board.
- Actual: No warning shows up before routing, and the router panics with an index-out-of-bounds error.
Workaround
We had AI Flow re-place the part inside the outline, and the router then ran without crashing. Since then we've been running a small checker of our own before routing to catch parts that are off the board. Is there a check you'd recommend running before routing to catch this?
Thanks!
— Andy Engevold