GithubHelp home page GithubHelp logo

Comments (8)

pravingaikwad07 avatar pravingaikwad07 commented on June 11, 2024

Crash report:

Fatal Exception: android.app.RemoteServiceException$ForegroundServiceDidNotStartInTimeException: Context.startForegroundService() did not then call Service.startForeground(): ServiceRecord{6170cc7 u0 com.wrkspot.employee.prod/org.altbeacon.beacon.service.BeaconService} at android.app.ActivityThread.generateForegroundServiceDidNotStartInTimeException(ActivityThread.java:2245) at android.app.ActivityThread.throwRemoteServiceException(ActivityThread.java:2216) at android.app.ActivityThread.-$$Nest$mthrowRemoteServiceException() at android.app.ActivityThread$H.handleMessage(ActivityThread.java:2508) at android.os.Handler.dispatchMessage(Handler.java:106) at android.os.Looper.loopOnce(Looper.java:226) at android.os.Looper.loop(Looper.java:313) at android.app.ActivityThread.main(ActivityThread.java:8762) at java.lang.reflect.Method.invoke(Method.java) at com.android.internal.os.RuntimeInit$MethodAndArgsCaller.run(RuntimeInit.java:604) at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:1067)

from android-beacon-library.

davidgyoung avatar davidgyoung commented on June 11, 2024

@pravingaikwad07 please read the discussion in #1141 which you referenced above as well as the pull request that implemented an improvement #1024 awhile back. This improvement is already in the latest version of the library.

I believe there is no way to 100% eliminate these crashes due to the design of Android. I have already done what I think is possible to make these crashes as rare as possible, but again, I believe it is impossible to eliminate them. I encourage you to offer additional ideas to reduce the frequency of these crashes if you have them. Please comment on the existing issue #1141, and we can re-open if there are any actionable ideas.

from android-beacon-library.

pravingaikwad07 avatar pravingaikwad07 commented on June 11, 2024

@davidgyoung So, does it mean that the improvements are available in 'org.altbeacon:android-beacon-library:2.19.6 ?

from android-beacon-library.

davidgyoung avatar davidgyoung commented on June 11, 2024

Yes

from android-beacon-library.

pravingaikwad07 avatar pravingaikwad07 commented on June 11, 2024

Thanks for the quick reply. I appreciate it.

I will update on this thread if I find any solution to reduce the frequency of this issue. Also, I will try to post the frequency in decrease of crashes after upgrading 2.19.5 to 2.19.6 as you suggested.

from android-beacon-library.

davidgyoung avatar davidgyoung commented on June 11, 2024

The improvement was introduced in 2.19, so you will only see a difference if comparing 2.18.x with 2.19.x

from android-beacon-library.

pravingaikwad07 avatar pravingaikwad07 commented on June 11, 2024

Ok. So I am currently using 2.19.5 and if I upgrade it to 2.19.6, then do you think that there will be improvements in overall frequency of this crash?

from android-beacon-library.

pravingaikwad07 avatar pravingaikwad07 commented on June 11, 2024

Also, wanted to check that is there any plan to release the version 2.20 stable version? I can see that it's in beta version as of now.

from android-beacon-library.

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.