-
Notifications
You must be signed in to change notification settings - Fork 4k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Unexpected behavior with retained instance notification #1427
Labels
Milestone
Comments
related: if you leave the app idle LC will keep reporting the retained instances basically indefinitely. Triggering a gc with the notification or by causing the app to do so will of course drop these down to 0 (and cause the aforementioned disappearance) |
Reproduced!
|
Found an additional bug, we're not running the GC when under the threshold of 5. |
pyricau
added a commit
that referenced
this issue
Jul 3, 2019
* Bugfix: when tapping the "dump heap" notification, if the GC found no retained instance we didn't use a distinct notification id to communicate that, and then soon after we'd dismiss the notification that let's the user know there is no retained instances on tap. * Bugfix: we weren't running the GC when checking for retained instances and the count was under the threshold * Change: we now update the notification and keep it around for 30 seconds when the count goes to 0 * Change: the "no retained instance" notification that shows on tap is identical and also auto dismisses after 30 seconds. * Change: we're checking for retained references (and running the GC) every 2 seconds instead of 5. Fixes #1427
pyricau
added a commit
that referenced
this issue
Jul 3, 2019
* Bugfix: when tapping the "dump heap" notification, if the GC found no retained instance we didn't use a distinct notification id to communicate that, and then soon after we'd dismiss the notification that let's the user know there is no retained instances on tap. * Bugfix: we weren't running the GC when checking for retained instances and the count was under the threshold * Change: we now update the notification and keep it around for 30 seconds when the count goes to 0 * Change: the "no retained instance" notification that shows on tap is identical and also auto dismisses after 30 seconds. * Change: we're checking for retained references (and running the GC) every 2 seconds instead of 5. Fixes #1427
pyricau
added a commit
that referenced
this issue
Jul 3, 2019
* Bugfix: when tapping the "dump heap" notification, if the GC found no retained instance we didn't use a distinct notification id to communicate that, and then soon after we'd dismiss the notification that let's the user know there is no retained instances on tap. * Bugfix: we weren't running the GC when checking for retained instances and the count was under the threshold * Change: we now update the notification and keep it around for 30 seconds when the count goes to 0 * Change: the "no retained instance" notification that shows on tap is identical and also auto dismisses after 30 seconds. * Change: we're checking for retained references (and running the GC) every 2 seconds instead of 5. Fixes #1427
pyricau
added a commit
that referenced
this issue
Jul 3, 2019
* Bugfix: when tapping the "dump heap" notification, if the GC found no retained instance we didn't use a distinct notification id to communicate that, and then soon after we'd dismiss the notification that let's the user know there is no retained instances on tap. * Bugfix: we weren't running the GC when checking for retained instances and the count was under the threshold * Change: we now update the notification and keep it around for 30 seconds when the count goes to 0 * Change: the "no retained instance" notification that shows on tap is identical and also auto dismisses after 30 seconds. * Change: we're checking for retained references (and running the GC) every 2 seconds instead of 5. Fixes #1427
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Combination of issues there:
The text was updated successfully, but these errors were encountered: