citybound/citybound

Simulation Broke - Reversing should always work

chakflying opened this issue · 0 comments

I was trying to move around the roads and zones after implementing them when it crashed.
Screenshot_2019-04-26 Citybound
Platform: Windows 10 Pro 1809 64-bit
Citybound v0.1.2-771-g3ef235d
Firefox 66.0.3 64-bit
npm 6.9.0
node v10.15.3
rustup 1.17.0 (069c88ed6 2019-03-05)

active toolchain
----------------

nightly-2019-03-23-x86_64-pc-windows-msvc (directory override for '\\?\C:\Dev\citybound')
rustc 1.35.0-nightly (cb2f34dc6 2019-03-22)

cb_last_error.txt output:

SIMULATION BROKE :(

HOW TO REPORT BUGS:
https://github.com/citybound/citybound/blob/master/CONTRIBUTING.md#reporting-bugs

WHAT HAPPENED:
Reversing should always work

WHERE IT HAPPENED:
at src\libcore\option.rs, line 1034

WHERE EXACTLY:
stack backtrace:
   0:     0x7ff7a3d72d9f - backtrace::backtrace::trace<closure>
                        at C:\Users\User\.cargo\registry\src\github.com-1ecc6299db9ec823\backtrace-0.3.9\src\backtrace\mod.rs:42
   1:     0x7ff7a3b7704e - backtrace::capture::{{impl}}::default
                        at C:\Users\User\.cargo\registry\src\github.com-1ecc6299db9ec823\backtrace-0.3.9\src\capture.rs:235
   2:     0x7ff7a3aebe8b - citybound::init::set_error_hook::{{closure}}
                        at C:\Dev\citybound\cb_server\init.rs:149
   3:     0x7ff7a3d51e15 - std::panicking::rust_panic_with_hook
                        at /rustc/cb2f34dc6d7e83d8bcfef79e0388d49f0c24aca7\/src\libstd\panicking.rs:481
   4:     0x7ff7a3d51924 - std::panicking::continue_panic_fmt
                        at /rustc/cb2f34dc6d7e83d8bcfef79e0388d49f0c24aca7\/src\libstd\panicking.rs:381
   5:     0x7ff7a3d51809 - std::panicking::rust_begin_panic
                        at /rustc/cb2f34dc6d7e83d8bcfef79e0388d49f0c24aca7\/src\libstd\panicking.rs:308
   6:     0x7ff7a3d5cb2c - core::panicking::panic_fmt
                        at /rustc/cb2f34dc6d7e83d8bcfef79e0388d49f0c24aca7\/src\libcore\panicking.rs:85
   7:     0x7ff7a3d5cb96 - core::option::expect_failed
                        at /rustc/cb2f34dc6d7e83d8bcfef79e0388d49f0c24aca7\/src\libcore\option.rs:1034
   8:     0x7ff7a3d786ed - descartes::line_path::LinePath::reverse
                        at C:\Users\User\.cargo\registry\src\github.com-1ecc6299db9ec823\descartes-0.1.19\src\line_path.rs:267
   9:     0x7ff7a3b7966a - core::iter::adapters::{{impl}}::next<(descartes::line_path::LinePath, descartes::area_embedding::AreaLabel<cb_simulation::land_use::zone_planning::calculate_prototypes::ZoneEmbeddingLabel>),stable_vec::Iter<(descartes::line_path::LinePath, descartes::area_embedding::AreaLabel<cb_simulation::land_use::zone_planning::calculate_prototypes::ZoneEmbeddingLabel>)>,closure>
                        at /rustc/cb2f34dc6d7e83d8bcfef79e0388d49f0c24aca7\src\libcore\iter\adapters\mod.rs:810
  10:     0x7ff7a3bbc63e - alloc::vec::{{impl}}::from_iter<(descartes::line_path::LinePath, descartes::area_embedding::AreaLabel<cb_simulation::land_use::zone_planning::calculate_prototypes::ZoneEmbeddingLabel>),core::iter::adapters::FilterMap<stable_vec::Iter<(descartes::line_path::LinePath, descartes::area_embedding::AreaLabel<cb_simulation::land_use::zone_planning::calculate_prototypes::ZoneEmbeddingLabel>)>, closure>>
                        at /rustc/cb2f34dc6d7e83d8bcfef79e0388d49f0c24aca7\src\liballoc\vec.rs:1821
  11:     0x7ff7a3c5e463 - descartes::area_embedding::AreaEmbeddingView<cb_simulation::land_use::zone_planning::calculate_prototypes::ZoneEmbeddingLabel>::get_areas_with_pieces<cb_simulation::land_use::zone_planning::calculate_prototypes::ZoneEmbeddingLabel>
                        at C:\Users\User\.cargo\registry\src\github.com-1ecc6299db9ec823\descartes-0.1.19\src\area_embedding.rs:285
  12:     0x7ff7a3cce0c1 - core::ops::function::impls::{{impl}}::call_once<((cb_simulation::planning::GestureID*, cb_simulation::planning::VersionedGesture*)),closure>
                        at /rustc/cb2f34dc6d7e83d8bcfef79e0388d49f0c24aca7\src\libcore\ops\function.rs:279
  13:     0x7ff7a3c55876 - core::iter::traits::iterator::{{impl}}::next<core::result::{{impl}}::from_iter::Adapter<core::iter::adapters::Map<core::iter::adapters::Map<core::iter::adapters::Filter<core::slice::Iter<compact::compact_hash_map::Entry<cb_simulation::planning::GestureID, cb_simulation::planning::VersionedGesture>>, closure>, closure>, closure>, descartes::areas::AreaError>>
                        at /rustc/cb2f34dc6d7e83d8bcfef79e0388d49f0c24aca7\src\libcore\iter\traits\iterator.rs:2693
  14:     0x7ff7a3baf8f1 - alloc::vec::{{impl}}::from_iter<core::option::Option<cb_simulation::planning::Prototype>,mut core::result::{{impl}}::from_iter::Adapter<core::iter::adapters::Map<core::iter::adapters::Map<core::iter::adapters::Filter<core::slice::Iter<compact::compact_hash_map::Entry<cb_simulation::planning::GestureID, cb_simulation::planning::VersionedGesture>>, closure>, closure>, closure>, descartes::areas::AreaError>*>
                        at /rustc/cb2f34dc6d7e83d8bcfef79e0388d49f0c24aca7\src\liballoc\vec.rs:1821
  15:     0x7ff7a3d1b88b - cb_simulation::land_use::zone_planning::calculate_prototypes
                        at C:\Dev\citybound\cb_simulation\src\land_use\zone_planning\mod.rs:161
  16:     0x7ff7a3d11bc5 - cb_simulation::planning::PlanHistory::calculate_result
                        at C:\Dev\citybound\cb_simulation\src\planning\mod.rs:779
  17:     0x7ff7a3d08abc - cb_simulation::planning::PlanManager::get_project_preview_update
                        at C:\Dev\citybound\cb_simulation\src\planning\interaction\mod.rs:85
  18:     0x7ff7a3b930eb - kay::class::{{impl}}::add_handler::{{closure}}<cb_simulation::planning::PlanManager,cb_simulation::planning::interaction::kay_auto::MSG_PlanManager_get_project_preview_update,closure>
                        at C:\Users\User\.cargo\registry\src\github.com-1ecc6299db9ec823\kay-0.4.1\src\class\mod.rs:83
  19:     0x7ff7a3d86d00 - kay::class::instance_store::InstanceStore::receive_instance
                        at C:\Users\User\.cargo\registry\src\github.com-1ecc6299db9ec823\kay-0.4.1\src\class\instance_store\mod.rs:116
  20:     0x7ff7a3d36aed - kay::class::Class::handle_messages
                        at C:\Users\User\.cargo\registry\src\github.com-1ecc6299db9ec823\kay-0.4.1\src\class\mod.rs:109
  21:     0x7ff7a3d2fdd4 - std::panicking::try::do_call<std::panic::AssertUnwindSafe<closure>,()>
                        at /rustc/cb2f34dc6d7e83d8bcfef79e0388d49f0c24aca7\src\libstd\panicking.rs:293
  22:     0x7ff7a3d57112 - panic_unwind::__rust_maybe_catch_panic
                        at /rustc/cb2f34dc6d7e83d8bcfef79e0388d49f0c24aca7\/src\libpanic_unwind\lib.rs:87
  23:     0x7ff7a3d310e6 - kay::actor_system::ActorSystem::process_all_messages
                        at C:\Users\User\.cargo\registry\src\github.com-1ecc6299db9ec823\kay-0.4.1\src\actor_system.rs:144
  24:     0x7ff7a3ac6275 - std::sys_common::backtrace::__rust_begin_short_backtrace<closure,()>
                        at /rustc/cb2f34dc6d7e83d8bcfef79e0388d49f0c24aca7\src\libstd\sys_common\backtrace.rs:136
  25:     0x7ff7a3ae0006 - std::panicking::try::do_call<std::panic::AssertUnwindSafe<closure>,()>
                        at /rustc/cb2f34dc6d7e83d8bcfef79e0388d49f0c24aca7\src\libstd\panicking.rs:295
  26:     0x7ff7a3d57112 - panic_unwind::__rust_maybe_catch_panic
                        at /rustc/cb2f34dc6d7e83d8bcfef79e0388d49f0c24aca7\/src\libpanic_unwind\lib.rs:87
  27:     0x7ff7a3ad1995 - alloc::boxed::{{impl}}::call_box<(),closure>
                        at /rustc/cb2f34dc6d7e83d8bcfef79e0388d49f0c24aca7\src\liballoc\boxed.rs:749
  28:     0x7ff7a3d55404 - std::sys::windows::thread::{{impl}}::new::thread_start
                        at /rustc/cb2f34dc6d7e83d8bcfef79e0388d49f0c24aca7\/src\libstd\sys\windows\thread.rs:48
  29:     0x7ff865e87974 - BaseThreadInitThunk

npm run watch-browser output:

npm run watch-browser
audited 9722 packages in 5.876s
found 201 vulnerabilities (194 moderate, 7 high)
  run `npm audit fix` to fix them, or `npm audit` for details
warning: debug builds on the wasm32-unknown-unknown are currently totally broken
         forcing a release build
   Compiling cb_browser_ui v0.3.0 (C:\Dev\citybound\cb_browser_ui)
    Finished release [optimized + debuginfo] target(s) in 24.18s
    Garbage collecting "cb_browser_ui.wasm"...
    Processing "cb_browser_ui.wasm"...
warning: unsupported custom section: 'producers', please report this!
    Finished processing of "cb_browser_ui.wasm"!
√  Built in 9.16s.