butter-ios
butter-ios copied to clipboard
Streamer eats memory and crashes.
The current way of checking if the file is valid using VLC eats up too much memory.
What code is this related to?
https://github.com/butterproject/butter-ios
@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 thanks for looking into it, this code is widly unmaintained, so any update is welcomed !
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