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

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

Open
FavoritoHJS opened this issue Jul 8, 2024 · 1 comment

Comments

@FavoritoHJS
Copy link

FavoritoHJS commented Jul 8, 2024

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
Copy link
Owner

SpiralP commented Jul 8, 2024

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

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