-
-
Notifications
You must be signed in to change notification settings - Fork 32
UnsatisfiedLinkError in SentryNdk #341
Comments
hey @tobi512 thanks for raising this issue. actually it's the first We do have a A few questions to understand a bit more: Do you have Proguard/R8 enabled? if you decide to disable it, for now, you can save the native bits by doing this: Please answer the questions above and I'll try to figure this out, thanks. |
Hi @marandaneto, Do you have Proguard/R8 enabled? Yes, we use R8 Regards, |
hey @tobi512 thanks for your patience. |
Hi @marandaneto, Bringing #344 into The only thing left for now would be to get a Samsung Galaxy J7 Prime somewhere and test on exactly that device (already checked on AWS device farm, but they only have a "normal" Galaxy J7). |
@tobi512 yep, I've tested it using a Galaxy J7, but could not reproduce it, I also could not find a J7 Prime image. |
Hi @marandaneto, As I was expecting the number of crashes increased after taking the update live and we now see 7 new users affected with the following devices: Samsung Galaxy A3(2017) (a3y17lte), 2048MB RAM, Android 8.0 |
hey @tobi512 thanks and sorry for this :( we do have a J5, we are gonna test it and let you know asap, stay tuned. |
@tobi512 would you mind updating with its Android API? some of them may have upgraded, thanks. |
@marandaneto Sure, I'll add the Android versions to the devices |
@tobi512 thanks, I've released a patch It's not going to fix it as I still don't know the problem, but it's not gonna crash it anymore. |
cc @Swatinem ideas? halp |
If I remember correctly, I had something like this when playing around with the simulator shell. You can always check with I think you can pull the library you want to load, and run Can you try that and give feedback? |
@Swatinem but this is a runtime error, not a compile error, not sure if I follow it. |
yes, |
I spent quite some time researching this topic. The page is quite informative when it comes to all these linking things. If you can reproduce this, maybe try enabling logging for the dynamic loader: Another question: does your app try to load native libs directly from the apk, as explained here: https://android.googlesource.com/platform/bionic/+/master/android-changes-for-ndk-developers.md#opening-shared-libraries-directly-from-an-apk ? As the guid says, libraries loaded this way need to be page-aligned and uncompressed. Just for reference, here are some logs from my testing within the simulator:
|
cc @tobi512 |
Hi guys, A quick update first: we don't see any new crashes after publishing the update with your fix, so that seems fine now. Regarding your cited question: in our own code we don't directly use any |
ah nice! Well then call this fixed? |
@tobi512 being react-native would change the target of our tests, we didn't know that, but thanks for all the info, we are gonna monitor it. @Swatinem this is because of https://github.com/getsentry/sentry-android/releases/tag/2.0.3 |
Hi there,
we recently upgraded Sentry from v1.7.23 to v2.0.2 and so far everything looked good. Now we published the first version via our beta channel in Google Play and received a strange crash related to Sentry's new native crash handling feature.
Stacktrace:
Affected device:
Samsung Galaxy J7 Prime (on7xelte), 2816MB RAM, Android 8.1
Right now, we only have one user suffering from the crash according to the Play Console, but from our experience, the number of users will increase as soon as we publish the update to everyone. We've been testing the app on a couple of devices and it seems to run fine so far (however most of the weird crashes happen out in the wild as you probably know).
Is this a known issue and do you have any idea on how to fix it?
Disabling the NDK crash feature by using
setEnableNdk(false)
might be an option, but the feature is quite nice, so we'd like to keep that enabled.Regards,
Tobias
The text was updated successfully, but these errors were encountered: