KirillOsenkov / MSBuildStructuredLog

A logger for MSBuild that records a structured representation of executed targets, tasks, property and item values.
MIT License
1.41k stars 188 forks source link

IndexOutOfRange in ComputeHeapGraphData #637

Closed KirillOsenkov closed 1 year ago

KirillOsenkov commented 1 year ago
System.IndexOutOfRangeException: Index was outside the bounds of the array. 
   at StructuredLogViewer.Controls.TracingControl.ComputeHeatGraphData(Double unitDuration) in C:\MSBuildStructuredLog\src\StructuredLogViewer\Controls\TracingControl.xaml.cs:line 368 
   at StructuredLogViewer.Controls.TracingControl.CreateActivityLineGraph() in C:\MSBuildStructuredLog\src\StructuredLogViewer\Controls\TracingControl.xaml.cs:line 497 
   at StructuredLogViewer.Controls.TracingControl.Draw() in C:\MSBuildStructuredLog\src\StructuredLogViewer\Controls\TracingControl.xaml.cs:line 455 
   at StructuredLogViewer.Controls.TracingControl.ComputeAndDraw() in C:\MSBuildStructuredLog\src\StructuredLogViewer\Controls\TracingControl.xaml.cs:line 301 
   at StructuredLogViewer.Controls.TracingControl.SetTimeline(Timeline timeline, Int64 globalStart, Int64 globalEnd) in C:\MSBuildStructuredLog\src\StructuredLogViewer\Controls\TracingControl.xaml.cs:line 289 
   at StructuredLogViewer.Controls.BuildControl.PopulateTrace() in C:\MSBuildStructuredLog\src\StructuredLogViewer\Controls\BuildControl.xaml.cs:line 412 
   at StructuredLogViewer.Controls.BuildControl.CentralTabControl_SelectionChanged(Object sender, SelectionChangedEventArgs e) in C:\MSBuildStructuredLog\src\StructuredLogViewer\Controls\BuildControl.xaml.cs:line 322 

FYI @yuehuang010

KirillOsenkov commented 1 year ago

Let me know if you want a sample binlog for this, I can email it to you.

yuehuang010 commented 1 year ago

Could you please add a binlog. If you zip the binlog you can host it on github.

KirillOsenkov commented 1 year ago

There are dangers associated with publishing binlogs publicly. It has environment variables, customer's secrets potentially, etc. so the guidance is to avoid sharing binlogs publicly unless it's clear that it has no secrets.

KirillOsenkov commented 1 year ago

Sent the binlog to you on Teams.

KirillOsenkov commented 1 year ago

Fixed in #638