rust-socketio: EngineIO Panic

I a using your great library, but my applications panics after some time (seems to be random ~10-30 secs after startup) with the following backtrace:

thread '<unnamed>' panicked at 'EngineIO Error', /home/mawoka/.cargo/registry/src/github.com-1ecc6299db9ec823/rust_socketio-0.3.0/src/client/builder.rs:229:21
stack backtrace:
   0:     0x557646368a8c - std::backtrace_rs::backtrace::libunwind::trace::hd70f18a67bf1064d
                               at /rustc/68369a041cea809a87e5bd80701da90e0e0a4799/library/std/src/../../backtrace/src/backtrace/libunwind.rs:93:5
   1:     0x557646368a8c - std::backtrace_rs::backtrace::trace_unsynchronized::hed700f39aaa9560e
                               at /rustc/68369a041cea809a87e5bd80701da90e0e0a4799/library/std/src/../../backtrace/src/backtrace/mod.rs:66:5
   2:     0x557646368a8c - std::sys_common::backtrace::_print_fmt::h05ffc8c800d3fd6e
                               at /rustc/68369a041cea809a87e5bd80701da90e0e0a4799/library/std/src/sys_common/backtrace.rs:66:5
   3:     0x557646368a8c - <std::sys_common::backtrace::_print::DisplayBacktrace as core::fmt::Display>::fmt::hc3335dc9ac9ea141
                               at /rustc/68369a041cea809a87e5bd80701da90e0e0a4799/library/std/src/sys_common/backtrace.rs:45:22
   4:     0x5576463904dc - core::fmt::write::h8ba7e47d56fb9287
                               at /rustc/68369a041cea809a87e5bd80701da90e0e0a4799/library/core/src/fmt/mod.rs:1190:17
   5:     0x557646362018 - std::io::Write::write_fmt::hcc4602e4a7d8cb4e
                               at /rustc/68369a041cea809a87e5bd80701da90e0e0a4799/library/std/src/io/mod.rs:1657:15
   6:     0x55764636ace7 - std::sys_common::backtrace::_print::hfefb27db9027fc13
                               at /rustc/68369a041cea809a87e5bd80701da90e0e0a4799/library/std/src/sys_common/backtrace.rs:48:5
   7:     0x55764636ace7 - std::sys_common::backtrace::print::h3b5c5f5af201c47a
                               at /rustc/68369a041cea809a87e5bd80701da90e0e0a4799/library/std/src/sys_common/backtrace.rs:35:9
   8:     0x55764636ace7 - std::panicking::default_hook::{{closure}}::h9364b8e096329e42
                               at /rustc/68369a041cea809a87e5bd80701da90e0e0a4799/library/std/src/panicking.rs:295:22
   9:     0x55764636a99f - std::panicking::default_hook::hbb3fd2f25c08d7b9
                               at /rustc/68369a041cea809a87e5bd80701da90e0e0a4799/library/std/src/panicking.rs:314:9
  10:     0x55764636b43b - std::panicking::rust_panic_with_hook::hb8806bff47a676e3
                               at /rustc/68369a041cea809a87e5bd80701da90e0e0a4799/library/std/src/panicking.rs:698:17
  11:     0x55764636b127 - std::panicking::begin_panic_handler::{{closure}}::h9d9d57a8e207ec62
                               at /rustc/68369a041cea809a87e5bd80701da90e0e0a4799/library/std/src/panicking.rs:588:13
  12:     0x557646368f54 - std::sys_common::backtrace::__rust_end_short_backtrace::h41203f137e127a88
                               at /rustc/68369a041cea809a87e5bd80701da90e0e0a4799/library/std/src/sys_common/backtrace.rs:138:18
  13:     0x55764636ae39 - rust_begin_unwind
                               at /rustc/68369a041cea809a87e5bd80701da90e0e0a4799/library/std/src/panicking.rs:584:5
  14:     0x557645918b73 - core::panicking::panic_fmt::h472b827f82d8bfa4
                               at /rustc/68369a041cea809a87e5bd80701da90e0e0a4799/library/core/src/panicking.rs:142:14
  15:     0x557645b4c104 - core::panicking::panic_display::h2419126f417c20d1
                               at /rustc/68369a041cea809a87e5bd80701da90e0e0a4799/library/core/src/panicking.rs:73:5
  16:     0x557645b4585a - rust_socketio::client::builder::ClientBuilder::connect::{{closure}}::h887cc7cd172ebccc
                               at /home/mawoka/.cargo/registry/src/github.com-1ecc6299db9ec823/rust_socketio-0.3.0/src/client/builder.rs:229:21
  17:     0x557645b53310 - std::sys_common::backtrace::__rust_begin_short_backtrace::haf4ad59f77837423
                               at /rustc/68369a041cea809a87e5bd80701da90e0e0a4799/library/std/src/sys_common/backtrace.rs:122:18
  18:     0x557645b3ed4d - std::thread::Builder::spawn_unchecked_::{{closure}}::{{closure}}::h9fc04ac80e2aa3df
                               at /rustc/68369a041cea809a87e5bd80701da90e0e0a4799/library/std/src/thread/mod.rs:498:17
  19:     0x557645b3d991 - <core::panic::unwind_safe::AssertUnwindSafe<F> as core::ops::function::FnOnce<()>>::call_once::h013c64b8db9e80d3
                               at /rustc/68369a041cea809a87e5bd80701da90e0e0a4799/library/core/src/panic/unwind_safe.rs:271:9
  20:     0x557645b4c439 - std::panicking::try::do_call::h5e086d5aed2793f2
                               at /rustc/68369a041cea809a87e5bd80701da90e0e0a4799/library/std/src/panicking.rs:492:40
  21:     0x557645b4c8eb - __rust_try
  22:     0x557645b4c371 - std::panicking::try::h1cf7f936c2d9e65d
                               at /rustc/68369a041cea809a87e5bd80701da90e0e0a4799/library/std/src/panicking.rs:456:19
  23:     0x557645b3d491 - std::panic::catch_unwind::h3e2a3829123712dc
                               at /rustc/68369a041cea809a87e5bd80701da90e0e0a4799/library/std/src/panic.rs:137:14
  24:     0x557645b3eb57 - std::thread::Builder::spawn_unchecked_::{{closure}}::h9f4f924223a945bc
                               at /rustc/68369a041cea809a87e5bd80701da90e0e0a4799/library/std/src/thread/mod.rs:497:30
  25:     0x557645b4431f - core::ops::function::FnOnce::call_once{{vtable.shim}}::hfa8076f56c9bb1ad
                               at /rustc/68369a041cea809a87e5bd80701da90e0e0a4799/library/core/src/ops/function.rs:227:5
  26:     0x557646371163 - <alloc::boxed::Box<F,A> as core::ops::function::FnOnce<Args>>::call_once::h78e3a4498542e3c1
                               at /rustc/68369a041cea809a87e5bd80701da90e0e0a4799/library/alloc/src/boxed.rs:1854:9
  27:     0x557646371163 - <alloc::boxed::Box<F,A> as core::ops::function::FnOnce<Args>>::call_once::h350da154130e2756
                               at /rustc/68369a041cea809a87e5bd80701da90e0e0a4799/library/alloc/src/boxed.rs:1854:9
  28:     0x557646371163 - std::sys::unix::thread::Thread::new::thread_start::h918df3b0ffbb0232
                               at /rustc/68369a041cea809a87e5bd80701da90e0e0a4799/library/std/src/sys/unix/thread.rs:108:17
  29:     0x7fc67ed715c2 - start_thread
  30:     0x7fc67edf6584 - __clone
  31:                0x0 - <unknown>

It’s probably just me, doing something completely wrong, but I think that it still shouldn’t panic.

Thanks for your help!

About this issue

  • Original URL
  • State: closed
  • Created 2 years ago
  • Comments: 46 (21 by maintainers)

Commits related to this issue

Most upvoted comments

No way really? I am going to take a look again. Anyhow I fixed another bug, that’s for sure 😄

Mh… weird… I am currently trying the example in an Ubuntu VM