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

web: Cubestern - Could not fetch Moive #2716

Open
desertking opened this issue Jan 21, 2021 · 4 comments
Open

web: Cubestern - Could not fetch Moive #2716

desertking opened this issue Jan 21, 2021 · 4 comments
Labels
A-avm2 Area: AVM2 (ActionScript 3) bug Something isn't working swf Related to the SWF format

Comments

@desertking
Copy link

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

ruffle-object.js:81 Asynchronous error occurred: Could not fetch movie https://uploads.ungrounded.net/653000/653687_cubestern-bigdino-distrib.swf?1424439603
a.wbg.__wbg_error_e325755affc8634b @ ruffle-object.js:81

@desertking
Copy link
Author

There is still an error in it loading endlessly and nothing happens..
.https://www.newgrounds.com/portal/view/653687?emulate=flash

@n0samu n0samu added bug Something isn't working swf Related to the SWF format labels Oct 6, 2022
@n0samu
Copy link
Member

n0samu commented Oct 6, 2022

The new error (on desktop) is:
[ERROR ruffle_desktop::executor] Async error: Invalid SWF: Couldn't read SWF
This is really weird!

@n0samu n0samu added the A-avm2 Area: AVM2 (ActionScript 3) label Jun 7, 2023
@n0samu
Copy link
Member

n0samu commented Jun 7, 2023

This SWF uses DoSWF encryption/obfuscation. It is an LZMA-compressed SWF (ZWS) and it seems like DoSWF messes with the LZMA headers in a way that Flash Player is fine with but Ruffle is not. When decompressing the SWF, 7-Zip reports a "data error" but succeeds anyway. If I load the decompressed SWF in Ruffle, this error occurs:

ERROR run_frame:run_all_phases_avm2: ruffle_core::display_object::movie_clip: Got "ReferenceError: Error #1069: Property Bytes not found on flash.display.Loader and there is no default value.
        at ˂/bytesLen()
        at ˂/init()
        at ˂()" when constructing AVM2 side of movie clip of type ˂

@Lord-McSweeney
Copy link
Collaborator

Like a lot of issues, this is caused by a bug in a String function which causes an operation to return "Bytes" instead of "loadBytes", which causes the failing property access.

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) bug Something isn't working swf Related to the SWF format
Projects
None yet
Development

No branches or pull requests

3 participants