Skip to content

fix(android): symbolicate managed exceptions from NativeAOT apps - #5916

Merged
jamescrosswell merged 4 commits into
getsentry:mainfrom
charlesroddie:fix/android-nativeaot-debug-images
Nov 23, 2026
Merged

jamescrosswell merged 4 commits into
getsentry:mainfrom
charlesroddie:fix/android-nativeaot-debug-images

Conversation

@charlesroddie

Copy link
Copy Markdown
Contributor

Problem

Managed exceptions from NativeAOT apps on Android can't be symbolicated. DebugStackTrace.TryCreateNativeAOTFrame left _nativeDebugImages empty on Android, so frames carry image_addr and instruction_addr but the event has no debug_meta. Sentry marks every frame unknown_image, even when the matching debug file is uploaded.

Observed with Sentry .NET 6.12.1, .NET 11, NativeAOT, arm64 Android 10: debug_meta is null on the managed event, while the same app's native crash event (from sentry-native) lists the app's .so with its GNU build-id as code_id and debug_status: found. Resolving the managed frames' offsets against the uploaded debug file locally gives correct functions with file and line.

Fix

On Android, fill _nativeDebugImages from the module list sentry-native already builds, via the bound io.sentry.ndk.NativeModuleListLoader. Entries are keyed by image address and used exactly like the Cocoa and Sentry.Native paths, and carry type (elf), image_addr, image_size, code_id, debug_id, code_file and debug_file as sentry-native reports them.

  • The list is cached once non-empty, as in Sentry.Native.C.LoadDebugImages (the NDK caches its module list too).
  • Nothing is loaded when options.Native.EnableNdk is false, since the NDK libraries aren't loaded then.

Testing

  • NativeDebugImagesTests: conversion from the NDK's DebugImage (Android only).
  • DebugStackTraceTests: a NativeAOT frame inside a loaded native image adds that image to the event; none is added with the NDK disabled (Android only).

The Android targets of Sentry and Sentry.Tests build, and DebugStackTraceTests pass on net10.0. The Android-only tests have not been run: I had no emulator available, so they rely on the CI device tests.

🤖 Generated with Claude Code

charlesroddie and others added 2 commits November 11, 2026 09:42
Managed exceptions from NativeAOT apps on Android carried image_addr and
instruction_addr but no debug_meta, so Sentry could not symbolicate them.
Load the module list sentry-native already builds, through the bound NDK
NativeModuleListLoader, keyed by image address like the Cocoa path.

Co-Authored-By: Claude Fable 5.2 <[email protected]>
Also skip modules whose address can't be parsed instead of discarding
the whole list, and call the static module list loader directly.

Co-Authored-By: Claude Fable 5.2 <[email protected]>
@charlesroddie
charlesroddie marked this pull request as ready for review November 11, 2026 10:13
@github-actions github-actions Bot added the risk: medium PR risk score: medium label Nov 11, 2026
@jamescrosswell

Copy link
Copy Markdown
Collaborator

Thanks for the PR @charlesroddie and for account of what you observed.

Generally the PR looks good. As some general context:

Native AOT on Android is still experimental and we haven’t tested Sentry with it, so no guarantees anything works (or what the priority will be for future issues in this space)...

That said, this change looks contained and I think it's worth trying to get some basics like this working (they're hopefully unlikely to break as Microsoft stabilises the foundations in this area). It only runs for frames that have no managed method info, so it shouldn't affect apps on CoreCLR or Mono... so happy to work with you to get it merged on that basis.

