ruffle-rs / ruffle

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

Panic on https://s1.4399hxjy.com/game.php - https://news.4399.com/hxjy/ #15006

Closed wsxarcher closed 9 months ago

wsxarcher commented 9 months ago

Describe the bug

339.js:1038  panicked at core/src/avm2/namespace.rs:50:40:
Bad version mark 58077

The mark 0xE294 - 0xE2DD = 0x49 seems to exceed the special case of selecting the API version by index. https://github.com/ruffle-rs/ruffle/blob/1cf669c75e81654f83e20900a683cdb22e14a6d2/core/src/avm2/namespace.rs#L40C5-L40C44

Expected behavior

Run the game

Content Location

https://s1.4399hxjy.com/game.php Server selection: https://news.4399.com/hxjy/

Affected platform

Browser's extension

Operating system

Window 11

Browser

Edge/Chrome 120

Additional information

This game is part of a bigger effort to support 4399.com games. There might be other issues with this website, from how it handles Flash checks and many CORS issues. Unfortunately, some games cannot be easily debugged on desktop because the swf download other swf or do requests while logged in.

If Ruffle is not detected try to reload the page multiple times because of the known race condition on the Flash check. To avoid refreshing try this Tampermonkey user script 一键下载 flash 游戏 (greasyfork.org)

To solve these issues refers to previous issues such as:

wsxarcher commented 9 months ago

MainLoader.zip