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

0x40 Hues v5.11 : white screen #8911

Open
Yuri-K7 opened this issue Dec 24, 2022 · 6 comments
Open

0x40 Hues v5.11 : white screen #8911

Yuri-K7 opened this issue Dec 24, 2022 · 6 comments
Labels
avm2 AVM2 (ActionScript 3.0) issues bug Something isn't working unimplemented Issues for functionality that hasn't been implemented yet

Comments

@Yuri-K7
Copy link

Yuri-K7 commented Dec 24, 2022

Describe the bug

0x40 Hues is a sort of an anime music player. It is using ActionScript 3/avm2.

It can't load and is stuck with a white screen

[2022-12-24T05:25:23Z INFO  ruffle_core::player] Loaded SWF version 22, with a resolution of 1280x720
[2022-12-24T05:25:25Z WARN  ruffle_core::avm2::globals::flash::display::loader] Loader.load: 'context' argument is not yet implemented: Object(ScriptObject(ScriptObject { name: flash.system::LoaderContext, ptr: 0x5605424aae20 }))
[2022-12-24T05:25:25Z ERROR ruffle_core::avm2::events] Error dispatching event EventObject(EventObject { type: "addedToStage", class: flash.events::Event, ptr: 0x560541e73c90 }) to handler FunctionObject(FunctionObject(GcCell(Gc { ptr: 0x560542495088 }))) : RustError("Cannot access property ::addEventListener of null or undefined")

Expected behavior

Should load the music player and use visual effects according to the rythm

Affected platform

Desktop app

Operating system

Manjaro Linux

Browser

No response

Additional information

No response

@Yuri-K7 Yuri-K7 added the bug Something isn't working label Dec 24, 2022
@Lord-McSweeney
Copy link
Collaborator

Can you upload the SWF file?

@Yuri-K7
Copy link
Author

Yuri-K7 commented Dec 24, 2022

Can you upload the SWF file?

Sure it's on they're website : https://0x40hues.blogspot.com/p/div.html

Looks like there's also a web version : https://0x40.mon.im/

@Yuri-K7 Yuri-K7 closed this as completed Dec 24, 2022
@Yuri-K7 Yuri-K7 reopened this Dec 24, 2022
@n0samu n0samu added unimplemented Issues for functionality that hasn't been implemented yet avm2 AVM2 (ActionScript 3.0) issues labels Dec 24, 2022
@Yuri-K7
Copy link
Author

Yuri-K7 commented Apr 5, 2023

image

2023-04-05T10:03:01.406483Z ERROR run_frame:run_all_phases_avm2: ruffle_core::avm2::events: Error dispatching event EventObject(EventObject { type: "complete", class: flash.events::Event, ptr: 0x55a64ae15a10 }) to handler FunctionObject(FunctionObject { ptr: 0x55a64ba4d3d0 }) : TypeError: Error #1009: Cannot access a property or method of a null object reference. (accessing field: PreloaderSWFInterface::setProgress)
        at Preloader/onSwfLoaded()

@Yuri-K7
Copy link
Author

Yuri-K7 commented May 14, 2023

It does properly launch as of now !
The music player interface works correctly, but the music doesn't play.
Screenshot_20230514_025440

2023-05-14T00:46:25.940305Z  INFO ruffle_core::player: Loaded SWF version 22, resolution 1280x720 @ 60 FPS
2023-05-14T00:46:27.206061Z  INFO run_frame:run_all_phases_avm2: avm_trace: -46.60000000000002
2023-05-14T00:46:27.206078Z  INFO run_frame:run_all_phases_avm2: avm_trace: 0
2023-05-14T00:46:27.206099Z  INFO run_frame:run_all_phases_avm2: avm_trace: Progress: 9929143 9929143 9929143
2023-05-14T00:46:29.985239Z  WARN run_frame: ruffle_core::stub: Encountered stub: AVM2 flash.display.DisplayObjectContainer.tabChildren setter
2023-05-14T00:46:29.985264Z  WARN run_frame: ruffle_core::stub: Encountered stub: AVM2 flash.display.InteractiveObject.tabIndex setter
2023-05-14T00:46:29.985668Z  INFO run_frame: avm_trace: XmasUI: found 69 XmasLights
2023-05-14T00:46:29.989671Z  WARN run_frame: ruffle_core::stub: Encountered stub: AVM2 flash.text.TextField.restrict setter
2023-05-14T00:46:29.990671Z  INFO run_frame: avm_trace: 0x40 Hues 5.11 (14.03.2015) - start your engines!
2023-05-14T00:46:29.990708Z  INFO run_frame: avm_trace: Settings created
2023-05-14T00:46:29.990802Z  INFO run_frame: avm_trace: Old settings
2023-05-14T00:46:29.990820Z  INFO run_frame: avm_trace: Saving settings!
2023-05-14T00:46:29.990985Z  WARN run_frame: ruffle_core::stub: Encountered stub: AVM2 flash.media.Sound constructor with arguments
2023-05-14T00:46:30.318401Z  WARN run_frame: ruffle_core::stub: Encountered stub: AVM2 flash.media.Sound.loadCompressedDataFromByteArray()

@Lord-McSweeney
Copy link
Collaborator

The stubs mentioned (Sound.loadCompressedDataFromByteArray() and Sound constructor with arguments) are probably the reason sound doesn't play.

@PookyFan
Copy link

PookyFan commented Jul 22, 2024

As of now this flash is still borked in Ruffle, after loading it kind of hangs. The music doesn't play and graphics is still instead of changing with the beat (which also is not proceeding). The interface, as mentioned above, seems to be working fine.

2024-07-22T19:31:59.610965Z INFO ruffle_core::context: Loaded SWF version 22, resolution 1280x720 @ 60 FPS
2024-07-22T19:31:59.620677Z WARN run_frame: ruffle_core::stub: Encountered stub: AVM2 flash.display.Loader.load() addChild at the correct time
2024-07-22T19:31:59.621272Z INFO run_frame:run_all_phases_avm2: avm_trace: -46
2024-07-22T19:31:59.621281Z INFO run_frame:run_all_phases_avm2: avm_trace: 0
2024-07-22T19:31:59.621330Z INFO run_frame:run_all_phases_avm2: avm_trace: Progress: 9929143 9929143 9929143
2024-07-22T19:32:00.606402Z INFO run_frame: avm_trace: XmasUI: found 69 XmasLights
2024-07-22T19:32:00.609229Z INFO run_frame: avm_trace: 0x40 Hues 5.11 (14.03.2015) - start your engines!
2024-07-22T19:32:00.609274Z INFO run_frame: avm_trace: Settings created
2024-07-22T19:32:00.609367Z INFO run_frame: avm_trace: Old settings
2024-07-22T19:32:00.609416Z INFO run_frame: avm_trace: Saving settings!
2024-07-22T19:32:01.946687Z INFO run_frame: avm_trace: Mode updated! true
2024-07-22T19:32:01.947420Z INFO run_frame: avm_trace: UI Created! Retro
2024-07-22T19:32:01.947819Z INFO run_frame: avm_trace: UI Created! Retro
2024-07-22T19:32:01.952070Z INFO run_frame: avm_trace: XmasUI: found 69 XmasLights
2024-07-22T19:32:01.952232Z INFO run_frame: avm_trace: Updating according to this.settings
2024-07-22T19:32:01.952323Z INFO run_frame: avm_trace: Mode updated! true
2024-07-22T19:32:01.952946Z INFO run_frame: avm_trace: Added 0x40 Hues v5.0 Defaults to respacks
2024-07-22T19:32:01.961273Z INFO run_frame: avm_trace: Next song: 0 [object Object] loop_Finale
2024-07-22T19:32:01.961302Z INFO run_frame: avm_trace: 2 16 14
2024-07-22T19:32:01.961363Z INFO run_frame: avm_trace: Filling buildup beatmap
2024-07-22T19:32:01.961375Z INFO run_frame: avm_trace: Buildup length: 4
2024-07-22T19:32:01.969169Z INFO run_frame: avm_trace: 2 16 14
2024-07-22T19:32:01.981657Z INFO run_frame: avm_trace: Saving settings!
2024-07-22T19:32:01.981755Z INFO run_frame: avm_trace: Saving settings!
2024-07-22T19:32:01.989034Z INFO run_frame: avm_trace: Updating according to this.settings
2024-07-22T19:32:01.989208Z INFO run_frame: avm_trace: 1280 720
2024-07-22T19:32:01.989216Z INFO run_frame: avm_trace: 800 576
2024-07-22T19:32:01.989396Z INFO run_frame: avm_trace: Checking updates
2024-07-22T19:32:01.989477Z WARN run_frame: ruffle_core::stub: Encountered stub: AVM2 flash.system.Capabilities.os getter
2024-07-22T19:32:01.989643Z INFO run_frame: avm_trace: 800 576
2024-07-22T19:32:01.989651Z INFO run_frame: avm_trace: 800 576
2024-07-22T19:32:02.499505Z ERROR ruffle_core::loader: Error during URLLoader load of "https://cdn.0x40hu.es/version.php?v=5.11": InvalidDomain("https://cdn.0x40hu.es/version.php?v=5.11")

URL from error log is indeed invalid, but I don't think it's crucial for the flash to work, as it has default pack of images and songs embedded into it. it works in Adobe Flash Player anyway.
What also seems to be working correctly is one animated image of Lain Iwakura. When displayed, it's properly animated. But as changing images automatically is not working, it needs to be selected with the interface to be shown.

The logs from Adobe Flash player are as follow:

-46
0
Progress: 9929143 9929143 9929143
XmasUI: found 69 XmasLights
0x40 Hues 5.11 (14.03.2015) - start your engines!
Settings created
Old settings
Saving settings!
Mode updated! true
UI Created! Retro
UI Created! Retro
XmasUI: found 69 XmasLights
Updating according to this.settings
Mode updated! true
Added 0x40 Hues v5.0 Defaults to respacks
Next song: 0 [object Object] loop_Finale
2 16 14
Filling buildup beatmap
Buildup length: 5
2 16 14
Saving settings!
Saving settings!
Updating according to this.settings
1280 720
1280 720
Checking updates
1280 720
1280 720
Warning: Failed to load policy file from https://cdn.0x40Hu.es/crossdomain.xml
*** Security Sandbox Violation ***
Error: Request for resource at https://cdn.0x40Hu.es/version.php?v=5.11 by requestor from file:https:///redacted/path/to/0x40 Hues v5.11.swf/[[DYNAMIC]]/2 is denied due to lack of policy file permissions.
Buildup finished
Creating new BMD, since [1481,720] != [1280,720]
1280 720
1280 720
Creating new BMD, since [1515,720] != [1481,720]
1280 720
1280 720

With these three lines repeating (numbers in their content changing slightly) as the beat keeps proceeding:

Creating new BMD, since [1515,720] != [1481,720]
1280 720
1280 720

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
avm2 AVM2 (ActionScript 3.0) issues bug Something isn't working unimplemented Issues for functionality that hasn't been implemented yet
Projects
None yet
Development

No branches or pull requests

4 participants