BUG: Runaway Mem Rendering/Playing prj w/JPG if Video Acceleration On

RedRob-CandlelightProdctns wrote on 3/10/2023, 2:31 PM

BUG: Rendering a project with JPG as part of composite causes runaway RAM when NVIDIA GPU is enabled under "hardware acceleration" NOTE: Revealed in 1st 2 comments below, same problem when just playing a project w/JPG and GPU enabled.

This has been a bug for a long while now -- I made a video demonstrating the problem; maybe it will help get it squashed? It is very easy to reproduce.

Synopsis of that demo video

With hardware accelerated video enabled, render a small project that include a not-tiny JPG file. Add other elements so the render takes a while. Observing memory usage in Task Manger you'll observe it climbing higher and higher throughout the render until the render completes or it crashes from no more memory.

Turning off hardware accelerated video, render the same project and observe memory usage. It remains constant throughout the render, with no issue.

Last changed by RedRob-CandlelightProdctns

Vegas 20.214

My PC (for finishing):

Cyperpower PC Intel Core i7-7700K CPU @ 4.2GHz, 32GB mem @ 2133MHz RAM, AMD Radeon RX470 (4GB dedicated) with driver recommended by Vegas Updater (reports as 30.0.15021.11005 dated 4/28/22), and Intel HD Graphics 630 driver version 31.0.101.2112 dated 7/21/22 w/16GB shared memory. Windows 10 Pro 64bit version 10.0.19045 Build 19045.

My main editing laptop:

Dell G15 Special Edition 5521, Bios 1.12 9/13/22, Windows 11 22H2 (10.0.22621)

12th Gen Intel Core i7-12700H (14 cores, 20 logical processors), 32 GB DDR5 4800MHz RAM, Intel Iris Xe Graphics, NVIDIA GeForce RTX 3070 Ti Laptop GPU w/8GB GDDR6 RAM, Realtek Audio

 

 

Comments

Todd-A0 wrote on 3/10/2023, 5:08 PM

If you loop playback on timeline does the same thing happen?

RedRob-CandlelightProdctns wrote on 3/10/2023, 10:38 PM

@Todd-A0 YES!

Same project, I just played/looped the region and watched memory use climb from 40% (where it started) to 58% until I stopped it after a few minutes. When I started playing again I watched it (via task mgr) continue climbing from 58% to 61% and going.

I'll update the description of the thread if it lets me.

Vegas 20.214

My PC (for finishing):

Cyperpower PC Intel Core i7-7700K CPU @ 4.2GHz, 32GB mem @ 2133MHz RAM, AMD Radeon RX470 (4GB dedicated) with driver recommended by Vegas Updater (reports as 30.0.15021.11005 dated 4/28/22), and Intel HD Graphics 630 driver version 31.0.101.2112 dated 7/21/22 w/16GB shared memory. Windows 10 Pro 64bit version 10.0.19045 Build 19045.

My main editing laptop:

Dell G15 Special Edition 5521, Bios 1.12 9/13/22, Windows 11 22H2 (10.0.22621)

12th Gen Intel Core i7-12700H (14 cores, 20 logical processors), 32 GB DDR5 4800MHz RAM, Intel Iris Xe Graphics, NVIDIA GeForce RTX 3070 Ti Laptop GPU w/8GB GDDR6 RAM, Realtek Audio

 

 

RedRob-CandlelightProdctns wrote on 3/10/2023, 10:51 PM

I first reported this hear on Vegas 17 in January 2020. I observed it as a problem with both .PNG and JPG files.

https://www.vegascreativesoftware.info/us/forum/runaway-ram-when-using-gpu-for-render-vegas-error-vs-gpu-driver--118430/
 

Vegas 20.214

My PC (for finishing):

Cyperpower PC Intel Core i7-7700K CPU @ 4.2GHz, 32GB mem @ 2133MHz RAM, AMD Radeon RX470 (4GB dedicated) with driver recommended by Vegas Updater (reports as 30.0.15021.11005 dated 4/28/22), and Intel HD Graphics 630 driver version 31.0.101.2112 dated 7/21/22 w/16GB shared memory. Windows 10 Pro 64bit version 10.0.19045 Build 19045.

My main editing laptop:

Dell G15 Special Edition 5521, Bios 1.12 9/13/22, Windows 11 22H2 (10.0.22621)

12th Gen Intel Core i7-12700H (14 cores, 20 logical processors), 32 GB DDR5 4800MHz RAM, Intel Iris Xe Graphics, NVIDIA GeForce RTX 3070 Ti Laptop GPU w/8GB GDDR6 RAM, Realtek Audio

 

 

RedRob-CandlelightProdctns wrote on 3/10/2023, 11:00 PM

OK. More info... if there are two tracks has a PNG and a track under it has a JPG, the runaway RAM occurs. If I remove EITHER the .png track OR JPG track, memory does not run away!

Vegas 20.214

My PC (for finishing):

Cyperpower PC Intel Core i7-7700K CPU @ 4.2GHz, 32GB mem @ 2133MHz RAM, AMD Radeon RX470 (4GB dedicated) with driver recommended by Vegas Updater (reports as 30.0.15021.11005 dated 4/28/22), and Intel HD Graphics 630 driver version 31.0.101.2112 dated 7/21/22 w/16GB shared memory. Windows 10 Pro 64bit version 10.0.19045 Build 19045.

My main editing laptop:

Dell G15 Special Edition 5521, Bios 1.12 9/13/22, Windows 11 22H2 (10.0.22621)

12th Gen Intel Core i7-12700H (14 cores, 20 logical processors), 32 GB DDR5 4800MHz RAM, Intel Iris Xe Graphics, NVIDIA GeForce RTX 3070 Ti Laptop GPU w/8GB GDDR6 RAM, Realtek Audio

 

 

RedRob-CandlelightProdctns wrote on 3/10/2023, 11:09 PM

As requested in 2020, here's a ZIP file containing three things.

  1. .VEG project file, with three tracks (text track, PNG track, JPG track)
  2. a 194KB transparent PNG
  3. a 472KB .JPG file

Playing the project in the timeline with GPU accel. video enabled causes RAM to just keep going up, as observed in task manager. Disabling GPU accel and everything is normal.

https://www.dropbox.com/s/le5bbwjqpeey1nm/runaway-ram-with-png-and-jpg.zip?dl=0

 

Vegas 20.214

My PC (for finishing):

Cyperpower PC Intel Core i7-7700K CPU @ 4.2GHz, 32GB mem @ 2133MHz RAM, AMD Radeon RX470 (4GB dedicated) with driver recommended by Vegas Updater (reports as 30.0.15021.11005 dated 4/28/22), and Intel HD Graphics 630 driver version 31.0.101.2112 dated 7/21/22 w/16GB shared memory. Windows 10 Pro 64bit version 10.0.19045 Build 19045.

My main editing laptop:

Dell G15 Special Edition 5521, Bios 1.12 9/13/22, Windows 11 22H2 (10.0.22621)

12th Gen Intel Core i7-12700H (14 cores, 20 logical processors), 32 GB DDR5 4800MHz RAM, Intel Iris Xe Graphics, NVIDIA GeForce RTX 3070 Ti Laptop GPU w/8GB GDDR6 RAM, Realtek Audio

 

 

RogerS wrote on 3/11/2023, 2:14 AM

Interesting. I tested with my desktop (see signature). With VP 20 I let it playback the project in a loop and after 12GB it was very slow with the increase- a few passes for .1GB. I then did a render (1080p MagixAVC) and it went up to 13GB but then dropped to 10GB after the render finished.

I then copied and pasted the events 4x to make it longer and quickly got to 12.6GB ram usage. As soon as I started a render it dropped back to 10.x and stayed there (no increase during the render).

I am doing a loop test with the 5x events and it's not going above 12.8GB.

A few things with this project; it uses a non-native NewBlue transition which I don't have. None of the text events or images are quantized to frame boundaries- enable both options under options/quantize to frames.

Custom PC (2022) Intel i5-13600K with UHD 770 iGPU with 31.0.101.4091 driver, MSI z690 Tomahawk motherboard, 64GB Corsair DDR5 5200 ram, NVIDIA 2080 Super (8GB) with latest studio driver, 2TB Hynix P41 SSD, Windows 11 Pro 64 bit

Dell XPS 15 laptop (2017) 32GB ram, NVIDIA 1050 (4GB) with latest studio driver, Intel i7-7700HQ with Intel 630 iGPU (driver 31.0.101.2115), dual internal SSD (256GB; 1TB), Windows 10 64 bit

Vegas 19.648
Vegas 20.270

VEGAS 4K "sample project" benchmark: https://forms.gle/ypyrrbUghEiaf2aC7
VEGAS Pro 20 "Ad" benchmark: https://forms.gle/eErJTR87K2bbJc4Q7

john_dennis wrote on 3/11/2023, 9:40 AM

@RedRob-CandlelightProdctns

I looped multiple instances of this project while I worked with pictures in Photoshop and the memory usage stayed flat.

I don't have New Blue on this machine.

I don't have your machine.

Pet Peeves

  • Unquantized frames give me agida. I've been known to go back and move audio cuts to frame boundaries on old projects.
  • There is no reason to have a deinterlace method set for progressive source.
  • Resample Mode could be set to Disable Resample since nothing in this project has a frame rate.

My main system:
Motherboard: ASUS ProArt Z790-CREATOR WIFI
CPU: Intel Core i9-13900K - Core i9 13th Gen Raptor Lake 24-Core (8P+16E) P-core Base Frequency: 3.0 GHz E-core Base Frequency: 2.2 GHz LGA 1700 125W Intel UHD Graphics 770 Desktop Processor - BX8071513900K
GPU: Currently intel on-die video adapter
RAM: CORSAIR Vengeance 64GB (2 x 32GB) 288-Pin PC RAM DDR5 5600 (PC5 44800) Desktop Memory Model CMK64GX5M2B5600C40
Disk O/S & Programs: WD Black SN850 NVMe SSD WDS100T1X0E - SSD - 1 TB - PCIe 4.0 x4 (NVMe)
Disk Active Projects: 1TB & 2TB WD BLACK SN750 NVMe Internal PCI Express 3.0 x4 Solid State Drives
Disk Other: WD Ultrastar/Hitachi Hard Drives: WDBBUR0080BNC-WRSN, HGST HUH728080ALE600, 724040ALE640, HDS3020BLA642
Case: LIAN LI PC-90 Black Aluminum ATX Full Tower Case
CPU cooling: CORSAIR - iCUE H115i RGB PRO XT 280mm Radiator CPU Liquid Cooling System
Power supply: SeaSonic SS-750KM3 750W 80 PLUS GOLD Certified Full Modular Active PFC Power Supply
Drive Bay: Kingwin KF-256-BK 2.5" and 3.5" Trayless Hot Swap Rack with USB 3
Sound card: Realtek S1220A on motherboard. Recording done on another system.
Primary Monitor: ASUS ProArt 31.5" 1440p HDR10 Monitor PA328QV
O/S: Windows 10 Pro 10.0.19045 Build 19045
Camera: Sony RX10 Model IV

https://www.youtube.com/user/thedennischannel

RedRob-CandlelightProdctns wrote on 3/11/2023, 10:09 AM

@RogerS so yours rose more than one might expect but then stabilized, ya?

@john_dennis I'm surprised to see only Intel video card considering your high-RAM and CPU stats! What is your video acceleration set to in Vegas?

I did not notice a NewBlue effect in there.. I will remove it and repeat the test.. prob was a transition originally and then I removed the edge fades. I usually disable resampling and deinterlacing may bug you here but it just won't do anything (no footage) so.. pppppth

If an event is shifted off-frame, did it take a... quantize leap? 😏

Vegas 20.214

My PC (for finishing):

Cyperpower PC Intel Core i7-7700K CPU @ 4.2GHz, 32GB mem @ 2133MHz RAM, AMD Radeon RX470 (4GB dedicated) with driver recommended by Vegas Updater (reports as 30.0.15021.11005 dated 4/28/22), and Intel HD Graphics 630 driver version 31.0.101.2112 dated 7/21/22 w/16GB shared memory. Windows 10 Pro 64bit version 10.0.19045 Build 19045.

My main editing laptop:

Dell G15 Special Edition 5521, Bios 1.12 9/13/22, Windows 11 22H2 (10.0.22621)

12th Gen Intel Core i7-12700H (14 cores, 20 logical processors), 32 GB DDR5 4800MHz RAM, Intel Iris Xe Graphics, NVIDIA GeForce RTX 3070 Ti Laptop GPU w/8GB GDDR6 RAM, Realtek Audio

 

 

Reyfox wrote on 3/11/2023, 11:09 AM

@RedRob-CandlelightProdctns downloaded your project and it's running on VP20 B326. I have it in loop playback. When I started Vegas, memory used was 904MB. With your project playing in Loop, (8th time), memory usage dropped to 877MB. My system spec is in the signature.

john_dennis wrote on 3/11/2023, 11:22 AM

"I'm surprised to see only Intel video card considering your high-RAM and CPU stats! What is your video acceleration set to in Vegas?"

The work that I'm doing at the moment could be done without a nuclear reactor.

My main system:
Motherboard: ASUS ProArt Z790-CREATOR WIFI
CPU: Intel Core i9-13900K - Core i9 13th Gen Raptor Lake 24-Core (8P+16E) P-core Base Frequency: 3.0 GHz E-core Base Frequency: 2.2 GHz LGA 1700 125W Intel UHD Graphics 770 Desktop Processor - BX8071513900K
GPU: Currently intel on-die video adapter
RAM: CORSAIR Vengeance 64GB (2 x 32GB) 288-Pin PC RAM DDR5 5600 (PC5 44800) Desktop Memory Model CMK64GX5M2B5600C40
Disk O/S & Programs: WD Black SN850 NVMe SSD WDS100T1X0E - SSD - 1 TB - PCIe 4.0 x4 (NVMe)
Disk Active Projects: 1TB & 2TB WD BLACK SN750 NVMe Internal PCI Express 3.0 x4 Solid State Drives
Disk Other: WD Ultrastar/Hitachi Hard Drives: WDBBUR0080BNC-WRSN, HGST HUH728080ALE600, 724040ALE640, HDS3020BLA642
Case: LIAN LI PC-90 Black Aluminum ATX Full Tower Case
CPU cooling: CORSAIR - iCUE H115i RGB PRO XT 280mm Radiator CPU Liquid Cooling System
Power supply: SeaSonic SS-750KM3 750W 80 PLUS GOLD Certified Full Modular Active PFC Power Supply
Drive Bay: Kingwin KF-256-BK 2.5" and 3.5" Trayless Hot Swap Rack with USB 3
Sound card: Realtek S1220A on motherboard. Recording done on another system.
Primary Monitor: ASUS ProArt 31.5" 1440p HDR10 Monitor PA328QV
O/S: Windows 10 Pro 10.0.19045 Build 19045
Camera: Sony RX10 Model IV

https://www.youtube.com/user/thedennischannel

john_dennis wrote on 3/11/2023, 11:32 AM

"If an event is shifted off-frame, did it take a... quantize leap?"

I've had strange things happen with events not landing on frame boundaries with old GPUs drivers and Vegas versions.

My main system:
Motherboard: ASUS ProArt Z790-CREATOR WIFI
CPU: Intel Core i9-13900K - Core i9 13th Gen Raptor Lake 24-Core (8P+16E) P-core Base Frequency: 3.0 GHz E-core Base Frequency: 2.2 GHz LGA 1700 125W Intel UHD Graphics 770 Desktop Processor - BX8071513900K
GPU: Currently intel on-die video adapter
RAM: CORSAIR Vengeance 64GB (2 x 32GB) 288-Pin PC RAM DDR5 5600 (PC5 44800) Desktop Memory Model CMK64GX5M2B5600C40
Disk O/S & Programs: WD Black SN850 NVMe SSD WDS100T1X0E - SSD - 1 TB - PCIe 4.0 x4 (NVMe)
Disk Active Projects: 1TB & 2TB WD BLACK SN750 NVMe Internal PCI Express 3.0 x4 Solid State Drives
Disk Other: WD Ultrastar/Hitachi Hard Drives: WDBBUR0080BNC-WRSN, HGST HUH728080ALE600, 724040ALE640, HDS3020BLA642
Case: LIAN LI PC-90 Black Aluminum ATX Full Tower Case
CPU cooling: CORSAIR - iCUE H115i RGB PRO XT 280mm Radiator CPU Liquid Cooling System
Power supply: SeaSonic SS-750KM3 750W 80 PLUS GOLD Certified Full Modular Active PFC Power Supply
Drive Bay: Kingwin KF-256-BK 2.5" and 3.5" Trayless Hot Swap Rack with USB 3
Sound card: Realtek S1220A on motherboard. Recording done on another system.
Primary Monitor: ASUS ProArt 31.5" 1440p HDR10 Monitor PA328QV
O/S: Windows 10 Pro 10.0.19045 Build 19045
Camera: Sony RX10 Model IV

https://www.youtube.com/user/thedennischannel

Todd-A0 wrote on 3/11/2023, 3:01 PM

I didn't see memory leakage with the test project as presented I tried looped playback and encoding. Also tried with GPU decoder on and encoding Nvenc. (Vp20b326)