albemala / native_video_player

A Flutter widget to play videos on iOS and Android using a native implementation.
MIT License
18 stars 12 forks source link

Memory leaks crashes app if loading video from gallery #17

Open iosephmagno opened 7 months ago

iosephmagno commented 7 months ago

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.

loushiano commented 3 months ago

any updates on this?