Supermodel icon indicating copy to clipboard operation
Supermodel copied to clipboard

error preventing launch on linux

Open cerroverb opened this issue 3 months ago • 6 comments

when attempting to launch with xwayland, which was working fine before this update: Error: Unable to load bitmap crosshair texture when attempting to launch by default: Error: OpenGL initialization failed: Unknown error

installed via AUR, please let me know what i should provide

cerroverb avatar Oct 15 '25 22:10 cerroverb

im having this issue too on my nvidia laptop :( also on cachyos

EDIT: seems like an issue with the pkgbuild. download the linux release then put it in your actual supermodel folder... that did it for me :D still don't know why that opengl error happens though

arisupocket avatar Oct 15 '25 23:10 arisupocket

It’s because—for whatever reason—the Linux build expects the Assets directory to be in $HOME/.local/share/supermodel and the Config directory to be in $HOME/.config/supermodel. The source code, however, uses relative paths to the root directory (as expected for a portable release).

muhammadnaqdi avatar Oct 17 '25 15:10 muhammadnaqdi

I thought this was supposed to all fall back to the same locations. I forget how it performs fallback but my guess is that it checks for the presence of the directories in successive order. If you don’t have these directories created and only have ROMs/ and Config/, as present in the .tgz release archive, then it should load from there provided you launch Supermodel from that directory. Does this not work?

I’m surprised that Assets are loaded from a different place but I didn’t write that code.

trzy avatar Oct 17 '25 16:10 trzy

For Supermodel.ini, it first checks Config/Supermodel.ini (i.e., the config directory relative to the current working directory) and then falls back to $HOME/.config/Config/Supermodel.ini. For everything else, it ignores the current working directory—or maybe it just fails to read the files there.

muhammadnaqdi avatar Oct 17 '25 19:10 muhammadnaqdi

Error: OpenGL initialization failed: Unknown error is fixed by before launching run WAYLAND_DISPLAY=""

B-Nerd avatar Oct 18 '25 04:10 B-Nerd

Error: OpenGL initialization failed: Unknown error is fixed by before launching run WAYLAND_DISPLAY=""

This worked for me latest release of src built on a Fedora Core 43 Distrobox hosted on Bazzite (FCOS43 based as well).

trevor-the-developer avatar Dec 02 '25 20:12 trevor-the-developer