NVIDIA 551.xx Driver Breaks DGDecNV

Support forum for DGDecNV
User avatar
Rocky
Posts: 3621
Joined: Fri Sep 06, 2019 12:57 pm

NVIDIA 551.xx Driver Breaks DGDecNV

Post by Rocky »

User avatar
Rocky
Posts: 3621
Joined: Fri Sep 06, 2019 12:57 pm

NVIDIA 551.xx Driver Breaks DGDecNV

Post by Rocky »

I fired up my 1080 Ti machine with latest DGIndexNV and latest NV driver and everything is fine with your sample. Also, there have been quite a few downloads of your sample but no-one reports seeing the same problem. I'm kind of stuck right now unless your memory analysis turns up something.
User avatar
AYColumbia
Posts: 87
Joined: Sun Feb 12, 2012 11:29 am

NVIDIA 551.xx Driver Breaks DGDecNV

Post by AYColumbia »

First, I grabbed the zip from the latest post to try it and, wow, whatever you did fixes the issue as all the failing files (MKV and ES) load and play fine in the DGIndexNV AY edition. ;) So nice on whatever you did. :D
Rocky wrote:
Fri Mar 15, 2024 2:14 am
...To be clear, clips that fail in DGIndexNV are OK with this EXE?...
Yes, the EXE was successful on clips that failed to load in the UI.
Rocky wrote:
Fri Mar 15, 2024 6:40 am
Can you please open GPU-Z Sensors tab and monitor Memory Used? What is its value when this failure occurs? What is the amount of memory on the card?
Since the special build worked, let me know if you still want this info.

[UPDATE] I was curious, so I looked. The card has 3G on board and memory used hovers around 5600-5700MB. This is on the media server which has the GTX 1060.

[UPDATE 2] I tried it on my laptop with the RTX 3050 Ti Laptop version and the same results, i.e., special build worked fine. As to GPU-Z, the RTX 3050 ti shows it has 4G on board and memory used around 7900-8100. Laptop has 16G RAM.

Thanks much.
---
omay, arrylay, curlyq & associates
User avatar
Rocky
Posts: 3621
Joined: Fri Sep 06, 2019 12:57 pm

NVIDIA 551.xx Driver Breaks DGDecNV

Post by Rocky »

That is great news, thank you! Honestly, I didn't think that would fix it, but I thought let's have a go and see. DGIndexNV was creating a CUDA stream other than stream 0 and then never using it. That was a leftover from some very early code where I was playing around with CUDA streams. Theoretically, it should be harmless but who knows, maybe the CUDA stream API changed or something. I'll make a slipstream.
User avatar
Rocky
Posts: 3621
Joined: Fri Sep 06, 2019 12:57 pm

NVIDIA 551.xx Driver Breaks DGDecNV

Post by Rocky »

Slipstream released. Marking resolved.
User avatar
AYColumbia
Posts: 87
Joined: Sun Feb 12, 2012 11:29 am

NVIDIA 551.xx Driver Breaks DGDecNV

Post by AYColumbia »

Rocky wrote:
Fri Mar 15, 2024 8:51 pm
Slipstream released. Marking resolved.
You rock Rocky! :D Thanks so much.
---
omay, arrylay, curlyq & associates
User avatar
Rocky
Posts: 3621
Joined: Fri Sep 06, 2019 12:57 pm

NVIDIA 551.xx Driver Breaks DGDecNV

Post by Rocky »

My pleasure, as always.
User avatar
AYColumbia
Posts: 87
Joined: Sun Feb 12, 2012 11:29 am

NVIDIA 551.xx Driver Breaks DGDecNV

Post by AYColumbia »

Hey Rocky...sorry, couldn't help myself. ;)

Looks like the official 252 release is unable to create the decoder again. Here's the thing though, your test build that you had provided before the official fix, that still works fine. Any file I load into official 252 that fails to load (btw still with (2) code) loads fine in your test build of DGIndexNV.

I was on 551.76 when it started failing again so I updated to 551.86 but made no difference. Test build works fine still.

