Skip to content
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

Dumping memory, app will freeze. Brrrr. warning stuck on screen #1069

Closed
ghost opened this issue Jul 26, 2018 · 5 comments
Closed

Dumping memory, app will freeze. Brrrr. warning stuck on screen #1069

ghost opened this issue Jul 26, 2018 · 5 comments

Comments

@ghost
Copy link

ghost commented Jul 26, 2018

having this issue with version 1.6.1

it pushes me to kill the app to disappear

@pyricau
Copy link
Member

pyricau commented Jul 26, 2018

  • Do you see an Android notification as well?
  • If yes, what does the notification show, what's the text on it?
  • Could you include a screenshot?
  • What Android device are you using?
  • Does this happen all the time, on all devices?

@ghost
Copy link
Author

ghost commented Jul 27, 2018

  • yes
  • it changes(dumping memory - analyzing memory)
  • LG Nexus 5(6.0.1)
  • I have tried with general mobile 8 OS(no issue)
    screenshot_20180727-112509

@pyricau
Copy link
Member

pyricau commented Aug 5, 2018

Thank you!

Does the large warning toast stays on the screen when the notification changes from dumping memory to analyzing memory? If yes, if there any other notification that shows "Dumping memory"?

This toast is supposed to show when dumping memory, but not otherwise, so I'm trying to figure out if this is working as intended.

Side note: we could slightly change to only show if an activity is resumed when we dump memory.

pyricau added a commit that referenced this issue Aug 5, 2018
- We now have a notification for all the stages of leak detection, including heap dumping
- Using proper Android toasts crashes in recent Android versions (#844)
- Custom Toast display doesn't work on recent Android versions (#1062)
- The toast was also annoying if the app isn't in the foreground (#1069)
- Waiting for the toast to display was done by waiting for main thread idle which added an unnecessary delay.

Fixes #1062
Fixes #1069
@pyricau pyricau closed this as completed Oct 16, 2018
@avinabaray
Copy link

debugImplementation 'com.squareup.leakcanary:leakcanary-android:2.0-beta-3'

I'm using the above version, but as it detects the leak, the following things occur:

  1. A notification comes:

1 retained objects, tap to dump heap
App visible, waiting until 5 retained objects

  1. I tap on that notification
  2. "Leak Canary is Dumping the heap" Toast appears.
  3. Notification "Dumping Heap" remains forever and tapping it doesn't do anything.

@pyricau
Copy link
Member

pyricau commented Oct 28, 2019

@avinabaray can you file a new issue and provide a sample project to reproduce?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants