-
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
[2.0-alpha-1] SQLiteBlobTooBigException Row too big to fit into CursorWindow requiredPos=0, totalRows=1 #1293
Comments
Congratulations on filing the first LeakCanary 2 bug 😉🙏 This is a bit unexpected, I wonder what could possibly be too big. If would be super helpful if you could share the hprof file of the leak analysis so that I can reproduce. Depending on whether you have granted sdcard permission before the leak or not, it will in a leakcanary directory either be in your app directory or in /sdcard/Downloads |
Reproduced using #1305 to import the hprof, thanks! |
In the provided hprof, the sized of the serialized HeapAnalysisSuccess is 3559076 bytes (3.4Mib). Clearing the LeakTraceElement.references field brings it down to 18396 bytes. |
Based on https://github.com/aosp-mirror/platform_frameworks_base/blob/master/core/res/res/values/config.xml#L1937 it looks like the window page size is 2048Kib ie 2Mib. So if a row is larger than that, the window will be too small. |
Worth noting the max size hasn't changed since 2010 (here aosp-mirror/platform_frameworks_base@34ad57f). Since Android P, we can create windows with a custom max size. Doesn't seem reasonable to try to go above the 2Mib limit though, and I wanted to get rid of references anyway. |
Thx ! |
I'm getting this same error, this works fine on oreo and below but when I run the app on pie it crashes |
@jocelin09 are you using alpha 1 or alpha 2? This should have been fixed in alpha 2, let me know if not. Can you provide a hprof file that reproduces this? |
same here. works fine on oreo. But crashes on pie. |
@jagapathi111 See my reply right above: #1293 (comment)
|
@pyricau sorry to ping you for such an old topic, but could you tell me what the problem actually was please? I have the same problem in my app and it's really random and honestly quite hard to google. Which of the changes in the commits referenced above actually fixes this issue? If any? Or ist it just a case of consuming less RAM at that moment when the cursor window is opened? |
Using 2.0-alpha-1, when clicking on a leak notification :
Do yo need more informations ?
ps: the app crashed and I was able to open leak canary from the app drawer with some leaks reported.
The text was updated successfully, but these errors were encountered: