ruffle-rs / ruffle

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

`Flightless Demo` loading fail #14150

Open yangyangdaji opened 10 months ago

yangyangdaji commented 10 months ago

Describe the bug

nightly-2023-11-25

Flightless Demo loading fail

Flightless-Demo

Expected behavior

ok

Content Location

game web https://www.gamedesign.jp/flash/flightless/flightless.html

game swf https://www.gamedesign.jp/flash/flightless/flightless.swf

Affected platform

Browser's extension

Operating system

Windows 11

Browser

Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/119.0.0.0 Safari/537.36 Edg/119.0.0.0

Additional information

No response

yangyangdaji commented 10 months ago

Debug log

ruffle-player.js:570 Ruffle instance destroyed.
ruffle-player.js:488 New Ruffle instance created (Version: nightly 2023-11-25 | WebAssembly extensions: ON | Used renderer: wgpu-webgl)
ruffle-player.js:651 Loading SWF data
ruffle_web-wasm_extensions.js:753 WARN core/src/tag_utils.rs:477 Unknown tag code: 255
ruffle_web-wasm_extensions.js:753 WARN core/src/tag_utils.rs:477 Unknown tag code: 255
ruffle_web-wasm_extensions.js:753 WARN core/src/stub.rs:126 Encountered stub: AVM2 flash.system.Security.allowDomain()
demo/:1  Access to fetch at 'https://s3.amazonaws.com/us_nitrome_s3/cachebusters/flightless.txt?gsCacheBusterID=1700899803358' from origin 'https://ruffle.rs' has been blocked by CORS policy: No 'Access-Control-Allow-Origin' header is present on the requested resource. If an opaque response serves your needs, set the request's mode to 'no-cors' to fetch the resource with CORS disabled.
ruffle_web-wasm_extensions.js:1312 

        GET https://s3.amazonaws.com/us_nitrome_s3/cachebusters/flightless.txt?gsCacheBusterID=1700899803358 net::ERR_FAILED 200 (OK)
V.n.wbg.__wbg_fetch_8cebc656dc6b11b1 @ ruffle_web-wasm_extensions.js:1312
$<ruffle_web::navigator::WebNavigatorBackend as ruffle_core::backend::navigator::NavigatorBackend>::fetch::{{closure}}::hfd63e3f578cf8d34 @ 0336c1d6:0x29e3b1
$ruffle_core::loader::Loader::load_url_loader::{{closure}}::he506bf211e012141 @ 0336c1d6:0x5f2d11
$<ruffle_web::navigator::WebNavigatorBackend as ruffle_core::backend::navigator::NavigatorBackend>::spawn_future::{{closure}}::h0f3c1a01989e7be1 @ 0336c1d6:0x410fd0
$wasm_bindgen_futures::queue::Queue::new::{{closure}}::hc37e26db6daee956 @ 0336c1d6:0x72d858
$wasm_bindgen::convert::closures::invoke1_mut::h2c7feb67e27e88e8 @ 0336c1d6:0x9cacd2
$closure4444 externref shim @ 0336c1d6:0x9d6ea1
E @ ruffle_web-wasm_extensions.js:224
c @ ruffle_web-wasm_extensions.js:185
requestAnimationFrame(异步)
(anonymous) @ ruffle_web-wasm_extensions.js:1308
M @ ruffle_web-wasm_extensions.js:235
V.n.wbg.__wbg_requestAnimationFrame_244e975fcad8e9a1 @ ruffle_web-wasm_extensions.js:1307
$ruffle_web::Ruffle::tick::h16f2669bf1186cf3 @ 0336c1d6:0x2d4d62
$wasm_bindgen_futures::future_to_promise::{{closure}}::{{closure}}::h6051c4a67062bc12 @ 0336c1d6:0x550b23
$wasm_bindgen_futures::queue::Queue::new::{{closure}}::hc37e26db6daee956 @ 0336c1d6:0x72d858
$wasm_bindgen::convert::closures::invoke1_mut::h2c7feb67e27e88e8 @ 0336c1d6:0x9cacd2
$closure4444 externref shim @ 0336c1d6:0x9d6ea1
E @ ruffle_web-wasm_extensions.js:224
c @ ruffle_web-wasm_extensions.js:185
ruffle_web-wasm_extensions.js:753 WARN core/src/stub.rs:126 Encountered stub: AVM2 flash.net.URLLoader.close()
demo/:1  Access to fetch at 'https://s3.amazonaws.com/us_nitrome_s3/thumbnails/ico_flightless.png' from origin 'https://ruffle.rs' has been blocked by CORS policy: No 'Access-Control-Allow-Origin' header is present on the requested resource. If an opaque response serves your needs, set the request's mode to 'no-cors' to fetch the resource with CORS disabled.
ruffle_web-wasm_extensions.js:1312 

        GET https://s3.amazonaws.com/us_nitrome_s3/thumbnails/ico_flightless.png net::ERR_FAILED 200 (OK)
V.n.wbg.__wbg_fetch_8cebc656dc6b11b1 @ ruffle_web-wasm_extensions.js:1312
$<ruffle_web::navigator::WebNavigatorBackend as ruffle_core::backend::navigator::NavigatorBackend>::fetch::{{closure}}::hfd63e3f578cf8d34 @ 0336c1d6:0x29e3b1
$ruffle_core::loader::Loader::movie_loader::{{closure}}::h1531a59fbd4387f9 @ 0336c1d6:0x27eee5
$<ruffle_web::navigator::WebNavigatorBackend as ruffle_core::backend::navigator::NavigatorBackend>::spawn_future::{{closure}}::h0f3c1a01989e7be1 @ 0336c1d6:0x410fd0
$wasm_bindgen_futures::queue::Queue::new::{{closure}}::hc37e26db6daee956 @ 0336c1d6:0x72d858
$wasm_bindgen::convert::closures::invoke1_mut::h2c7feb67e27e88e8 @ 0336c1d6:0x9cacd2
$closure4444 externref shim @ 0336c1d6:0x9d6ea1
E @ ruffle_web-wasm_extensions.js:224
c @ ruffle_web-wasm_extensions.js:185
requestAnimationFrame(异步)
(anonymous) @ ruffle_web-wasm_extensions.js:1308
M @ ruffle_web-wasm_extensions.js:235
V.n.wbg.__wbg_requestAnimationFrame_244e975fcad8e9a1 @ ruffle_web-wasm_extensions.js:1307
$ruffle_web::Ruffle::tick::h16f2669bf1186cf3 @ 0336c1d6:0x2d4d62
$wasm_bindgen_futures::future_to_promise::{{closure}}::{{closure}}::h6051c4a67062bc12 @ 0336c1d6:0x550b23
$wasm_bindgen_futures::queue::Queue::new::{{closure}}::hc37e26db6daee956 @ 0336c1d6:0x72d858
$wasm_bindgen::convert::closures::invoke1_mut::h2c7feb67e27e88e8 @ 0336c1d6:0x9cacd2
$closure4444 externref shim @ 0336c1d6:0x9d6ea1
E @ ruffle_web-wasm_extensions.js:224
c @ ruffle_web-wasm_extensions.js:185
ruffle_web-wasm_extensions.js:753 ERROR core/src/loader.rs:908 Error during movie loading of "https://s3.amazonaws.com/us_nitrome_s3/thumbnails/ico_flightless.png": FetchError("Got JS error")
ruffle_web-wasm_extensions.js:753 WARN core/src/stub.rs:126 Encountered stub: AVM2 flash.display.Loader.close()
ruffle_web-wasm_extensions.js:753 WARN core/src/stub.rs:126 Encountered stub: AVM2 flash.display.Loader.unloadAndStop()
demo/:1  Access to fetch at 'https://s3.amazonaws.com/us_nitrome_s3/thumbnails/ico_flightless.png' from origin 'https://ruffle.rs' has been blocked by CORS policy: No 'Access-Control-Allow-Origin' header is present on the requested resource. If an opaque response serves your needs, set the request's mode to 'no-cors' to fetch the resource with CORS disabled.
ruffle_web-wasm_extensions.js:1312 

        GET https://s3.amazonaws.com/us_nitrome_s3/thumbnails/ico_flightless.png net::ERR_FAILED
V.n.wbg.__wbg_fetch_8cebc656dc6b11b1 @ ruffle_web-wasm_extensions.js:1312
$<ruffle_web::navigator::WebNavigatorBackend as ruffle_core::backend::navigator::NavigatorBackend>::fetch::{{closure}}::hfd63e3f578cf8d34 @ 0336c1d6:0x29e3b1
$ruffle_core::loader::Loader::movie_loader::{{closure}}::h1531a59fbd4387f9 @ 0336c1d6:0x27eee5
$<ruffle_web::navigator::WebNavigatorBackend as ruffle_core::backend::navigator::NavigatorBackend>::spawn_future::{{closure}}::h0f3c1a01989e7be1 @ 0336c1d6:0x410fd0
$wasm_bindgen_futures::queue::Queue::new::{{closure}}::hc37e26db6daee956 @ 0336c1d6:0x72d858
$wasm_bindgen::convert::closures::invoke1_mut::h2c7feb67e27e88e8 @ 0336c1d6:0x9cacd2
$closure4444 externref shim @ 0336c1d6:0x9d6ea1
E @ ruffle_web-wasm_extensions.js:224
c @ ruffle_web-wasm_extensions.js:185
ruffle_web-wasm_extensions.js:753 ERROR core/src/loader.rs:908 Error during movie loading of "https://s3.amazonaws.com/us_nitrome_s3/thumbnails/ico_flightless.png": FetchError("Got JS error")
ruffle_web-wasm_extensions.js:753 WARN core/src/stub.rs:126 Encountered stub: AVM2 flash.net.LocalConnection.connect()
demo/:1  Access to fetch at 'https://s3.amazonaws.com/us_nitrome_s3/games/flightless.pkg?gsCacheBusterID=1700899803359' from origin 'https://ruffle.rs' has been blocked by CORS policy: No 'Access-Control-Allow-Origin' header is present on the requested resource. If an opaque response serves your needs, set the request's mode to 'no-cors' to fetch the resource with CORS disabled.
ruffle_web-wasm_extensions.js:1312 

        GET https://s3.amazonaws.com/us_nitrome_s3/games/flightless.pkg?gsCacheBusterID=1700899803359 net::ERR_FAILED 200 (OK)
