SpiralP / classicube-cef-plugin

8 stars 5 forks source link

"/home/hjs/.local/share/ClassiCube/./cef/../cef/cef_binary/libcef.so: cannot allocate memory in static TLS block" #32

Open FavoritoHJS opened 4 months ago

FavoritoHJS commented 4 months ago

Found a bad bug some time back, for some reason after updating CEF it always gives this error: "/home/hjs/.local/share/ClassiCube/./cef/../cef/cef_binary/libcef.so: cannot allocate memory in static TLS block" looking it up online it's something that i can't really control, see: https://fasterthanli.me/articles/a-dynamic-linker-murder-mystery best workaround so far is to run export LD_PRELOAD="(path to cc install folder)/cef/cef_binary/libcef.so":$LD_PRELOAD but that doesn't work with nix-ld for some reason.

running NixOS 24.05 with CC being run under steam-run, so i don't think that should be a problem. And before you ask, no, i'm not using flakes, so your flake won't work for me

SpiralP commented 4 months ago

i think the only solution is to wait for chromium to fix this, but for now try running like this:

GLIBC_TUNABLES=glibc.rtld.optional_static_tls=16384 ./ClassiCube