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

reset causes an unhandled error #43

Closed
Tracked by #194
khs26 opened this issue Nov 14, 2020 · 5 comments · Fixed by #261
Closed
Tracked by #194

reset causes an unhandled error #43

khs26 opened this issue Nov 14, 2020 · 5 comments · Fixed by #261
Labels
compatibility Issues with VT/terminal compatibility suspected bug
Milestone

Comments

@khs26
Copy link
Contributor

khs26 commented Nov 14, 2020

When running reset in a new mosaic session, we get an unhandled error:

0: rust_begin_unwind
    at /rustc/18bf6b4f01a6feaf7259ba7cdae58031af1b7b39/library/std/src/panicking.rs:475
1: core::panicking::panic_fmt
    at /rustc/18bf6b4f01a6feaf7259ba7cdae58031af1b7b39/library/core/src/panicking.rs:85
2: core::option::expect_none_failed
    at /rustc/18bf6b4f01a6feaf7259ba7cdae58031af1b7b39/library/core/src/option.rs:1221
3: core::result::Result<T,E>::unwrap
    at /home/kyle/.rustup/toolchains/stable-x86_64-unknown-linux-gnu/lib/rustlib/src/rust/library/core/src/result.rs:973
4: <mosaic::pty_bus::VteEventSender as vte::Perform>::osc_dispatch
    at ./src/pty_bus.rs:140
5: vte::Parser::osc_dispatch
    at vte-0.8.0/src/lib.rs:195
6: vte::Parser::perform_action
    at vte-0.8.0/src/lib.rs:276
7: vte::Parser::perform_state_change
    at vte-0.8.0/src/lib.rs:165
8: vte::Parser::advance
    at vte-0.8.0/src/lib.rs:128
9: mosaic::pty_bus::stream_terminal_bytes::{{closure}}
    at ./src/pty_bus.rs:190
10: <core::future::from_generator::GenFuture<T> as core::future::future::Future>::poll
    at /home/kyle/.rustup/toolchains/stable-x86_64-unknown-linux-gnu/lib/rustlib/src/rust/library/core/src/future/mod.rs:79
11: <async_std::task::builder::SupportTaskLocals<F> as core::future::future::Future>::poll::{{closure}}
    at async-std-1.6.2/src/task/builder.rs:198
12: async_std::task::task_locals_wrapper::TaskLocalsWrapper::set_current::{{closure}}
    at async-std-1.6.2/src/task/task_locals_wrapper.rs:60
13: std::thread::local::LocalKey<T>::try_with
    at /home/kyle/.rustup/toolchains/stable-x86_64-unknown-linux-gnu/lib/rustlib/src/rust/library/std/src/thread/local.rs:265
14: std::thread::local::LocalKey<T>::with
    at /home/kyle/.rustup/toolchains/stable-x86_64-unknown-linux-gnu/lib/rustlib/src/rust/library/std/src/thread/local.rs:241
15: async_std::task::task_locals_wrapper::TaskLocalsWrapper::set_current
    at async-std-1.6.2/src/task/task_locals_wrapper.rs:55
16: <async_std::task::builder::SupportTaskLocals<F> as core::future::future::Future>::poll
    at async-std-1.6.2/src/task/builder.rs:196
17: async_task::raw::RawTask<F,R,S,T>::run
    at async-task-3.0.0/src/raw.rs:502
18: async_task::task::Task<T>::run
    at async-task-3.0.0/src/task.rs:265
19: smol::multitask::Worker::tick::{{closure}}
    at smol-0.1.18/src/multitask.rs:333
20: scoped_tls::ScopedKey<T>::set
    at scoped-tls-1.0.0/src/lib.rs:137
21: smol::multitask::Worker::tick
    at smol-0.1.18/src/multitask.rs:333
22: smol::run::run::{{closure}}::{{closure}}
    at smol-0.1.18/src/run.rs:124
23: scoped_tls::ScopedKey<T>::set
    at scoped-tls-1.0.0/src/lib.rs:137
24: smol::run::run::{{closure}}
    at smol-0.1.18/src/run.rs:116
25: smol::context::enter
    at smol-0.1.18/src/context.rs:8
26: smol::run::run
    at smol-0.1.18/src/run.rs:115
27: async_std::task::builder::Builder::blocking::{{closure}}::{{closure}}
    at async-std-1.6.2/src/task/builder.rs:170
28: async_std::task::task_locals_wrapper::TaskLocalsWrapper::set_current::{{closure}}
    at async-std-1.6.2/src/task/task_locals_wrapper.rs:60
29: std::thread::local::LocalKey<T>::try_with
    at /rustc/18bf6b4f01a6feaf7259ba7cdae58031af1b7b39/library/std/src/thread/local.rs:265
30: std::thread::local::LocalKey<T>::with
    at /rustc/18bf6b4f01a6feaf7259ba7cdae58031af1b7b39/library/std/src/thread/local.rs:241
31: async_std::task::task_locals_wrapper::TaskLocalsWrapper::set_current
    at async-std-1.6.2/src/task/task_locals_wrapper.rs:55
32: async_std::task::builder::Builder::blocking::{{closure}}
    at async-std-1.6.2/src/task/builder.rs:167
33: std::thread::local::LocalKey<T>::try_with
    at /rustc/18bf6b4f01a6feaf7259ba7cdae58031af1b7b39/library/std/src/thread/local.rs:265
34: std::thread::local::LocalKey<T>::with
    at /rustc/18bf6b4f01a6feaf7259ba7cdae58031af1b7b39/library/std/src/thread/local.rs:241
35: async_std::task::builder::Builder::blocking
    at async-std-1.6.2/src/task/builder.rs:160
36: async_std::task::block_on::block_on
    at async-std-1.6.2/src/task/block_on.rs:33
37: async_std::rt::RUNTIME::{{closure}}::{{closure}}
    at async-std-1.6.2/src/rt/mod.rs:30
note: Some details are omitted, run with `RUST_BACKTRACE=full` for a verbose backtrace.
@imsnif
Copy link
Member

imsnif commented Nov 14, 2020

I can't reproduce this on my machine unfortunately :/

When you get a chance, could you try running this with the --debug flag? This will create a log of everything we received on the pty. It'll place the log in /tmp/mosaic-logs - if you could post the contents of that folder here I think I'll be able to reproduce this.

@imsnif imsnif added suspected bug compatibility Issues with VT/terminal compatibility labels Nov 14, 2020
@khs26
Copy link
Contributor Author

khs26 commented Nov 14, 2020

Just one file named mosaic-3.log:

[]0;kyle@kyle-VirtualBox: ~^G^[[01;32mkyle@kyle-VirtualBox^[[00m:^[[01;34m~^[[00m$ ^@r^@e^@s^@e^@t^@
^[c^[]104^G^[[!p^[[?3;4l

@imsnif
Copy link
Member

imsnif commented Nov 14, 2020

Awesome, but could you please attach the file? I think we lost some escape characters in the copy/paste :)

@khs26
Copy link
Contributor Author

khs26 commented Nov 14, 2020

mosaic-3.log

@roee-shapira-tikal
Copy link

#97

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
compatibility Issues with VT/terminal compatibility suspected bug
Projects
None yet
Development

Successfully merging a pull request may close this issue.

3 participants