runtime: NativeFileReference regression in .NET 8.0
Description
A object detection sample project using the ONNX runtime as WASM static library is running well using NET7.0 but fails on NET8.0rc with the following error chain:
``
await createEmscripten(module); … mono_download_assets(); … }).catch(err => { loaderHelpers.err("Error in mono_download_assets: " + err); mono_exit(1, err); throw err; });
``
The error comes obviously from the inclusion of the ONNX rumtime.
Reproduction Steps
Clone the repository WASMObjectDetector Run the WASMObjectDetector7 sample Run the WASMObjectDetector8 sample
Expected behavior
WASMObjectDetector8 sample working as well.
Actual behavior
WASMObjectDetector8 sample -> failing with “Error in mono_download_assets”
Regression?
working on NET7.0
Known Workarounds
none
Configuration
VS Version 17.8.0 Preview 3.0 NET7.0 SDK 7.0.402 NET8.0rc2 SDK 8.0.100-rc.2.23502.2
Other information
No response
About this issue
- Original URL
- State: open
- Created 8 months ago
- Comments: 21 (9 by maintainers)
after ‘dotnet run’ or running from VS I get in Edge only a warning, but since there is no “___cxx_global_var_init” warning in NET7 there might be some relation.
same for Firefox: