Bug Report Possible Memory Leak

Adam Barrett

New Member
Update: found more data, and posted an official bug.

I am rather new to OBS, so I apologize if this is a known issue and I just didn't find it while looking around the forum.

I have compiled the latest code base (from master branch) because of a bug in 0.14.2.

When I run OBS it seems to be fine, and doesn't start gobbling up memory. Then about a minute into a stream/recording it starts going nuts and eating memory. At first I thought it was triggered by adding too many screens, or cameras. I just ran a test where I added 1 screen, and then 1 camera, and it happened.

I have attached the log (which to the untrained eye [mine] looks clean), and the profiler_data.

Fedora 23 (all updates)
Gnome 3.18.5

CPU: Intel(R) Core(TM) i5-4200M CPU @ 2.50GHz
Memory: 16GB (10GB free at start of recording)

Happy to provide any more information you need.
 

Attachments

  • 2016-06-12 22-36-45.txt
    20.7 KB · Views: 18
  • 2016-06-12 22-36-45.csv.zip
    152.3 KB · Views: 17
Last edited:

Adam Barrett

New Member
Unsure how it is related, but when I run obs this process goes nuts in CPU and Memory (I suspect it is related to the problem).

/usr/libexec/Xorg vt2 -displayfd 3 -auth /run/user/1000/gdm/Xauthority -nolisten tcp -background none -noreset -keeptty -verbose 3

This is running before and after I stop OBS, but when OBS is running, this goes nuts.
 

Adam Barrett

New Member
$ lspci
00:00.0 Host bridge: Intel Corporation Xeon E3-1200 v3/4th Gen Core Processor DRAM Controller (rev 06)
00:02.0 VGA compatible controller: Intel Corporation 4th Gen Core Processor Integrated Graphics Controller (rev 06)
00:03.0 Audio device: Intel Corporation Xeon E3-1200 v3/4th Gen Core Processor HD Audio Controller (rev 06)
00:14.0 USB controller: Intel Corporation 8 Series/C220 Series Chipset Family USB xHCI (rev 04)
00:16.0 Communication controller: Intel Corporation 8 Series/C220 Series Chipset Family MEI Controller #1 (rev 04)
00:19.0 Ethernet controller: Intel Corporation Ethernet Connection I217-LM (rev 04)
00:1b.0 Audio device: Intel Corporation 8 Series/C220 Series Chipset High Definition Audio Controller (rev 04)
00:1c.0 PCI bridge: Intel Corporation 8 Series/C220 Series Chipset Family PCI Express Root Port #1 (rev d4)
00:1c.1 PCI bridge: Intel Corporation 8 Series/C220 Series Chipset Family PCI Express Root Port #2 (rev d4)
00:1d.0 USB controller: Intel Corporation 8 Series/C220 Series Chipset Family USB EHCI #1 (rev 04)
00:1f.0 ISA bridge: Intel Corporation QM87 Express LPC Controller (rev 04)
00:1f.2 SATA controller: Intel Corporation 8 Series/C220 Series Chipset Family 6-port SATA Controller 1 [AHCI mode] (rev 04)
00:1f.3 SMBus: Intel Corporation 8 Series/C220 Series Chipset Family SMBus Controller (rev 04)
02:00.0 Unassigned class [ff00]: Realtek Semiconductor Co., Ltd. RTS5227 PCI Express Card Reader (rev 01)
03:00.0 Network controller: Intel Corporation Wireless 7260 (rev 6b)
 

Adam Barrett

