a-b-street / abstreet

Transportation planning and traffic simulation software for creating cities friendlier to walking, biking, and public transit
https://a-b-street.github.io/docs/
Apache License 2.0
7.7k stars 342 forks source link

Crash when clicking on a parking lot #1118

Closed Antonin-duda closed 1 year ago

Antonin-duda commented 1 year ago

panicked at 'already mutably borrowed: BorrowError', /home/dabreegster/.cargo/registry/src/index.crates.io-6f17d22bba15001f/winit-0.27.0/src/platform_impl/web/event_loop/runner.rs:509:30

dabreegster commented 1 year ago

Thanks for reporting! Could you help us reproduce this -- what map, did you start a traffic sim in any special way, etc?

Antonin-duda commented 1 year ago

https://github.com/a-b-street/abstreet/assets/87385742/8fb8f359-bbd0-438d-910c-f8e96164df02

dabreegster commented 1 year ago

Thanks for reporting! The problem was "prebaked" simulation data covering this map and scenario without any edits. It had gone out of date; I've been bad about regenerating this lately, because the simulation on this map crashes. (#996) I've removed the prebaked data, so this crash will be fixed in the next release, though the traffic simulation will still crash elsewhere.