getsentry / getsentry/sentry-dotnet

Sentry 6.8 crash on iOS devices in AOT mode (ie: release testflight)

Open
#5,465 3 comments 0 reactions 0 assignees View on GitHub
.NET Bug Needs Reproduction
Dominant language
C#
Stars
770
Forks
248
Avg merge
2d 22h
Merged PRs (30d)
51

Description

### Package

Sentry.Maui

### .NET Flavor

Mono

### .NET Version

10.0.302

### OS

iOS

### OS Version

26

### Development Environment

Other

### Other Error Monitoring Solution

No

### Other Error Monitoring Solution Name

_No response_

### SDK Version

6.8.0

### Self-Hosted Sentry Version

_No response_

### Workload Versions

N/A

### UseSentry or SentrySdk.Init call

N/A

### Steps to Reproduce

N/A immediate crash, reported in ... sentry

### Expected Result

no crash

### Actual Result

Sentry report:

```
Attempting to JIT compile method 'void Sentry.Extensions.Logging.SentryStructuredLogger:Log (Microsoft.Extensions.Logging.LogLevel,Microsoft.Extensions.Logging.EventId,Microsoft.Extensions.Logging.FormattedLogValues,System.Exception,System.Func`3)' while running in aot-only mode. See https://learn.microsoft.com/xamarin/ios/internals/limitations for more information.
```

No issue on 6.0.0 (last known version that work, other versions are untested, will test them)

Contributor guide

Open the contributing guide

Research direction

Start with Sentry.Maui and the SentryStructuredLogger.Log method named in the crash, then reproduce the failure in an iOS AOT release or TestFlight build. Compare SDK 6.8.0 with the reported working 6.0.0 behavior; done means the release build no longer attempts to JIT-compile this method.

Written by the indexing model from the issue text.

Assessment

Tech stack
csharp, ios
Domain
mobile, observability-sre
Issue type
Bug
Difficulty
3/5
Estimated time
1-2 days
Activity status
Quiet
Clarity
Mostly clear
Newbie friendliness
52/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.