sentry-cocoa icon indicating copy to clipboard operation
sentry-cocoa copied to clipboard

Fatal AppHangV2 events have missing debug meta

Open philipphofmann opened this issue 8 months ago • 2 comments

Description

How to reproduce the issue

  1. Install the iOS-Swift sample app via TestFlight. I used v 8.52.1 (2188).
  2. Press the button ANR Deadlock
  3. Force kill the app
  4. Relaunch the app
  5. Check the fatal app hang event in Sentry

The event has missing debug meta: https://sentry-sdks.sentry.io/issues/6690874496/events/da915f043c0741959b04d9ce9ba42943/?project=5428557.

This might be related to https://github.com/getsentry/sentry-cocoa/pull/5352.

philipphofmann avatar Jun 18 '25 14:06 philipphofmann

Hi @philipphofmann I was able to reproduce the issue on 8.50.2 (stable) version too.

Can this change be a potential fix ?

hovox avatar Jun 18 '25 15:06 hovox

@hovox, yes something like that. But we should ensure we're only attaching the debugMeta that is referenced in the stracktrace as we do it in the client https://github.com/getsentry/sentry-cocoa/blob/688aac7424ee0c46592516bc52c227307e902074/Sources/Sentry/SentryClient.m#L736-L737

Otherwise, we always send all debut meta, which can increase the event payload significantly.

philipphofmann avatar Jun 18 '25 15:06 philipphofmann