New Member
$ lsmod
Module Size Used by
hid_logitech_hidpp 24576 0
snd_usb_audio 176128 2
snd_usbmidi_lib 32768 1 snd_usb_audio
snd_rawmidi 32768 1 snd_usbmidi_lib
hid_logitech_dj 20480 0
ccm 20480 2
rfcomm 69632 14
fuse 98304 3
cmac 16384 2
xt_CHECKSUM 16384 1
ipt_MASQUERADE 16384 3
nf_nat_masquerade_ipv4 16384 1 ipt_MASQUERADE
tun 28672 1
nf_conntrack_netbios_ns 16384 0
nf_conntrack_broadcast 16384 1 nf_conntrack_netbios_ns
ip6t_rpfilter 16384 1
ip6t_REJECT 16384 2
nf_reject_ipv6 16384 1 ip6t_REJECT
xt_conntrack 16384 24
ip_set 36864 0
nfnetlink 16384 1 ip_set
ebtable_broute 16384 1
bridge 126976 1 ebtable_broute
stp 16384 1 bridge
llc 16384 2 stp,bridge
ebtable_filter 16384 1
ebtable_nat 16384 1
ebtables 32768 3 ebtable_broute,ebtable_nat,ebtable_filter
ip6table_raw 16384 1
ip6table_mangle 16384 1
ip6table_nat 16384 1
nf_conntrack_ipv6 20480 13
nf_defrag_ipv6 36864 1 nf_conntrack_ipv6
nf_nat_ipv6 16384 1 ip6table_nat
ip6table_security 16384 1
ip6table_filter 16384 1
ip6_tables 28672 5 ip6table_filter,ip6table_mangle,ip6table_security,ip6table_nat,ip6table_raw
iptable_raw 16384 1
iptable_mangle 16384 1
iptable_nat 16384 1
nf_conntrack_ipv4 16384 13
nf_defrag_ipv4 16384 1 nf_conntrack_ipv4
nf_nat_ipv4 16384 1 iptable_nat
nf_nat 24576 3 nf_nat_ipv4,nf_nat_ipv6,nf_nat_masquerade_ipv4
nf_conntrack 106496 9 nf_conntrack_netbios_ns,nf_nat,nf_nat_ipv4,nf_nat_ipv6,xt_conntrack,nf_nat_masquerade_ipv4,nf_conntrack_broadcast,nf_conntrack_ipv4,nf_conntrack_ipv6
iptable_security 16384 1
bnep 20480 2
arc4 16384 2
iTCO_wdt 16384 0
iTCO_vendor_support 16384 1 iTCO_wdt
intel_rapl 20480 0
x86_pkg_temp_thermal 16384 0
coretemp 16384 0
kvm_intel 184320 0
kvm 548864 1 kvm_intel
iwlmvm 327680 0
mac80211 708608 1 iwlmvm
irqbypass 16384 1 kvm
iwlwifi 159744 1 iwlmvm
uvcvideo 90112 0
joydev 20480 0
i2c_i801 20480 0
videobuf2_vmalloc 16384 1 uvcvideo
cfg80211 565248 3 iwlwifi,mac80211,iwlmvm
videobuf2_memops 16384 1 videobuf2_vmalloc
videobuf2_v4l2 24576 1 uvcvideo
btusb 45056 0
videobuf2_core 40960 2 uvcvideo,videobuf2_v4l2
btrtl 16384 1 btusb
videodev 167936 3 uvcvideo,videobuf2_core,videobuf2_v4l2
btbcm 16384 1 btusb
btintel 16384 1 btusb
bluetooth 491520 41 bnep,btbcm,btrtl,btusb,rfcomm,btintel
rtsx_pci_ms 20480 0
snd_hda_codec_realtek 86016 1
snd_hda_codec_hdmi 53248 1
memstick 16384 1 rtsx_pci_ms
snd_hda_codec_generic 69632 1 snd_hda_codec_realtek
lpc_ich 24576 0
media 28672 2 uvcvideo,videodev
snd_hda_intel 36864 12
snd_hda_codec 126976 4 snd_hda_codec_realtek,snd_hda_codec_hdmi,snd_hda_codec_generic,snd_hda_intel
wmi 20480 0
snd_hda_core 61440 5 snd_hda_codec_realtek,snd_hda_codec_hdmi,snd_hda_codec_generic,snd_hda_codec,snd_hda_intel
snd_hwdep 16384 2 snd_usb_audio,snd_hda_codec
snd_seq 69632 0
snd_seq_device 16384 2 snd_seq,snd_rawmidi
snd_pcm 114688 5 snd_usb_audio,snd_hda_codec_hdmi,snd_hda_codec,snd_hda_intel,snd_hda_core
thinkpad_acpi 86016 1
rfkill 24576 7 cfg80211,thinkpad_acpi,bluetooth
mei_me 32768 0
snd_timer 32768 2 snd_pcm,snd_seq
mei 98304 1 mei_me
ie31200_edac 16384 0
snd 77824 42 snd_hda_codec_realtek,snd_usb_audio,snd_hwdep,snd_timer,snd_hda_codec_hdmi,snd_pcm,snd_seq,snd_rawmidi,snd_hda_codec_generic,snd_usbmidi_lib,snd_hda_codec,snd_hda_intel,thinkpad_acpi,snd_seq_device
edac_core 53248 1 ie31200_edac
shpchp 36864 0
soundcore 16384 1 snd
tpm_tis 20480 0
tpm 40960 1 tpm_tis
binfmt_misc 20480 1
nfsd 323584 1
auth_rpcgss 61440 1 nfsd
nfs_acl 16384 1 nfsd
lockd 94208 1 nfsd
grace 16384 2 nfsd,lockd
sunrpc 319488 7 nfsd,auth_rpcgss,lockd,nfs_acl
dm_crypt 24576 1
i915 1216512 29
rtsx_pci_sdmmc 24576 0
mmc_core 122880 1 rtsx_pci_sdmmc
crct10dif_pclmul 16384 0
crc32_pclmul 16384 0
crc32c_intel 24576 0
i2c_algo_bit 16384 1 i915
e1000e 237568 0
drm_kms_helper 131072 1 i915
ghash_clmulni_intel 16384 0
drm 335872 10 i915,drm_kms_helper
serio_raw 16384 0
ptp 20480 1 e1000e
rtsx_pci 53248 2 rtsx_pci_ms,rtsx_pci_sdmmc
pps_core 20480 1 ptp
fjes 28672 0
video 40960 2 i915,thinkpad_acpi
 

