zellij
zellij copied to clipboard
Failing to reserve memory for plugin when creating new tab or re-attaching to session
Issue description
I am using Zellij on a cluster login node where memory is restricted. When starting a session there are no issues, until I open a new tab, then I see ERROR IN PLUGIN - check logs for more info instead of the compact bar. And if I detach and attach again I get an mmap error:
Error occurred in server:
× Thread 'wasm' panicked.
├─▶ Originating Thread(s)
│ 1. ipc_server: AttachClient
│ 2. plugin_thread: AddClient
│
├─▶ At /work1/sinclair/mkurzynski/.cargo/registry/src/index.crates.io-6f17d22bba15001f/zellij-server-0.41.2/src/lib.rs:1410:18
╰─▶ Program terminates: a fatal error occured
Caused by:
0: Failed to create instance, plugin env and subscriptions for plugin 0
1: mmap failed to reserve 0x200000000 bytes
2: Cannot allocate memory (os error 12)
It seems odd that zellij would be trying to allocate 8 GB. Is this true? Or is it because it appears there is 512 GB of available memory on the server even though it seems to be restricted per user.
Minimal reproduction
zellij
<ctrl o> + d
zellij a
Other relevant information
This is the server I am using. I experienced similar issues with helix until they changed their global search.
I have tried this with zellij version 0.41.0, 0.41.1, and 0.41.2. I believe I was using 0.41.0 before and had no issues until recently when something must've changed on the login node's side.
I ran into the same problem. Any version > 0.40.1 could not work.