React-native-fast-image: Memory Leak on Android

Created on 2 Jan 2019  路  1Comment  路  Source: DylanVann/react-native-fast-image

react-native-fast-image version: 5.1.1
react-native version: 0.57.4

Steps to reproduce:

  1. Set source of image to the first one (can be any placeholder, ever static)
  2. Set source of image to another one (for example actual from web)
  3. close/open screen to drop and create image
  4. repeat several times

Actual result: app crash due to memory leak
Expected result: no memory leak.

The reason of memory leak is VIEWS_FOR_URLS map. At step 2 there is 2 refs to the same view for different sources. At onDropViewInstance only the last ref is cleared

>All comments

Hello, do you have any fixes for this?
I am also experiencing the same problem!

Thank you

Was this page helpful?
0 / 5 - 0 ratings

Related issues

Aligertor picture Aligertor  路  3Comments

Andarius picture Andarius  路  3Comments

Doko-Demo-Doa picture Doko-Demo-Doa  路  3Comments

OmarBasem picture OmarBasem  路  3Comments

StiffFy picture StiffFy  路  3Comments