Thinking with Time Machine

Thinking with Time Machine

Not enough ratings
Solution to game not open on Linux
By Mono
For Linux gamers who receive a 'libGL error', this guide will help.
2
   
Award
Favorite
Favorited
Unfavorite
Step 1: Get the Error Message in Terminal
Once we installed Thinking with Time Machine(or TWTM), clicking 'Launch', the game simply won't open. For the Steam doesn't offer a debug mechanism, we must start the game manually from Command-Line:
  • Navigate to Game root directory in Terminal.
  • Start game with
    ./TWTM.sh -game TWTM
If you receive similar errors as below, then proceed.
libGL error: MESA-LOADER: failed to open radeonsi (search paths /usr/lib/i386-linux-gnu/dri:\$${ORIGIN}/dri:/usr/lib/dri) libGL error: failed to load driver: radeonsi libGL error: MESA-LOADER: failed to open radeonsi (search paths /usr/lib/i386-linux-gnu/dri:\$${ORIGIN}/dri:/usr/lib/dri) libGL error: failed to load driver: radeonsi libGL error: MESA-LOADER: failed to open swrast (search paths /usr/lib/i386-linux-gnu/dri:\$${ORIGIN}/dri:/usr/lib/dri) libGL error: failed to load driver: swrast X Error of failed request: GLXBadContext Major opcode of failed request: 156 (GLX) Minor opcode of failed request: 6 (X_GLXIsDirect) Serial number of failed request: 88 Current serial number in output stream: 87
Step 2: Check Dependencies
(Contents below are based on Debian/Ubuntu distros, if you are using Arch/RHEL/SUSE etc., please choose the corresponding commands.)

Be sure you have 3 packages mesa-utils mesa-va-drivers libgl1-mesa-dri installed:
dpkg -l mesa-utils mesa-va-drivers libgl1-mesa-dri

Here is my output(truncated):

$ dpkg -l mesa-utils mesa-va-drivers libgl1-mesa-dri Desired=Unknown/Install/Remove/Purge/Hold | Status=Not/Inst/Conf-files/Unpacked/halF-conf/Half-inst/trig-aWait/Trig-pend |/ Err?=(none)/Reinst-required (Status,Err: uppercase=bad) ||/ Name Version Architecture Description +++-========================-======================-================-============= ii libgl1-mesa-dri:amd64 20.0.8-0ubuntu1~18.0 amd64 ... ii libgl1-mesa-dri:i386 20.0.8-0ubuntu1~18.0 i386 ... ii mesa-utils 8.4.0-1 amd64 ... ii mesa-va-drivers:amd64 20.0.8-0ubuntu1~18.0 amd64 ...

Step 3: Solution
Causation Explained
TWTM is a 32-bit game, and it require i386 libraries to launch.
By default, the launch script will use libraries that bundled with the game, instead of which in the system, as TWTM.sh indicated:
export LD_LIBRARY_PATH="${GAMEROOT}"/bin:$LD_LIBRARY_PATH

If the 3 packages mentioned above have only amd64 versions available in your system, the bundled libstdc++ library will not play nice with them, and cause problems.

Therefore, we can have two kinds of solutions to this issue:

Solution One(RECOMMENDED): Remove integrated libstdc++
By removing libstdc++ bundled with game, it will fall back on the system default version.
Inside game root directory, run:
$ rm bin/libstdc++.so.6
This should solve the problem.

Solution Two: Install i386 dependencies
(Note that this could affect other games on your computer, so not recommended.)
sudo dpkg --add-architecture i386 sudo apt install libgl1-mesa-dri:i386 mesa-utils:i386 mesa-va-drivers:i386
Then restart X session.
23 Comments
rvidal 3 Apr @ 8:35pm 
thanks, solution one worked fine
Tomasart1 7 Aug, 2023 @ 9:31am 
ay proton exists
TheSquareDude 17 Dec, 2022 @ 2:27pm 
@SIGI10(HUN) yeah who is mr. jobs
sigi 18 Sep, 2022 @ 4:46am 
who the hell is steve jobs
icallacharlo.ic 27 May, 2022 @ 7:47pm 
:D
:steamhappy:
icallacharlo.ic 27 May, 2022 @ 7:46pm 
Hp
ML_DL 29 Mar, 2022 @ 6:06am 
Somehow it’s been stable. I don’t know how, maybe it’s just because I’m using a Dell Optiplex with decent hardware.
ML_DL 29 Mar, 2022 @ 6:04am 
I mean.. I did end up switching back to Windows after all. I still have the hard drive with Linux on it, but I got a newer PC and installed Windows on it since it can run it excellently!

Currently running Win11 on my laptop and desktop, very happy with it tbh, but I need to install WSL lol
funker23 28 Mar, 2022 @ 5:25pm 
Was hoping the guide would say to install windows. I mean I guess this is better, but it would have been funny.
Mono  [author] 6 Dec, 2021 @ 3:06am 
[quote]
Install portal 2

Set launch options:

"../Portal\ 2/portal2_linux -game ../Thinking\ with\ Time\ Machine/TWTM # %command%
[/quote]

Yes, this is also a good solution, using an existing game engine to run this game.