-
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
IndexOutOfBoundsException #1135
Comments
Thanks! |
You're welcome |
Looking at the code: https://github.com/square/leakcanary/blob/v1.6.2/leakcanary-android/src/main/java/com/squareup/leakcanary/internal/DisplayLeakAdapter.java#L219 Sounds like LeakTrace.expectedReachability has as many nodes as the leak trace does. Sounds like the leaktrace had only one element here, and I didn't anticipate that edge case. |
Oh, it's great that you already found the bug. Thanks. |
I'm using the latest version of LeakCanary which is 1.6.2.
I was testing my app for memory leaks and found some when changing activities. I can see the leaks when the dump has been completed. Then, when I return to my MainActivity, I get another bug. After the dump has been compeleted, I tap top the notification and LeakCanary crashed. The error log is below.
The text was updated successfully, but these errors were encountered: