Closed yaturner closed 7 years ago
Seems like you lost a lot of memory somewhere. The picker is an extremely low-memory component, only using what you give it. Can you analyze your heap and check RAM usage to see what ate your memory?
For example:
https://developer.android.com/studio/profile/investigate-ram.html https://developer.android.com/studio/profile/am-hprof.html
You should be able to detect which objects caused your drain, and fix accordingly.
Alternatively, you can try setting the large heap
attribute in your AndroidManifest.
Link: http://stackoverflow.com/a/11275719/2102748
Hi @yaturner
I'm also using the library and I'm not getting that error. As @milosmns said, it looks like you are leaking memory somewhere.
I can see you are working with squareup.picasso, maybe you are caching images somewhere and that could be the problem. Just a hint ;)
thank you, I will check my memory usage
Sure, report back when you have more info. ^^
I am using a memory cache for my bitmaps, I will try reducing the amount of memory I allocate to it
Yep, it's most likely your memory cache, or large bitmaps. Nothing we can workaround from our side.
So is this a real issue then?
here is the relevant portion of my XML <LinearLayout android:layout_width="match_parent" android:layout_height="wrap_content" android:orientation="horizontal" android:layout_marginTop="5.5dp" android:weightSum="2">
here is my build.gradle
android { compileSdkVersion 23 buildToolsVersion "24.0.1"
}
dependencies { compile fileTree(include: ['*.jar'], dir: 'libs') testCompile 'junit:junit:4.12' compile 'com.android.support:appcompat-v7:23.4.0' compile 'com.android.support:design:23.2.0' compile 'com.squareup.picasso:picasso:2.5.2' compile 'com.google.android.gms:play-services-base:9.8.0+' compile 'com.google.android.gms:play-services-location:9.8.0+' compile 'com.google.android.gms:play-services-maps:9.8.0+' compile 'com.koushikdutta.ion:ion:2.1.9' compile 'se.emilsjolander:stickylistheaders:2.7.0' compile 'com.github.barteksc:android-pdf-viewer:2.4.0' compile 'com.github.delight-im:Android-SimpleLocation:v1.0.1' compile 'com.github.arimorty:floatingsearchview:2.0.3' compile 'me.angrybyte.picker:picker:1.2.0' }
can you help me? I am using your software in an aar generated from the github source thank you