-
Notifications
You must be signed in to change notification settings - Fork 4.7k
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
ILLink.RoslynAnalyzer.DynamicallyAccessedMembersAnalyzer
threw an exception of type 'System.IndexOutOfRangeException'
#87647
Comments
Tagging subscribers to 'arch-wasm': @lewing Issue DetailsUsing fe866e6 I can't build
+ <Dependency Name="Microsoft.NET.ILLink.Tasks" Version="8.0.0-preview.6.23314.14">
<Uri>https://github.com/dotnet/runtime</Uri>
- <Sha>54dab738de58291ebefc8ff0569a799efaff5d82</Sha>
+ <Sha>0a0fa137097595ad8ec0e2aa9ecffb524cd5df95</Sha>
</Dependency> And that includes #87156 cc @sbomer I will open a PR to use the older sdk for now, for Wasm.Build.Tests . And to trigger wasm jobs on linker changes.
|
I tried with latest main (73e4061) and instructions from https://github.com/sbomer/runtime/blob/cb13db47e0d953e3dd516e5b796a63a99d0d25d5/src/tools/illink/src/ILLink.RoslynAnalyzer/README.md but I still hit the same issue. |
I'm seeing the same thing using the latest SDK
|
runtime/src/tools/illink/src/ILLink.RoslynAnalyzer/DynamicallyAccessedMembersAnalyzer.cs Lines 108 to 121 in 76d57e8
Line 118 above is tripping on the entrypoint. Printing the |
.. to workaround dotnet#87647 .
* [wasm] Fix inclusion of `marshal-ilgen` Issue: `marshal-ilgen` component never included Reason: The item inclusion was being done *outside* any targets, which would get evaluated *before* any targets are run. But the item that it depends on to decide whether to include `marshal-ilgen` is in target `_ScanAssembliesDecideLightweightMarshaler`. This broke microbenchmarks with: ``` Error: [MONO] * Assertion at /__w/1/s/src/mono/mono/component/marshal-ilgen-stub.c:28, condition `!m_type_is_byref(t)' not met at ft (/home/helixbot/work/96640802/w/B9C40A15/e/performance/artifacts/bin/for-running/MicroBenchmarks/fa21f9df-08d0-43a4-b28d-0078821ea492/bin/net8.0/browser-wasm/AppBundle/dotnet.runtime.js:3:12422) at mt (/home/helixbot/work/96640802/w/B9C40A15/e/performance/artifacts/bin/for-running/MicroBenchmarks/fa21f9df-08d0-43a4-b28d-0078821ea492/bin/net8.0/browser-wasm/AppBundle/dotnet.runtime.js:3:12676) at wasm_trace_logger (wasm://wasm/00a5f7d6:wasm-function[7879]:0x1e41d0) at eglib_log_adapter (wasm://wasm/00a5f7d6:wasm-function[581]:0x37fbb) at monoeg_g_logv_nofree (wasm://wasm/00a5f7d6:wasm-function[504]:0x35f57) at monoeg_assertion_message (wasm://wasm/00a5f7d6:wasm-function[508]:0x36078) at mono_assertion_message (wasm://wasm/00a5f7d6:wasm-function[510]:0x360bb) at stub_emit_marshal_ilgen (wasm://wasm/00a5f7d6:wasm-function[1300]:0x66db1) at mono_emit_marshal (wasm://wasm/00a5f7d6:wasm-function[1820]:0x8990b) at emit_native_wrapper_ilgen (wasm://wasm/00a5f7d6:wasm-function[2651]:0xb86de) ``` * [wasm] WBT: Use sdk 8.0.100-preview.6.23314.19 .. to workaround #87647 . * [wasm] Add test for marshal-ilgen - wbt * add missing file
Removed |
This reverts the earlier change from 7112a41 which was working around dotnet#87647
Is this issue actually fixed for normal uses of the wasmbrowser and wasmconsole templates? I still get this warning with |
Using fe866e6 I can't build
dotnet new wasmconsole
projects:The failing build uses
microsoft.net.illink.tasks/8.0.0-preview.6.23314.14
The last passing build on CI was for 3c2ebd5
8.0.100-preview.6.23314.19
to build WBTI tested with fe866e6
8.0.100-preview.6.23315.7
to build WBTThe changes in sdk (
6ce52a339247f9a848ff97fa418070b65de92b4d..1a17b18064c9bbf7dcb2155a03f2c92fe657fba1
) include:And that includes #87156
Fix trim analyzer warning for inferred type arguments #87156
.cc @sbomer
I will open a PR to use the older sdk for now, for Wasm.Build.Tests .
And to trigger wasm jobs on linker changes.Known Issue Error Message
Fill the error message using step by step known issues guidance.
Known issue validation
Build: 🔎⚠️ Validation could not be done without an Azure DevOps build URL on the issue. Please add it to the "Build: 🔎" line.
Result validation:
Report
Summary
The text was updated successfully, but these errors were encountered: