You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
[NativeAOT] IndexOutOfRangeException when running under perfview #75945
---> System.IndexOutOfRangeException: Index was outside the bounds of the array.
System.Diagnostic.Tracing.EventSource.WriteEventWithRelatedActivityIdCore
System.Diagnostic.Tracing.EventSource.WriteEvent
System.Diagnostic.DiagnosticSourceEventSource.FilterAndTransform
System.Diagnostic.DiagnostisListener.AllListenerObservable.OnNewDiagnosticListener
System.Diagnostic.Listener..ctor
System.Net.DiagnosticHandler..ctor
System.Runtime.CompilerServices.ClassConstructorRunner.EnsureClassConstructorRun
adding @vitek-karas @jkotas do you know if this issue reproduces with a .net core trimmed app? I'm curious if this is a trimming safety issue, or if it is NativeAOT specific.
Activity
jkotas commentedon Sep 21, 2022
cc @noahfalk @brianrob
tommcdon commentedon Sep 21, 2022
adding @vitek-karas
@jkotas do you know if this issue reproduces with a .net core trimmed app? I'm curious if this is a trimming safety issue, or if it is NativeAOT specific.
jkotas commentedon Sep 22, 2022
There are multiple issues actually, some are native AOT specific and some apply to trimmed apps in general.
Fix DiagnosticSource to work with NativeAOT
eerhardt commentedon Sep 23, 2022
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.
tommcdon commentedon Sep 23, 2022
@eerhardt is it OK if I assign this issue to you since you are working on a fix?
Fix DiagnosticSource to work with NativeAOT (#76109)
Fix DiagnosticSource to work with NativeAOT (dotnet#76109)
Fix DiagnosticSource to work with NativeAOT
[release/7.0] Fix DiagnosticSource to work with NativeAOT (#78532)