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

avm2: Enable stack traces for Flash Player 11.5+ and SWF18+ #19571

Open
wants to merge 4 commits into
base: master
Choose a base branch
from

Conversation

kjarosh
Copy link
Member

@kjarosh kjarosh commented Feb 19, 2025

@kjarosh kjarosh added A-avm2 Area: AVM2 (ActionScript 3) T-fix Type: Bug fix (in something that's supposed to work already) waiting-on-review Waiting on review from a Ruffle team member labels Feb 19, 2025
Copy link
Member

@n0samu n0samu left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Despite what the docs say, this behavior also seems to depend on the SWF version. Notice that the attached SWF displays no stack trace in release FP: StackTraceTest.zip. But if you change the SWF version to 18 or higher in JPEXS, then the stack trace appears.
Also, be sure to test #12572 since it is affected by the behavior of getStackTrace().

@kjarosh kjarosh changed the title avm2: Enable stack traces for Flash Player 11.5+ avm2: Enable stack traces for Flash Player 11.5+ and SWF18+ Feb 21, 2025
@kjarosh kjarosh requested a review from adrian17 February 21, 2025 15:06
This option specifies whether to emulate flashplayer (release mode)
or flashplayerdebugger (debug mode).
For Flash Player 11.5+ and SWF18+, stack traces are always enabled.
Some content uses this behavior to verify whether the user is using
Flash Player 11.5 onwards.

For Flash Player 11.4 and earlier or SWF<18, stack traces are enabled
only in the debug build.

See <https://docs.ruffle.rs/en_US/FlashPlatform/reference/actionscript/3/Error.html#getStackTrace()>
These tests check whether stack traces are returned based on the SWF
version and the debug/release mode.
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) T-fix Type: Bug fix (in something that's supposed to work already) waiting-on-review Waiting on review from a Ruffle team member
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Error: Flash Player 11.5 or AIR 3.5 required to use this feature.
3 participants