microsoft / microsoft/profile-explorer

Crash on Object reference not set to an instance of an object

Open
#26 2 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

bug
Dominant language
C#
Stars
286
Forks
27
Avg merge
3d 1h
Merged PRs (30d)
1

Description

Here is the log

Message: Object reference not set to an instance of an object.
Stack trace:
   at ProfileExplorer.UI.SectionPanel.ComputeFunctionStatisticsImpl(List`1 functions, CancelableTask cancelableTask) in C:\__w\1\s\profile-explorer\src\ProfileExplorerUI\Panels\SectionPanel.xaml.cs:line 2601
   at ProfileExplorer.UI.SectionPanel.ComputeFunctionStatistics(List`1 functions) in C:\__w\1\s\profile-explorer\src\ProfileExplorerUI\Panels\SectionPanel.xaml.cs:line 2572
   at ProfileExplorer.UI.SectionPanel.ShowModuleReport() in C:\__w\1\s\profile-explorer\src\ProfileExplorerUI\Panels\SectionPanel.xaml.cs:line 1527
   at ProfileExplorer.UI.SectionPanelPair.ShowModuleReport() in C:\__w\1\s\profile-explorer\src\ProfileExplorerUI\Panels\SectionPanelPair.xaml.cs:line 285
   at ProfileExplorer.UI.MainWindow.FunctionReportMenu_Click(Object sender, RoutedEventArgs e) in C:\__w\1\s\profile-explorer\src\ProfileExplorerUI\MainWindow.xaml.cs:line 1029
   at System.Threading.Tasks.Task.<>c.<ThrowAsync>b__128_0(Object state)
   at System.Windows.Threading.ExceptionWrapper.InternalRealCall(Delegate callback, Object args, Int32 numArgs)
   at System.Windows.Threading.ExceptionWrapper.TryCatchWhen(Object source, Delegate callback, Object args, Int32 numArgs, Delegate catchHandler)
----------------------------

Windows version: 10.0 (Build 19045.3803)
.NET version: v8.0.12

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start in src/ProfileExplorerUI/Panels/SectionPanel.xaml.cs at ComputeFunctionStatisticsImpl, line 2601, and trace how it is reached from ShowModuleReport and MainWindow.FunctionReportMenu_Click. Reproduce the Function Report action using the available trace context, identify the null reference, and verify that the report no longer crashes.

Written by the indexing model from the issue text.

Assessment

Tech stack
csharp
Domain
desktop
Issue type
Bug
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.