.MKV Memory Leak

Microsoft Windows specific usage questions
Forum rules
Please post only Windows specific questions in this forum category. If you don't know where to post, please read the different forums' rules. Thanks.
Ahku
Blank Cone
Blank Cone
Posts: 15
Joined: 14 Jun 2009 05:04

.MKV Memory Leak

Postby Ahku » 14 Jun 2009 05:09

Hea all, ive been experiencing problems when im playing .mkv files with VLC. The movie start's out perfectly, but about 30 minutes in, video becomes very choppy and sound cuts in and out. When i go to the task manager, it says my memory usage is 100%. it says vlc is using less than 100mb of memory though, which must be wrong since vlc is the only program that causes this.

Any idea what's going on?

VLC_help
Mega Cone Master
Mega Cone Master
Posts: 25661
Joined: 13 Sep 2006 14:16

Re: .MKV Memory Leak

Postby VLC_help » 14 Jun 2009 14:48

There is a tool called Process Explorer that should give you more info about the process that is eating all available memory.

Ahku
Blank Cone
Blank Cone
Posts: 15
Joined: 14 Jun 2009 05:04

Re: .MKV Memory Leak

Postby Ahku » 14 Jun 2009 20:35

i downloaded the program, and it doesn't say that VLC is slowly eating ram, although the total usage is increasing by about 2MB per sec. the memory is quickly released after i kill VLC.

VLC_help
Mega Cone Master
Mega Cone Master
Posts: 25661
Joined: 13 Sep 2006 14:16

Re: .MKV Memory Leak

Postby VLC_help » 15 Jun 2009 17:17

Does it help, if you change audio and video output modules from VLC?

Ahku
Blank Cone
Blank Cone
Posts: 15
Joined: 14 Jun 2009 05:04

Re: .MKV Memory Leak

Postby Ahku » 17 Jun 2009 02:34

Nope, i get the same issue with every output module.

ForgedReality
New Cone
New Cone
Posts: 1
Joined: 17 Jun 2009 16:08

Re: .MKV Memory Leak

Postby ForgedReality » 17 Jun 2009 16:12

I don't experience slowdown, but with MKV files, I've noticed that if I pause the video, and go do something for a few minutes, it will completely freeze my system. It's a hard lock, and I have to press reset in order to regain control. No other media players or applications cause this in my system, and it doesn't seem to happen with other formats in VLC, just MKV. Pretty sure it's fine if I don't try pausing for more than a minute or so. Perhaps it's related to your issue...?

VLC_help
Mega Cone Master
Mega Cone Master
Posts: 25661
Joined: 13 Sep 2006 14:16

Re: .MKV Memory Leak

Postby VLC_help » 17 Jun 2009 17:08

ForgedReality: VLC cannot freeze or crash your system. Bad device drivers or broken hardware can.

Ahku: because VLC doesn't eat the memory, it must be device driver that eats it. Issue only exist with MKV files?

Sayan
New Cone
New Cone
Posts: 2
Joined: 17 Jun 2009 20:32

Re: .MKV Memory Leak

Postby Sayan » 17 Jun 2009 21:07

I have the same problem here (I'm using vlc 1.0.0rc3, vista SP2). For example, while playing a 28Mb .mkv file, vlc consumes memory at a rate of ~ 5MB/sec. So by the end of the video (which lasts 1:31 min), I end up with vlc consuming a total of 430MB of memory.

However I have experimented a bit and found out that, if I desactivate the subtitles, the memory leak stops immediatly (it keeps the memory amount it has consumed until then, but it does not grow any longer) and if I put the subtitles back again, the memory leak does not reappear.

I hope this was helpful :wink:. If not, I'm ready to give whatever info that would be helpful.

Edit : The leak actually comes back after puting the subtitles back, sorry for the mistake. However I have observed that the leaks grows significantly only when there are subtitles displaying on the screen.

The DJ
Cone Master
Cone Master
Posts: 5987
Joined: 22 Nov 2003 21:52
VLC version: git
Operating System: Mac OS X
Location: Enschede, Holland
Contact:

Re: .MKV Memory Leak

Postby The DJ » 17 Jun 2009 21:24

what kind of subtitles are these ?
Don't use PMs for support questions.

Sayan
New Cone
New Cone
Posts: 2
Joined: 17 Jun 2009 20:32

Re: .MKV Memory Leak

Postby Sayan » 17 Jun 2009 22:04

Codec : ssa
Description: Styled ASS (No Karaoke)

Hope this is what you want to know.

{Edit]: The leak is no longer present with 1.0.0 RC4. Thanks a lot :D.

Ahku
Blank Cone
Blank Cone
Posts: 15
Joined: 14 Jun 2009 05:04

Re: .MKV Memory Leak

Postby Ahku » 21 Jun 2009 05:41

i upgraded to rc4, and it played fine for 1 movie, but now it's leaking memory agian. ive tried every other output (None other than default worked), tried turning off subtitles, tried reinstalling it, but the leak is still there.

The strange thing is that when i add up all the memory being used in process explorer, it's far less than the actual usage.

VLC_help
Mega Cone Master
Mega Cone Master
Posts: 25661
Joined: 13 Sep 2006 14:16

Re: .MKV Memory Leak

Postby VLC_help » 21 Jun 2009 16:56

ive tried every other output (None other than default worked), tried turning off subtitles, tried reinstalling it, but the leak is still there.
Subtitles are always parsed. So only thing that really helps is either to remove subtitle .dlls from VLC or use MKVtoolnix and create new file without subtitles.

The DJ
Cone Master
Cone Master
Posts: 5987
Joined: 22 Nov 2003 21:52
VLC version: git
Operating System: Mac OS X
Location: Enschede, Holland
Contact:

Re: .MKV Memory Leak

Postby The DJ » 22 Jun 2009 14:53

This is not true. If subtitle tracks are disabled, they should not leak (at least not more than the original leak). I do agree that mkv leaks like a madman in general. The problem however is that to me it seems like these leaks are in libmatroska itself, and not inside VLC.
Don't use PMs for support questions.

Ahku
Blank Cone
Blank Cone
Posts: 15
Joined: 14 Jun 2009 05:04

Re: .MKV Memory Leak

Postby Ahku » 26 Jun 2009 03:14

So there is a leak with MKV? If it's confirmed and known about, that's all i can hope for.

VLC_help
Mega Cone Master
Mega Cone Master
Posts: 25661
Joined: 13 Sep 2006 14:16

Re: .MKV Memory Leak

Postby VLC_help » 27 Jun 2009 12:39

So there is a leak with MKV?
If they use ASS subtitles, yes.


Return to “VLC media player for Windows Troubleshooting”

Who is online

Users browsing this forum: No registered users and 82 guests