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

bug: called Option::unwrap() on a None value #2112

Open
Tracked by #1568
Lilja opened this issue Jan 23, 2023 · 1 comment
Open
Tracked by #1568

bug: called Option::unwrap() on a None value #2112

Lilja opened this issue Jan 23, 2023 · 1 comment
Assignees

Comments

@Lilja
Copy link

Lilja commented Jan 23, 2023

Basic information

zellij --version: 0.34.4
stty size: 62 232
uname -av or ver(Windows): Darwin Eriks-MBP 22.2.0 Darwin Kernel Version 22.2.0: Fri Nov 11 02:03:51 PST 2022; root:xnu-8792.61.2~4/RELEASE_ARM64_T6000 arm64
nvim --version: NVIM v0.8.1

Further information

Error occurred in server:

  × Thread 'screen' panicked.
  ├─▶ Originating Thread(s)
  │     1. screen_thread: HandlePtyBytes
  │
  ├─▶ At zellij-server/src/panes/grid.rs:1331:9
  ╰─▶ called `Option::unwrap()` on a `None` value
  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`.
@eliasp
Copy link

eliasp commented Mar 26, 2024

Just happened to me here as well, when being in "Tab mode" and pushed arrow-right 2 or 3 times to switch from the 1st tab to another one.

Error occurred in server:

  × Thread 'screen' panicked.
  ├─▶ Originating Thread(s)
  │     1. stdin_handler_thread: AcceptInput
  │     2. screen_thread: SwitchTabNext
  │
  ├─▶ At zellij-server/src/panes/tiled_panes/mod.rs:1574:50
  ╰─▶ called `Option::unwrap()` on a `None` value

This might have been caused by network issues, since the home directory of the affected user resides on NFS and other effects at the same time indicate a temporary network disruption.

In zellij.log, there are thousands of lines of this message:

ERROR  |zellij_server::background| 2024-03-26 11:34:18.137 [async-std/runti] [zellij-server/src/background_jobs.rs:440]: Failed to read created stamp of resurrection file: Error { kind: Uncategorized, message: "creation time is not available for the filesystem" }

Somewhere in the middle of it, the following lines repeat a few hundred times:

ERROR  |zellij::sessions         | 2024-03-26 11:36:25.037 [main      ] [src/sessions.rs:65]: Failed to read created stamp of resurrection file: Error { kind: Uncategorized, message: "creation time is not available for the filesystem" }
ERROR  |zellij::sessions         | 2024-03-26 11:36:25.048 [main      ] [src/sessions.rs:56]: Failed to read resurrection layout file: Os { code: 2, kind: NotFound, message: "No such file or directory" }

Then it appears to attempt a restart:

INFO   |zellij_client            | 2024-03-26 11:36:25.134 [main      ] [zellij-client/src/lib.rs:159]: Starting Zellij client!                                                                                                                                                                                            INFO   |zellij_server            | 2024-03-26 11:36:25.138 [main      ] [zellij-server/src/lib.rs:246]: Starting Zellij server!                                                                                                                                                                                            INFO   |zellij_server            | 2024-03-26 11:36:25.140 [main      ] [zellij-server/src/lib.rs:919]: Compiling plugins using Cranelift                                                                                                                                                                                  INFO   |zellij_server::plugins   | 2024-03-26 11:36:25.140 [wasm      ] [zellij-server/src/plugins/mod.rs:149]: Wasm main thread starts                                                                                                                                                                                    INFO   |zellij_server::plugins::p| 2024-03-26 11:36:25.154 [async-std/runti] [zellij-server/src/plugins/plugin_loader.rs:495]: Loaded plugin 'tab-bar' from cache folder at '/home/eliasp/.cache/zellij' in 5.869326ms                                                                                              INFO   |zellij_server            | 2024-03-26 11:36:25.154 [async-std/runti] [zellij-server/src/lib.rs:919]: Compiling plugins using Cranelift                                                                                                                                                                             INFO   |zellij_server::plugins::p| 2024-03-26 11:36:25.162 [async-std/runti] [zellij-server/src/plugins/plugin_loader.rs:495]: Loaded plugin 'status-bar' from cache folder at '/home/eliasp/.cache/zellij' in 14.168612ms                                                                                          INFO   |zellij_server            | 2024-03-26 11:36:25.162 [async-std/runti] [zellij-server/src/lib.rs:919]: Compiling plugins using Cranelift                                                                                                                                                                             ERROR  |zellij_server::background| 2024-03-26 11:36:25.170 [async-std/runti] [zellij-server/src/background_jobs.rs:440]: Failed to read created stamp of resurrection file: Error { kind: Uncategorized, message: "creation time is not available for the filesystem" }

...and then the last line keeps repeating a few thousand times more.

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

No branches or pull requests

3 participants