Opened 8 weeks ago
Last modified 8 weeks ago
#17211 new defect
TETRAEDGE: Syberia 1 possible crash or freeze
| Reported by: | SpaceShuttle4A1 | Owned by: | |
|---|---|---|---|
| Priority: | normal | Component: | Engine: Tetraedge |
| Version: | Keywords: | ||
| Cc: | Game: | Syberia 1 |
Description (last modified by )
To help solve this, I decided to look into lua related crash/freezing a bit more as it still occurred about 4 times more over a full playthrough. See if I could reproduce it 100% and did.
logcat backtrace examples (can attach a full backtrace of the ScummVM crash if necessary):
Example 1
0... luaS_newlstr(lua_State*, char const*, unsigned int)
1... resume_error(lua_State*, char const*)
2... lua_resume(lua_State*, int)
3... Tetraedge::TeLuaThread::_resume(int)
Example 2
0... resume(lua_State*, void*)
1... luaD_rawrunprotected(lua_State*, void (*)(lua_State*, void*), void*)
2... lua_resume(lua_State*, int)
3... Tetraedge::TeLuaThread::_resume(int)
Manually reproduce crash and freeze (it may crash or freeze depending):
- Load attached save. Not tested anywhere else but have seen elsewhere. I feel attaching save where its been seen is the quickest way to get this going anyway.
- Go back one scene location of where the main character already is upon loading. This causes the gear icon to show up so that continue will occur here. This is required. I could not manually reproduce without.
- Go back to the first scene again.
- Talk to the woman.
- While talking, tap ScummVM menu.
- Resume.
- Continue.
- Repeat 3-7 until crash or freeze. Edit: Oops, 3 not 4.
Tapping to skip dialog may also see further things happen, increase speed of the crash/freeze, or also be involved.
Edit:
Some other info.
Android 16
ScummVM daily Sept 17 (today).
Attachments (1)
Change History (8)
by , 8 weeks ago
| Attachment: | syberia-mac.003 added |
|---|
comment:1 by , 8 weeks ago
| Description: | modified (diff) |
|---|
comment:2 by , 8 weeks ago
| Description: | modified (diff) |
|---|
comment:3 by , 8 weeks ago
| Description: | modified (diff) |
|---|
comment:4 by , 8 weeks ago
| Description: | modified (diff) |
|---|
comment:5 by , 8 weeks ago
comment:6 by , 8 weeks ago
Some additional info from my testing, now that I got the segmentation fault issue a few more times (still on Windows):
- I was clicking through (skipping) the dialog with madam Romanski.
- I consistently interrupted Romanski while she was talking "There you are my dear..." to bring up the ScummVM menu (Ctrl+F5), then press Resume, and then Continue from the main menu.
- After a few "Continues", and if the segmentation fault had not triggered yet *and* I allowed the conversation to end without bringing up the ScummVM menu, I would get a message on the log like the following:
WARNING: LaunchDialogAndWaitForEnd: Reentrency error, your are already in a yielded/sync function call! WARNING: LaunchDialogAndWaitForEnd: Reentrency error, your are already in a yielded/sync function call! WARNING: LaunchDialogAndWaitForEnd: Reentrency error, your are already in a yielded/sync function call! WARNING: TeLuaThread::_resume: attempt to call a nil value!
- The above meant that the conversation had stopped quite earlier from where it was supposed to end (also, note, if manually saving at this point and reloading, madam Romanski and the automaton would be gone from the scene). Edit: I just noticed that the game interface becomes unresponsive in this situation; the overlay icons are still there, but unclickable -- is this the freeze issue?
- After this happened (converstation ended before it was meant to), then the next time of the sequence Ctrl+F5 -> Resume -> Continue -> Go back into the room and talk to Romanski, would always trigger the segmentation fault.
- I also got the seg fault a few times without getting the abrupt conversation ending.
comment:7 by , 8 weeks ago
| Summary: | TETRAEDGE: Syberia 1 Android possible crash or freeze → TETRAEDGE: Syberia 1 possible crash or freeze |
|---|
Wow. That's a lot more complicated than I ever expected :)
Autosave: Early on had to redo a bunch of stuff from the first time it struck. So, its not necessarily part of the problem. Edit: I see a clarification needed here. Enabled it after the first time.
Also have multiple saves. Five in total.
Removing Android from the title since is affecting Windows too.
Edit: Game renderer I had set to software.
Edit: Crashes faster with OpenGl so, software or OpenGl doesn't matter.
Edit: Also can add, didn't test this outside of dialog.
Edit: Tested via scene change and no crash/freeze that way (tested within reason about 15+ times). Switched to dialog and crash in about 3 times this time around so still reproducing. First time was during a scene change or some seconds after so there is something that way.
Edit: While playing around with variations, its possible to have the crash/freeze happen during or around scene change after some time. In this instance of testing, it took approx 10+ minutes of playing (moving around and doing things, using continue a lot) to get it to occur.
Using continue less (eg once) may well take longer time of playing. I've seen no crash/freeze for some hours at one point. I'm not testing this directly or without use (not wanting to spend hours replaying :)
All crash/freezes I've seen show to be reproduced this way.

This might not be Android specific.
I got a segmentation fault while trying to reproduce this on Windows 10 x64, with a local dev build from master HEAD.
For now, I should note that the game does not automatically save when you change a screen -- unless ofcourse the autosaving feature is enabled from Global Options *and* incidentally it happens to be time to autosave. So, in the above steps you have to manually save after you exit the room where loading the attached saved puts Kate at the first time. In other words, you need to create a save at "step 2".
When I got the segmentation fault, I was testing the game on Windows with Software renderer, and the log (default debug level) did not contain any other relevant indications.
Another thing to note: The "Continue" option from the main menu loads up the last saved game slot.
This seems intended because according to the notes in the source code the game only allows one "save file". However, this does lead to some confusion if you are playtesting with multiple save files. For example, initially my last save slot was set to 0 and it remained so when I loaded the attached saved game (which is put at slot 2). So, "Continue" in my case would load up a completely different scene (early lobby dialogue with the hotel receptionist). And the game crashed while I was trying things around *that scene* with a "WARNING: LaunchDialogAndWaitForEnd: Reentrency error, your are already in a yielde
d/sync function call!" and then a segmentation fault. I wasn't able to reproduce that one though, and I can't tell as of yet if it's the same issue as in the original post here or something else.
Typically, I'd expect the "Resume" button from ScummVM's menu to resume the game from exactly where the game left off the moment when the ScummVM menu was brought up. Instead, we bring up the game's own main menu and then the user only has the option to "Continue", which will put them back at the last save location, wherever that might be. It's probably some engine mechanic that mandated this design decision, but someone with more insight on the engine would have to elaborate on that and whether this factors in the segmentation fault issue (or the freezing issue).
As of yet, I've only had the segmentation fault. I did not get a game freeze (on Windows).