-
Notifications
You must be signed in to change notification settings - Fork 4.9k
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
[NativeAOT] IndexOutOfRangeException when running under perfview #75945
Comments
Tagging subscribers to this area: @tarekgh, @tommcdon, @pjanotti Issue Details
|
adding @vitek-karas |
There are multiple issues actually, some are native AOT specific and some apply to trimmed apps in general. |
FYI - I've been hacking on DiagnosticSource to make it work with NativeAOT. I've got a change working with PerfView locally - eerhardt@5f27679. I just need to figure out a way to test it now, so we can ensure it stays fixed. |
@eerhardt is it OK if I assign this issue to you since you are working on a fix? |
There were 2 problems: 1. The use of MakeGenericType doesn't work when a property is a ValueType. An app will crash when a listener is enabled and DiagnosticSourceEventSource tries writing values. 2. The properties on KeyValuePair were not being preserved correctly, so the Arguments of the DiagnosticSourceEventSource methods were not being serialized correctly. Add test (and infrastructure) to ensure DiagnosticSource works in a NativeAOT app Fix dotnet#75945
* Fix DiagnosticSource to work with NativeAOT There were 2 problems: 1. The use of MakeGenericType doesn't work when a property is a ValueType. An app will crash when a listener is enabled and DiagnosticSourceEventSource tries writing values. 2. The properties on KeyValuePair were not being preserved correctly, so the Arguments of the DiagnosticSourceEventSource methods were not being serialized correctly. Add test (and infrastructure) to ensure DiagnosticSource works in a NativeAOT app Fix #75945 * Enable new NativeAotTests in CI - Only run them in Release configuration - Suppress IL2026 warning * Don't run NativeAot published app tests on OSX since it isn't supported Set EventSourceSupport only on the projects that need it.
* Fix DiagnosticSource to work with NativeAOT There were 2 problems: 1. The use of MakeGenericType doesn't work when a property is a ValueType. An app will crash when a listener is enabled and DiagnosticSourceEventSource tries writing values. 2. The properties on KeyValuePair were not being preserved correctly, so the Arguments of the DiagnosticSourceEventSource methods were not being serialized correctly. Add test (and infrastructure) to ensure DiagnosticSource works in a NativeAOT app Fix dotnet#75945 * Enable new NativeAotTests in CI - Only run them in Release configuration - Suppress IL2026 warning * Don't run NativeAot published app tests on OSX since it isn't supported Set EventSourceSupport only on the projects that need it.
There were 2 problems: 1. The use of MakeGenericType doesn't work when a property is a ValueType. An app will crash when a listener is enabled and DiagnosticSourceEventSource tries writing values. 2. The properties on KeyValuePair were not being preserved correctly, so the Arguments of the DiagnosticSourceEventSource methods were not being serialized correctly. Add test (and infrastructure) to ensure DiagnosticSource works in a NativeAOT app Fix #75945
* Fix DiagnosticSource to work with NativeAOT There were 2 problems: 1. The use of MakeGenericType doesn't work when a property is a ValueType. An app will crash when a listener is enabled and DiagnosticSourceEventSource tries writing values. 2. The properties on KeyValuePair were not being preserved correctly, so the Arguments of the DiagnosticSourceEventSource methods were not being serialized correctly. Add test (and infrastructure) to ensure DiagnosticSource works in a NativeAOT app Fix #75945 * Enable new NativeAotTests in CI * Fix NativeAOT tests - Only run them in Release configuration - Suppress IL2026 warning * Fix test CI leg * Set IlcFrameworkNativePath correctly * Don't run NativeAot published app tests on OSX since it isn't supported * Respond to PR feedback Set EventSourceSupport only on the projects that need it. * Add servicing change for DiagnosticSource * Update Microsoft.Extensions.Hosting.csproj * Update Microsoft.Extensions.Hosting.csproj Co-authored-by: Eric Erhardt <[email protected]> Co-authored-by: Viktor Hofer <[email protected]>
Stacktrace:
Repro: https://github.com/kshyju/Net7IsolatedHttpApp
The text was updated successfully, but these errors were encountered: