Git Product home page Git Product logo

Comments (11)

fzyzcjy avatar fzyzcjy commented on September 23, 2024 1

Is it possible that your libvision_utils_rs.so (and maybe also libapp.so and libflutter.so) is loaded dynamically later in the execution of your app?

I am using the Flutter framework, and IMHO the procedure is like this:

  • android app starts
  • libflutter.so is loaded at onCreate (or something like that - very early in the lifetime)
  • libapp.so is then immediately loaded
  • libvision_utils_rs.so is then loaded, via dynamic loading mechanism

If I understand correctly, the native part is auto inited from the Sentry Android, which seems to be called before flutter system has loaded, so your suggestion may be the cause!

I will try that, thank you!

from sentry-native.

supervacuus avatar supervacuus commented on September 23, 2024

Hi @fzyzcjy! Did you upload the debug-info of all your binaries according to the docs?

from sentry-native.

fzyzcjy avatar fzyzcjy commented on September 23, 2024

@supervacuus Hi, IMHO it is missing critical information, please correct me if I am wrong!

Usually, the imageAddr is used to determine which .so's symbol should be used. However, here the imageAddr of the stack frame does not correspond to any debug image, so it cannot be decoded.

from sentry-native.

supervacuus avatar supervacuus commented on September 23, 2024

@fzyzcjy, thanks. I misunderstood the issue you were raising. You're saying that the sentry backend retrieves an incomplete list of modules from the Android device? Is this reproducible, or do you have this only from a singular event? In any case, it would help if you could provide an event URL for someone from the team to inspect the whole event.

Typically the image list is incomplete when you are using an obfuscator that also touches the ELF files and makes them unusable for our module-finder or obfuscates the debug-id (#849). There were also issues when users sent a non-crash event before a later crash, where in-between modules were loaded, since we cache the module-list after an initial load.

But it is hard to get an idea of what is happening without seeing the full event.

from sentry-native.

fzyzcjy avatar fzyzcjy commented on September 23, 2024

You're saying that the sentry backend retrieves an incomplete list of modules from the Android device?

I guess yes.

Is this reproducible, or do you have this only from a singular event?

Not tried to reproduce yet, but I will report if it reproduces.

In any case, it would help if you could provide an event URL for someone from the team to inspect the whole event.

Unfortunately I cannot use the Sentry cloud service even though I want to use it :( (See getsentry/sentry#51859 for why) But I can send the event to the team! Just give me an email address (or other communication methods).

Typically the image list is incomplete when you are using an obfuscator that also touches the ELF files and makes them unusable for our module-finder or obfuscates the debug-id (#849). There were also issues when users sent a non-crash event before a later crash, where in-between modules were loaded, since we cache the module-list after an initial load.

Thank you for the information!

from sentry-native.

kahest avatar kahest commented on September 23, 2024

Hey @fzyzcjy thanks for following up - you can send the event to [email protected]

from sentry-native.

fzyzcjy avatar fzyzcjy commented on September 23, 2024

Hi, thanks for the reply and sorry for the delay, I have sent the event JSON data to your email

image

from sentry-native.

kahest avatar kahest commented on September 23, 2024

@fzyzcjy no worries, thanks for following up, we will take a look

from sentry-native.

fzyzcjy avatar fzyzcjy commented on September 23, 2024

You are welcome! Looking forward to it

from sentry-native.

supervacuus avatar supervacuus commented on September 23, 2024

Hi @fzyzcjy! I might not have been clear enough with this statement:

There were also issues when users sent a non-crash event before a later crash, where in-between modules were loaded, since we cache the module-list after an initial load.

Is it possible that your libvision_utils_rs.so (and maybe also libapp.so and libflutter.so) is loaded dynamically later in the execution of your app? In that case, your shared libraries don't appear because we read the module list at one point and cache it, and then later, when you crash, only use that cached version. You can ensure that a refreshed module list is used after loading shared libraries by calling sentry_clear_modulecache().

from sentry-native.

getsantry avatar getsantry commented on September 23, 2024

This issue has gone three weeks without activity. In another week, I will close it.

But! If you comment or otherwise update it, I will reset the clock, and if you remove the label Waiting for: Community, I will leave it alone ... forever!


"A weed is but an unloved flower." ― Ella Wheeler Wilcox 🥀

from sentry-native.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.