Forum Discussion
Failed to launch NIOSV Command Shell. Getting (0xc0000142) application error.
Hello,
I'm having trouble with the Nios V Command Shell; specifically, I cannot start the shell (niosv-shell.exe) or the RiscFree IDE. Sometimes the program starts, and sometimes it does not.
Operating system: Windows 10 19045.5737 version 22H2.
Tool: Quartus Prime Pro 23.4
I'm getting an application error 0xc0000142: I've already reinstalled the Quartus tool a few times.
Also followed the steps from the link below.
https://thegeekpage.com/how-to-solve-application-error-0xc0000142-in-windows-10/
still getting the same issue.
45 Replies
- prashant_gohel
New Contributor
We have also run the sfc/scannow command but still the behaviour is same.
- DivyaG_Altera
New Contributor
Sorry to hear that didn't help.
Could you please try running 'quartus_sh -s' to see if Quartus starts successfully?
- prashant_gohel
New Contributor
Yes quartus_sh is working,
- prashant_gohel
New Contributor
Hi Divya,
We have executed the suggested steps in administrator mode. But while running the qurtus_py we are getting the same application error message. - prashant_gohel
New Contributor
Did you find any PYTHON environment variables on your system ?
I didn't get any path with PYTHON in environment variables. - prashant_gohel
New Contributor
Hi Divya and BB,
Thank you for sharing the information, as it required Administrator access, I will share this step with admin team and check. It required few days. Will share the result with you.Best regards,
Prashant Gohel - BoonBengT_Altera
Moderator
Hi @prashant_gohel,
Greetings, just checking in to see if there is any further doubts in regards to this matter.
Hope your doubts have been clarified.
Best Wishes
BB
- DivyaG_Altera
New Contributor
Hi Prashant,
I just wanted to follow up on this thread. Did you find any PYTHON environment variables on your system ?
Our tools team suggest running these steps and let us know if it resolves the issue :
1. running the Windows Resource Checker as Adminstrator w/ following command:
sfc /scannow
2. Try simplifying the PATH to the minimal and execute.
Example: C:\Windows\System32>set Path=C:\Program Files\Python312\;C:\WINDOWS\system32;C:\WINDOWS;
C:\Windows\System32>c:\altera_pro\25.1_129\quartus\bin64\quartus_py
C:\Windows\System32>c:\altera_pro\25.1_129\quartus\bin64\quartus_py "print(\"hello\")"
hello
Regards,
Divya
- prashant_gohel
New Contributor
Hi Divya,
Is there any update from the tools team?- DivyaG_Altera
New Contributor
Hi Prashant,
I'll follow up internally once more to get an update. But in the meantime, here's what they've shared :
For the NIOS V tools to function correctly, quartus_py.exe must be operational. We have not seen any issues with this executable in our regressions. The team suggests checking for any PYTHON* environment variables. To do this, run set in a cmd.exe shell to display all environment variables. If you find any PYTHON* entries, try removing them to see if that resolves the issue. You can remove a variable by running: "set name_of_variable="
Let me if this helps.
Regards,
Divya
- prashant_gohel
New Contributor
Hi Divya,
Ok, thank you, I will wait for your reply. - DivyaG_Altera
New Contributor
Hi Prashant,
Please bear with me - I'm checking with our tools team internally.
Regards,
Divya
- prashant_gohel
New Contributor
HI Divya,
I’ve attempted to run niosv-shell.exe using WSL, but I’m still encountering the application error.
Interestingly, the behavior seems to change with every system restart — sometimes it works after a reboot, and other times it doesn’t.
Please let me know if you need any additional information.