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

thread panic on WSL #45

Open
bartlibert opened this issue Feb 13, 2020 · 0 comments
Open

thread panic on WSL #45

bartlibert opened this issue Feb 13, 2020 · 0 comments

Comments

@bartlibert
Copy link

On my windows system, I use pack in WSL to manage my vim there. However, I get thread panics from time to time (see below).

It seems to be related to the thread sleep in the Spinner class. here

This function calls nanosleep here. On WSL, this function returns EINVAL sometimes on WSL, causing an unhandled assert, which in turn results in the panic (at least I think so, I'm a C/C++ programmer, not a Rust programmer, so I'm making some assumptions).

I don't know if there's a sensible way to handle this assert on your side? Or maybe provide a "no spinner" option or something?

' panicked at 'assertion failed: `(left == right)`
  left: `22`, ⠋
 right: `4`', thread 'src/libstd/sys/unix/thread.rs<unnamed>:' panicked at '172assertion failed: `(left == right)`
  left: `22`,
 right: `4`:', 21src/libstd/sys/unix/thread.rs
:172:21
thread '<unnamed>' panicked at 'called `Result::unwrap()` on an `Err` value: "SendError(..)"', src/libcore/result.rs:1188:5
   ⠋ [jsfaint/coc-neoinclude] syncing
thread '<unnamed>' panicked at 'assertion failed: `(left == right)`
  left: `22`,
 right: `4`', src/libstd/sys/unix/thread.rs:172:21
thread '<unnamed>' panicked at 'called `Result::unwrap()` on an `Err` value: "SendError(..)"', src/libcore/result.rs:1188:5
   ⠋ [juneedahamed/vc.vim] syncing
thread '<unnamed>' panicked at 'assertion failed: `(left == right)`
  left: `22`,
 right: `4`', src/libstd/sys/unix/thread.rs:172:21
thread '<unnamed>' panicked at 'called `Result::unwrap()` on an `Err` value: "SendError(..)"', src/libcore/result.rs:1188:5
   ⠋ [junegunn/fzf.vim] syncing
thread '<unnamed>' panicked at 'assertion failed: `(left == right)`
  left: `22`,
 right: `4`', src/libstd/sys/unix/thread.rs:172:21
^Cthread '<unnamed>' panicked at 'called `Result::unwrap()` on an `Err` value: "SendError(..)"', src/libcore/result.rs:1188:5
thread '<unnamed>' panicked at 'called `Result::unwrap()` on an `Err` value: "SendError(..)"', src/libcore/result.rs:1188:5
thread '<unnamed>' panicked at 'called `Result::unwrap()` on an `Err` value: "SendError(..)"', src/libcore/result.rs:1188:5
thread '<unnamed>' panicked at 'called `Result::unwrap()` on an `Err` value: "SendError(..)"', src/libcore/result.rs:1188:5
thread '<unnamed>' panicked at 'called `Result::unwrap()` on an `Err` value: "SendError(..)"', src/libcore/result.rs:1188:5
thread '<unnamed>' panicked at 'called `Result::unwrap()` on an `Err` value: "SendError(..)"', src/libcore/result.rs:1188:5
thread '<unnamed>' panicked at 'called `Result::unwrap()` on an `Err` value: "SendError(..)"', src/libcore/result.rs:1188:5
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