-
-
Notifications
You must be signed in to change notification settings - Fork 29
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
Source context not applied to .dart stack traces #299
Comments
Auto-routing to @getsentry/product-owners-issues for triage ⏲️ |
thanks, will have a look 👍 |
@denrase we should check if source context works in Flutter web on non-minified builds |
Hi, I tried changing the event absPath and package: absPath was changed to all possible values (Flutter package name, iOS package name, Android package name, app://, app:/, ~, "") nothing worked, then I tried changing package to match the uploaded artifacts, still nothing works! is there a way I can view the uploaded sources so I can modify the event sent to match the ones in Sentry so the system can match them properly until you fix the issue in the SDK? Here is my final code:
Thanks. |
@buenaflor I got a stack trace similar to the one from the affected user:
After that, I uploaded the file to my project/release: https://dev-curumas.sentry.io/settings/projects/flutter/source-maps/sentrytest%401.0.0%2B1/ New test events do not contain the source context: https://dev-curumas.sentry.io/issues/6285810522/events/95e91fafb6ec46b18da4ec3b1a23d86a/ I did not minify my code. From the quick internal chat it might be a result of the app not using |
@rodolfoBee just to be clear, I tried building with |
Would you mind trying out the sentry-dart-plugin 2.1.0? We've done some changes to uploading dart file, not sure if that's related |
@buenaflor, Just to confirm.. you want me to downgrade to 2.1.0? currently I'm using |
yes, just wanna validate that this issue existed before some of our changes |
Hi @buenaflor , Bellow is my test result with both versions..\
for this stack I'm using the command: and the output for
Output for
I don't see any change in output, and context is still not showing in Sentry. Could you please confirm I'm providing correct release name based on raw stack details provided above? As you can see in the ticket @rodolfoBee was trying to help me and suggested altering the event before sending it to sentry, that didn't work so now I'm trying to change the release name when uploading source to try and match it with the previous stacks. |
Today I realised I made a mistake in my tests: I forgot the "dist" value is automatically added by the SDK. After adding it to my uploaded file, the source code is shown. Here are screenshots (stack trace is the same as before): You can notice one thing in the uploaded file: it is not marked as "minified". I am using the CLI v2.39.1 to upload a specific file instead of the plugin:
I remember seeing in one of @talas9 events the same frame format (using http://...). Maybe this helps @buenaflor understand the root cause? |
Hi @rodolfoBee, I tried your solution, it didn't work for me, do I still need to do the beforeSend alteration?
I'm checking an existing issue after uploading the sources using previous command on the following stack:
|
which platforms does this affect? ios, android and web? |
My test is only on web. Talas' event is from iOS from what it seems. You can try the formats |
@buenaflor I'm only using iOS and Android for my project. With the new commands I added seems like it works when I build on CodeMagic, but not for local dev reported events! I've added a lot of commands so I'm not even sure which one is the one that did the trick, but I will list them: 1- Added So this is one of the stacktraces that are showing with context now: Notice how in the previous stack it is showing the path of the file on CodeMagic MacOS, while in my dev env which is windows, this is not working, not sure if this has anything to do with OS but wanted to bring that to your attention as well I'll be happy to share log files from CodeMagic and commands output with you if you require that. Thanks. |
Environment
SaaS (https://sentry.io/)
Steps to Reproduce
Expected Result
The stack trace has source code context added based on the upload files.
Actual Result
Source context is not applied to the event.
The code is not minified and build using ShoreBird.
The stack trace abs_paths is:
app:///http/skydart_roster_update.dart:109:7
The uploaded file to the event's release is:
~/http/skydart_roster_update.dart
Files are uploaded using sentry dart plugin:
This issue seems to be limited to .dart stack traces. The same process was done with a .js stack trace as test and the uploaded source context was applied to the event.
The issue was originally reported on this internal ticket.
Product Area
Issues - Source Maps
Link
No response
DSN
No response
Version
No response
The text was updated successfully, but these errors were encountered: