zellij: Unreachable code reached
I was using Zellij as normally when it suddenly crashed with the error below. Unfortunately, I can’t reproduce, but perhaps it helps to know that at the time of the crash, I had two panes open, in which one of the panes was frozen because it tried to query a filesystem that had gone offline.
Error occurred in server:
× Thread 'wasm' panicked.
├─▶ Originating Thread(s)
│ 1. stdin_handler_thread: AcceptInput
│ 2. pty_thread: NewTab
│ 3. screen_thread: NewTab
│ 4. plugin_thread: Update
│
├─▶ At zellij-server/src/wasm_vm.rs:145:42
╰─▶ called `Result::unwrap()` on an `Err` value: RuntimeError { source: Trap(UnreachableCodeReached), wasm_trace: [FrameInfo { module_name: "<module>", func_index: 191, function_name: None,
func_start: SourceLoc(120302), instr: SourceLoc(123965) }, FrameInfo { module_name: "<module>", func_index: 97, function_name: None, func_start: SourceLoc(63549), instr: SourceLoc(63796) },
FrameInfo { module_name: "<module>", func_index: 102, function_name: None, func_start: SourceLoc(65346), instr: SourceLoc(65467) }, FrameInfo { module_name: "<module>", func_index: 455,
function_name: None, func_start: SourceLoc(301386), instr: SourceLoc(321617) }], native_trace: 0: <unknown>
1: <unknown>
2: <unknown>
3: <unknown>
4: <unknown>
5: <unknown>
6: <unknown>
}
help: If you are seeing this message, it means that something went wrong.
Please report this error to the github issue.
(https://github.com/zellij-org/zellij/issues)
Also, if you want to see the backtrace, you can set the `RUST_BACKTRACE` environment variable to `1`.
Zellij version 0.31.1 sttry size: 65 255 uname -av: Linux jakni 5.15.57-2-MANJARO #1 SMP PREEMPT Mon Jul 25 01:32:51 UTC 2022 x86_64 GNU/Linux
About this issue
- Original URL
- State: closed
- Created 2 years ago
- Reactions: 1
- Comments: 25 (13 by maintainers)
it happens haha. Zellij is awesome!
Alright. I’m honestly not sure why this happened then. We already tried deleting the data-dir and it didn’t work before… But hey, I’m happy at least it’s working now.
thank you again @imsnif ! I installed cargo according to https://doc.rust-lang.org/cargo/getting-started/installation.html
Finally it works for me as below:
~/my-zellij-config.yaml
Haben Sie einen schönen Tag!
Alright. Let’s try:
zellij setup --dump-config /tmp/my-config.yaml
zellij --data-dir /tmp/data-dir --config /tmp/my-config.yaml