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

[WASM] Bootstrap did not load app on mobile #13591

Closed
easy28 opened this issue Sep 10, 2023 · 6 comments
Closed

[WASM] Bootstrap did not load app on mobile #13591

easy28 opened this issue Sep 10, 2023 · 6 comments
Labels
difficulty/medium 🤔 Categorizes an issue for which the difficulty level is reachable with a good understanding of WinUI kind/bug Something isn't working platform/wasm 🌐 Categorizes an issue or PR as relevant to the WebAssembly platform

Comments

@easy28
Copy link

easy28 commented Sep 10, 2023

Current behavior

Uno.Wasm.Bootstrap version 8.0.0-dev.277
ExecutionMode : InterpreterAndAot

App did not load on mobile safari or mobile chrome. also noticed https://gallery.platform.uno/ did not load on mobile.

Uno.Wasm.Bootstrap version 8.0.0-dev.138 and before can load app correctly.

Expected behavior

Load wasm app on mobile correctly.

How to reproduce it (as minimally and precisely as possible)

No response

Workaround

No response

Works on UWP/WinUI

None

Environment

No response

NuGet package version(s)

No response

Affected platforms

No response

IDE

No response

IDE version

No response

Relevant plugins

No response

Anything else we need to know?

No response

@easy28 easy28 added difficulty/tbd Categorizes an issue for which the difficulty level needs to be defined. kind/bug Something isn't working triage/untriaged Indicates an issue requires triaging or verification labels Sep 10, 2023
@jeromelaban
Copy link
Member

Thanks for the report. Can you indicate which platform you're using? Recent builds of .NET 8 enable SIMD by default, and some older browsers don't support that.

You can check this table on the "Fixed-width SIMD" to determine the minimum version supported.

@jeromelaban jeromelaban added the triage/needs-information Indicates an issue needs more information in order to work on it. label Sep 11, 2023
@easy28
Copy link
Author

easy28 commented Sep 11, 2023

I am using .NET 7, iOS 16.6.1 safari / chrome mobile 104.0.5112.99

Thanks!

@jeromelaban
Copy link
Member

Thanks for the report. Indeed there's an issue, but it may not be related to the bootstrapper.

Note for contributors

Here's the stack trace:

image

And the actual exception is:

image

This looks like a TSImport/CSP related issue.

@jeromelaban
Copy link
Member

The issue looks like a memory corruption for arm64 specifically, and the location of the error changes on every build on the gallery. On desktop the app is working properly on x64, but not on arm64.

image

The Url is never suppose to look that way:

Source = new Uri(XamlFilePathHelper.AppXIdentifier + XamlFilePathHelper.GetWinUIThemeResourceUrl(2));

Which would mean that the string is altered somehow, and cause this check to fail:

if (!XamlFilePathHelper.IsAbsolutePath(source))

@easy28
Copy link
Author

easy28 commented Sep 13, 2023

Uno.Wasm.Bootstrap 8.0.0-dev.152 is OK . Has error when Uno.Wasm.Bootstrap >= 8.0.0-dev.192

@MartinZikmund MartinZikmund added platform/wasm 🌐 Categorizes an issue or PR as relevant to the WebAssembly platform difficulty/medium 🤔 Categorizes an issue for which the difficulty level is reachable with a good understanding of WinUI and removed triage/untriaged Indicates an issue requires triaging or verification difficulty/tbd Categorizes an issue for which the difficulty level needs to be defined. triage/needs-information Indicates an issue needs more information in order to work on it. labels Oct 23, 2023
@jeromelaban
Copy link
Member

This issue seems to have been addressed in recent Safari builds (both iOS and macOS arm64), closing for now.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
difficulty/medium 🤔 Categorizes an issue for which the difficulty level is reachable with a good understanding of WinUI kind/bug Something isn't working platform/wasm 🌐 Categorizes an issue or PR as relevant to the WebAssembly platform
Projects
None yet
Development

No branches or pull requests

3 participants