ScottyThePilot / hoi4_province_editor

Map editor application for Hearts of Iron IV

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Crash on saving

concommie opened this issue · comments

Hi, been using this tool for the past few months and suddenly there's a crash when I try to save.

Crash log:
`The application panicked (crashed).
Message: no entry found for key
Location: src\app\map\bridge.rs:399

Run with COLORBT_SHOW_HIDDEN=1 environment variable to disable frame filtering.
Run with RUST_BACKTRACE=full to include source snippets.
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ BACKTRACE ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
1: BaseThreadInitThunk
at
2: RtlUserThreadStart
at `

max-undo-states: 24
preserve-ids: true
generate-coastal-on-save: false
I am using a few added custom terrains.

I figured it out, has to do with moving a lot of provinces around with adjacencies already defined and having them break. Removed all the relevant adjacencies and it worked

I believe this is a bug. It appears to be caused by the through province (currently not assignable through HOI4PE) of an already-defined adjacency becoming deleted, which is not handled.

This is fixed in the latest release.