butter-ios icon indicating copy to clipboard operation
butter-ios copied to clipboard

Streamer eats memory and crashes.

Open OstlerDev opened this issue 9 years ago • 5 comments

The current way of checking if the file is valid using VLC eats up too much memory.

OstlerDev avatar Oct 31 '15 03:10 OstlerDev

What code is this related to?

thepearldream avatar Sep 15 '16 03:09 thepearldream

https://github.com/butterproject/butter-ios

xaiki avatar Sep 16 '16 21:09 xaiki

@xaiki I am still troubleshooting but so far I see big spikes in memory as the player goes through the video. The spikes coincide with high detailed scenes of the video. There is also no problem with audio files. I am working on isolating if the issue is part of ButterTorrentStreamer.mm code or whether it is with MobileVLCKit.

thepearldream avatar Sep 18 '16 20:09 thepearldream

@thepearldream thanks for looking into it, this code is widly unmaintained, so any update is welcomed !

xaiki avatar Sep 19 '16 21:09 xaiki

required_pieces vector uses up a lot of memory so the alert loop should only run during buffering/loading and then it should be stopped. I plan to submit an update once I clean up my code. See the gist below if someone is blocked by this issue before I submit my update: https://gist.github.com/thepearldream/47c359a25466055a164729db59084609

thepearldream avatar Oct 01 '16 15:10 thepearldream