Mem Leaks on raspberry pi bullseye 64bit lite with audio visuals and photo play
Hello,
I am using vlc (3.0.18121) on raspberry pi 4 "64bit bullseye Lite" in python and have some big memory leaks 10-20MB per music mp3 file with visuals and photo jpg playing. On 32bit I never saw relevant mem leaks with same code ( but there with mmal not drm )
Code below with comments to mem leak size:
if type == 0: #voice
vlc_instance = vlc.Instance("") # 1 MB temp men leak - seems to be freed sometimes
elif type == 1: #music
vlc_instance = vlc.Instance("--vout=drm_vout --fullscreen --audio-visual visualizer --effect-list spectrum") # ~17 MB mem leak also with --audio-visual visual and other effects
elif type == 2: #video
vlc_instance = vlc.Instance("--vout=drm_vout --fullscreen --no-video-title-show") # 1-2 MB temp men leak - seems to be freed sometimes
elif type == 3: #foto
if lnfiles > 1:
vlc_instance = vlc.Instance("--vout=drm_vout --fullscreen --no-video-title-show") # ~10 MB mem leak per image
else:
vlc_instance = vlc.Instance("--vout=drm_vout --fullscreen --no-video-title-show --input-repeat=2") # ~ 20 MB mem leak per image
player = vlc_instance.media_player_new()
media = vlc_instance.media_new(rdfile)
player.set_media(media)
media.release()
print(f"Play thread {rdfile}")
player.play()
while player.get_state() != vlc.State.Ended:
time.sleep(0.05)
if self.stopnow == True:
print("Stop now")
break
time.sleep(0.05)
player.stop()
time.sleep(0.05)
player.release()
vlc_instance.release()