[Scummvm-tracker] [ScummVM :: Bugs] #17335: MACS2: ScummVM freezes when interacting with inventory items

ScummVM :: Bugs trac at scummvm.org
Sat Oct 17 19:17:43 UTC 2026


#17335: MACS2: ScummVM freezes when interacting with inventory items
------------------------+--------------------------------------
Reporter:  windlepoons  |       Owner:  (none)
    Type:  defect       |      Status:  new
Priority:  high         |   Component:  Engine: MACS2
 Version:               |  Resolution:
Keywords:  freeze       |        Game:  Der Schatz im Silbersee
------------------------+--------------------------------------
Comment (by mgerhardy):

 1. Stale end position

 After the object script, _scriptEndPosition is still the object script’s
 small size (~30 bytes). setCurrentSceneScriptAt() only refreshes the end
 when it was 0, so after the switch the scene is capped to that tiny end.
 The scene barely runs (e.g. one ifTrue) and returned immediately.

 2. Object walk restarted

 resetToSceneScript also forces _scriptExecutionState =
 ExecutingSceneScript and rewrites _executingObjectIndex. When the
 truncated scene finishes, loadNextScript() treates that as "scene pass
 done -> start objects from 1 again."

 Interaction IDs are still set (inventry combine doesn’t clear them like a
 scene click does), so object 0x40 matches again -> resetToSceneScript
 again -> restart from object 1 -> endless loop. That matches the freeze
 and the debug flood of ifInteraction(1088, 1081) we can see in the above
 posted stacktrace.
-- 
Ticket URL: <https://bugs.scummvm.org/ticket/17335#comment:10>
ScummVM :: Bugs <https://bugs.scummvm.org>
ScummVM


More information about the Scummvm-tracker mailing list