Comments (12)
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.
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.
@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.
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.
@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.
I edited my original comment with a better crash report that did not have any methods obfuscated.
from android-permissions.
@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.
A test to reproduce this will have multiple permission requests on different threads.
This is a multi-threading issue.
from android-permissions.
Any updates on this? Thanks!
from android-permissions.
Unfortunately, I have not been able to spend time on this one yet. I would look into it ASAP.
from android-permissions.
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.
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)
- Question: Is this library published? HOT 3
- How do i test from Activity for onPermissionDenied() it cannot be invoked. i cannot make an object of PermissionHandler class HOT 3
- Notification channel not registered on API27 HOT 1
- New Location Permissions Scheme for Android Q HOT 5
- Switch to AndroidX HOT 2
- error: Landroidx/localbroadcastmanager/content/LocalBroadcastManager, dependency missing HOT 1
- Callbacks not working in foreground service HOT 6
- Using FLAG_ACTIVITY_NEW_TASK instead of notification
- Project should be moved off jcenter repository HOT 14
- NPE on runningAppProcesses iterator() in AppStatus.isInForeground() method HOT 7
- Crash when permissions denied HOT 3
- Api not adjusted to android-31 target. HOT 6
- [Updated] The library is still a live!! thank you @nishkarsh HOT 7
- Add ability to provide custom/app icon for the status bar notification HOT 2
- Allow using a high priority / important notification HOT 1
- Add ability to set color of notification HOT 2
- How to grant multiple permissions at once in singleton place. HOT 1
- application@allowBack is required by the plugin HOT 5
- Can't add dependency HOT 2
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from android-permissions.