NVIDIA / NVIDIA/open-gpu-kernel-modules
CUDA fails with CUDA call "cu->cuInit(0)" failed with CUDA_ERROR_UNKNOWN (999): unknown error
Nobody has claimed this yet.
- Dominant language
- C
- Stars
- 17.4k
- Forks
- 1.9k
- PR merge metrics
- No merged PRs in 30d
Description
NVIDIA Open GPU Kernel Modules Version
560.28.03
Please confirm this issue does not happen with the proprietary driver (of the same version). This issue tracker is only for bugs specific to the open kernel driver.
- I confirm that this does not happen with the proprietary driver package.
Operating System and Version
NixOS 24.11 (Vicuna)
Kernel Release
Linux laptop 6.6.42-xanmod1 #1-NixOS SMP PREEMPT_DYNAMIC Tue Jan 1 00:00:00 UTC 1980 x86_64 GNU/Linux
Please confirm you are running a stable release kernel (e.g. not a -rc). We do not accept bug reports for unreleased kernels.
- I am running on a stable kernel release.
Hardware: GPU
NVIDIA GeForce RTX 3050 Ti Laptop GPU (UUID: GPU-357aa0ab-a71e-7d0a-b7bd-4d2a99d4e383)
Describe the bug
When I try to use anything that uses CUDA (trying to record with OBS, re-encoding a video, running hashcat), it fails with CUDA call "cu->cuInit(0)" failed with CUDA_ERROR_UNKNOWN (999): unknown error.
To Reproduce
- Just run a program that uses CUDA
For exemple:
- Try to record something using OBS.
Bug Incidence
Always
nvidia-bug-report.log.gz
More Info
This bug disappears after running nvidia-bug-report.sh for some reason, CUDA works again after running nvidia-bug-report.sh.
Edit: After more research I found out that running nvidia-settings as root somehow fixes the problem.
Edit 2: Loading the nvidia-uvm module though modprobe nvidia-uvm fixes this issue
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Start by reproducing the CUDA failure with OBS, video re-encoding, or hashcat on the listed NixOS and kernel versions. Compare behavior before and after loading nvidia-uvm with modprobe, and review the attached nvidia-bug-report.log.gz and nvidia-bug-report.sh output. Done means identifying the driver cause and confirming a reliable fix for cu->cuInit(0).
Written by the indexing model from the issue text.
Assessment
- Tech stack
- c, linux
- Domain
- computer-graphics, operating-systems
- Issue type
- Bug
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Activity status
- Stale
- Clarity
- Needs clarification
- Newbie friendliness
- 25/100