Question / Help Possible MacOS Memory Leak when using VLC as Source

tyl0rz

New Member
Hello all -- long time lurker and first-time poster!

I use OBS to stream music videos from bands to A&R people at record labels, so the VLC integration has always worked flawlessly for me -- until recently.

I'm not sure what has changed, but now my OBS seems to sprout a memory leak every time I activate a scene with VLC set as a source. If I'm using a scene that's just showing our webcams, it works great (as it always has), but as soon as I switch to a scene involving VLC (for viewing the music videos) I'm hit with what seems like a memory leak that continues until I close out of OBS. After enough time has passed, I'm hit with the attached error message: "Your system has run out of application memory."

When I use the MacOS Activity Monitor I was able to confirm that the leak only begins once I've activated a scene with VLC player. All other scenes are working normally and my memory normally hovers around 220mb. Once engaging a VLC scene, it shoots to around 35gb at a rate of about 1gb per 5 seconds before my OS notifies me with that error message.

I'm not using any filters or plugins, and this happens whether or not I'm streaming or recording. If I open OBS after a fresh restart, click to a scene with VLC player on it, my memory skyrockets until I close OBS. If I switch to another scene without VLC player, it still continues to skyrocket until it crashes.

I've tried asking friends and searching the forums but haven't seen anything like this. Any advice on what I could try would be GREATLY appreciated as nothing works quite as well for me as OBS does!
 

Attachments

  • Screen Shot 2019-02-05 at 3.20.19 PM.png
    Screen Shot 2019-02-05 at 3.20.19 PM.png
    158.3 KB · Views: 62

tyl0rz

New Member
Sorry about that -- here's the log file.

All I did was open OBS (which was already on a scene with VLC, so a video began auto-playing, and stood there and watched as the memory went up and up. No streaming or recording -- just playing a single video file that's about 200mb in size.

Despite the log reporting no memory leaks, you can see from the attached screenshots that the memory usage climbs very, very rapidly. Each screenshot was taken about 20 seconds apart but the memory would climb GBs at a time!

Everything else seems to work just fine, so if I can prevent the memory from climbing out of control then OBS will once again be usable since it won't cause my iMac to BSOD!

Thanks again -- any help is very appreciated! :)
 

Attachments

  • Screen Shot 2019-02-08 at 1.49.30 PM.png
    Screen Shot 2019-02-08 at 1.49.30 PM.png
    652.9 KB · Views: 46
  • Screen Shot 2019-02-08 at 1.49.46 PM.png
    Screen Shot 2019-02-08 at 1.49.46 PM.png
    656.5 KB · Views: 48
  • Screen Shot 2019-02-08 at 1.50.21 PM.png
    Screen Shot 2019-02-08 at 1.50.21 PM.png
    653.1 KB · Views: 43

Narcogen

Active Member
Need a log from a session where the problem occurs-- there are no streams and no memory leaks in the log.

What version of VLC do you have installed?
 

vr_driver

New Member
Yes, I've had exactly the same thing happen today as well. I just wrote about it here:
 
Top