Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Unhandled CimSubModeGarage panic #189

Open
theangryangel opened this issue Sep 6, 2024 · 2 comments
Open

Unhandled CimSubModeGarage panic #189

theangryangel opened this issue Sep 6, 2024 · 2 comments

Comments

@theangryangel
Copy link
Owner

thread 'main' panicked at insim/src/insim/cim.rs:137:17:
internal error: entered unreachable code: Unhandled CimSubModeGarage. Perhaps a programming error or protocol update?
stack backtrace:
   0: rust_begin_unwind
             at /rustc/3f5fd8dd41153bc5fdca9427e9e05be2c767ba23/library/std/src/panicking.rs:652:5
   1: core::panicking::panic_fmt
             at /rustc/3f5fd8dd41153bc5fdca9427e9e05be2c767ba23/library/core/src/panicking.rs:72:14
   2: <insim::insim::cim::CimSubModeGarage as core::convert::From<u8>>::from
             at /home/karl/Code/insim.rs/insim/src/insim/cim.rs:137:17
   3: <T as core::convert::Into<U>>::into
             at /rustc/3f5fd8dd41153bc5fdca9427e9e05be2c767ba23/library/core/src/convert/mod.rs:759:9
   4: <insim::insim::cim::CimMode as binrw::binread::BinRead>::read_options
             at /home/karl/Code/insim.rs/insim/src/insim/cim.rs:189:31
   5: <insim::insim::cim::Cim as binrw::binread::BinRead>::read_options::{{closure}}
             at /home/karl/Code/insim.rs/insim/src/insim/cim.rs:237:1
   6: <insim::insim::cim::Cim as binrw::binread::BinRead>::read_options
             at /home/karl/Code/insim.rs/insim/src/insim/cim.rs:237:1
   7: <insim::packet::Packet as binrw::binread::BinRead>::read_options::{{closure}}::{{closure}}
             at /home/karl/Code/insim.rs/insim/src/packet.rs:7:1
   8: <insim::packet::Packet as binrw::binread::BinRead>::read_options::{{closure}}
             at /home/karl/Code/insim.rs/insim/src/packet.rs:7:1
   9: <insim::packet::Packet as binrw::binread::BinRead>::read_options
             at /home/karl/Code/insim.rs/insim/src/packet.rs:7:1
  10: binrw::binread::BinRead::read_args
             at /home/karl/.cargo/registry/src/index.crates.io-6f17d22bba15001f/binrw-0.14.0/src/binread/mod.rs:116:9
  11: binrw::binread::BinRead::read
             at /home/karl/.cargo/registry/src/index.crates.io-6f17d22bba15001f/binrw-0.14.0/src/binread/mod.rs:62:9
  12: insim::net::codec::Codec::decode
             at /home/karl/Code/insim.rs/insim/src/net/codec.rs:73:22
  13: insim::net::tokio_impl::framed::FramedInner<N>::read::{{closure}}
             at /home/karl/Code/insim.rs/insim/src/net/tokio_impl/framed.rs:71:39
  14: insim::net::tokio_impl::framed::Framed::read::{{closure}}::{{closure}}
             at /home/karl/Code/insim.rs/insim/src/net/tokio_impl/framed.rs:154:46
  15: insim::net::tokio_impl::framed::Framed::read::{{closure}}
             at /home/karl/Code/insim.rs/insim/src/net/tokio_impl/framed.rs:148:5
  16: strobe::main::{{closure}}::{{closure}}
             at /home/karl/.cargo/registry/src/index.crates.io-6f17d22bba15001f/tokio-1.28.1/src/macros/select.rs:524:49
  17: <tokio::future::poll_fn::PollFn<F> as core::future::future::Future>::poll
             at /home/karl/.cargo/registry/src/index.crates.io-6f17d22bba15001f/tokio-1.28.1/src/future/poll_fn.rs:58:9
  18: strobe::main::{{closure}}
             at ./src/main.rs:96:9
  19: tokio::runtime::park::CachedParkThread::block_on::{{closure}}
             at /home/karl/.cargo/registry/src/index.crates.io-6f17d22bba15001f/tokio-1.28.1/src/runtime/park.rs:283:63
  20: tokio::runtime::coop::with_budget
             at /home/karl/.cargo/registry/src/index.crates.io-6f17d22bba15001f/tokio-1.28.1/src/runtime/coop.rs:107:5
  21: tokio::runtime::coop::budget
             at /home/karl/.cargo/registry/src/index.crates.io-6f17d22bba15001f/tokio-1.28.1/src/runtime/coop.rs:73:5
  22: tokio::runtime::park::CachedParkThread::block_on
             at /home/karl/.cargo/registry/src/index.crates.io-6f17d22bba15001f/tokio-1.28.1/src/runtime/park.rs:283:31
  23: tokio::runtime::context::BlockingRegionGuard::block_on
             at /home/karl/.cargo/registry/src/index.crates.io-6f17d22bba15001f/tokio-1.28.1/src/runtime/context.rs:315:13
  24: tokio::runtime::scheduler::multi_thread::MultiThread::block_on
             at /home/karl/.cargo/registry/src/index.crates.io-6f17d22bba15001f/tokio-1.28.1/src/runtime/scheduler/multi_thread/mod.rs:66:9
  25: tokio::runtime::runtime::Runtime::block_on
             at /home/karl/.cargo/registry/src/index.crates.io-6f17d22bba15001f/tokio-1.28.1/src/runtime/runtime.rs:304:45
  26: strobe::main
             at ./src/main.rs:95:5
  27: core::ops::function::FnOnce::call_once
             at /rustc/3f5fd8dd41153bc5fdca9427e9e05be2c767ba23/library/core/src/ops/function.rs:250:5
note: Some details are omitted, run with `RUST_BACKTRACE=full` for a verbose backtrace.
@theangryangel
Copy link
Owner Author

Cant seem to reproduce this by flicking through the . I'm not sure when it happened exactly, but it was during tonight's Piran DD.

It implies that sometimes LFS is sending a GRG_NUM.. or there's something else off in the Cim packet handling :/

@theangryangel
Copy link
Owner Author

Have been unable to reproduce this with tonights Piran DD event :/

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant