ruffle-rs / ruffle

A Flash Player emulator written in Rust
https://ruffle.rs
Other
15.74k stars 816 forks source link

Anti-Idle (mod): Cannot open game #18368

Open xy2i opened 1 month ago

xy2i commented 1 month ago

Describe the bug

Reproduction steps:

The game freezes here, after trying to open a savefile. Also, it crashes after a while with "stack overflow exceeded", after I moved my mouse for a while. I didn't capture a stack trace Image

Expected behavior

Expected: The game starts up fine, like in flash

Content Location

Reforged_v79AH.zip

Affected platform

Desktop app

Operating system

Windows 10 and MacOS

Browser

No response

Additional information

Reproduced on both windows and mac

xy2i commented 1 month ago

stack trace https://gist.github.com/xy2i/47921cb2a3caf02ceee43fa8b64b4d34

adrian17 commented 3 weeks ago

I haven't figured it out yet, and the SWF might have some strong obfuscation, as FFDEC hangs when trying to disassemble it. The only observation so far is that nothing is visible presumably because the child is masked by the root movie, which makes it not render. But I don't know if the difference from FP concerns masking behavior, or maybe that in FP the root movie doesn't become a mask in the first place.

xy2i commented 3 weeks ago

That's strange, we are using jpexs/ffdec routinely to modify the swf. (only the gui version of jpexs though) Maybe JPEXS 14.4 would work better as more recent versions have routine regressions in AS2 behavior