Skip to content

chore(deps): update Native SDK to v0.16.0 - #5452

Merged
jamescrosswell merged 1 commit into
mainfrom
deps/modules/sentry-native
Jul 28, 2026
Merged

chore(deps): update Native SDK to v0.16.0#5452
jamescrosswell merged 1 commit into
mainfrom
deps/modules/sentry-native

Conversation

@github-actions

Copy link
Copy Markdown
Contributor

Bumps modules/sentry-native from 0.15.4 to 0.16.0.

Auto-generated by a dependency updater.

Changelog

0.16.0

Features:

  • Native/Windows: add sentry_options_set_minidump_flags for configuring raw MINIDUMP_TYPE flags. (#1911)
  • Windows: add WER integration for syncing tags and attachments to WER. (#1837)
  • Report cache_overflow discards due to cache_max_items or cache_max_size. (#1884)
  • Crashpad/Windows: optimize scope flushes for crash events and external crash reports. (#1841)
  • User feedback now carries scope data, including release, environment, tags, user, and contexts with the trace, so feedback is connected to the same trace as errors from the same session. Attachments set on the scope are sent with the feedback as well, alongside any passed through a hint. This also fixed a memory leak when capturing user feedback before the SDK is initialized. (#1915)
  • Add sentry_scope_capture_feedback to capture user feedback against a given scope, matching sentry_scope_capture_event / _log / _metric. The feedback carries the scope's data layered on top of the global scope, including attachments set on that scope, accepts an optional hint for additional attachments, and returns the feedback's event ID. (#1916)

Fixes:

  • Fix scope data loss from shared sentry_value_t containers while significantly improving scope merge performance with copy-on-write cloning. (#1794)
  • Fix a memory leak when JSON parsing rejects invalid input after partially parsed value. (#1887)
  • Crashpad: wait reliably for crash report uploads. (#1885)
  • Crashpad/Windows: flush Windows attachment IPC responses. (#1895)
  • Crashpad/Linux: terminate Linux handler re-entry. (#1894)
  • Android: create the outbox directory before writing NDK crash envelopes into it, so envelopes are not lost when the head SDK creates the outbox lazily. (#1889)
  • Native/Windows: let WER finish native crash reports to preserve WER custom metadata. (#1904)
  • Native/macOS: write signal-handler-captured thread names into the minidump's ThreadNames stream when task_for_pid fails (e.g. sandboxed apps), so thread names resolve in crash events from packaged apps. (#1905)
  • Native: don't dump the crash daemon's log to stderr on shutdown unless debug logging is enabled, so terminal applications stay quiet when debug is off. (#1910)
  • Native/Windows: capture heap corruption crashes reported as STATUS_HEAP_CORRUPTION (0xC0000374). (#1909)
  • Native/Linux: add support for sentry_options_set_handler_strategy(SENTRY_HANDLER_STRATEGY_CHAIN_AT_START). (#1912)
  • Windows: the default thread stack guarantee is now actually applied in static builds and is also set by the native backend, so crash handling can run after a stack overflow. (#1918)
  • Include before_send attachments with local scopes. (#1922)

@github-actions github-actions Bot added the Dependencies Pull requests that update a dependency file label Jul 28, 2026
@github-actions
github-actions Bot requested a review from jamescrosswell as a code owner July 28, 2026 03:59
@github-actions github-actions Bot added the Dependencies Pull requests that update a dependency file label Jul 28, 2026
@bruno-garcia
bruno-garcia force-pushed the deps/modules/sentry-native branch from 803ebe3 to 20ea3e6 Compare July 28, 2026 03:59
@github-actions github-actions Bot added the risk: medium PR risk score: medium label Jul 28, 2026
Comment thread modules/sentry-native
@@ -1 +1 @@
Subproject commit a1827544e2da7e50517615003288c25380f8d457
Subproject commit a99d64efb8d5c614bbcfdab7c7dc737530e5ef7d

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

Bug: The P/Invoke call to sentry_close() may fail as the function was likely renamed to sentry_shutdown() in the updated native library, causing a crash on shutdown.
Severity: HIGH

Suggested Fix

Verify if sentry_close() was renamed to sentry_shutdown() in the sentry-native 0.16.0 release. If so, update the DllImport attribute in CFunctions.cs to point to the new function name sentry_shutdown().

Prompt for AI Agent
Review the code at the location below. A potential bug has been identified by an AI
agent. Verify if this is a real issue. If it is, propose a fix; if not, explain why it's
not valid.

Location: modules/sentry-native#L1

Potential issue: The update to `sentry-native` version 0.16.0 likely includes breaking
API changes, such as renaming the shutdown function from `sentry_close()` to
`sentry_shutdown()`. The .NET SDK's P/Invoke wrapper still attempts to call the old
function name, `sentry_close()`. This will result in an `EntryPointNotFoundException`
when `SentrySdk.Close()` is executed during normal application shutdown, causing the
application to crash.

Did we get this right? 👍 / 👎 to inform future reviews.

@codecov

codecov Bot commented Jul 28, 2026

Copy link
Copy Markdown

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 74.69%. Comparing base (2f0203f) to head (20ea3e6).

Additional details and impacted files
@@            Coverage Diff             @@
##             main    #5452      +/-   ##
==========================================
+ Coverage   74.68%   74.69%   +0.01%     
==========================================
  Files         512      512              
  Lines       18722    18722              
  Branches     3660     3660              
==========================================
+ Hits        13983    13985       +2     
+ Misses       3866     3865       -1     
+ Partials      873      872       -1     

☔ 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.

@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.

Automated approval: eligibility script verdict MERGE (CI green, mergeable, no human change-request, no breaking-change language).

@jamescrosswell
jamescrosswell merged commit 8d4d3f6 into main Jul 28, 2026
39 checks passed
@jamescrosswell
jamescrosswell deleted the deps/modules/sentry-native branch July 28, 2026 08:08
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Dependencies Pull requests that update a dependency file risk: medium PR risk score: medium

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants