mpv-osc-modern icon indicating copy to clipboard operation
mpv-osc-modern copied to clipboard

In specific cases cause memory leak

Open FinnRaze opened this issue 1 year ago • 6 comments

reproduce

  1. set script-opts-add=osc-visibility=always in mpv.conf and play music.
  2. set window minimized
  3. when playback changed from a music without cover art to one with cover art,click the window
  4. cover art would not show up and memory leak happens.Have to kill the program and unable to get a resultful log 屏幕截图 2023-04-19 143743

FinnRaze avatar Apr 24 '23 10:04 FinnRaze

will this happen with the built-in osc?

---- Replied Message ---- | From | @.> | | Date | 04/24/2023 18:53 | | To | @.> | | Cc | @.***> | | Subject | [maoiscat/mpv-osc-modern] In specific cases cause memory leak (Issue #44) |

reproduce

set script-opts-add=osc-visibility=always in mpv.conf and play music. set window minimized when playback changed from a music without cover art to one with cover art,click the window cover art would not show up and memory leak happens.Have to kill the program and unable to get a resultful log

— Reply to this email directly, view it on GitHub, or unsubscribe. You are receiving this because you are subscribed to this thread.Message ID: @.***>

maoiscat avatar Apr 24 '23 11:04 maoiscat

nope.

FinnRaze avatar Apr 24 '23 11:04 FinnRaze

seems something wrong with mpv itself

not sure though

---- Replied Message ---- | From | @.> | | Date | 04/24/2023 18:53 | | To | @.> | | Cc | @.***> | | Subject | [maoiscat/mpv-osc-modern] In specific cases cause memory leak (Issue #44) |

reproduce

set script-opts-add=osc-visibility=always in mpv.conf and play music. set window minimized when playback changed from a music without cover art to one with cover art,click the window cover art would not show up and memory leak happens.Have to kill the program and unable to get a resultful log

— Reply to this email directly, view it on GitHub, or unsubscribe. You are receiving this because you are subscribed to this thread.Message ID: @.***>

maoiscat avatar Apr 24 '23 14:04 maoiscat

some more clues: it may be concerned with window size. And if I disable the geometry options in mpv.conf, the problem doesn't show up.

part of log before the problem

[   9.162][v][vo/gpu/win32] reset window bounds: -31520:-31730:0:0
[   9.164][v][vo/gpu] Resize: 0x0
[   9.164][v][vo/gpu] Window size: 1x1 (Borders: l=0 t=0 r=0 b=0)
[   9.164][v][vo/gpu] Video source: 640x640 (72:72)
[   9.164][v][vo/gpu] Video display: (0, 0) 640x640 -> (0, 0) 1x1
[   9.164][v][vo/gpu] Video scale: 0.001563/0.001563

normal state

[  11.771][v][vo/gpu/win32] reset window bounds: -31840:-32080:640:640
[  11.771][v][vo/gpu/win32] adjusted window bounds: -31840:31:640:640
[  11.773][v][vo/gpu] Resize: 640x640
[  11.773][v][vo/gpu] Window size: 640x640 (Borders: l=0 t=0 r=0 b=0)
[  11.773][v][vo/gpu] Video source: 640x640 (72:72)
[  11.773][v][vo/gpu] Video display: (0, 0) 640x640 -> (0, 0) 640x640
[  11.773][v][vo/gpu] Video scale: 1.000000/1.000000

FinnRaze avatar May 25 '23 14:05 FinnRaze

https://github.com/maoiscat/mpv-osc-modern/assets/50119098/6f539214-8171-4b59-8d32-cffe833f5194

The RAM usage seems to increase when the OSC is visible and the video is being played.

zydezu avatar May 27 '23 16:05 zydezu

could be related to this though https://github.com/mpv-player/mpv/issues/9014

zydezu avatar May 27 '23 16:05 zydezu