MitjaNemec / Kicad_action_plugins

Kicad action plugins
413 stars 62 forks source link

Possible correction to Assertion "aNetInfo->GetBoard() == GetBoard()" failed. #70

Closed lumostor closed 4 years ago

lumostor commented 4 years ago

This works on my debian-testing machine, but crash with another assertion.

kicad: /build/kicad-2BBSqv/kicad-5.1.4+dfsg1/pcbnew/board_connected_item.cpp:69: bool BOARD_CONNECTED_ITEM::SetNetCode(int, bool): Assertion `m_netinfo' failed.

the board I'm using: save_restore_layout/Source_project/multiple_hierarchy.kicad_pcb

1-load board 2-select part U1301 3- run save_restore_layout 4- choose restore 5- choose Power.pckl 6- crash with Assertion `m_netinfo' failed.

save_restore_layout.log

This is all I can do for now, it's going late.

lumostor commented 4 years ago

Commit https://github.com/MitjaNemec/Kicad_action_plugins/pull/70/commits/98cb42a06ad6e66ffd0b49db0d8823b2249f2e2d fix Assertion `m_netinfo' failed issue. And almost revert to original code.

Add track (and zone) must be done before changing the net. Once the net change for the tracks were fixed, there was a the same issue for the zones. This fix the zones too.