Coder Social home page Coder Social logo

SDK crashes if the underlying Android call throws an exception (NetworkStateHelper.isAnyNetworkConnected) about appcenter-sdk-android HOT 6 CLOSED

mszerling-ynd avatar mszerling-ynd commented on June 4, 2024
SDK crashes if the underlying Android call throws an exception (NetworkStateHelper.isAnyNetworkConnected)

from appcenter-sdk-android.

Comments (6)

aleksandr-dorofeev avatar aleksandr-dorofeev commented on June 4, 2024

Hello @mszerling-ynd
Could you elaborate more on the repro steps?
Also could you share the verbose logs(documentation)?

from appcenter-sdk-android.

mszerling-ynd avatar mszerling-ynd commented on June 4, 2024

Hi,

as I already mentioned there are no reproduction steps we are aware of, the issue occurs randomly for a small subset of our customers on production. We only know about it because of crash reports.

Regarding enabling verbose logs that's not sth that we are willing to do for an app running on production.

I'm sorry I cannot provide more insights but I guess the stacktrace is pretty self explaining:

  • Appcenter SDK calls an Android method (android.net.ConnectivityManager.getNetworkInfo) which internally crashes
  • as the result the app crashes

Obviously crashing system calls are problematic to deal with, on the other hand those calls are only used by Appcenter SDK, and if it wasn't integrated with the app at all there would be no crashes.

from appcenter-sdk-android.

aleksandr-dorofeev avatar aleksandr-dorofeev commented on June 4, 2024

@mszerling-ynd
I apologize for the misunderstanding with the reproduction of the error and with the situation with the logs. We are filed bug on our internal dashboard. Will back to you once get results.

from appcenter-sdk-android.

DmitriyKirakosyan avatar DmitriyKirakosyan commented on June 4, 2024

Hi @mszerling-ynd , this looks like a bug of a specific version of android on a specific device. The docs doesn't mention that the method can throw, so I don't feel it is a good idea to wrap the call in try-catch. I checked the source code of the ConnectivityManager.java and related files, but couldn't find any place where it can throw an exception. Probably there is used some specific version of the service.

@mszerling-ynd , did you try to find anything similar on the internet? Having some references would help us to understand the problem better.

from appcenter-sdk-android.

mszerling-ynd avatar mszerling-ynd commented on June 4, 2024

Hi,

did you try to find anything similar on the internet? Having some references would help us to understand the problem better.

Unfortunately not. The affected device is a quite specific device (smart POS) not even a regular phone.

best

from appcenter-sdk-android.

DmitriyKirakosyan avatar DmitriyKirakosyan commented on June 4, 2024

I'm going to close this issue as fixed. Please let me know if the bug reappears.

from appcenter-sdk-android.

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.