Strange stuff...ugh...I hate bringing crappy news. :(

There were some Windows Update updates applied since it worked so it's the only thing I can think of that is different. Same on both server and laptop.
---
omay, arrylay, curlyq & associates
User avatar
Rocky
Posts: 3621
Joined: Fri Sep 06, 2019 12:57 pm

NVIDIA 551.xx Driver Breaks DGDecNV

Post by Rocky »

Please try 253 just released.

The last slipstream of 252 (maybe you missed it) should be identical to the test version. I just don't understand why it is only you having this problem. :?
User avatar
AYColumbia
Posts: 87
Joined: Sun Feb 12, 2012 11:29 am

NVIDIA 551.xx Driver Breaks DGDecNV

Post by AYColumbia »

I know, so frustrating. You're fast. I just saw the 253 and grabbed it. Same issue unfortunately.
---
omay, arrylay, curlyq & associates
User avatar
Rocky
Posts: 3621
Joined: Fri Sep 06, 2019 12:57 pm

NVIDIA 551.xx Driver Breaks DGDecNV

Post by Rocky »

Does the CUVID decoder (cuvid.exe) I gave you still work? If so, I will focus on what could be different between it and DGIndexNV. Maybe some initialization? Maybe linking different libraries?

Actually, I feared a recurrence, because the CUDA stream thing is theoretically irrelevant.
User avatar
AYColumbia
Posts: 87
Joined: Sun Feb 12, 2012 11:29 am

NVIDIA 551.xx Driver Breaks DGDecNV

Post by AYColumbia »

I ran it again and I included the files you had as well. Based on the frames found, it worked.

Code: Select all

C:\Tools\DG Tools\debug>cuvid alba.264
Processed 580 frames in 964ms (601.66fps)

C:\Tools\DG Tools\debug>cuvid -hevc surfing.265
Processed 9253 frames in 4666ms (1983.07fps)

C:\Tools\DG Tools\debug>cuvid -hevc ahsoka.2160p.h265
Processed 1440 frames in 6151ms (234.11fps)

C:\Tools\DG Tools\debug>cuvid -hevc fail-clip-hd1080p-demux-w-eac3to.h265
Processed 749 frames in 808ms (926.98fps)

C:\Tools\DG Tools\debug>cuvid -hevc fail-clip-hd1080p-demux-w-txmuxer.hevc
Processed 749 frames in 807ms (928.13fps)

C:\Tools\DG Tools\debug>cuvid -hevc uhd.hdr.2160p24.h265
Processed 2880 frames in 12260ms (234.91fps)
---
omay, arrylay, curlyq & associates
User avatar
Rocky
Posts: 3621
Joined: Fri Sep 06, 2019 12:57 pm

NVIDIA 551.xx Driver Breaks DGDecNV

Post by Rocky »

OK, can you stick around a while?
User avatar
Rocky
Posts: 3621
Joined: Fri Sep 06, 2019 12:57 pm

NVIDIA 551.xx Driver Breaks DGDecNV

Post by Rocky »

Oh darn, you went away. It's frustrating when we are in the middle of debugging and people disappear, especially when I can't duplicate things locally. Now we can't progress until you decide to come back. :cry: If people would let me know they're going away and when they'll be back it would reduce the frustration for me and stop me from having to check back every 10 minutes.

Please download this and test:

http://rationalqm.us/misc/AYC.zip

cudaVideoDecode -hevc clip-fails-to-load-hevc1080p.265

Thank you.
User avatar
Rocky
Posts: 3621
Joined: Fri Sep 06, 2019 12:57 pm

NVIDIA 551.xx Driver Breaks DGDecNV

Post by Rocky »

Setting an example. ;)

I'll be away for 2.5 hours from now.
User avatar
Rocky
Posts: 3621
Joined: Fri Sep 06, 2019 12:57 pm

NVIDIA 551.xx Driver Breaks DGDecNV

Post by Rocky »

I'm back.
User avatar
Rocky
Posts: 3621
Joined: Fri Sep 06, 2019 12:57 pm

NVIDIA 551.xx Driver Breaks DGDecNV

Post by Rocky »

Heading for the nest now. See you in the morning.
User avatar
Rocky
Posts: 3621
Joined: Fri Sep 06, 2019 12:57 pm

NVIDIA 551.xx Driver Breaks DGDecNV

Post by Rocky »

I'm back in the office now.
User avatar
AYColumbia
Posts: 87
Joined: Sun Feb 12, 2012 11:29 am

NVIDIA 551.xx Driver Breaks DGDecNV

Post by AYColumbia »

