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

Option::unwrap() on a None value #3499

Open
jonahbron opened this issue Jul 15, 2024 · 1 comment
Open

Option::unwrap() on a None value #3499

jonahbron opened this issue Jul 15, 2024 · 1 comment

Comments

@jonahbron
Copy link

Haven't been able to reproduce unfortunately, but here's the information available for the error message.

Error occurred in server:

  × Thread 'screen' panicked.
  ├─▶ Originating Thread(s)
  │     1. ipc_server: AttachClient
  │     2. screen_thread: AddClient
  │
  ├─▶ At zellij-server/src/panes/tiled_panes/mod.rs:1574:50
  ╰─▶ called `Option::unwrap()` on a `None` value
  help: If you are seeing this message, it means that something went wrong.

        -> To get additional information, check the log at: /tmp/zellij-750198/zellij-log/zellij.log
        -> To see a backtrace next time, reproduce the error with: RUST_BACKTRACE=1 zellij [...]
        -> To help us fix this, please open an issue: https://github.com/zellij-org/zellij/issues

From zellij.log

WARN   |zellij_utils::input::layo| 2024-07-15 07:22:12.295 [main      ] [zellij-utils/src/input/layout.rs:1035]: Failed to read swap layout file: /nix/store/l0dv2psy6k2482znyw6b2mf11xla1ia5-bigvert.swap.kdl. Error: Os { code: 2, kind: NotFound, message: "No such file or directory" } 
ERROR  |zellij::sessions         | 2024-07-15 07:22:12.299 [main      ] [src/sessions.rs:56]: Failed to read resurrection layout file: Os { code: 2, kind: NotFound, message: "No such file or directory" } 
ERROR  |zellij::sessions         | 2024-07-15 07:22:12.299 [main      ] [src/sessions.rs:56]: Failed to read resurrection layout file: Os { code: 2, kind: NotFound, message: "No such file or directory" } 
ERROR  |zellij::sessions         | 2024-07-15 07:22:12.301 [main      ] [src/sessions.rs:56]: Failed to read resurrection layout file: Os { code: 2, kind: NotFound, message: "No such file or directory" } 
ERROR  |zellij::sessions         | 2024-07-15 07:22:12.303 [main      ] [src/sessions.rs:56]: Failed to read resurrection layout file: Os { code: 2, kind: NotFound, message: "No such file or directory" } 
ERROR  |zellij::sessions         | 2024-07-15 07:22:12.304 [main      ] [src/sessions.rs:56]: Failed to read resurrection layout file: Os { code: 2, kind: NotFound, message: "No such file or directory" } 
ERROR  |zellij::sessions         | 2024-07-15 07:22:12.305 [main      ] [src/sessions.rs:56]: Failed to read resurrection layout file: Os { code: 2, kind: NotFound, message: "No such file or directory" } 
ERROR  |zellij::sessions         | 2024-07-15 07:22:12.305 [main      ] [src/sessions.rs:56]: Failed to read resurrection layout file: Os { code: 2, kind: NotFound, message: "No such file or directory" } 
ERROR  |zellij::sessions         | 2024-07-15 07:22:12.305 [main      ] [src/sessions.rs:56]: Failed to read resurrection layout file: Os { code: 2, kind: NotFound, message: "No such file or directory" } 
ERROR  |zellij::sessions         | 2024-07-15 07:22:12.306 [main      ] [src/sessions.rs:56]: Failed to read resurrection layout file: Os { code: 2, kind: NotFound, message: "No such file or directory" } 
ERROR  |zellij::sessions         | 2024-07-15 07:22:12.307 [main      ] [src/sessions.rs:56]: Failed to read resurrection layout file: Os { code: 2, kind: NotFound, message: "No such file or directory" } 
ERROR  |zellij::sessions         | 2024-07-15 07:22:12.308 [main      ] [src/sessions.rs:56]: Failed to read resurrection layout file: Os { code: 2, kind: NotFound, message: "No such file or directory" } 
ERROR  |zellij::sessions         | 2024-07-15 07:22:12.308 [main      ] [src/sessions.rs:56]: Failed to read resurrection layout file: Os { code: 2, kind: NotFound, message: "No such file or directory" } 
ERROR  |zellij::sessions         | 2024-07-15 07:22:12.309 [main      ] [src/sessions.rs:56]: Failed to read resurrection layout file: Os { code: 2, kind: NotFound, message: "No such file or directory" } 
ERROR  |zellij::sessions         | 2024-07-15 07:22:12.309 [main      ] [src/sessions.rs:56]: Failed to read resurrection layout file: Os { code: 2, kind: NotFound, message: "No such file or directory" } 
ERROR  |zellij::sessions         | 2024-07-15 07:22:12.310 [main      ] [src/sessions.rs:56]: Failed to read resurrection layout file: Os { code: 2, kind: NotFound, message: "No such file or directory" } 
ERROR  |zellij::sessions         | 2024-07-15 07:22:12.310 [main      ] [src/sessions.rs:56]: Failed to read resurrection layout file: Os { code: 2, kind: NotFound, message: "No such file or directory" } 
ERROR  |zellij::sessions         | 2024-07-15 07:22:12.311 [main      ] [src/sessions.rs:56]: Failed to read resurrection layout file: Os { code: 2, kind: NotFound, message: "No such file or directory" } 
ERROR  |zellij::sessions         | 2024-07-15 07:22:12.525 [main      ] [src/sessions.rs:56]: Failed to read resurrection layout file: Os { code: 2, kind: NotFound, message: "No such file or directory" } 
ERROR  |zellij::sessions         | 2024-07-15 07:22:12.536 [main      ] [src/sessions.rs:56]: Failed to read resurrection layout file: Os { code: 2, kind: NotFound, message: "No such file or directory" } 
ERROR  |zellij::sessions         | 2024-07-15 07:22:12.536 [main      ] [src/sessions.rs:56]: Failed to read resurrection layout file: Os { code: 2, kind: NotFound, message: "No such file or directory" } 
ERROR  |zellij::sessions         | 2024-07-15 07:22:12.543 [main      ] [src/sessions.rs:56]: Failed to read resurrection layout file: Os { code: 2, kind: NotFound, message: "No such file or directory" } 
ERROR  |zellij::sessions         | 2024-07-15 07:22:12.547 [main      ] [src/sessions.rs:56]: Failed to read resurrection layout file: Os { code: 2, kind: NotFound, message: "No such file or directory" } 
ERROR  |zellij::sessions         | 2024-07-15 07:22:12.547 [main      ] [src/sessions.rs:56]: Failed to read resurrection layout file: Os { code: 2, kind: NotFound, message: "No such file or directory" } 
ERROR  |zellij::sessions         | 2024-07-15 07:22:12.548 [main      ] [src/sessions.rs:56]: Failed to read resurrection layout file: Os { code: 2, kind: NotFound, message: "No such file or directory" } 
ERROR  |zellij::sessions         | 2024-07-15 07:22:12.550 [main      ] [src/sessions.rs:56]: Failed to read resurrection layout file: Os { code: 2, kind: NotFound, message: "No such file or directory" } 
ERROR  |zellij::sessions         | 2024-07-15 07:22:12.551 [main      ] [src/sessions.rs:56]: Failed to read resurrection layout file: Os { code: 2, kind: NotFound, message: "No such file or directory" } 
ERROR  |zellij::sessions         | 2024-07-15 07:22:12.553 [main      ] [src/sessions.rs:56]: Failed to read resurrection layout file: Os { code: 2, kind: NotFound, message: "No such file or directory" } 
ERROR  |zellij::sessions         | 2024-07-15 07:22:12.553 [main      ] [src/sessions.rs:56]: Failed to read resurrection layout file: Os { code: 2, kind: NotFound, message: "No such file or directory" } 
ERROR  |zellij::sessions         | 2024-07-15 07:22:12.553 [main      ] [src/sessions.rs:56]: Failed to read resurrection layout file: Os { code: 2, kind: NotFound, message: "No such file or directory" } 
ERROR  |zellij::sessions         | 2024-07-15 07:22:12.553 [main      ] [src/sessions.rs:56]: Failed to read resurrection layout file: Os { code: 2, kind: NotFound, message: "No such file or directory" } 
ERROR  |zellij::sessions         | 2024-07-15 07:22:12.554 [main      ] [src/sessions.rs:56]: Failed to read resurrection layout file: Os { code: 2, kind: NotFound, message: "No such file or directory" } 
ERROR  |zellij::sessions         | 2024-07-15 07:22:12.556 [main      ] [src/sessions.rs:56]: Failed to read resurrection layout file: Os { code: 2, kind: NotFound, message: "No such file or directory" } 
ERROR  |zellij::sessions         | 2024-07-15 07:22:12.557 [main      ] [src/sessions.rs:56]: Failed to read resurrection layout file: Os { code: 2, kind: NotFound, message: "No such file or directory" } 
ERROR  |zellij::sessions         | 2024-07-15 07:22:12.557 [main      ] [src/sessions.rs:56]: Failed to read resurrection layout file: Os { code: 2, kind: NotFound, message: "No such file or directory" } 
ERROR  |zellij::sessions         | 2024-07-15 07:22:12.557 [main      ] [src/sessions.rs:56]: Failed to read resurrection layout file: Os { code: 2, kind: NotFound, message: "No such file or directory" } 
ERROR  |zellij::sessions         | 2024-07-15 07:22:12.557 [main      ] [src/sessions.rs:56]: Failed to read resurrection layout file: Os { code: 2, kind: NotFound, message: "No such file or directory" } 
ERROR  |zellij::sessions         | 2024-07-15 07:22:12.558 [main      ] [src/sessions.rs:56]: Failed to read resurrection layout file: Os { code: 2, kind: NotFound, message: "No such file or directory" } 
ERROR  |zellij::sessions         | 2024-07-15 07:22:12.558 [main      ] [src/sessions.rs:56]: Failed to read resurrection layout file: Os { code: 2, kind: NotFound, message: "No such file or directory" } 
ERROR  |zellij::sessions         | 2024-07-15 07:22:12.560 [main      ] [src/sessions.rs:56]: Failed to read resurrection layout file: Os { code: 2, kind: NotFound, message: "No such file or directory" } 
ERROR  |zellij::sessions         | 2024-07-15 07:22:12.562 [main      ] [src/sessions.rs:56]: Failed to read resurrection layout file: Os { code: 2, kind: NotFound, message: "No such file or directory" } 
ERROR  |zellij::sessions         | 2024-07-15 07:22:12.562 [main      ] [src/sessions.rs:56]: Failed to read resurrection layout file: Os { code: 2, kind: NotFound, message: "No such file or directory" } 
ERROR  |zellij::sessions         | 2024-07-15 07:22:12.563 [main      ] [src/sessions.rs:56]: Failed to read resurrection layout file: Os { code: 2, kind: NotFound, message: "No such file or directory" } 
INFO   |zellij_client            | 2024-07-15 07:22:12.563 [main      ] [zellij-client/src/lib.rs:159]: Starting Zellij client! 
INFO   |zellij_server            | 2024-07-15 07:22:12.567 [main      ] [zellij-server/src/lib.rs:246]: Starting Zellij server! 
INFO   |zellij_server            | 2024-07-15 07:22:12.621 [main      ] [zellij-server/src/lib.rs:919]: Compiling plugins using Cranelift 
INFO   |zellij_server::plugins   | 2024-07-15 07:22:12.622 [wasm      ] [zellij-server/src/plugins/mod.rs:149]: Wasm main thread starts 
ERROR  |???                      | 2024-07-15 07:22:12.633 [pty_writer] [zellij-server/src/os_input_output.rs:564]: a non-fatal error occured

Caused by:
    0: failed to set terminal id 1 to size (17, 200)
    1: failed to find terminal fd for id 1 
INFO   |zellij_server::plugins::p| 2024-07-15 07:22:12.658 [async-std/runti] [zellij-server/src/plugins/plugin_loader.rs:495]: Loaded plugin 'status-bar' from cache folder at '/home/jonahd/.cache/zellij' in 18.52668ms 
INFO   |zellij_server            | 2024-07-15 07:22:12.658 [async-std/runti] [zellij-server/src/lib.rs:919]: Compiling plugins using Cranelift 
ERROR  |???                      | 2024-07-15 07:22:12.662 [pty_writer] [zellij-server/src/os_input_output.rs:564]: a non-fatal error occured

Caused by:
    0: failed to set terminal id 1 to size (17, 200)
    1: failed to find terminal fd for id 1 
$ zellij --version
zellij 0.39.2

This happened when using Zellij on my local system, and in one pane SSHing into a server that also has Zellij. AFACT the Zellij error came from the server, not the local machine.

@imsnif
Copy link
Member

imsnif commented Jul 19, 2024

Hey, this has been fixed by #3166 - please consider upgrading to the latest version.

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

2 participants