Thanks to visit codestin.com
Credit goes to github.com

Skip to content

[Wasm] WebAssembly.Net.Http.HttpClient fails under AOT #14940

@jeromelaban

Description

@jeromelaban

Steps to Reproduce

  1. https://github.com/jeromelaban/Wasm.Samples/tree/master/HttpClientRepro
  2. msbuild /r /bl /p:Configuration=Release
  3. Browse using the server.py in the bin/Release/netstandard2.0/dist folder.

Current Behavior

The first call fails with RuntimeError: index out of bounds
The second call works, but raises a native assert.

Loaded: aot-dummy.dll mono.js:6838:16
initializing mono runtime mono.js:6844:17
>>mono_wasm_runtime_ready mono.js:6759:14
/mnt/jenkins/workspace/test-mono-mainline-wasm/label/ubuntu-1804-amd64/mono/metadata/icall.c:1632: mono.js:2181:13
WebAssembly.JSException: RuntimeError: index out of bounds mono.js:2181:13
mono.js:2181:13
/mnt/jenkins/workspace/test-mono-mainline-wasm/label/ubuntu-1804-amd64/mono/metadata/icall.c:1632: mono.js:2181:13
[{"CountryCode":"USA","CountryName":"United States","CurrencyCode":"USD","CurrencyName":"Dollar","CurrencySymbol":"$"},…

Expected Behavior

Both calls to the GetStringAsync work, without raisong runtime errors.

On which platforms did you notice this

[ ] macOS
[ ] Linux
[ ] Windows
[X] WebAssembly

Version Used:

Stacktrace

Please paste the stack trace here if available.

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions