GithubHelp home page GithubHelp logo

Comments (12)

nishkarsh avatar nishkarsh commented on July 16, 2024 3

Hey @mikejeep! Fortunately, I was able to reproduce this issue and verify the fix with a unit test. You should upgrade the dependency to version 2.0.54 in which the issue is resolved. You should eventually stop seeing these errors from the users of your app.

Thanks again for reporting this!

from android-permissions.

mikejeep avatar mikejeep commented on July 16, 2024 2

Thank you @nishkarsh! I will update my app today and monitor the exception logging, once I'm confident it's no longer an issue I will close this issue out. I'd like to send you a contribution as thanks for your efforts if you could provide the preferred way to do that.

from android-permissions.

mikejeep avatar mikejeep commented on July 16, 2024 1

@nishkarsh I know you are busy, I just saw on another issue that you have taken donations in the past. I would be happy to make a contribution if that will help accelerate the resolution of this bug. I am logging a lot of these exceptions from my users and would like to resolve it.

from android-permissions.

nishkarsh avatar nishkarsh commented on July 16, 2024 1

Hey @mikejeep, I will look into this one today. Other internal projects had been keeping me busy but it has been pending for way too long.

from android-permissions.

christocracy avatar christocracy commented on July 16, 2024

@nishkarsh Probably related to not accessing stuff like pendingPermissionRequests within synchronized block, eg:

synchronized(pendingPermissionRequests) {
    pendingPermissionRequests.removeAll(asList(grantedPermissions));
    pendingPermissionRequests.removeAll(deniedPermissions.stripped());
    if (pendingPermissionRequests.isEmpty()) {
        manager.unregisterBroadcastReceiver();
    }
}

from android-permissions.

mikejeep avatar mikejeep commented on July 16, 2024

I edited my original comment with a better crash report that did not have any methods obfuscated.

from android-permissions.

nishkarsh avatar nishkarsh commented on July 16, 2024

@mikejeep thanks for reporting this! @christocracy thanks for investigating it a bit!

I would be soon back to work from a short vacation and look into this! Perhaps a test would be able to reproduce this and verify the fix.

from android-permissions.

christocracy avatar christocracy commented on July 16, 2024

A test to reproduce this will have multiple permission requests on different threads.

This is a multi-threading issue.

from android-permissions.

mikejeep avatar mikejeep commented on July 16, 2024

Any updates on this? Thanks!

from android-permissions.

nishkarsh avatar nishkarsh commented on July 16, 2024

Unfortunately, I have not been able to spend time on this one yet. I would look into it ASAP.

from android-permissions.

nishkarsh avatar nishkarsh commented on July 16, 2024

Yes, since the issue was at multiple places, give it some time in production to verify that all of those places have been patched.

You can now see a Sponser label in the menu on top in the repository that you could use to donate an amount of your choice. Thanks for supporting the library!

from android-permissions.

mikejeep avatar mikejeep commented on July 16, 2024

This appears to be resolved, the error reports have disappeared. I appreciate your time and going to go hit that Sponsor page now, thanks!

from android-permissions.

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.