Skip to main content

Indie game storeFree gamesFun gamesHorror games
Game developmentAssetsComics
SalesBundles
Jobs
TagsGame Engines

TIC-80

Fantasy computer for making, playing and sharing tiny games. · By Nesbox

Version 1.4.1 pro doesn't even start on Linux Mint xfce

A topic by Julián Impelluso created 17 days ago Views: 181 Replies: 8
Viewing posts 1 to 5
(+1)

As the title says, I tried downloading TIC-80 pro on my Linux PC, and it outright refuses to start. I always get the following error output on the console (in Spanish, as per my OS settings):

> Abortado (`core' generado)

I need to install TIC-80 pro to export some standalone builds of student projects, and it seems the itch page doesn't even allow me to download earlier pro releases that did work on this computer.

Am I really forced to try and build an earlier release of TIC-80 myself to try and get a pro version?

Developer (1 edit)

Hi, thanks for the report, and sorry for the trouble, TIC-80 1.4 asks for an OpenGL 4.3 core context, and on drivers that cannot provide one it exits silently like this.

Could you paste the output of `glxinfo -B` here (install `mesa-utils` if it is missing)?

It seems the old computers we use at school have an OpenGL 4.2 core context, since they run on generation 3 i5 CPUs. We were able to get TIC-80 to boot by forcing LIBGL_ALWAYS_SOFTWARE=1 as a startup parameter, but that feels like a band-aid fix at best.

Does this mean we won't be able to run any versions released after 1.3.1 without forcing software rendering on those PCs?

It'd be a bummer, since v1.1 was the last version where USB controllers worked on Linux, and that version has broken pmem functionality, at least when using Python, which is the language we teach at school... and while v1.2 fixed the pmem issue, controllers stopped working until version 1.5.3331-dev, which we can only run with the ALWAYS_SOFTWARE parameter.

I should also add that I ran v1.5.3331-dev using software rendering to export student projects to HTML, and the browser builds somehow manage to run just fine on the very same PCs.

Developer (1 edit)

Thanks, your details found the cause, and there is a test build now.

The 1.4 builds ask for an OpenGL 4.3 core context, and the 1.5 dev builds ask for OpenGL ES 3.1. Your 3rd-gen i5 (Ivy Bridge) provides OpenGL 4.2 / ES 3.0, so context creation fails and the release build exits without a message. That is also why the exported HTML works, the browser gives it WebGL2, which is exactly ES 3.0.

TIC-80 itself only needs ES 3.0, so this build asks for that instead:

https://github.com/nesbox/TIC-80/actions/runs/43709325896

Download tic80-linux unzip it and run ./tic80 without LIBGL_ALWAYS_SOFTWARE on one of the school PCs. It should report 1.5.3346-dev.

Please tell me if the window opens and renders on the hardware driver. If it still fails, run it as:

LIBGL_DEBUG=verbose ./tic80

and paste the output here.

The fix is in the shared renderer, so it will be in 1.5.0 (and the next Pro build) once confirmed. This test build is the free one, HTML export is in the free build too, so you can try your usual export as well.

I've tried downloading the artifacts, but the link (https://github.com/nesbox/TIC-80/actions/runs/43709325896/artifacts/14160116587) is broken, and the actions page only has a list of uninteractable builds.

Alternatively, I've tried cloning the repo today, double-checking with "git log" and confirming the repo is on commit 9f9a2f2ca9fe33db17f51d10656f3601f0ec88b1. Upon building the Linux executable and running it with LIBGL_ALWAYS_SOFTWARE, it reports: version 1.5.3345-dev Pro (9f9a2f2). Leaving out the LIBGL_ALWAYS_SOFTWARE causes the program to fail to run.

Verbose console output of my build is the following:

etec@214-00-10148:~/TIC-80-1.5/TIC-80/bin/bin$ LIBGL_DEBUG=verbose ./tic80

[sapp] warning: LINUX_X11_QUERY_SYSTEM_DPI_FAILED: failed to query system dpi value, assuming default 96.0 (/home/etec/TIC-80-1.5/TIC-80/vendor/sokol/sokol_app.h:12679)

libGL: Can't open configuration file /etc/drirc: No such file or directory.

libGL: Can't open configuration file /home/etec/.drirc: No such file or directory.

using driver i915 for 4

libGL: Can't open configuration file /etc/drirc: No such file or directory.

libGL: Can't open configuration file /home/etec/.drirc: No such file or directory.

pci id for fd 4: 8086:0152, driver crocus

libGL: Can't open configuration file /etc/drirc: No such file or directory.

libGL: Can't open configuration file /home/etec/.drirc: No such file or directory.

libGL: Can't open configuration file /etc/drirc: No such file or directory.

libGL: Can't open configuration file /home/etec/.drirc: No such file or directory.

libGL: Can't open configuration file /etc/drirc: No such file or directory.

libGL: Can't open configuration file /home/etec/.drirc: No such file or directory.

Using DRI3 for screen 0

[sapp] panic: LINUX_GLX_CREATE_CONTEXT_FAILED: Failed to create GL context via glXCreateContextAttribsARB (/home/etec/TIC-80-1.5/TIC-80/vendor/sokol/sokol_app.h:12930)

X Error of failed request: BadMatch (invalid parameter attributes)

Major opcode of failed request: 152 (GLX)

Minor opcode of failed request: 5 (X_GLXMakeCurrent)

Serial number of failed request: 166

Current serial number in output stream: 166

Developer(+1)

Thanks, the log answers it: your build took the desktop-GL path, not the ES one.

The default CMake configuration on Linux selects sokol’s desktop OpenGL backend, which still asks for a 4.3 core context; LINUX_GLX_CREATE_CONTEXT_FAILED is that path. The fix is in 9f9a2f2, but it is compiled only for the GLES backend, the one the official Linux builds use. Rebuild with -DUSE_GLES2=ON:

sudo apt install libegl1-mesa-dev libgles2-mesa-dev
cmake -S . -B build -DCMAKE_BUILD_TYPE=Release -DUSE_GLES2=ON -DBUILD_WITH_ALL=ON
cmake --build build --parallel

Or, if rebuilding is a hassle, the current main nightly is built exactly this way and already has the fix (free build; the rendering code is shared): https://nightly.link/nesbox/TIC-80/workflows/build/main/tic80-linux.zip

Either build will still report 1.5.3345-dev — same commit, different backend. Run it without LIBGL_ALWAYS_SOFTWARE. If it still fails, the panic line should now be LINUX_EGL_... rather than LINUX_GLX_...; paste it and we’ll know where it stopped.

This is the backend the 1.5 Linux releases and the next Pro build use.

Okay, that build now loads properly without forcing software rendering.

Developer(+1)

Great, it will be released with 1.5.0

Thank you