GRAPHICS: libTAS crashes SCI with fullscreen video
|Reported by:||darkshoxx||Owned by:|
|Version:||gsoc||Keywords:||LibTAS OpenGL GLXBadContext|
This might be complicated, sorry Sluicebox.
We've narrowed it down quite a bit already, and tested it on 2 diffent systems:
- Win 11, running Ubuntu jammy 22.04 via WSL 2 + XLaunch. ScummVM 2.7.0 (Feb 18 2023 23:18:27) [my system, darkshoxx]
- Native Linux Mint 21.1 Cinnamon, 2.8.0git (Apr 5 2023 13:54:37) [someone else's system]
In either case, running LibTas Version v1.4.4
On my system it was tested in Gabriel knight 2, Shivers 1, Phantasmagoria 1 and 2.
On someone else's system it was tested on Gabriel Knight 1.
The following occurs
LibTAS booting the game, setting a safestate before playing a fullscreen video, , loading the savestate and then playing the video causes the game to freeze or crash. LibTAS itself will not crash. The error Message is along the lines of:
X Error of failed request: GLXBadContext Major opcode of failed request: 155 (GLX) Minor opcode of failed request: 183 (X_GLXIsDirect) Serial number of failed request: 181 Current serial number in output stream: 31
Ignore the exact numbers, that's copy pasted from a different thread.
What we HAVE figured out, is that it DOESN'T crash if the video is in half-video mode, such as is choosable in Phantasmagoria 1.
Install LibTAS v 1.4.4
run LibTAS, untick pause checkbox, add phantas 1 (or any of the other games) to game list, click until in main menu. press SHIFT+F1 to make a savestate. Press F1 to LOAD that same savestate. Click "Watch Intro".
If the game is set to full-video it will crash. If it's set to half-video (accessible from the game options mid gameplay, not accessible from the main menu), it will not crash.
If no savestate is made or loaded, it will not crash.
If the savestate is made, but NOT loaded, it will NOT crash.
Given that the crash also happen on Mint, I thought to rule out WSL, XLaunch, and specific Ubuntu version.
We also tried Riven, which begins with a fullscene Cutscene, and it doesn't crash (wth savestates and all).
So I was asssuming it is to do with the interaction between ScummVM SCI engine and LibTAS. But I don't know on which side the "discrepancy" happens. In fact I know nothing, I am just guessing, and providing you with as much info as I can.
Like, there's a chance that this is a LibTAS bug, and has nothing to do with ScummVM. Just in case, I'll flag it as a bug here.
If it's of any help, we went bughunting during this stream:
and it happens pretty much right away.
I currently don't know where the scummvm logs are on linux, If you let me know, I can attach them.
Change History (6)
comment:3 by , 5 months ago
|Component:||Engine: SCI → Graphics|
|Summary:||Sierra Fullscreen Video Freeze/Crash → libTAS crashes SCI with fullscreen video|