-
-
Notifications
You must be signed in to change notification settings - Fork 239
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
Android Proguard stacktraces are not readable even after uploading the symbol files #261
Comments
@ganeshrvel thanks for raising this, a few questions though. Android Proguard is not related to symbol files, so I don't quite understand where is the issue. Which stack traces are unreadable? the ones captured on Dart or Java/Kotlin code?
You've replaced the
where it's Another test would be to skip |
Hey @marandaneto I work with Ganesh, and to answer your questions:
Thanks for getting back so fast, awaiting your response. |
hey @ayush221b thanks for helping us out to dig this issue.
yes, it could be, if the code didn't change at all, that would be the reason as we hash the file before trying to upload it.
ok, so you indeed need to upload the debug symbols.
great, just wanted to confirm.
it was meant for testing only, there's a gotcha though, when using the
only source maps (eg Flutter web) should be associated with a release, not Flutter Mobile, as the files already have the debug id in them which is loaded at runtime, so it's possible to find the correct files to symbolicate the stack traces.
could you confirm that the steps you've done are: // compile (should be a release build) also, are you using sentry.io or on-premise? if sentry.io, could you share the link of the issue above? I'd like to dig a bit. |
@ganeshrvel as you are compiling an could you follow these steps and try it again? https://docs.sentry.io/platforms/android/usage/advanced-usage/#integrating-the-ndk the main/only point is: set |
There was an issue that the obfuscated Dart code/sourcemaps can not yet be parsed by Sentry, something was wrong with the format. Can't find it atm. Edit: |
this was with the old package, |
@marandaneto We got it working I am leaving the steps here so that it will help others as well We use both
And of course we had to manually upload the symbols
AndroidManifest file: <application
......
android:extractNativeLibs="true" //<------ this line
> gradle.properties: ....
android.bundle.enableUncompressedNativeLibs=false ./build.gradle:
./app/build.gradle:
|
cool, the
for Dart/Flutter, in the future, this will available thru #132 but it's currently blocked. |
@marandaneto is there any other channel to search for help? I'm having the same issue here, symbolicated issues with partially unreadable stacktraces. I've read almost every document on sentry's website, but I couldn't make it work completely. At first, the stacktrace was unsymbolicated, but somehow I could make it symbolicated now. But I don't understand why the exception isn't completely readable. Here are some screenshots: My question is if it's somehow related to the source context problem, addressed by #132, or if it should work with current supported dart and sentry features. Thanks for the help, in advance. |
#132 is something else. what is the umsymbolicated part? if you mean https://flutter.dev/docs/deployment/obfuscate#caveat the screenshot and its stack trace look good though, is it only about the title? |
@marandaneto yes, I meant both the title and those addresses in the second column. Comparing to a stacktrace from a build without Thanks for the quick reply, it helped me a lot! |
oh got it, they are just the image_addr that have been used for symbolication, no issues in there. |
Platform:
IDE:
split-debug-info and obfuscate (Flutter Android or iOS) or CanvasKit (Flutter Web):
Platform installed with:
Output of the command
flutter doctor -v
below:[✓] Flutter (Channel unknown, 1.22.0, on Mac OS X 10.15.6 19G73, locale en-IN)
[✓] Android toolchain - develop for Android devices (Android SDK version 29.0.3)
[✓] Xcode - develop for iOS and macOS (Xcode 11.6)
[✓] Connected device (2 available)
The output goes here...
The version of the SDK (See pubspec.lock):
4.x.x
I have the following issue:
We are unable to map the sentry stacktrace logs to the manually uploaded symbol files. We have the latest version of sentry_flutter package and even though we have manually uploaded the native symbol files of the Android build to sentry, using the below command, we are still unable to see the decoded stacktraces.
We use these two flags to build the release app bundle:
--obfuscate --split-debug-info=path
Attaching the screenshots of a dashboard event
Screenshot of Uploaded debug information files
What are we missing here? What else do we need to do for decoding the ProGuard Obfuscated android stacktraces?
Steps to reproduce:
Actual result:
Expected result:
The text was updated successfully, but these errors were encountered: