Question / Help Maybe a Bug. Out of memory error.

TheHartTech

New Member
When I try to use the below configuration, and my Elgato HD60 I get this error, and a one line crash file that reads: "Out of memory while trying to allocate 4147200 bytes"
(but only when streaming and recording simultaneously, which is important)

I am trying to stream at 720 while recording at 1080, and still record all 4 audio channels. (so I can’t use the advanced encoder)

2ztwreH.png


Am I just missing something for the configuration? Or is this similar to this issue https://obsproject.com/mantis/view.php?id=116

I have tried this solution as well: (ensuring updated java)
https://obsproject.com/forum/threads/crashing-issue.27599/

My only work around/solution is to switch encoder on the record tab to “(match stream)” which reverts recording back to 720, which is no Bueno. :(

This is an issue I was having a couple weeks ago, but it appears the log file is gone. I'll replicate and get a log file in a bit, but I wanted to post this while it was on my mind. Thanks in advance folks, love OBS MP, keep up the good work.

My Rig:

OBS MP 0.11.4

CPU AMD FX-8350 4.0GHz 8-Core Processor

Motherboard Asus Sabertooth 990FX R2.0 ATX AM3+ Motherboard

Memory Corsair Vengeance 16GB (2 x 8GB) DDR3-1866 Memory (As you can see plenty of ram)

Storage PNY Optima 240GB 2.5" Solid State Drive x3 Raid 5

Western Digital Caviar Blue 1TB 3.5" 7200RPM Internal Hard Drive x2 Raid 1 (Recording Destination Y:)

Video Card Asus Radeon R9 270X 4GB DirectCU II Video Card

OS Win 10
 
Why local record seperately if you're using the same CBR as your stream? If it's just about the audio you can set your stream to 1080p, and select "(Use stream encoder)" for your local recording. You can then still control which audio ends up on the local recording. Also I'd avoid "Enforce streaming service encoder settings" if I were you, I don't trust twitch enough to let it mess with my settings.

This also puts much MUCH less strain on your CPU so you can probably go down a few presets (fast or faster most likely). Also I'd recommend using .flv as a container, it's more crash-resistant than mp4. (Or mkv if you want to have multiple tracks without things breaking, I'm not sure if flv/mp4 support multiple tracks)
 

TheHartTech

New Member
@WilliamBarrows
The issue is that I want to record 1080, and stream 720 out to twitch simultaneously. I'll look at the other things you mentioned for sure. (Namely the enforce thing)

Flv does not support multiple audio tracks.
 
Buffering has nothing to do with resolution and everything to do with bitrate. The only reason to stream + record seperately is if you stream in a lower bitrate than you record. I'd recommend going down to 2000 for the stream, and turning off CBR for local recording for the best results. If you don't care about filesize, you can go up to ultrafast and use a CRF of 16 for your local recording. Will give huge files, but good quality without taking too much CPU from the stream.
 
I've taken another look at your log, and it seems that your machine has unreasonably low RAM for what you're trying to do... Are you sure you only have 2GB of RAM installed?
 
I have 16gb of ram installed, I don't know why OBS is only seeing 2.

I think we found the bug. Sadly it's not something I've any experience with, so we'll have to wait for someone who does.

The only thing I can think of would be a RAM disk. Do you happen to be using a RAM disk of 14GB size?
 
A RAM disk means a partition on your RAM. Basically telling your computer to use so and so many GB of your RAM as another harddisk. This used to be common for Minecraft back in the day, and I saw you having a "Minecraft" scene/profile in the log.
 

TheHartTech

New Member
I'm sure what will also help will be when Elgato pulls their head out (which seems soon with the release of the HD60 Pro) and releases a 64bit version of their drivers and software.
 
It often happens that 32-bit applications only get 2GB of memory to use. Windows keeps the other 2GB for itself. Some applications can push this to 3GB/1GB.
 
Top