Adam Barrett

New Member
$ cat /proc/cpuinfo
processor : 0
vendor_id : GenuineIntel
cpu family : 6
model : 60
model name : Intel(R) Core(TM) i5-4200M CPU @ 2.50GHz
stepping : 3
microcode : 0x1e
cpu MHz : 2766.406
cache size : 3072 KB
physical id : 0
siblings : 4
core id : 0
cpu cores : 2
apicid : 0
initial apicid : 0
fpu : yes
fpu_exception : yes
cpuid level : 13
wp : yes
flags : fpu vme de pse tsc msr pae mce cx8 apic sep mtrr pge mca cmov pat pse36 clflush dts acpi mmx fxsr sse sse2 ss ht tm pbe syscall nx pdpe1gb rdtscp lm constant_tsc arch_perfmon pebs bts rep_good nopl xtopology nonstop_tsc aperfmperf eagerfpu pni pclmulqdq dtes64 monitor ds_cpl vmx est tm2 ssse3 sdbg fma cx16 xtpr pdcm pcid sse4_1 sse4_2 movbe popcnt tsc_deadline_timer aes xsave avx f16c rdrand lahf_lm abm epb tpr_shadow vnmi flexpriority ept vpid fsgsbase tsc_adjust bmi1 avx2 smep bmi2 erms invpcid xsaveopt dtherm ida arat pln pts
bugs :
bogomips : 4988.54
clflush size : 64
cache_alignment : 64
address sizes : 39 bits physical, 48 bits virtual
power management:

