You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
A user in termusic had reported a file which does not play and causes a massive memory leak.
After some investigation via heaptrack, the cause seems to be symphonia.
The method that causes massive Vec allocations (see screenshot for more):
527.7MB (98.8%) contribution to peak consumption in symphonia_metadata::id3v2::frames::read_text_frame::h64ac129897fc45b7 in termusic-server and below.
Screenshot as i cannot seem to copy a trace:
Note that lofty fails to read the metadata of the file with:
Text decoding: UTF-16 string has an odd length
This can be reproduced with symphonia-play too.
symphonia (& symphonia-metadata) 0.5.4 & current master (ef9bbd8)
rustc 1.86.0
It does not happen in current dev-0.6 branch (c7efbcb)
The text was updated successfully, but these errors were encountered:
I did a quick git bisect git bisect start --term-new=fixed --term-old=unfixed and this is the first good commit in dev-0.6:
31f3ffa586f5262d79ee8d6d7c6a34346a03bee5 is the first fixed commit
commit 31f3ffa586f5262d79ee8d6d7c6a34346a03bee5 (HEAD)
Author: Serghei Scobici <[email protected]>
Date: Sat Jan 18 22:27:05 2025 +0200
core (io): Advance reader's position if scan pattern is not found (#344).
symphonia-core/src/io/buf_reader.rs | 13 +++++++------
A user in termusic had reported a file which does not play and causes a massive memory leak.
After some investigation via heaptrack, the cause seems to be symphonia.
The method that causes massive
Vec
allocations (see screenshot for more):Screenshot as i cannot seem to copy a trace:
Note that
lofty
fails to read the metadata of the file with:This can be reproduced with
symphonia-play
too.symphonia (&
symphonia-metadata
) 0.5.4 & current master (ef9bbd8)rustc 1.86.0
It does not happen in current
dev-0.6
branch (c7efbcb)The text was updated successfully, but these errors were encountered: