xharness icon indicating copy to clipboard operation
xharness copied to clipboard

Crash reports are not symbolicated/processed on Simulators

Open premun opened this issue 3 years ago • 3 comments

It seems we skip some steps here and the crash reports don't get symbolicated.

Crashing app is here: https://dev.azure.com/xamarin/public/_build/results?buildId=58903&view=logs&j=84a022bb-4bdc-5585-8146-137444174249&t=d794747c-65a6-5105-c6e6-e1e37436ed3e

Or also here:

  1. git clone https://github.com/dotnet/maui
  2. dotnet build ./Microsoft.Maui.BuildTasks.slnf 3 ./build.ps1 -Script eng/devices/ios.cake --project="/Users/ruimarinho/dotnet/maui/src/Controls/tests/DeviceTests/Controls.DeviceTests.csproj" --device=ios-simulator-64--results=TestResultsDirectory --binlog=device_ios.binlog

premun avatar Mar 31 '22 11:03 premun

Historical reasons why we're just processing crash reports from a device:

  1. There's no need to call mlaunch to get the crash report, it's already available on the file system. In other words this code is only applicable for crash reports from a device: https://github.com/dotnet/xharness/blob/2863beb74c1abad7ddfe9ef7afea6fc2605e8a03/src/Microsoft.DotNet.XHarness.iOS.Shared/CrashSnapshotReporter.cs#L153-L162
  2. We JIT in the simulator, which means that managed frames won't be symbolicated anyway (this is not entirely true on ARM64 anymore).

rolfbjarne avatar Mar 31 '22 11:03 rolfbjarne

where is the crash log i can access if i run this local on my machine and simulator @rolfbjarne ? cc: @PureWeen @mattleibow

rmarinho avatar Apr 04 '22 14:04 rmarinho

Crash reports are stored in the ~/Library/Logs/DiagnosticReports/ directory (for both simulator and macOS apps)

rolfbjarne avatar Apr 04 '22 15:04 rolfbjarne