Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Stealth Hunter 2 - Game softlocks itself after exceeding the maximum call stack size in the first level #14744

Open
Molisson opened this issue Jan 14, 2024 · 1 comment
Labels
A-avm2 Area: AVM2 (ActionScript 3) amf Issues relating to AMF serialization/deserialization bug Something isn't working

Comments

@Molisson
Copy link

Describe the bug

  1. Play the first level as usual
  2. Reach the second cutscene trigger, where the main protagonist talks about the shipment and wait until the cutscene ends

If done correctly, the game should be softlocked for you and you are unable to progress

Expected behavior

The game should not be softlocked and progress the game

Content Location

https://www.newgrounds.com/portal/view/592710?emulate=flash

Affected platform

Self-hosted version

Operating system

Windows 11

Browser

Microsoft Edge

Additional information

One error log I found

Uncaught RangeError: Maximum call stack size exceeded
    at ruffle_core::avm2::activation::Activation::resolve_parameters::h20d8c8beac9ae0e8 (0363ec7e:0x6b08ba)
    at ruffle_core::avm2::function::Executable::exec::h0105c140d9037b4e (0363ec7e:0x317699)
    at <ruffle_core::avm2::object::class_object::ClassObject as ruffle_core::avm2::object::TObject>::construct::hd8e3428cf17f259f (0363ec7e:0x849eee)
    at <ruffle_core::avm2::object::Object as ruffle_core::avm2::object::TObject>::construct::hac23978d6b60af93 (0363ec7e:0x42c006)
    at ruffle_core::avm2::activation::Activation::run_actions::h8dfafc6a0c0a2658 (0363ec7e:0x30700)
    at ruffle_core::avm2::function::Executable::exec::h0105c140d9037b4e (0363ec7e:0x317db6)
    at ruffle_core::avm2::object::TObject::call_method::h091cbfec09dcbe4f (0363ec7e:0x69912f)
    at ruffle_core::avm2::object::TObject::get_property::haf4707cd908ef05c (0363ec7e:0x5c149c)
    at <ruffle_core::avm2::object::Object as ruffle_core::avm2::object::TObject>::get_public_property::hd4fd23124ac9d159 (0363ec7e:0x2330bd)
    at ruffle_core::avm2::amf::recursive_serialize::hd04ba0c22de04ef0 (0363ec7e:0x4806dc)
@Molisson Molisson added the bug Something isn't working label Jan 14, 2024
@Lord-McSweeney Lord-McSweeney added the A-avm2 Area: AVM2 (ActionScript 3) label Jan 14, 2024
@Lord-McSweeney
Copy link
Collaborator

This may be related to recursive serialization of objects into AMF in AVM2

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
A-avm2 Area: AVM2 (ActionScript 3) amf Issues relating to AMF serialization/deserialization bug Something isn't working
Projects
None yet
Development

No branches or pull requests

3 participants