Hi,
I use valgrind, and play around 20 seconds
[...]
==218654== 8,839 (6,656 direct, 2,183 indirect) bytes in 26 blocks are definitely lost in loss record 3,159 of 3,168
==218654== at 0x4B34818: malloc (vg_replace_malloc.c:446)
==218654== by 0xAB50AF0: ??? (in /usr/lib/x86_64-linux-gnu/libfontconfig.so.1.16.1)
==218654== by 0xAB51448: ??? (in /usr/lib/x86_64-linux-gnu/libfontconfig.so.1.16.1)
==218654== by 0xAB52F4F: ??? (in /usr/lib/x86_64-linux-gnu/libfontconfig.so.1.16.1)
==218654== by 0xAB5C233: ??? (in /usr/lib/x86_64-linux-gnu/libfontconfig.so.1.16.1)
==218654== by 0x12864067: ??? (in /usr/lib/x86_64-linux-gnu/libexpat.so.1.11.2)
==218654== by 0x12864E8C: ??? (in /usr/lib/x86_64-linux-gnu/libexpat.so.1.11.2)
==218654== by 0x12865072: ??? (in /usr/lib/x86_64-linux-gnu/libexpat.so.1.11.2)
==218654== by 0x1286753A: ??? (in /usr/lib/x86_64-linux-gnu/libexpat.so.1.11.2)
==218654== by 0x1285975E: ??? (in /usr/lib/x86_64-linux-gnu/libexpat.so.1.11.2)
==218654== by 0x1285EE60: XML_ParseBuffer (in /usr/lib/x86_64-linux-gnu/libexpat.so.1.11.2)
==218654== by 0xAB58D41: ??? (in /usr/lib/x86_64-linux-gnu/libfontconfig.so.1.16.1)
==218654== by 0xAB59560: ??? (in /usr/lib/x86_64-linux-gnu/libfontconfig.so.1.16.1)
==218654== by 0xAB595D2: ??? (in /usr/lib/x86_64-linux-gnu/libfontconfig.so.1.16.1)
==218654== by 0xAB5A20C: ??? (in /usr/lib/x86_64-linux-gnu/libfontconfig.so.1.16.1)
==218654== by 0x12864067: ??? (in /usr/lib/x86_64-linux-gnu/libexpat.so.1.11.2)
==218654== by 0x12864E8C: ??? (in /usr/lib/x86_64-linux-gnu/libexpat.so.1.11.2)
==218654== by 0x12865072: ??? (in /usr/lib/x86_64-linux-gnu/libexpat.so.1.11.2)
==218654== by 0x1286753A: ??? (in /usr/lib/x86_64-linux-gnu/libexpat.so.1.11.2)
==218654== by 0x1285975E: ??? (in /usr/lib/x86_64-linux-gnu/libexpat.so.1.11.2)
==218654== by 0x1285EE60: XML_ParseBuffer (in /usr/lib/x86_64-linux-gnu/libexpat.so.1.11.2)
==218654== by 0xAB58D41: ??? (in /usr/lib/x86_64-linux-gnu/libfontconfig.so.1.16.1)
==218654== by 0xAB59560: ??? (in /usr/lib/x86_64-linux-gnu/libfontconfig.so.1.16.1)
==218654== by 0xAB484C6: ??? (in /usr/lib/x86_64-linux-gnu/libfontconfig.so.1.16.1)
==218654== by 0xAB4879B: FcInitLoadConfigAndFonts (in /usr/lib/x86_64-linux-gnu/libfontconfig.so.1.16.1)
==218654== by 0xAB37746: ??? (in /usr/lib/x86_64-linux-gnu/libfontconfig.so.1.16.1)
==218654== by 0xAB40357: FcConfigSetDefaultSubstitute (in /usr/lib/x86_64-linux-gnu/libfontconfig.so.1.16.1)
==218654== by 0x4BB208C: ??? (in /usr/lib/x86_64-linux-gnu/libass.so.9.4.1)
==218654== by 0x4BB235D: ??? (in /usr/lib/x86_64-linux-gnu/libass.so.9.4.1)
==218654== by 0x4B8B991: ??? (in /usr/lib/x86_64-linux-gnu/libass.so.9.4.1)
==218654== by 0x4BA2373: ass_set_fonts (in /usr/lib/x86_64-linux-gnu/libass.so.9.4.1)
==218654== by 0x41027BF: ??? (in /usr/bin/mpv)
==218654== by 0x410A49D: ??? (in /usr/bin/mpv)
==218654== by 0x410ADD4: ??? (in /usr/bin/mpv)
==218654== by 0x40D4A25: ??? (in /usr/bin/mpv)
==218654== by 0x40E4BC9: ??? (in /usr/bin/mpv)
==218654== by 0x40CFA2A: ??? (in /usr/bin/mpv)
==218654== by 0x40D1BC1: mpv_command_node (in /usr/bin/mpv)
==218654== by 0x416626B: ??? (in /usr/bin/mpv)
==218654== by 0x9EE2E1C: ??? (in /usr/lib/x86_64-linux-gnu/liblua5.2.so.0.0.0)
==218654== by 0x9EE31E5: ??? (in /usr/lib/x86_64-linux-gnu/liblua5.2.so.0.0.0)
==218654== by 0x9EE25F3: ??? (in /usr/lib/x86_64-linux-gnu/liblua5.2.so.0.0.0)
==218654== by 0x9EE3472: ??? (in /usr/lib/x86_64-linux-gnu/liblua5.2.so.0.0.0)
==218654== by 0x9EDE8D5: lua_pcallk (in /usr/lib/x86_64-linux-gnu/liblua5.2.so.0.0.0)
==218654== by 0x41649C4: ??? (in /usr/bin/mpv)
==218654== by 0x9EE2E1C: ??? (in /usr/lib/x86_64-linux-gnu/liblua5.2.so.0.0.0)
==218654== by 0x9EEFA64: ??? (in /usr/lib/x86_64-linux-gnu/liblua5.2.so.0.0.0)
==218654== by 0x9EE321F: ??? (in /usr/lib/x86_64-linux-gnu/liblua5.2.so.0.0.0)
==218654== by 0x9EDE80B: lua_callk (in /usr/lib/x86_64-linux-gnu/liblua5.2.so.0.0.0)
==218654== by 0x4165053: ??? (in /usr/bin/mpv)
[...]
==218654== LEAK SUMMARY:
==218654== definitely lost: 6,656 bytes in 26 blocks
==218654== indirectly lost: 2,183 bytes in 102 blocks
==218654== possibly lost: 0 bytes in 0 blocks
==218654== still reachable: 639,265 bytes in 12,452 blocks
==218654== suppressed: 0 bytes in 0 blocks
==218654==
==218654== ERROR SUMMARY: 1 errors from 1 contexts (suppressed: 0 from 0)
# apt install mpv-dbgsym liblua5.2-0-dbgsym libass9-dbgsym libfontconfig1-dbgsym libexpat1-dbgsym
[...]
==222346== 8,839 (6,656 direct, 2,183 indirect) bytes in 26 blocks are definitely lost in loss record 3,159 of 3,168
==222346== at 0x4B34818: malloc (vg_replace_malloc.c:446)
==222346== by 0xAB50AF0: FcPatternObjectInsertElt (fcpat.c:506)
==222346== by 0xAB51448: FcPatternObjectAddWithBinding (fcpat.c:680)
==222346== by 0xAB52F4F: FcPatternAppend (fcpat.c:1223)
==222346== by 0xAB5C233: FcParsePattern (fcxml.c:2786)
==222346== by 0xAB5C233: FcEndElement (fcxml.c:2909)
==222346== by 0x12864067: doContent (xmlparse.c:3623)
==222346== by 0x12864E8C: contentProcessor (xmlparse.c:3179)
==222346== by 0x12865072: doProlog (xmlparse.c:5486)
==222346== by 0x1286753A: prologProcessor (xmlparse.c:5189)
==222346== by 0x1285975E: callProcessor.constprop.0 (xmlparse.c:1293)
==222346== by 0x1285EE60: XML_ParseBuffer (xmlparse.c:2494)
==222346== by 0xAB58D41: FcConfigParseAndLoadFromMemoryInternal (fcxml.c:3209)
==222346== by 0xAB59560: _FcConfigParse (fcxml.c:3333)
==222346== by 0xAB595D2: FcConfigParseAndLoadDir (fcxml.c:3115)
==222346== by 0xAB595D2: _FcConfigParse (fcxml.c:3294)
==222346== by 0xAB5A20C: FcParseInclude (fcxml.c:2373)
==222346== by 0xAB5A20C: FcEndElement (fcxml.c:2831)
==222346== by 0x12864067: doContent (xmlparse.c:3623)
==222346== by 0x12864E8C: contentProcessor (xmlparse.c:3179)
==222346== by 0x12865072: doProlog (xmlparse.c:5486)
==222346== by 0x1286753A: prologProcessor (xmlparse.c:5189)
==222346== by 0x1285975E: callProcessor.constprop.0 (xmlparse.c:1293)
==222346== by 0x1285EE60: XML_ParseBuffer (xmlparse.c:2494)
==222346== by 0xAB58D41: FcConfigParseAndLoadFromMemoryInternal (fcxml.c:3209)
==222346== by 0xAB59560: _FcConfigParse (fcxml.c:3333)
==222346== by 0xAB484C6: FcInitLoadOwnConfig (fcinit.c:111)
==222346== by 0xAB4879B: FcInitLoadOwnConfigAndFonts (fcinit.c:185)
==222346== by 0xAB4879B: FcInitLoadConfigAndFonts (fcinit.c:198)
==222346== by 0xAB37746: IA__FcConfigReference.part.0 (fccfg.c:341)
==222346== by 0xAB40357: FcConfigSetDefaultSubstitute (fcdefault.c:297)
==222346== by 0x4BB208C: scan_fonts (ass_fontconfig.c:103)
==222346== by 0x4BB235D: ass_fontconfig_add_provider (ass_fontconfig.c:391)
==222346== by 0x4B8B991: ass_fontselect_init (ass_fontselect.c:1103)
==222346== by 0x4BA2373: ass_set_fonts (ass_render_api.c:165)
==222346== by 0x41027BF: mp_ass_configure_fonts (ass_mp.c:101)
==222346== by 0x410A49D: create_ass_renderer (osd_libass.c:58)
==222346== by 0x410A49D: create_ass_track (osd_libass.c:119)
==222346== by 0x410ADD4: update_external (osd_libass.c:533)
==222346== by 0x410ADD4: osd_set_external (osd_libass.c:613)
==222346== by 0x40D4A25: cmd_osd_overlay (command.c:5237)
==222346== by 0x40E4BC9: run_command (command.c:5598)
==222346== by 0x40CFA2A: run_client_command (client.c:1134)
==222346== by 0x40D1BC1: mpv_command_node (client.c:1152)
==222346== by 0x416626B: script_command_native (lua.c:989)
==222346== by 0x9EE2E1C: luaD_precall (ldo.c:319)
==222346== by 0x9EE31E5: luaD_call (ldo.c:401)
==222346== by 0x9EE25F3: luaD_rawrunprotected (ldo.c:131)
==222346== by 0x9EE3472: luaD_pcall (ldo.c:603)
==222346== by 0x9EDE8D5: lua_pcallk (lapi.c:949)
==222346== by 0x41649C4: script_autofree_trampoline (lua.c:1300)
==222346== by 0x9EE2E1C: luaD_precall (ldo.c:319)
==222346== by 0x9EEFA64: luaV_execute (lvm.c:723)
==222346== by 0x9EE321F: luaD_call (ldo.c:402)
==222346== by 0x9EDE80B: lua_callk (lapi.c:905)
==222346== by 0x4165053: load_scripts (lua.c:340)
[...]
==222346== LEAK SUMMARY:
==222346== definitely lost: 6,656 bytes in 26 blocks
==222346== indirectly lost: 2,183 bytes in 102 blocks
==222346== possibly lost: 0 bytes in 0 blocks
==222346== still reachable: 639,225 bytes in 12,452 blocks
==222346== suppressed: 0 bytes in 0 blocks
==222346==
==222346== ERROR SUMMARY: 1 errors from 1 contexts (suppressed: 0 from 0)
Ciao
Davide