obsproject / obs-studio

OBS Studio - Free and open source software for live streaming and screen recording
https://obsproject.com
GNU General Public License v2.0
60.53k stars 8k forks source link

VRAM (Dedicated GPU Memory) Leak #11549

Open nproctorGV opened 3 days ago

nproctorGV commented 3 days ago

Operating System Info

Windows 11

Other OS

No response

OBS Studio Version

31.0.0-rc1

OBS Studio Version (Other)

No response

OBS Studio Log URL

https://obsproject.com/logs/YisuqH6bEI7DpLol

OBS Studio Crash Log URL

No response

Expected Behavior

Stable dedicated GPU memory

Current Behavior

Rapidly increasing dedicated GPU memory

Steps to Reproduce

  1. Add a Browser 1920x1080 with URL https://www.testufo.com/framerates#count=1&background=none&pps=240
  2. Output is 1920x1080/59.94
  3. Watch Dedicated GPU Memory rapidly increase every seconds on Windows.

Anything else we should know?

No response

RytoEX commented 3 days ago

I am not observing any rapid increase (or any increase) in Dedicated GPU Memory consumption on Windows 11 with an Intel Arc A770M.

Fenrirthviti commented 3 days ago

Tested on an NVIDIA 4090 GPU on Windows 11, also did not observe any rapid GPU memory increase. Screenshot after letting the provided test URL run for 10~ minutes: image

nproctorGV commented 3 days ago

Try adding the column to the details in the task manager: image

Tested on an NVIDIA 4090 GPU on Windows 11, also did not observe any rapid GPU memory increase. Screenshot after letting the provided test URL run for 10~ minutes: image

Fenrirthviti commented 3 days ago

Same session, barely 600mb allocated: image

RytoEX commented 3 days ago

image

nproctorGV commented 3 days ago

https://www.loom.com/share/5d622bf8c2d14816912a799a24d028e6?sid=5f18ccaa-6d39-4992-ac62-6f3ac3f6ca29

Fenrirthviti commented 3 days ago

I don't think anyone doubts this is happening on your system, but it's not happening on ours, which means there's a piece of the puzzle missing. This could be a driver bug, for all we know, and if we can't reproduce the issue reliably, we can't really do anything about it.

nproctorGV commented 3 days ago

Understood. FYI I have reproduced the issue on 3 different NVIDIA GPUS: NVIDIA Quadro P2200 551.61 NVIDIA RTX A2000 553.35 NVIDIA Quadro RTX 4000 551.61

pkviet commented 3 days ago

could you disable hags and retest ? also what's your driver version ? We've noticed that your test GPUs differ from ours in that we have only consumer grade ones.

nproctorGV commented 3 days ago

I disabled hags on the NVIDIA RTX A2000 machine and it did not make any difference. There driver versions are: 553.35 - NVIDIA RTX A2000 551.61 - NVIDIA Quadro P2200 551.61 - NVIDIA Quadro RTX 4000

pkviet commented 3 days ago

I disabled hags on the NVIDIA RTX A2000 and it did not make any difference. There driver versions are: 553.35 - NVIDIA RTX A2000 551.61 - NVIDIA Quadro P2200 551.61 - NVIDIA Quadro RTX 4000

i didn't expect hags to make a difference but just in case... Could you update to last drivers ? 566.14

nproctorGV commented 3 days ago

553,35 is the latest from Nov 19. I tried the New Feature Branch 566.03 with the same results. I don't see a 566.14 image

pkviet commented 2 days ago

I tried to repro with a QUADRO RTX 4000 SFF ADA. It was running in a VM, so i'll put some cautionary note there. Anyway, no leak for me when running under the conditions given (testufo url at 1080p59); flat 400 MB dedicated RAM for 10 minutes. edit: driver version is the last one for quadro so 553.35

Lordmau5 commented 1 day ago

Can confirm this is happening on my RTX 4060 (8GB VRAM), Studio Driver 566.14 Also happens with FPS set to 60 instead of 59.94.

In my main OBS instance (31 beta 3, latest TEB Beta build at the time of writing) it rose rather quickly, even surpassing what my GPU should be capable of (saw it at around 9,000,000K+). In a fresh 31rc1 instance with just the testufo page it is also rising, but slower. It started at around 70,000K after adding the browser source, and after around 10 minutes it sat at around 1,300,000K.

image

I've started with a fresh 31rc1 instance, clicked Cancel in the first time setup, then set the Canvas and Output resolution to 1440p, set the FPS to 60, added the browser source linked in the first post at 1920x1080 dimensions and waited

Lordmau5 commented 1 day ago

Managed to reproduce on 2 other systems as well. My other PC with a 3090, 566.14 Game Ready Driver and my laptop with a 3070 laptop variant (didn't check the driver, but I think it was latest as well since I updated not too log ago)

The laptop ramped up really quickly - about 9,000,000K within 20 seconds.