-
-
Notifications
You must be signed in to change notification settings - Fork 171
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 + Sentry Native - Section Crashed is not in Loaded Images #483
Comments
One known limitation that we have is that we can’t find the loaded images correctly if they are being loaded directly from https://docs.sentry.io/platforms/android/usage/advanced-usage/#integrating-the-ndk In particular, the CC @marandaneto
In that case please open an issue in the sentry-java repo next time. |
Another common source of missing loaded images is if you have loaded the library dynamically. sentry-native/include/sentry.h Lines 950 to 959 in f75ae73
Unfortunately that is something that needs to be done manually right now. |
related to getsentry/sentry-java#1280 so people won't need to set |
What's the best way to call this from java? I have tried calling it from native but it doesn't carry over. Should I ask on the getsentry/sentry-java issue tracker instead? |
I don't follow this sentence, what do you mean? you could call directly from native or you could create a JNI bridge, both would work in the same way |
Yeah just attempting to call:
Didn't properly clear the module cache for future reports. However my sentry_init() call is done in java, so i'm not sure how thats supposed to work. I'v got no idea how to call sentry_clear_modulecache(); in the java version of the SDK, but it looks burried between interface hell. If anyone has a code example of calling it would be lovely.
I can see its called here but im not sure what the write syntax is to access this one? |
you need to init. the SDK using the manual mode. SentryAndroid.init(this, options -> { call loader.clearModuleList() when you want |
Managed to get it working thanks! |
@deathlyrage Was it just about calling I would like to understand this better, since this is one of the most frequent annoyances that Android customers are facing. |
This managed to solve the problem with sentry_clear_modulecache. Just attempting to move to Native + Android + Breakpad without java NDK version of it so i can get more crash information and minidumps. |
Nevermind looks like I spoke too soon, its still broken with sentry_clear_modulecache. https://sentry.io/share/issue/be797880554f45f29251688e6a4f3e18/ |
It looks like it exclusively happens on Android 11 devices? Older android versions correctly show the right loaded symbols. |
We do know that the module finder is not really reliable in some cases, though its a pain to make that work even as it is. |
@deathlyrage I have been looking at this again, and it seems that in the event you sent (https://sentry.io/share/issue/be797880554f45f29251688e6a4f3e18/), I recently landed #431 which should support this usecase. |
Closing this for now, as it should be fixed by the new modulefinder. Still working on releasing and uplifting the new version to the Android SDK though. |
Description
When does the problem happen
Environment
Using the pre-built package from sentry-java which uses sentry-native.
Steps To Reproduce
Not sure how to reproduce this one, but i'd say 50% of my crashes experience this issue, other crashes do have libUE4.so loaded.
It might have something to do with my libUE4.so symbol size, (its around 1.8 GB)
Log output
Here is a link to the event on Sentry SAAS if that helps:
https://sentry.io/share/issue/d6ecd48de5bf43db9990a56c42a6807b/
I upload full symbol files and source maps, I'm not sure why sentry can't identify the right loaded symbol and give additional context, eg like line numbers or source code information about the crash.
The text was updated successfully, but these errors were encountered: