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

express delivery - can't enter the level #16340

Closed
zjk261 opened this issue May 16, 2024 · 4 comments · Fixed by #16620
Closed

express delivery - can't enter the level #16340

zjk261 opened this issue May 16, 2024 · 4 comments · Fixed by #16620
Assignees
Labels
avm2 AVM2 (ActionScript 3.0) issues bug Something isn't working xml

Comments

@zjk261
Copy link

zjk261 commented May 16, 2024

Describe the bug

black screen

1.mp4

Expected behavior

2.mp4

Content Location

express-delivery.zip

Affected platform

Desktop app

Operating system

Windows 10

Browser

No response

Additional information

No response

@zjk261 zjk261 added the bug Something isn't working label May 16, 2024
@Dinnerbone
Copy link
Contributor

Dinnerbone commented May 19, 2024

ruffle_core::avm2::events: Error dispatching event EventObject(EventObject { type: "enterFrame", class: flash.events::Event, ptr: 0x22fe957fd70 }) to handler FunctionObject(FunctionObject { ptr: 0x22ff75a4430, name: Ok("net.flashpunk::Engine/onEnterFrame()") }) : TypeError: Error #1104: Attribute was already specified for element.
	at XML/XML::init()
	at XML()
	at com.cactigames.screens::PlayArea/loadLevel()
	at com.cactigames.screens::PlayArea/begin()
	at net.flashpunk::Engine/checkWorld()
	at net.flashpunk::Engine/update()
	at net.flashpunk::Engine/onEnterFrame()

It's reading an XML, then toString()ing it and reading it back once more. We lose namespace info in our toString(), causing it to clash with inkscape:version= and version= on the same element.

@Dinnerbone Dinnerbone added avm2 AVM2 (ActionScript 3.0) issues xml labels May 19, 2024
evilpie added a commit to evilpie/ruffle that referenced this issue May 30, 2024
This does not implement any of the XML API functions that interact with
namespaces.

Fixes ruffle-rs#16340
evilpie added a commit to evilpie/ruffle that referenced this issue May 30, 2024
This does not implement any of the XML API functions that interact with
namespaces.

Fixes ruffle-rs#16340
torokati44 pushed a commit to evilpie/ruffle that referenced this issue May 30, 2024
This does not implement any of the XML API functions that interact with
namespaces.

Fixes ruffle-rs#16340
@zjk261
Copy link
Author

zjk261 commented Jun 6, 2024

@evilpie it regressed since nightly 2024-06-04
can you reopen it

@evilpie evilpie reopened this Jun 6, 2024
@evilpie evilpie self-assigned this Jun 6, 2024
@evilpie
Copy link
Collaborator

evilpie commented Jun 6, 2024

So the issue is that namespace("") doesn't return anything. The reason for this is that we don't include the default namespace as part of the in_scope_namespaces. I am not sure yet when/where we would add the default namespace. (This also seems to clash a bit with inScopeNamespaces, which will add the public namespace explicitly) @Dinnerbone

@evilpie
Copy link
Collaborator

evilpie commented Jun 6, 2024

Oh I think this is actually related to handling xmlns="http://foo" without a prefix.

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 xml
Projects
None yet
Development

Successfully merging a pull request may close this issue.

3 participants