Bug Report OBS crashes after using up all 10 gb of ram and causes PC to crash with it

prostreamer

New Member
My PC has been crashing regularily on archlinux shortly after obs using up all the ram. as you can see in the picture attached obs is using 10.5 gb of ram. all other apps are using ram in mb only(less than 1gb ram).
it is worth noting that I'm using the browser plugin qtwebkit provided by bazukas (third party) to display chat.
as you can see in the picture the obs was fully maximized (not minimized as some solutions suggest in the forum)when it happened.
Interestingly enough the last time it happened i didn't even start streaming yet. so the problem is happening with obs open with or without streaming on.

maybe limiting obs to 8gb ram may prevent pc from crashing at least but will still cause obs to crash.
I have 12 gb ram and no swap partition.

any ideas?

This is the log:

02:07:20 PM.237: Processor: 8 logical cores
02:07:20 PM.238: Processor: Intel(R) Core(TM) i7 CPU
920 @ 2.67GHz
02:07:20 PM.238: Physical Memory: 12010MB Total
02:07:20 PM.238: Kernel Version: Linux 4.8.12-3-ARCH
02:07:20 PM.238: Distribution: "Antergos Linux" Unknown
02:07:20 PM.268: Portable mode: false
02:07:20 PM.301: OBS 0.16.6-1 (linux)
02:07:20 PM.301: ---------------------------------
02:07:20 PM.301: ---------------------------------
02:07:20 PM.301: audio settings reset:
02:07:20 PM.301: samples per sec: 48000
02:07:20 PM.301: speakers: 2
02:07:20 PM.501: OpenGL version: 4.3 (Core Profile) Mesa 13.0.2
02:07:20 PM.501:
02:07:20 PM.578: ---------------------------------
02:07:20 PM.578: video settings reset:
02:07:20 PM.578: base resolution: 1920x1080
02:07:20 PM.578: output resolution: 1280x720
02:07:20 PM.578: downscale filter: Lanczos
02:07:20 PM.578: fps: 60/1
02:07:20 PM.578: format: NV12
02:07:20 PM.579: ---------------------------------
02:07:20 PM.625: No blackmagic support
02:07:20 PM.646: os_dlopen(libnvidia-encode.so.1->libnvidia-encode.so.1): libnvidia-encode.so.1: cannot open shared object file: No such file or directory
02:07:20 PM.646:
02:07:20 PM.650: os_dlopen(/usr//lib/obs-plugins/obs-libfdk.so->/usr//lib/obs-plugins/obs-libfdk.so): libfdk-aac.so.1: cannot open shared object file: No such file or directory
02:07:20 PM.650:
02:07:20 PM.650: Module '/usr//lib/obs-plugins/obs-libfdk.so' not found
02:07:20 PM.671: ---------------------------------
02:07:20 PM.671: Loaded Modules:
02:07:20 PM.671: qtwebkit-browser.so
02:07:20 PM.671: text-freetype2.so
02:07:20 PM.671: rtmp-services.so
02:07:20 PM.671: obs-x264.so
02:07:20 PM.671: obs-transitions.so
02:07:20 PM.671: obs-outputs.so
02:07:20 PM.671: obs-filters.so
02:07:20 PM.671: obs-ffmpeg.so
02:07:20 PM.671: linux-v4l2.so
02:07:20 PM.671: linux-pulseaudio.so
02:07:20 PM.671: linux-jack.so
02:07:20 PM.671: linux-decklink.so
02:07:20 PM.671: linux-capture.so
02:07:20 PM.671: linux-alsa.so
02:07:20 PM.671: image-source.so
02:07:20 PM.671: frontend-tools.so
02:07:20 PM.671: ==== Startup complete ===============================================
02:07:20 PM.680: All scene data cleared
02:07:20 PM.680: ------------------------------------------------
02:07:20 PM.693: pulse-input: Server name: 'pulseaudio 9.0'
02:07:20 PM.694: pulse-input: Audio format: s16le, 44100 Hz, 2 channels
02:07:20 PM.694: pulse-input: Started recording from 'alsa_output.pci-0000_02_00.1.hdmi-stereo.monitor'
02:07:20 PM.702: pulse-input: Server name: 'pulseaudio 9.0'
02:07:20 PM.702: pulse-input: An error occurred while getting the source info!
02:07:20 PM.712: Switched to scene 'Scene'
02:07:20 PM.712: ------------------------------------------------
02:07:20 PM.712: Loaded scenes:
02:07:20 PM.712: - scene 'Scene':
02:07:20 PM.712: - source: 'Window Capture (Xcomposite)' (xcomposite_input)
02:07:20 PM.712: - source: 'QtWebKit Browser' (qtwebkit-source)
02:07:20 PM.712: ------------------------------------------------
02:07:20 PM.951: Update check: last known remote version is 0.4.0
02:07:21 PM.215: adding 21 milliseconds of audio buffering, total audio buffering is now 21 milliseconds
02:07:23 PM.399: adding 21 milliseconds of audio buffering, total audio buffering is now 42 milliseconds
02:07:49 PM.913: adding 21 milliseconds of audio buffering, total audio buffering is now 64 milliseconds
02:08:25 PM.092: adding 21 milliseconds of audio buffering, total audio buffering is now 85 milliseconds
 

Attachments

  • unnamed.jpg
    unnamed.jpg
    343 KB · Views: 24

prostreamer

New Member
Thanks for the quick reply. indeed this does address the issue. However due to my limited knowledge I have no idea how to "Add xcb message poll to empty out the queue"

I have previously installed obs on archlinux using:
sudo pacman -S obs-studio

is there a file i can edit to add the necessary change, or do i need to uninstall obs then reinstall directly from github?
 

Fenrir

Forum Admin
That is just explaining what the issue is. If you want it fixed now, you'll need to compile OBS yourself from master on the github repo. Check the install directions relevant to your distro.
 

prostreamer

New Member
I uninstalled "obs-studio" using the "add/remove software" app built-in arch/antergos.
reinstalled obs using the following commands:

Code:
$ git clone https://aur.archlinux.org/obs-studio-git.git
$ cd obs-studio-git
$ makepkg -sri


after installation complete i checked "add/remove software" to see what obs version was installed and i found :
obs-studio-git 0.16.6.r29.g1865285-1

although the names are different "obs-studio-git" and "obs-studio" all settings and were saved from previous installation including the browser plugin i have previously installed.

I will leave the stream running for a few days and see if the ram problem persists.

this is a link to my stream:
www.youtube.com/channel/UCb1CbYiT7Sch39E5OmEGG9Q/live
www.twitch.tv/openarenalive


https://i.imgur.com/moej906.jpg
moej906.jpg
 

charja13

New Member
okay so i just built from scratch to test, i was looking around and found several other bugs same exact thing. After building i found the issue was solved somewhere in the commit history.

after building i monitored the memory usage and it was consuming a constant 52mb on idle after opening settings, on last version it started at 82 and went up

basically you have to either build yourself to get rid of the bug or wait for the next update

09:09:04 PM.477: Processor: 4 logical cores
09:09:04 PM.478: Processor: Intel(R) Core(TM) i5-4200M CPU @ 2.50GHz
09:09:04 PM.478: Physical Memory: 7879MB Total
09:09:04 PM.478: Kernel Version: Linux 4.8.0-47-generic
09:09:04 PM.478: Distribution: "Ubuntu" "16.10"
09:09:04 PM.478: Portable mode: false
09:09:04 PM.503: OBS 18.0.1-51-g41731bb (linux)
 

Fenrir

Forum Admin
No, it doesn't. This bug is specific to Linux only, and does not affect windows in any way. Your issue is not related. Please create a new thread in the appropriate section and provide the full details of what is going on, with a log file from OBS.
 
Top