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

Failing to reserve memory for plugin when creating new tab or re-attaching to session #3864

Open
mjkpolo opened this issue Dec 11, 2024 · 0 comments

Comments

@mjkpolo
Copy link

mjkpolo commented Dec 11, 2024

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.

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