zellij-org / zellij

A terminal workspace with batteries included
https://zellij.dev
MIT License
21.2k stars 644 forks source link

Thread 'wasm' panicked — missing requires CPU features: BMI2 | AVX2 | AVX512DQ | AVX512VL | AVX512F #2215

Open robinmoussu opened 1 year ago

robinmoussu commented 1 year ago

Zellij fail to start on one of our server. It seems that its processor doesn’t have the required hardware feature. It’s not blocking for me (I have access to another server where zellij does work which is connected to the same environment), so I only send that bug report in case it may interest you.

Basic information

zellij --version: zellij 0.34.4 stty size: 65 291 uname -av: Linux cnode71.silvaco.com 3.10.0-1160.31.1.el7.x86_64 #1 SMP Thu Jun 10 13:32:12 UTC 2021 x86_64 x86_64 x86_64 GNU/Linux (it’s a rhel7 machine)

List of programs you interact with: tcsh 6.18.01 (Astron) 2012-02-14 (x86_64-unknown-linux) options wide,nls,dl,al,kan,sm,rh,color,filec connected from an macOS Catalina (10.15.7), using OpenSSH_8.1p1, LibreSSL 2.7.3

Further information

Error occurred in server:

× Thread 'wasm' panicked. ├─▶ Originating Thread(s) │ 1. ipc_server: NewClient │ 2. screen_thread: NewTab │ 3. plugin_thread: NewTab │ ├─▶ At /home/robinm/.cargo/registry/src/github.com-1ecc6299db9ec823/zellij-server-0.34.4/src/lib.rs:726:18 ╰─▶ Program terminates: a fatal error occured

  Caused by:
      0: failed to load plugin for client 1
      1: failed to start plugin PluginConfig {
             path: "tab-bar",
             run: Pane(
                 None,
             ),
             _allow_exec_host_cmd: false,
             location: Zellij(
                 PluginTag(
                     "tab-bar",
                 ),
             ),
         } for client 1
      2: missing requires CPU features: "EnumSet(BMI2 | AVX2 | AVX512DQ | AVX512VL | AVX512F)"

  Stack backtrace:
     0: <unknown>
     1: <unknown>
     2: <unknown>
     3: <unknown>
     4: start_thread
     5: __clone

  Panic backtrace:
     0: <unknown>
     1: <unknown>
     2: <unknown>
     3: <unknown>
     4: <unknown>
     5: <unknown>
     6: <unknown>
     7: <unknown>
     8: <unknown>
     9: <unknown>
    10: <unknown>
    11: <unknown>
    12: <unknown>
    13: start_thread
    14: __clone
bguo068 commented 1 year ago

I have the same issue on our server.

VincentBerthier commented 1 year ago

Pretty much the same thing, though in my case zellij launches, but without the plugins (tab-bar and status-bar).

Here's the logs if it can help: zellij.log

nothingnesses commented 1 year ago

In my case, removing ~/.cache fixed the issue, I suspect because I made a change to the VM running zellij which removed those CPU instructions, and removing the cache forced the plugins to be rebuilt without relying on them.