albemala/native_video_player

Memory leaks crashes app if loading video from gallery

Opened this issue · 1 comments

Hello @albemala,
we tried your plugin and discovered an issue that causes app to crash due to OOM. This is reproducible by loading video from device gallery. Unlike, the short ones loaded from resources, device gallery's videos are saved at full resolution and they crash plugin if more 2 videos are loaded in a row.

// heap gets to over 512MB at some point
Clamp target GC heap from 522MB to 512MB

Can you have a look at it? It should be related to dispose not freeing up resources. It occurs on both android and iOS.

any updates on this?