Two things would help us get there, since the Android-only tests haven't run yet and the fix depends on an exact address match:

  1. In your repro, does the image_addr on the managed event's frames exactly match the image_addr of your app's .so in the debug_meta of the native crash event? The lookup here is keyed on that address.
  2. Have you run a build with this change on your device, and seen the managed frames resolve to functions and line numbers in Sentry? A screenshot or event JSON would be great. CreateFrame_ForNativeAOT_LoadedNativeImage_AddsDebugImage feeds the image's own address back in as the frame's base, so it can't catch a mismatch on its own. Results from a real app are the evidence we'd be relying on here (we don't otherwise have any testing mechanism for Native AOT on Android).

@charlesroddie

charlesroddie commented Nov 19, 2026 •

Copy link
Copy Markdown
Contributor Author

Thanks @jamescrosswell . I ran a build with this change on a real device with a .NET 11 NativeAOT app, using packages built from this branch, and triggered a managed exception.

  1. Address match: yes. The event's debug_meta now has one elf image with image_addr: 0x79d60c6000, and all 12 managed frames carry image_addr: 0x79d60c6000. This comes from a single event, so it isn't affected by per-process address randomisation.
  2. Symbolication: all 12 frames have symbolicator_status: symbolicated with file and line, e.g. Lab.fs:39, SkViews.fs:172, Thread.NativeAot.Unix.cs:91. The image has debug_status: found against the uploaded debug file.

(Frames show the raw symbol name and in_app is unset because my app builds with StackTraceSupport=false, so the SDK has no method info at runtime. That is existing behaviour and unrelated to this PR.)

Event JSON (IDs and keys redacted)
{
  "event_id": "8f05d30eda7340bba32220f8eb6c445b",
  "project": "REDACTED",
  "release": "[email protected]",
  "dist": "1795122088",
  "platform": "csharp",
  "message": "",
  "datetime": "2026-11-19T22:03:45.301000+00:00",
  "tags": [
    [
      "device",
      "SM-G960F"
    ],
    [
      "device.family",
      "SM-G960F"
    ],
    [
      "handled",
      "yes"
    ],
    [
      "interface_type",
      "exception"
    ],
    [
      "level",
      "error"
    ],
    [
      "mechanism",
      "generic"
    ],
    [
      "os",
      "Android 10"
    ],
    [
      "os.build",
      "QP1A.190711.020.G960FXXUHFVG4"
    ],
    [
      "os.name",
      "Android"
    ],
    [
      "os.rooted",
      "no"
    ],
    [
      "dist",
      "1795122088"
    ],
    [
      "release",
      "[email protected]"
    ],
    [
      "user",
      "id:CR"
    ]
  ],
  "_dsc": {
    "environment": "production",
    "org_id": "REDACTED",
    "public_key": "REDACTED",
    "release": "[email protected]",
    "replay_id": null,
    "trace_id": "7e7e9c65a75e4ea9995fd0274008836d",
    "transaction": null
  },
  "_meta": {
    "sdk": {
      "name": {
        "": {
          "err": [
            "missing_attribute"
          ]
        }
      },
      "version": {
        "": {
          "err": [
            "missing_attribute"
          ]
        }
      }
    }
  },
  "_metrics": {
    "bytes.ingested.event": 5730,
    "bytes.stored.event": 20359
  },
  "breadcrumbs": {
    "values": [
      {
        "timestamp": 1795125811.249,
        "type": "default",
        "level": "info",
        "message": "App_Start"
      },
      {
        "timestamp": 1795125811.51,
        "type": "default",
        "level": "info",
        "message": "Nav_Home"
      },
      {
        "timestamp": 1795125811.556,
        "type": "default",
        "level": "info",
        "message": "RefreshedToken",
        "data": {
          "minsRemaining": "62"
        }
      },
      {
        "timestamp": 1795125819.986,
        "type": "default",
        "level": "info",
        "message": "Nav_Lab"
      }
    ]
  },
  "contexts": {
    "Current Culture": {
      "calendar": "GregorianCalendar",
      "display_name": "Invariant Language (Invariant Country)",
      "type": "Current Culture"
    },
    "Dynamic Code": {
      "Compiled": false,
      "Supported": false,
      "type": "Dynamic Code"
    },
    "Memory Info": {
      "compacted": true,
      "concurrent": false,
      "finalization_pending_count": 1906,
      "fragmented_bytes": 1368552,
      "heap_size_bytes": 11638448,
      "high_memory_load_threshold_bytes": 3407704473,
      "index": 51,
      "memory_load_bytes": 2385393131,
      "pause_durations": [
        8.061,
        0
      ],
      "pause_time_percentage": 1.94,
      "promoted_bytes": 960856,
      "total_allocated_bytes": 302122784,
      "total_available_memory_bytes": 3786338304,
      "total_committed_bytes": 21532672,
      "type": "Memory Info"
    },
    "ThreadPool Info": {
      "available_completion_port_threads": 1000,
      "available_worker_threads": 32767,
      "max_completion_port_threads": 1000,
      "max_worker_threads": 32767,
      "min_completion_port_threads": 1,
      "min_worker_threads": 8,
      "type": "ThreadPool Info"
    },
    "device": {
      "name": "Galaxy S9",
      "family": "SM-G960F",
      "model": "SM-G960F",
      "model_id": "QP1A.190711.020",
      "arch": "arm64-v8a",
      "battery_level": 100.0,
      "orientation": "portrait",
      "manufacturer": "samsung",
      "brand": "samsung",
      "screen_resolution": "1080x2076",
      "screen_density": 3.0,
      "screen_dpi": 480,
      "online": true,
      "charging": false,
      "low_memory": false,
      "simulator": false,
      "memory_size": 3786338304,
      "free_memory": 1457217536,
      "storage_size": 56421154816,
      "free_storage": 13331578880,
      "boot_time": "2026-09-20T01:58:23.967+00:00",
      "timezone": "Europe/London",
      "device_unique_identifier": "REDACTED",
      "timezone_display_name": "(UTC+00:00) Europe/London",
      "type": "device"
    },
    "os": {
      "os": "Android 10",
      "name": "Android",
      "version": "10",
      "build": "QP1A.190711.020.G960FXXUHFVG4",
      "rooted": false,
      "type": "os"
    },
    "trace": {
      "trace_id": "7e7e9c65a75e4ea9995fd0274008836d",
      "span_id": "78fbae816566af74",
      "status": "unknown",
      "origin": "manual",
      "type": "trace"
    }
  },
  "culprit": "Lab.fs in ?",
  "debug_meta": {
    "images": [
      {
        "code_id": "f742926ce6e6b15d575538588bce2d9d2de91269",
        "code_file": "/data/app/com.summatic.android-srfH_CPlyG9_CkVy-kCNzQ==/split_config.arm64_v8a.apk",
        "debug_id": "6c9242f7-e6e6-5db1-5755-38588bce2d9d",
        "arch": "arm64",
        "image_addr": "0x79d60c6000",
        "image_size": 43692032,
        "candidates": [
          {
            "download": {
              "status": "notfound"
            },
            "source": "sentry:android",
            "source_name": "Android"
          },
          {
            "download": {
              "status": "notfound"
            },
            "source": "sentry:ios",
            "source_name": "Apple"
          },
          {
            "download": {
              "status": "notfound"
            },
            "source": "sentry:microsoft",
            "source_name": "Microsoft"
          },
          {
            "download": {
              "status": "notfound"
            },
            "source": "sentry:nuget",
            "source_name": "NuGet.org"
          },
          {
            "debug": {
              "status": "ok"
            },
            "download": {
              "features": {
                "has_debug_info": true,
                "has_sources": false,
                "has_symbols": true,
                "has_unwind_info": false
              },
              "status": "ok"
            },
            "location": "sentry://project_debug_file/1270488459",
            "source": "sentry:project",
            "source_name": "Sentry"
          }
        ],
        "debug_status": "found",
        "features": {
          "has_debug_info": true,
          "has_sources": false,
          "has_symbols": true,
          "has_unwind_info": false
        },
        "type": "elf"
      }
    ]
  },
  "errors": [
    {
      "type": "missing_attribute",
      "name": "sdk.name"
    },
    {
      "type": "missing_attribute",
      "name": "sdk.version"
    }
  ],
  "exception": {
    "values": [
      {
        "type": "System.Exception",
        "value": "Lab-generated Crash",
        "module": "System.Private.CoreLib, Version=11.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e",
        "stacktrace": {
          "frames": [
            {
              "symbol": "S_P_CoreLib_System_Threading_Thread__ThreadEntryPoint",
              "filename": "Thread.NativeAot.Unix.cs",
              "abs_path": "\\_\\src\\runtime\\src\\coreclr\\nativeaot\\System.Private.CoreLib\\src\\System\\Threading\\Thread.NativeAot.Unix.cs",
              "lineno": 91,
              "in_app": false,
              "data": {
                "orig_in_app": -1,
                "symbolicator_status": "symbolicated"
              },
              "image_addr": "0x79d60c6000",
              "instruction_addr": "0x79d801878c"
            },
            {
              "symbol": "S_P_CoreLib_System_Threading_Thread__StartThread",
              "filename": "Thread.NativeAot.cs",
              "abs_path": "\\_\\src\\runtime\\src\\coreclr\\nativeaot\\System.Private.CoreLib\\src\\System\\Threading\\Thread.NativeAot.cs",
              "lineno": 443,
              "in_app": false,
              "data": {
                "orig_in_app": -1,
                "symbolicator_status": "symbolicated"
              },
              "image_addr": "0x79d60c6000",
              "instruction_addr": "0x79d801829c"
            },
            {
              "symbol": "SkiaSharp_Views_Android_SkiaSharp_Views_Android_GLTextureView_GLThread__Run",
              "filename": "GLTextureView.cs",
              "abs_path": "\\_\\source\\SkiaSharp.Views\\SkiaSharp.Views\\Platform\\Android\\GLTextureView.cs",
              "lineno": 743,
              "in_app": false,
              "data": {
                "orig_in_app": -1,
                "symbolicator_status": "symbolicated"
              },
              "image_addr": "0x79d60c6000",
              "instruction_addr": "0x79d7c1cc08"
            },
            {
              "symbol": "SkiaSharp_Views_Android_SkiaSharp_Views_Android_GLTextureView_GLThread__GuardedRun",
              "filename": "GLTextureView.cs",
              "abs_path": "\\_\\source\\SkiaSharp.Views\\SkiaSharp.Views\\Platform\\Android\\GLTextureView.cs",
              "lineno": 968,
              "in_app": false,
              "data": {
                "orig_in_app": -1,
                "symbolicator_status": "symbolicated"
              },
              "image_addr": "0x79d60c6000",
              "instruction_addr": "0x79d7c1cd68"
            },
            {
              "symbol": "SkiaUI_Android_SkiaUI_Droid_SKV___c__DisplayClass16_0___SKV_Touch_b__0",
              "filename": "SKV.cs",
              "abs_path": "\\_\\6_Platforms\\Android\\SKV.cs",
              "lineno": 151,
              "in_app": false,
              "data": {
                "orig_in_app": -1,
                "symbolicator_status": "symbolicated"
              },
              "image_addr": "0x79d60c6000",
              "instruction_addr": "0x79d7c22678"
            },
            {
              "symbol": "SkiaUI_Views_SkViews_Grid__SkViews_ISKView_ProcessTouch",
              "filename": "SkViews.fs",
              "abs_path": "\\_\\4_Views\\SkViews.fs",
              "lineno": 502,
              "in_app": false,
              "data": {
                "orig_in_app": -1,
                "symbolicator_status": "symbolicated"
              },
              "image_addr": "0x79d60c6000",
              "instruction_addr": "0x79d7c43b70"
            },
            {
              "symbol": "SkiaUI_Views_SkViews_ScrollView__SkViews_ISKView_ProcessTouch",
              "filename": "SkViews.fs",
              "abs_path": "\\_\\4_Views\\SkViews.fs",
              "lineno": 942,
              "in_app": false,
              "data": {
                "orig_in_app": -1,
                "symbolicator_status": "symbolicated"
              },
              "image_addr": "0x79d60c6000",
              "instruction_addr": "0x79d7c48c50"
            },
            {
              "symbol": "SkiaUI_Views_SkViews_Grid__SkViews_ISKView_ProcessTouch",
              "filename": "SkViews.fs",
              "abs_path": "\\_\\4_Views\\SkViews.fs",
              "lineno": 502,
              "in_app": false,
              "data": {
                "orig_in_app": -1,
                "symbolicator_status": "symbolicated"
              },
              "image_addr": "0x79d60c6000",
              "instruction_addr": "0x79d7c43b70"
            },
            {
              "symbol": "SkiaUI_Views_SkViews_Grid__SkViews_ISKView_ProcessTouch",
              "filename": "SkViews.fs",
              "abs_path": "\\_\\4_Views\\SkViews.fs",
              "lineno": 502,
              "in_app": false,
              "data": {
                "orig_in_app": -1,
                "symbolicator_status": "symbolicated"
              },
              "image_addr": "0x79d60c6000",
              "instruction_addr": "0x79d7c43b70"
            },
            {
              "symbol": "SkiaUI_Views_SkViews_Button__SkViews_ISKView_ProcessTouch",
              "filename": "SkViews.fs",
              "abs_path": "\\_\\4_Views\\SkViews.fs",
              "lineno": 239,
              "in_app": false,
              "data": {
                "orig_in_app": -1,
                "symbolicator_status": "symbolicated"
              },
              "image_addr": "0x79d60c6000",
              "instruction_addr": "0x79d7c41110"
            },
            {
              "symbol": "SkiaUI_Views_SkViews_Button__executeClick",
              "filename": "SkViews.fs",
              "abs_path": "\\_\\4_Views\\SkViews.fs",
              "lineno": 172,
              "in_app": false,
              "data": {
                "orig_in_app": -1,
                "symbolicator_status": "symbolicated"
              },
              "image_addr": "0x79d60c6000",
              "instruction_addr": "0x79d7c414c0"
            },
            {
              "symbol": "_42SkiaViews__StartupCode_42SkiaViews___Lab_crashB_39__Invoke",
              "filename": "Lab.fs",
              "abs_path": "Z:\\agents\\_work\\12\\s\\42SkiaViews\\Lab.fs",
              "lineno": 39,
              "in_app": false,
              "data": {
                "orig_in_app": -1,
                "symbolicator_status": "symbolicated"
              },
              "image_addr": "0x79d60c6000",
              "instruction_addr": "0x79d798dd40"
            }
          ]
        },
        "raw_stacktrace": {
          "frames": [
            {
              "in_app": false,
              "data": {
                "orig_in_app": -1
              },
              "image_addr": "0x79d60c6000",
              "instruction_addr": "0x79d8018790"
            },
            {
              "in_app": false,
              "data": {
                "orig_in_app": -1
              },
              "image_addr": "0x79d60c6000",
              "instruction_addr": "0x79d80182a0"
            },
            {
              "in_app": false,
              "data": {
                "orig_in_app": -1
              },
              "image_addr": "0x79d60c6000",
              "instruction_addr": "0x79d7c1cc0c"
            },
            {
              "in_app": false,
              "data": {
                "orig_in_app": -1
              },
              "image_addr": "0x79d60c6000",
              "instruction_addr": "0x79d7c1cd6c"
            },
            {
              "in_app": false,
              "data": {
                "orig_in_app": -1
              },
              "image_addr": "0x79d60c6000",
              "instruction_addr": "0x79d7c2267c"
            },
            {
              "in_app": false,
              "data": {
                "orig_in_app": -1
              },
              "image_addr": "0x79d60c6000",
              "instruction_addr": "0x79d7c43b74"
            },
            {
              "in_app": false,
              "data": {
                "orig_in_app": -1
              },
              "image_addr": "0x79d60c6000",
              "instruction_addr": "0x79d7c48c54"
            },
            {
              "in_app": false,
              "data": {
                "orig_in_app": -1
              },
              "image_addr": "0x79d60c6000",
              "instruction_addr": "0x79d7c43b74"
            },
            {
              "in_app": false,
              "data": {
                "orig_in_app": -1
              },
              "image_addr": "0x79d60c6000",
              "instruction_addr": "0x79d7c43b74"
            },
            {
              "in_app": false,
              "data": {
                "orig_in_app": -1
              },
              "image_addr": "0x79d60c6000",
              "instruction_addr": "0x79d7c41114"
            },
            {
              "in_app": false,
              "data": {
                "orig_in_app": -1
              },
              "image_addr": "0x79d60c6000",
              "instruction_addr": "0x79d7c414c4"
            },
            {
              "in_app": false,
              "data": {
                "orig_in_app": -1
              },
              "image_addr": "0x79d60c6000",
              "instruction_addr": "0x79d798dd40"
            }
          ]
        },
        "thread_id": 7,
        "mechanism": {
          "type": "generic",
          "handled": true,
          "data": {
            "HResult": "0x80131500"
          }
        }
      }
    ]
  },
  "extra": {
    "allowLab": "True",
    "msg": "Unhandled exception",
    "np": "Lab"
  },
  "fingerprint": [
    "{{ default }}"
  ],
  "grouping_config": {
    "enhancements": "KLUv_SAd6QAAkwORuGFsbC1wbGF0Zm9ybXM6MjAyNi0wMS0yMJA#KLUv_SAd6QAAkwORuGFsbC1wbGF0Zm9ybXM6MjAyNi0wMS0yMJA#KLUv_SAd6QAAkwORuGFsbC1wbGF0Zm9ybXM6MjAyNi0wMS0yMJA",
    "id": "newstyle:2026-01-20"
  },
  "hashes": [
    "85547052b199fc003959c2faa767137a"
  ],
  "ingest_path": [
    {
      "version": "26.11.0",
      "public_key": "REDACTED"
    }
  ],
  "key_id": "REDACTED",
  "level": "error",
  "logger": "",
  "metadata": {
    "in_app_frame_mix": "system-only",
    "synthetic": false,
    "type": "System.Exception",
    "value": "Lab-generated Crash"
  },
  "modules": {
    "01Utils": "1.0.0.0",
    "10Mathematics": "1.0.0.0",
    "20Models": "1.0.0.0",
    "32CoreViews": "1.0.0.0",
    "40AppStorage": "1.0.0.0",
    "40LocalDbTypesQueries": "1.0.0.0",
    "41ViewModels": "1.0.0.0",
    "42SkiaViews": "1.0.0.0",
    "45App": "1.0.0.0",
    "Csv": "2.0.245.0",
    "EmailValidation": "1.4.0.0",
    "ExCSS": "4.3.1.0",
    "FSUtils": "0.12.0.0",
    "FSharp.Core": "10.1.0.0",
    "MathNet.Numerics": "5.0.0.0",
    "ModeMath": "0.16.0.0",
    "Mono.Android": "0.0.0.0",
    "Polly.Core": "8.0.0.0",
    "Realm": "21.1.0.0",
    "Sentry": "6.12.2.0",
    "Sentry.Android.AssemblyReader": "6.12.2.0",
    "Serilog.Sinks.File": "7.0.0.0",
    "SkiaSharp": "4.153.0.0",
    "SkiaUI.Presentation": "0.21.0.0",
    "SkiaUI.ViewModels": "0.21.0.0",
    "SkiaUI.Views": "0.21.0.0",
    "SpreadCheetah": "1.28.0.0",
    "Svg.Animation": "5.2.3.0",
    "Svg.Skia": "5.2.3.0",
    "System.Collections.Immutable": "11.0.0.0",
    "System.ComponentModel.Primitives": "11.0.0.0",
    "System.ComponentModel.TypeConverter": "11.0.0.0",
    "System.Drawing.Primitives": "11.0.0.0",
    "System.Formats.Cbor": "11.0.0.0",
    "System.Net.Http": "11.0.0.0",
    "System.Net.Primitives": "11.0.0.0",
    "System.ObjectModel": "11.0.0.0",
    "System.Private.CoreLib": "11.0.0.0",
    "System.Runtime.Numerics": "11.0.0.0",
    "System.Text.Json": "11.0.0.0"
  },
  "nodestore_insert": 1795125834.433559,
  "received": 1795125825.798921,
  "save_event_start": 1795125834.0603716,
  "sdk": {
    "name": null,
    "version": null
  },
  "timestamp": 1795125825.301423,
  "title": "System.Exception: Lab-generated Crash",
  "type": "error",
  "user": {
    "id": "CR",
    "geo": {
      "country_code": "GB",
      "city": "Woodstock",
      "subdivision": "England",
      "region": "United Kingdom"
    }
  },
  "version": "7",
  "location": null
}

@codecov

codecov Bot commented Nov 20, 2026 •

Copy link
Copy Markdown

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 77.92%. Comparing base (d3afb0e) to head (aafccf0).
⚠️ Report is 3 commits behind head on main.

Additional details and impacted files
@@           Coverage Diff           @@
##             main    #5916   +/-   ##
=======================================
  Coverage   77.92%   77.92%           
=======================================
  Files         535      535           
  Lines       19831    19831           
  Branches     3967     3967           
=======================================
  Hits        15453    15453           
  Misses       3534     3534           
  Partials      844      844           

☔ View full report in Codecov by Harness.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.

@github-actions github-actions Bot added risk: medium PR risk score: medium and removed risk: medium PR risk score: medium labels Nov 22, 2026
@github-actions

github-actions Bot commented Nov 22, 2026 •

Copy link
Copy Markdown
Contributor

PR risk: medium

For commit aafccf0.

Main concerns: reach, data sent to Sentry, host performance.

This label is a hint for reviewers, not an approval.

*.verify.cs files are excluded from platform TFMs, so the Android-only
tests in DebugStackTraceTests.verify.cs were never compiled. Split the
class into a partial, leaving only the snapshot test in the .verify.cs
file, as with SentryStackTraceFactoryTests.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
@github-actions github-actions Bot added risk: medium PR risk score: medium and removed risk: medium PR risk score: medium labels Nov 22, 2026

@jamescrosswell jamescrosswell left a comment

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks @charlesroddie, nice work on this, and thanks for the device testing!

I pushed two small commits before approving:

  1. Merged main. The three build failures came from the branch being behind main.
  2. Split DebugStackTraceTests into a partial class. *.verify.cs files are excluded from platform TFMs, so the two #if ANDROID tests weren't being compiled. Everything except the snapshot test now lives in DebugStackTraceTests.cs, the same pattern as SentryStackTraceFactoryTests, and both of your tests now run and pass in the Android device tests.

@jamescrosswell
jamescrosswell merged commit 3e570d5 into getsentry:main Nov 23, 2026
56 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

risk: medium PR risk score: medium

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants