Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Sentry platform not propery displaying full stacktrace - No source code is shown #301

Open
therybrian opened this issue Feb 5, 2025 · 3 comments
Assignees
Labels
bug Something isn't working Platform: Dart

Comments

@therybrian
Copy link

therybrian commented Feb 5, 2025

Platform

Dart

Obfuscation

Enabled

Debug Info

Enabled

Doctor

[✓] Flutter (Channel stable, 3.27.1, on macOS 15.0 24A335 darwin-arm64, locale en-BE)
• Flutter version 3.27.1 on channel stable at /Users/brianthery/development/flutter
• Upstream repository https://github.com/flutter/flutter.git
• Framework revision 17025dd882 (7 weeks ago), 2024-12-17 03:23:09 +0900
• Engine revision cb4b5fff73
• Dart version 3.6.0
• DevTools version 2.40.2

[✓] Android toolchain - develop for Android devices (Android SDK version 34.0.0)
• Android SDK at /Users/brianthery/Library/Android/sdk
• Platform android-35, build-tools 34.0.0
• Java binary at: /Users/brianthery/Library/Java/JavaVirtualMachines/temurin-17.0.13/Contents/Home/bin/java
• Java version OpenJDK Runtime Environment Temurin-17.0.13+11 (build 17.0.13+11)
• All Android licenses accepted.

[✓] Xcode - develop for iOS and macOS (Xcode 16.0)
• Xcode at /Applications/Xcode.app/Contents/Developer
• Build 16A242d
• CocoaPods version 1.15.2

[✓] Chrome - develop for the web
• Chrome at /Applications/Google Chrome.app/Contents/MacOS/Google Chrome

[✓] Android Studio (version 2024.2)
• Android Studio at /Applications/Android Studio.app/Contents
• Flutter plugin can be installed from:
🔨 https://plugins.jetbrains.com/plugin/9212-flutter
• Dart plugin can be installed from:
🔨 https://plugins.jetbrains.com/plugin/6351-dart
• Java version OpenJDK Runtime Environment (build 21.0.3+-79915917-b509.11)

[✓] Connected device (3 available)
• macOS (desktop) • macos • darwin-arm64 • macOS 15.0 24A335 darwin-arm64
• Mac Designed for iPad (desktop) • mac-designed-for-ipad • darwin • macOS 15.0 24A335 darwin-arm64
• Chrome (web) • chrome • web-javascript • Google Chrome 133.0.6943.53

[✓] Network resources
• All expected network resources are available.

• No issues found!

Version

8.12.0

Steps to Reproduce

pubspec.yaml file contains

sentry:
  upload_debug_symbols: true
  upload_source_maps: true
  upload_sources: true
  project: "project"
  org: "org"
  log_level: error # possible values: trace, debug, info, warn, error
  web_build_path: "build/web"
  ignore_missing: true
  commits: "false"
  symbols_path: "build/symbols"

Command
flutter build apk --release --flavor <project-name> -t lib/main-<project-name>.dart --obfuscate --split-debug-info=build/symbols --no-tree-shake-icons

build folder contains the symbols folder with in there 3 files

  • app.android-arm.symbols
  • app.android-arm64.symbols
  • app-android-64x.symbols

Using the command dart run sentry_dart_plugin from sentry_dart_plugin 2.4.0. The debug symbols for Android, iOS/macOS gets uploaded (can't find sourcemaps but that's a different issue) and I can see on the Sentry platform that these debug files have been added.

See image of console executing the dart run sentry_dart_plugin command

Image

Expected Result

When purposely throwing an exception which is then shown on the Sentry platform. Stacktrace shows also the code of where the error happened.

See image (image is taken from Sentry website as I dot not have an example)

Image

Actual Result

When purposely throwing an exception which is then shown on the Sentry platform. Stacktrace does not show code.

See image

Image

Are you willing to submit a PR?

None

@therybrian therybrian added bug Something isn't working Platform: Dart labels Feb 5, 2025
@github-project-automation github-project-automation bot moved this to Needs Discussion in Mobile & Cross Platform SDK Feb 5, 2025
@getsantry getsantry bot moved this to Waiting for: Product Owner in GitHub Issues with 👀 3 Feb 5, 2025
@therybrian therybrian changed the title Sentry platform not propery displaying full stacktrace Sentry platform not propery displaying full stacktrace - No source code is shown Feb 5, 2025
@buenaflor
Copy link
Contributor

Hey thanks for the issue. We'll have a look

@denrase
Copy link
Collaborator

denrase commented Feb 10, 2025

@therybrian Created a new sample app mirroring your setup. I do have source context, so not sure yet where the issue lies.

@buenaflor But i'm also seeing frames from our SDK in the stack trace, which should not be there.... Investigating.

Image Image

@buenaflor buenaflor moved this from Needs Discussion to Needs Investigation in Mobile & Cross Platform SDK Feb 11, 2025
@buenaflor
Copy link
Contributor

I'm transferring this to the dart plugin repo

@buenaflor buenaflor transferred this issue from getsentry/sentry-dart Feb 11, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working Platform: Dart
Projects
Status: No status
Status: Needs Investigation
Development

No branches or pull requests

3 participants