Black screen on EndeavorKong.swf
Game URL: https://www.kongregate.com/games/Zillix/endeavor SWF URL: https://chat.kongregate.com/gamez/0009/8356/live/EndeavorKong.swf?kongregate_game_version=1291824082
The downloaded SWF plays correctly in the standalone Flash player 32.0.0.453 but not in Ruffle demo. The error looks like a black screen. In the browser console, this is visible:
798.index.js:1 Uncaught Error: closure invoked recursively or destroyed already
at Object.Or (798.index.js:1)
at __wbindgen_throw (index.js:1)
at /demo/9ef336e1955671350c51.module.wasm:wasm-function[4408]:0x2f992f
at _dyn_core__ops__function__FnMut__A____Output___R_as_wasm_bindgen__closure__WasmClosure___describe__invoke__h1caa099555dfec24 (/demo/9ef336e1955671350c51.module.wasm:wasm-function[4100]:0x2f8075)
at F (798.index.js:1)
at f (798.index.js:1)
798.index.js:1 Uncaught Error: closure invoked recursively or destroyed already
at Object.Or (798.index.js:1)
at __wbindgen_throw (index.js:1)
at /demo/9ef336e1955671350c51.module.wasm:wasm-function[4408]:0x2f992f
at _dyn_core__ops__function__FnMut__A____Output___R_as_wasm_bindgen__closure__WasmClosure___describe__invoke__h1caa099555dfec24 (/demo/9ef336e1955671350c51.module.wasm:wasm-function[4100]:0x2f8075)
at F (798.index.js:1)
at f (798.index.js:1)
In the standalone Ruffle and in Firefox, there are errors in the log:
INTEL-MESA: warning: Haswell Vulkan support is incomplete
[2020-11-22T12:13:20Z ERROR ruffle_core::display_object::movie_clip] Got TypeError: undefined is not an Object when constructing AVM2 side of display object
[2020-11-22T12:13:20Z ERROR ruffle_core::avm2::activation] AVM2 error: Property does not exist: Some(AvmString { source: Owned("Bitmap") })
[2020-11-22T12:13:20Z ERROR ruffle_core::avm2::activation] AVM2 error: Property does not exist: Some(AvmString { source: Owned("Bitmap") })
[2020-11-22T12:13:20Z ERROR ruffle_core::avm2::activation] AVM2 error: Property does not exist: Some(AvmString { source: Owned("ByteArray") })
...and a lot more "Property does not exist" errors.
This game needs XML, erroring out with RustError("Attempted to call \"\" with 1 arguments (more than 0 is prohibited)") and
TypeError: Error #1009: Cannot access a property or method of a null object reference. (accessing field: ::visible
With #9647, this also needs unescape.
~~Still seems to toss this up in the console log, but no longer boots to a black screen and actually seems to get ingame.~~
~~Error dispatching event EventObject(EventObject { type: "complete", class: flash.events::Event, ptr: 0x39c65a8 }) to handler FunctionObject(FunctionObject { ptr: 0x15ae030 }) : RustError("Property does not exist: Multiname { ns: Single(Namespace(Namespace(""))), name: Some("unescape"), params: [], flags: (empty) }")~~
UPDATE: Disregard previous comment, nothing seems to pop in the logs testing on the latest nightly now, though performance seems to be kinda bad on web.
Performance seems to be lots of BitmapData.draw & read. We can possibly specialize copyPixels to do a gpu copy when both images are currently on gpu
Can we maybe open an separate issue for the performance issue?