citybound/citybound

Server crashes when trying to plan some probably really weird road

msdsk opened this issue · 1 comments

msdsk commented

Platform: macOS 10.12.6

What I was trying to do: Create a loopy road that would cross an old one in two points:
screenshot_2018-10-08 citybound
After that I wanted to create another one, right where the first one started, but when I clicked only circles appeared without actual roads appearing. I double-clicked to finish the (non-visible or non-existent) road and the server crashed.

What happened: Server crashed with a following information:

SIMULATION BROKE :(

WHAT HAPPENED:
index out of bounds: the len is 10 but the index is 10

WHERE IT HAPPENED:
at game_common/src/planning/interaction/mod.rs, line 271

WHERE EXACTLY:
stack backtrace:
   0:        0x10b1bfd4e - backtrace::backtrace::trace::h200151be41eec4e7
   1:        0x10b1c0f7c - <backtrace::capture::Backtrace as core::default::Default>::default::hccdf8ec7f4d50dfe
   2:        0x10b1c161d - backtrace::capture::Backtrace::new::hf2166429b5af7377
   3:        0x10b101531 - citybound_common::util::init::set_error_hook::{{closure}}::h0c4a25729c1f22e1
   4:        0x10b1e6538 - std::panicking::rust_panic_with_hook::h63bac89c0b130b1b
   5:        0x10b1e608c - std::panicking::continue_panic_fmt::hca36ebb6f3aa63ac
   6:        0x10b1e5f78 - _rust_begin_unwind
   7:        0x10b227931 - core::panicking::panic_fmt::hf13b65b6154af8d5
   8:        0x10b2278e3 - core::panicking::panic_bounds_check::hbda28434cea65846
   9:        0x10afce347 - citybound_common::planning::interaction::<impl citybound_common::planning::PlanManager>::move_control_point::hc110dae80566df2e
  10:        0x10af3ea4c - <kay::swarm::Swarm<A>>::dispatch_packet::h61bf51f19613b6f6
  11:        0x10b13ea13 - kay::actor_system::ActorSystem::single_message_cycle::h4a906bd3711cce93
  12:        0x10b13f087 - std::panicking::try::do_call::h9ff549f4c1e24ce2
  13:        0x10b1f1e3e - ___rust_maybe_catch_panic
  14:        0x10b13ec70 - kay::actor_system::ActorSystem::process_all_messages::he017727a840b3810
  15:        0x10ae4d531 - citybound_common::util::init::ensure_crossplatform_proper_thread::h8896ee2d0458dde1
  16:        0x10ae4be1a - citybound::main::hbdd2edf415cda62a
  17:        0x10ae56175 - std::rt::lang_start::{{closure}}::ha44d3f301f42c351
  18:        0x10b1e5ef7 - std::panicking::try::do_call::h9acf80638e52ec84
  19:        0x10b1f1e3e - ___rust_maybe_catch_panic
  20:        0x10b1d817c - std::rt::lang_start_internal::h60412e610ba9720a
  21:        0x10ae4d07b - _main

ALSO SEE "/var/folders/p6/q914b3xn0gxf_dps0mln7tlc0000gn/T/cb_last_error.txt" (AUTO-OPENED)

This exact bug is fixed in the latest version, thanks for reporting it!