[CLOSED] cuInit failed (999)

Support forum for DGDecNV
Post Reply
DAE avatar
petoluk
Posts: 7
Joined: Wed Jul 31, 2019 3:15 pm

[CLOSED] cuInit failed (999)

Post by petoluk »

OS: Windows 8.1 Pro x64
GPU: Quadro K5100M
DGDecNV: 2053.0.0.165 (64 bit)

I started getting the "cuInit failed (999)" error a while ago, couldn't figure out why / what changed (I suspect Windows Update).

I tried updating the NVIDIA driver, and switched to the latest DGDecNV build, all in vain.

Any ideas / tips on what I could try next?

Thanks!
DAE avatar
Guest

Re: cuInit failed (999)

Post by Guest »

Guessing here but
make sure card is at stock settings
Reboot
Run DGDecodeNV/DGIndexNV as administrator
DAE avatar
petoluk
Posts: 7
Joined: Wed Jul 31, 2019 3:15 pm

Re: cuInit failed (999)

Post by petoluk »

Thanks for tip, but it didn't help. :(

Interestingly enough, I just found out the 32 bit version works (didn't try that before, as I've always used x64).

So at least I'm not completely stuck...
User avatar
admin
Posts: 4551
Joined: Thu Sep 09, 2010 3:08 pm

Re: cuInit failed (999)

Post by admin »

Make sure you are not mixing the 64-bit stuff with 32-bit applications. Everything must be 64 or 32.

I'm not familiar with that card. I'll see what I can find about it. How much memory is on that card?

Please tell your nVidia driver version. And stick with the latest DGDecNV version: 2053.0.0.179
DAE avatar
petoluk
Posts: 7
Joined: Wed Jul 31, 2019 3:15 pm

Re: cuInit failed (999)

Post by petoluk »

I've been using the x64 version since I purchased the tool in 2015, that's why (until yesterday) I didn't even think of trying the x86...

Here's some info about the card from the NVIDIA Control Panel:

Driver version: 426.00
Driver type: Standard
Direct3D API version: 11.2
Direct3D feature level: 11_0
CUDA Cores: 1536
Graphics clock: 771 MHz
Memory data rate: 3.60 Gbps
Memory interface: 256-bit
Memory bandwidth: 115.20 GB/s
Total available graphics memory: 24541 MB
Dedicated video memory: 8192 MB GDDR5
System video memory: 0 MB
Shared system memory: 16349 MB
Video BIOS version: 80.04.C9.00.04
IRQ: Not used
Bus: PCI Express x16 Gen3
Device ID: 10DE 11B8 197A103C
Part Number: 2053 0503

I downloaded the .179 build today, but the error persists with the x64 version; the 32 bit DGIndexNV.exe launches just fine. :?

Many thanks for your help!
User avatar
admin
Posts: 4551
Joined: Thu Sep 09, 2010 3:08 pm

Re: cuInit failed (999)

Post by admin »

Can't you run the most recent nVidia driver? I am running 431.60. Do a clean install with DDU.

Also, make sure there are no rogue copies of older nvcuda.dll or nvcuda*.dll lying around.

Are you starting DGIndexNV as an administrator?
DAE avatar
petoluk
Posts: 7
Joined: Wed Jul 31, 2019 3:15 pm

Re: cuInit failed (999)

Post by petoluk »

I just updated to 426.00 (the version I had before was the latest Quadro-specific driver, the QNF), the error persists. I don't see 431.60 when I select my card, but I guess I can google it - will report back shortly...
User avatar
admin
Posts: 4551
Joined: Thu Sep 09, 2010 3:08 pm

Re: cuInit failed (999)

Post by admin »

Also see my edits.

OK, the latest drivers may not be applicable to your card.
User avatar
admin
Posts: 4551
Joined: Thu Sep 09, 2010 3:08 pm

Re: cuInit failed (999)

Post by admin »

After you answer my added questions then if there is no resolution we will try an nVidia sample application and if that fails we can post at the nVidia developer forum.
DAE avatar
petoluk
Posts: 7
Joined: Wed Jul 31, 2019 3:15 pm

Re: cuInit failed (999)

Post by petoluk »

Okay, it seems the 431.60 won't work with Quadro, so I'll stick to 426.00. There were quite a few older "backup" copies of nvcuda*.dll in the various system folders, but DDU got rid of them. Unfortunately, even after the cleanup & reinstall, the error is still there. :( And I do run the .exe as an administrator. Thanks!
User avatar
admin
Posts: 4551
Joined: Thu Sep 09, 2010 3:08 pm

Re: cuInit failed (999)

Post by admin »

Please run this in a CMD window (with admin privileges) and report the output.

http://rationalqm.us/misc/petoluk.exe

This is the nVidia deviceQueryDrv sample code compiled for 64 bit against CUDA toolkit 8.0.
DAE avatar
petoluk
Posts: 7
Joined: Wed Jul 31, 2019 3:15 pm

Re: cuInit failed (999)

Post by petoluk »

Darn, not much help, I'm afraid:

petoluk.exe Starting...

CUDA Device Query (Driver API) statically linked version
cuInit(0) returned 999
-> CUDA_ERROR_UNKNOWN
Result = FAIL

(Run as admin.)

:(

EDIT: So I guess it's not a problem with DGDecNV as such... But how come the 32 bit version still works... :?
User avatar
admin
Posts: 4551
Joined: Thu Sep 09, 2010 3:08 pm

Re: cuInit failed (999)

Post by admin »

Thank you for the testing. It's helpful because it exonerates my tools. ;)

Next step is that I will post a query about it at the nVidia developer forum.
User avatar
admin
Posts: 4551
Joined: Thu Sep 09, 2010 3:08 pm

Re: cuInit failed (999)

Post by admin »

User avatar
admin
Posts: 4551
Joined: Thu Sep 09, 2010 3:08 pm

Re: cuInit failed (999)

Post by admin »

Any chance you could update to Windows 10? :scratch:

And, oh, is that a laptop? Because if so we have Optimus issues. This is why I do not formally support laptops for DGDecNV.
DAE avatar
petoluk
Posts: 7
Joined: Wed Jul 31, 2019 3:15 pm

Re: cuInit failed (999)

Post by petoluk »

Not sure about upgrading to Win 10, but this is indeed a laptop, HP ZBook G2.

I've never heard about the Optimus issue (will investigate later), but given that now I can at least use the 32 bit version (stupid of me for not trying it sooner :facepalm:), I wouldn't want you to lose any more time on this.

In any case, thank you very much for your willingness to help!!
User avatar
admin
Posts: 4551
Joined: Thu Sep 09, 2010 3:08 pm

Re: cuInit failed (999)

Post by admin »

Thanks for the link gonca!

petoluk, I'll keep monitoring the nVidia forum but in my experience such issues don't get much attention (i.e., relatively obscure GPUs on laptops). At least you are running on win32.
User avatar
admin
Posts: 4551
Joined: Thu Sep 09, 2010 3:08 pm

Re: [CLOSED] cuInit failed (999)

Post by admin »

I don't formally support laptops so closing this thread.
Post Reply