Skip to content

chore(deps): update Native SDK to v0.14.2#3683

Open
github-actions[bot] wants to merge 1 commit into
mainfrom
deps/packages/flutter/scripts/update-native.sh
Open

chore(deps): update Native SDK to v0.14.2#3683
github-actions[bot] wants to merge 1 commit into
mainfrom
deps/packages/flutter/scripts/update-native.sh

Conversation

@github-actions
Copy link
Copy Markdown
Contributor

@github-actions github-actions Bot commented May 4, 2026

Bumps packages/flutter/scripts/update-native.sh from 0.13.8 to 0.14.2.

Auto-generated by a dependency updater.

Changelog

0.14.2

Fixes:

  • Protect CMAKE_SYSTEM_VERSION to avoid empty values when cross-building. (#1720)

0.14.1

Features:

  • Add strict trace continuation via sentry_options_set_strict_trace_continuation. (#1663)
  • Auto-populate event.user.id with a persistent per-installation UUID when no explicit user ID is set. (#1661)
  • Add cache keep modes, including SENTRY_CACHE_KEEP_ALWAYS to cache envelopes regardless of upload result. (#1707)
  • Crashpad: add error log for oversized envelopes (HTTP 413 Content Too Large). (#1706, crashpad#155)
  • Crashpad: support modifying attachments after sentry_init on macOS. (#1705, crashpad#153)
  • Add cache_dir envelope header for external crash reporters. (#1698)
  • Add sentry_attachment_set_type and SENTRY_ATTACHMENT_TYPE_* macros for standard Sentry attachment types. (#1700)
    • Deprecate sentry_options_add_view_hierarchy* in favor of sentry_attach_file* with sentry_attachment_set_type.

Fixes:

  • Native/Breakpad/Windows: fixed capturing abort(). (#1708)
  • Native/Windows: capture fast-fail and stack buffer overrun crashes via WER. (#1710)
  • Preserve cached minidump refs. (#1715)

0.14.0

Breaking / Important behavior changes:

  • Metrics are enabled by default. This behavior first appeared in 0.13.5 and is now documented as part of the 0.14.0 behavior. Applications that do not want to send metrics must explicitly opt out with sentry_options_set_enable_metrics(options, false). (#1609)
  • Structured logs are enabled by default. This behavior first appeared in 0.13.9 and is now documented as part of the 0.14.0 behavior. Applications that do not want to capture structured logs must explicitly opt out with sentry_options_set_enable_logs(options, false). (#1673)

Fixes:

  • Native/Linux: correct MD_LINUX_MAPS stream type (was tagged as MD_LINUX_AUXV). (#1694)
  • Native/Linux: drop non-ELF mappings (e.g. /dev/shm/*, (deleted) files) from the minidump module list. (#1694)
  • Native/Linux: merge non-contiguous mappings of the same shared library into a single module, and use the offset==0 mapping as base_of_image. Fixes duplicate ld-linux entries that confused some debuggers (notably Windows LLDB) reading Linux ARM64 minidumps. (#1694)
  • Native/Linux: log when uname() is blocked (sandbox/seccomp) and fall back to /proc/sys/kernel/osrelease for the OS version. (#1694)
  • Native/Linux: emit LinuxAuxv, LinuxCpuInfo, LinuxLsbRelease, LinuxCmdLine, LinuxEnviron, and LinuxDsoDebug streams alongside the existing set, matching what Breakpad writes. LLDB needs LinuxAuxv and LinuxDsoDebug to identify the dynamic loader and enumerate loaded shared libraries; without them, opening a minidump in LLDB on Linux would only recover one frame per thread. (#1694)
  • Native/Linux: replay each thread's stack memory descriptor into MemoryListStream. Previously stack bytes were only referenced from the per-thread record, so debuggers that look up memory by virtual address (LLDB) could not read the stack and unwinding stopped at frame 0 even when eh_frame was available. (#1694)
  • Native/macOS: replay each thread's stack memory descriptor into MemoryListStream so LLDB can read stack contents (same fix as Linux above). (#1694)

Features:

  • Native (Linux, macOS): SMART minidump mode now also captures memory referenced by the registers and stack contents of every captured thread, matching the semantics of MiniDumpWithIndirectlyReferencedMemory on Windows (already in effect for the native Windows backend). For each pointer that resolves into a writable heap region, ~1 KiB is captured around it; total budget capped at 4 MiB per dump. Heap-allocated structs reachable from the crashing call stack can now be inspected in LLDB / VS Code. (#1694)

0.13.9

Features:

  • Enable structured logs by default; logs are now opt-out via sentry_options_set_enable_logs(options, false). (#1673)
  • Crashpad: add macOS support for the crashpad_wait_for_upload flag. (#1679, crashpad#152)
  • Add experimental support for large attachment uploads, opt-in via sentry_options_set_enable_large_attachments. (#1545)

Fixes:

  • Fix event ownership (potential double-decref) in sentry_capture_minidump. (#1669)
  • Guard against internal stringbuilder append and reserve size overflows. (#1672)
  • Preserve attachments added during crash handling (#1687)
  • Fix build-time warnings with C++ builds. (#1671)
  • Native: respect the shutdown_timeout option in the daemon. (#1691)


repo=https://github.com/getsentry/sentry-native
version=0.13.8
version=0.14.0
Copy link
Copy Markdown

Choose a reason for hiding this comment

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

Native SDK logs enabled despite Flutter opt-out default

Medium Severity

Bumping sentry-native to 0.14.0 enables structured logs by default at the native level, but createOptions in sentry_native.dart never syncs the Flutter SDK's enableLogs setting (which defaults to false) to the native options via sentry_options_set_enable_logs. This causes a mismatch where the native SDK may capture/send structured logs even when the user has not opted in. The FFI bindings in ffi-native.yaml also don't include sentry_options_set_enable_logs, so the fix requires adding the binding and setting it in createOptions. Flagged because the review rules require checking dependency updates for breaking behavioral changes and verifying native bridge code compatibility.

Fix in Cursor Fix in Web

Triggered by project rule: PR Review Guidelines for Cursor Bot (Root)

Reviewed by Cursor Bugbot for commit 238439c. Configure here.

@bruno-garcia bruno-garcia force-pushed the deps/packages/flutter/scripts/update-native.sh branch from 238439c to 00eb2d8 Compare May 5, 2026 10:10
@github-actions
Copy link
Copy Markdown
Contributor Author

github-actions Bot commented May 5, 2026

Semver Impact of This PR

🟡 Minor (new features)

📋 Changelog Preview

This is how your changes will appear in the changelog.
Entries from this PR are highlighted with a left border (blockquote style).


Fixes

Dart

  • Make sentryOnError synchronous in runZonedGuarded by theprantadutta in #3697
  • Route SDK diagnostic logs to browser console on web by theprantadutta in #3698

Other

  • (flutter) Release replay JNI refs by buenaflor in #3699

Dependencies

  • chore(deps): update Native SDK to v0.14.1 by github-actions[bot] in #3683

🤖 This preview updates automatically when you update the PR.

@codecov
Copy link
Copy Markdown

codecov Bot commented May 5, 2026

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 91.91%. Comparing base (0375246) to head (8d5d0da).
✅ All tests successful. No failed tests found.

Additional details and impacted files
@@            Coverage Diff             @@
##             main    #3683      +/-   ##
==========================================
+ Coverage   86.85%   91.91%   +5.06%     
==========================================
  Files         336      105     -231     
  Lines       11979     3734    -8245     
==========================================
- Hits        10404     3432    -6972     
+ Misses       1575      302    -1273     
Flag Coverage Δ
sentry ?
sentry_dio ?
sentry_drift ?
sentry_file ?
sentry_firebase_remote_config 100.00% <ø> (ø)
sentry_flutter 91.52% <ø> (+0.37%) ⬆️
sentry_hive ?
sentry_isar ?
sentry_link ?
sentry_logging ?
sentry_sqflite ?
sentry_supabase 97.27% <ø> (ø)

Flags with carried forward coverage won't be shown. Click here to find out more.

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


repo=https://github.com/getsentry/sentry-native
version=0.13.8
version=0.14.0
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: Upgrading sentry-native enables structured logs by default, but the Dart SDK lacks the FFI bindings and API to control or disable this new feature.
Severity: MEDIUM

Suggested Fix

Add the sentry_options_set_enable_logs function to the FFI bindings in ffi-native.yaml. Then, update createOptions() in sentry_native.dart to call this new function, likely disabling it by default to maintain previous behavior. Expose a new option in the Dart SDK to allow users to control this feature.

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: packages/flutter/sentry-native/CMakeCache.txt#L5

Potential issue: The upgrade to `sentry-native` 0.14.0 enables structured logs by
default at the native C layer. However, the Flutter SDK's FFI bindings in
`ffi-native.yaml` have not been updated to include the new
`sentry_options_set_enable_logs` function. Consequently, the `createOptions()` method in
`sentry_native.dart` cannot opt out of this behavior. This results in native structured
log events being silently captured and sent to Sentry for all users, without any
user-facing option in the Dart SDK to disable it.

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

@bruno-garcia bruno-garcia force-pushed the deps/packages/flutter/scripts/update-native.sh branch 8 times, most recently from 027b602 to 73d7880 Compare May 8, 2026 12:53
@bruno-garcia bruno-garcia force-pushed the deps/packages/flutter/scripts/update-native.sh branch 3 times, most recently from 9660119 to 0ba1b36 Compare May 12, 2026 12:43
@github-actions github-actions Bot changed the title chore(deps): update Native SDK to v0.14.0 chore(deps): update Native SDK to v0.14.1 May 14, 2026
@bruno-garcia bruno-garcia force-pushed the deps/packages/flutter/scripts/update-native.sh branch from 0ba1b36 to 6a83337 Compare May 14, 2026 04:19
Copy link
Copy Markdown

@cursor cursor Bot left a comment

Choose a reason for hiding this comment

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

Cursor Bugbot has reviewed your changes and found 1 potential issue.

There are 2 total unresolved issues (including 1 from previous review).

Fix All in Cursor

❌ Bugbot Autofix is OFF. To automatically fix reported issues with cloud agents, enable autofix in the Cursor dashboard.

Reviewed by Cursor Bugbot for commit 6a83337. Configure here.


repo=https://github.com/getsentry/sentry-native
version=0.13.8
version=0.14.1
Copy link
Copy Markdown

Choose a reason for hiding this comment

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

Native SDK auto-populates user.id without sendDefaultPii gating

Medium Severity

Bumping sentry-native to 0.14.1 introduces auto-population of event.user.id with a persistent per-installation UUID. The createOptions() method in sentry_native.dart does not forward sendDefaultPii to the native SDK — there's no FFI binding for sentry_options_set_send_default_pii. Crash events on Linux/Windows may now include a persistent identifier regardless of the Flutter-side sendDefaultPii setting. Per project rules, user-identifiable data must be gated behind sendDefaultPii. This version bump likely requires adding the binding and forwarding the option.

Flagged because the review rules require checking dependency updates for behavioral changes and compatibility issues in bridge code.

Fix in Cursor Fix in Web

Triggered by project rule: PR Review Guidelines for Cursor Bot (Root)

Reviewed by Cursor Bugbot for commit 6a83337. Configure here.

@bruno-garcia bruno-garcia force-pushed the deps/packages/flutter/scripts/update-native.sh branch 3 times, most recently from 739e36b to 35765c0 Compare May 15, 2026 11:45
@github-actions github-actions Bot changed the title chore(deps): update Native SDK to v0.14.1 chore(deps): update Native SDK to v0.14.2 May 16, 2026
@bruno-garcia bruno-garcia force-pushed the deps/packages/flutter/scripts/update-native.sh branch from 35765c0 to 8d5d0da Compare May 16, 2026 04:13
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant