android-image-picker
android-image-picker copied to clipboard
GC Issue
Expected Behavior
Open Image Picker View
Actual Behavior
Not crushed but MainActivity(FragmentActivity) and Fragment was destroyed.
Steps to Reproduce the Problem
- open image picker using launcher.launch in fragment
- go to download folder and select image ( download folder has many gif images : <= 27 MB )
- repeat step 1 and 2
- Not crushed but MainActivity and Fragment was destroyed and recreated.
- As 4 step. Fragment ViewModel was recreated and selected data saved in ViewModel was cleared.
Log cat
- Waiting for a blocking GC Alloc
- Background young concurrent copying GC freed 78625(3271KB) AllocSpace objects, 74(30MB) LOS objects, 0% free, 156MB/156MB, paused 2.560ms total 286.331ms
- WaitForGcToComplete blocked Alloc on ProfileSaver for 50.512ms
- Starting a blocking GC Alloc
- MainActivity and Fragment was destroyed and recreated.
- If using default image folder ( not download folder, this folder has 2 images <= 1 MB ) that worked perfect so I think it is memory issue.
Specifications
- Image Picker Version: 3.0.0-beta01
- Android OS: 30 Android 11.0
- Phone: Galaxy Note 9
I have fixed @chosw1029 : https://github.com/esafirm/android-image-picker/pull/419