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

GC Issue #368

Open
chosw1029 opened this issue Jun 18, 2021 · 1 comment
Open

GC Issue #368

chosw1029 opened this issue Jun 18, 2021 · 1 comment

Comments

@chosw1029
Copy link

Expected Behavior

Open Image Picker View

Actual Behavior

Not crushed but MainActivity(FragmentActivity) and Fragment was destroyed.

Steps to Reproduce the Problem

  1. open image picker using launcher.launch in fragment
  2. go to download folder and select image ( download folder has many gif images : <= 27 MB )
  3. repeat step 1 and 2
  4. Not crushed but MainActivity and Fragment was destroyed and recreated.
  5. As 4 step. Fragment ViewModel was recreated and selected data saved in ViewModel was cleared.

Log cat

  1. Waiting for a blocking GC Alloc
  2. Background young concurrent copying GC freed 78625(3271KB) AllocSpace objects, 74(30MB) LOS objects, 0% free, 156MB/156MB, paused 2.560ms total 286.331ms
  3. WaitForGcToComplete blocked Alloc on ProfileSaver for 50.512ms
  4. Starting a blocking GC Alloc
  5. 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
@chihung93
Copy link
Contributor

I have fixed @chosw1029 : #419

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

No branches or pull requests

3 participants