unoplatform / uno

Build Mobile, Desktop and WebAssembly apps with C# and XAML. Today. Open source and professionally supported.
https://platform.uno
Apache License 2.0
8.74k stars 706 forks source link

[Wasm] Livecharts2 can only run at 127.0.0.1 #17276

Open lld1995 opened 2 months ago

lld1995 commented 2 months ago

Current behavior

If i visit web by 192.168.0.2 ,livecharts2 can't render and give errors:

Unhandled Exception: put_char @ dotnet.native.js:8 dotnet.native.js:8 IndexSizeError: Failed to construct 'ImageData': The input data length is not a multiple of (4 * width). put_char @ dotnet.native.js:8 dotnet.native.js:8 Aborted(native code called abort()) abort @ dotnet.native.js:8 dotnet.native.js:8 Uncaught RuntimeError: unreachable at dotnet.native.wasm:0x2403f1 at ___trap (dotnet.native.js:8:194817) at abort (dotnet.native.js:8:20579) at _abort (dotnet.native.js:8:98449) at dotnet.native.wasm:0x53dbd9 at dotnet.native.wasm:0x4e3bfe at dotnet.native.wasm:0x4dfb99 at dotnet.native.wasm:0x4d2ae9 at dotnet.native.wasm:0x4e2843 at dotnet.native.wasm:0x4e305b

Expected behavior

No response

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

WebAssembly

IDE

Visual Studio 2022

IDE version

No response

Relevant plugins

No response

Anything else we need to know?

No response

jeromelaban commented 1 month ago

Thanks, this is a very curious error, most likely not related to localhost. If you can provide a repro of the issue, it will be further troubleshooting.