I'm back now for a bit too. Was dealing with a work emergency yesterday that needed my attention and then had plans for the evening. :)

I'll grab that file and get back to you shortly. Thanks much.
---
omay, arrylay, curlyq & associates
User avatar
AYColumbia
Posts: 87
Joined: Sun Feb 12, 2012 11:29 am

NVIDIA 551.xx Driver Breaks DGDecNV

Post by AYColumbia »

I ran it on your file and one of mine.

Code: Select all

C:\Tools\DG Tools\debug>cudaVideoDecode -hevc clip-fails-to-load-hevc1080p.265
Processed 749 frames

C:\Tools\DG Tools\debug>cudaVideoDecode -hevc uhd.hdr.2160p24.h265
Processed 2880 frames
---
omay, arrylay, curlyq & associates
User avatar
Rocky
Posts: 3621
Joined: Fri Sep 06, 2019 12:57 pm

NVIDIA 551.xx Driver Breaks DGDecNV

Post by Rocky »

OK, thank you. Investigating...
User avatar
AYColumbia
Posts: 87
Joined: Sun Feb 12, 2012 11:29 am

NVIDIA 551.xx Driver Breaks DGDecNV

Post by AYColumbia »

I just ran the test on my laptop and got a different result from my uhd clip.

Code: Select all

D:\Media\Video\DG debug>cudaVideoDecode -hevc "clip-fails-to-load-hevc1080p.265"
Processed 749 frames

D:\Media\Video\DG debug>cudaVideoDecode -hevc "uhd.hdr.2160p24.h265"
cuvidMapVideoFrame: 2
cuvidMapVideoFrame: 205
cuvidMapVideoFrame: 205
...
cuvidMapVideoFrame: 205
Processed 15 frames
The 205 error was repeated many times so I didn't want to clutter up the post with it. Total 205 lines were 2864.
---
omay, arrylay, curlyq & associates
User avatar
Rocky
Posts: 3621
Joined: Fri Sep 06, 2019 12:57 pm

NVIDIA 551.xx Driver Breaks DGDecNV

Post by Rocky »

Please re-download AYC.zip and re-test.

I found several differences between how AYC is initialized and how DGIndexNV is initialized. I made AYC match DGIndex. If it now fails, we'll back out the changes one-by-one to see which one causes it to fail.
User avatar
AYColumbia
Posts: 87
Joined: Sun Feb 12, 2012 11:29 am

NVIDIA 551.xx Driver Breaks DGDecNV

Post by AYColumbia »

Thanks.

Here are laptop results

Code: Select all

D:\Media\Video\DG debug>cudaVideoDecode -hevc "clip-fails-to-load-hevc1080p.265"
Processed 749 frames

D:\Media\Video\DG debug>cudaVideoDecode -hevc "uhd.hdr.2160p24.h265"
cuvidMapVideoFrame: 2
cuvidMapVideoFrame: 205 x 2863
...
Processed 16 frames
Server results

Code: Select all

C:\Tools\DG Tools\debug>cudaVideoDecode -hevc "clip-fails-to-load-hevc1080p.265"
Processed 749 frames

C:\Tools\DG Tools\debug>cudaVideoDecode -hevc "uhd.hdr.2160p24.h265"
Processed 2880 frames
---
omay, arrylay, curlyq & associates
User avatar
Rocky
Posts: 3621
Joined: Fri Sep 06, 2019 12:57 pm

NVIDIA 551.xx Driver Breaks DGDecNV

Post by Rocky »

Please just use my test video! I don't have or know anything about that other file of yours and it just adds extra complexity to the troubleshooting.

So my file still works on both laptop and server. DGIndexNV and the test exe both initialize exactly the same way up to and including the decoder creation. I don't know what else to try. But here's a stab in the dark. Download this and give it a try:

https://rationalqm.us/misc/DGIndexNV_AY.zip

I don't support laptops in general so not going to spend time on that. My main web page states:

"Proper support on laptops depends on the laptop manufacturer correctly implementing Optimus switching and other OEM-driver-related requirements. In some cases this support is not properly implemented by the laptop manufacturer. For these reasons, I do not provide support for laptops. DGDecNV may or may not work on any given laptop."

I'm only interested in your server results with my test video for now.

What is the OS on your server? How much RAM does it have? How much of that RAM is free at the time of running DGIndexNV?
Post Reply