V.n.wbg.__wbg_fetch_8cebc656dc6b11b1 @ ruffle_web-wasm_extensions.js:1312
$<ruffle_web::navigator::WebNavigatorBackend as ruffle_core::backend::navigator::NavigatorBackend>::fetch::{{closure}}::hfd63e3f578cf8d34 @ 0336c1d6:0x29e3b1
$ruffle_core::loader::Loader::load_url_loader::{{closure}}::he506bf211e012141 @ 0336c1d6:0x5f2d11
$<ruffle_web::navigator::WebNavigatorBackend as ruffle_core::backend::navigator::NavigatorBackend>::spawn_future::{{closure}}::h0f3c1a01989e7be1 @ 0336c1d6:0x410fd0
$wasm_bindgen_futures::queue::Queue::new::{{closure}}::hc37e26db6daee956 @ 0336c1d6:0x72d858
$wasm_bindgen::convert::closures::invoke1_mut::h2c7feb67e27e88e8 @ 0336c1d6:0x9cacd2
$closure4444 externref shim @ 0336c1d6:0x9d6ea1
E @ ruffle_web-wasm_extensions.js:224
c @ ruffle_web-wasm_extensions.js:185
demo/:1  Access to fetch at 'https://s3.amazonaws.com/us_nitrome_s3/games/flightless.pkg?gsCacheBusterID=1700899803360' from origin 'https://ruffle.rs' has been blocked by CORS policy: No 'Access-Control-Allow-Origin' header is present on the requested resource. If an opaque response serves your needs, set the request's mode to 'no-cors' to fetch the resource with CORS disabled.
ruffle_web-wasm_extensions.js:1312 

        GET https://s3.amazonaws.com/us_nitrome_s3/games/flightless.pkg?gsCacheBusterID=1700899803360 net::ERR_FAILED 200 (OK)
V.n.wbg.__wbg_fetch_8cebc656dc6b11b1 @ ruffle_web-wasm_extensions.js:1312
$<ruffle_web::navigator::WebNavigatorBackend as ruffle_core::backend::navigator::NavigatorBackend>::fetch::{{closure}}::hfd63e3f578cf8d34 @ 0336c1d6:0x29e3b1
$ruffle_core::loader::Loader::load_url_loader::{{closure}}::he506bf211e012141 @ 0336c1d6:0x5f2d11
$<ruffle_web::navigator::WebNavigatorBackend as ruffle_core::backend::navigator::NavigatorBackend>::spawn_future::{{closure}}::h0f3c1a01989e7be1 @ 0336c1d6:0x410fd0
$wasm_bindgen_futures::queue::Queue::new::{{closure}}::hc37e26db6daee956 @ 0336c1d6:0x72d858
$wasm_bindgen::convert::closures::invoke1_mut::h2c7feb67e27e88e8 @ 0336c1d6:0x9cacd2
$closure4444 externref shim @ 0336c1d6:0x9d6ea1
E @ ruffle_web-wasm_extensions.js:224
c @ ruffle_web-wasm_extensions.js:185
mtv129 commented 9 months ago

That's an easy answer, you need to connect to a server from Nitrome, here is an example application: https://www.newgrounds.com/projects/games/5219367/preview the server exists, everything runs on as3 and it can also interact with the server, but it is impossible to receive data from it. and that's why it doesn't work

yangyangdaji commented 9 months ago

That's an easy answer, you need to connect to a server from Nitrome the server exists, everything runs on as3 and it can also interact with the server, but it is impossible to receive data from it. and that's why it doesn't work

I know this, how to fix this problem 🤔

@Lord-McSweeney @sleepycatcoding has a suggestion for that?