processor : 1
vendor_id : GenuineIntel
cpu family : 6
model : 60
model name : Intel(R) Core(TM) i5-4200M CPU @ 2.50GHz
stepping : 3
microcode : 0x1e
cpu MHz : 2440.039
cache size : 3072 KB
physical id : 0
siblings : 4
core id : 0
cpu cores : 2
apicid : 1
initial apicid : 1
fpu : yes
fpu_exception : yes
cpuid level : 13
wp : yes
flags : fpu vme de pse tsc msr pae mce cx8 apic sep mtrr pge mca cmov pat pse36 clflush dts acpi mmx fxsr sse sse2 ss ht tm pbe syscall nx pdpe1gb rdtscp lm constant_tsc arch_perfmon pebs bts rep_good nopl xtopology nonstop_tsc aperfmperf eagerfpu pni pclmulqdq dtes64 monitor ds_cpl vmx est tm2 ssse3 sdbg fma cx16 xtpr pdcm pcid sse4_1 sse4_2 movbe popcnt tsc_deadline_timer aes xsave avx f16c rdrand lahf_lm abm epb tpr_shadow vnmi flexpriority ept vpid fsgsbase tsc_adjust bmi1 avx2 smep bmi2 erms invpcid xsaveopt dtherm ida arat pln pts
bugs :
bogomips : 4988.54
clflush size : 64
cache_alignment : 64
address sizes : 39 bits physical, 48 bits virtual
power management:

processor : 2
vendor_id : GenuineIntel
cpu family : 6
model : 60
model name : Intel(R) Core(TM) i5-4200M CPU @ 2.50GHz
stepping : 3
microcode : 0x1e
cpu MHz : 2570.019
cache size : 3072 KB
physical id : 0
siblings : 4
core id : 1
cpu cores : 2
apicid : 2
initial apicid : 2
fpu : yes
fpu_exception : yes
cpuid level : 13
wp : yes
flags : fpu vme de pse tsc msr pae mce cx8 apic sep mtrr pge mca cmov pat pse36 clflush dts acpi mmx fxsr sse sse2 ss ht tm pbe syscall nx pdpe1gb rdtscp lm constant_tsc arch_perfmon pebs bts rep_good nopl xtopology nonstop_tsc aperfmperf eagerfpu pni pclmulqdq dtes64 monitor ds_cpl vmx est tm2 ssse3 sdbg fma cx16 xtpr pdcm pcid sse4_1 sse4_2 movbe popcnt tsc_deadline_timer aes xsave avx f16c rdrand lahf_lm abm epb tpr_shadow vnmi flexpriority ept vpid fsgsbase tsc_adjust bmi1 avx2 smep bmi2 erms invpcid xsaveopt dtherm ida arat pln pts
bugs :
bogomips : 4988.54
clflush size : 64
cache_alignment : 64
address sizes : 39 bits physical, 48 bits virtual
power management:

processor : 3
vendor_id : GenuineIntel
cpu family : 6
model : 60
model name : Intel(R) Core(TM) i5-4200M CPU @ 2.50GHz
stepping : 3
microcode : 0x1e
cpu MHz : 2568.945
cache size : 3072 KB
physical id : 0
siblings : 4
core id : 1
cpu cores : 2
apicid : 3
initial apicid : 3
fpu : yes
fpu_exception : yes
cpuid level : 13
wp : yes
flags : fpu vme de pse tsc msr pae mce cx8 apic sep mtrr pge mca cmov pat pse36 clflush dts acpi mmx fxsr sse sse2 ss ht tm pbe syscall nx pdpe1gb rdtscp lm constant_tsc arch_perfmon pebs bts rep_good nopl xtopology nonstop_tsc aperfmperf eagerfpu pni pclmulqdq dtes64 monitor ds_cpl vmx est tm2 ssse3 sdbg fma cx16 xtpr pdcm pcid sse4_1 sse4_2 movbe popcnt tsc_deadline_timer aes xsave avx f16c rdrand lahf_lm abm epb tpr_shadow vnmi flexpriority ept vpid fsgsbase tsc_adjust bmi1 avx2 smep bmi2 erms invpcid xsaveopt dtherm ida arat pln pts
bugs :
bogomips : 4988.54
clflush size : 64
cache_alignment : 64
address sizes : 39 bits physical, 48 bits virtual
power management:
 
Top