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
- 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
- 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 - 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,
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
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,
- BoonBengT_Altera
Moderator
Hi @DivyaG_Altera,
Unfortunately issues are still persisting, can you please advise on above?
Hope to hear from you soon.
Best Wishes
BB
- BoonBengT_Altera
Moderator
Hi @DivyaG_Altera,
Any advise for from the above latest response?
Eager to hear from you soon.
Best Wishes
BB
- DivyaG_Altera
New Contributor
Hi Prashant,
We attempted to reproduce this issue on a Windows 10 machine but have not been successful so far.
The Tools team recommends trying standard Python 3.8.10, as it closely matches the Python 3.8.18 version used by quartus_py in Quartus 23.4.
Download Python 64bit 3.8.10 from:
https://www.python.org/ftp/python/3.8.10/python-3.8.10-amd64.exe
Run the Python installer after download completes. Select Custom Installation
uncheck Documentation
uncheck tcl/tk and IDLE
uncheck Python test suite
Click Next
Uncheck Associate files with Python (requires the py launcher)
Uncheck Create shortcuts for installed applications
Select Customized install location and use this path or any convenient short path.
c:\a\Python\Python38
Click install
Close
From command prompt:
cd <quartus installation>\niosv\bin\niosv-shell-files\
c:\a\Python\Python38\python main.py
As suggested above, set the PATH to be the minimal and run quartus_py
Please let us know if this makes any difference.
Regards,
Divya
- DivyaG_Altera
New Contributor
We attempted to reproduce this issue on a Windows 10 machine but have not been successful so far.
The Tools team recommends trying standard Python 3.8.10, as it closely matches the Python 3.8.18 version used by quartus_py in Quartus 23.4.
Download Python 64bit 3.8.10 from:
https://www.python.org/ftp/python/3.8.10/python-3.8.10-amd64.exe
Run the Python installer after download completes. Select Custom Installation
uncheck Documentation
uncheck tcl/tk and IDLE
uncheck Python test suite
Click Next
Uncheck Associate files with Python (requires the py launcher)
Uncheck Create shortcuts for installed applications
Select Customized install location and use this path or any convenient short path.
c:\a\Python\Python38
Click install
Close
From command prompt:
cd <quartus installation>\niosv\bin\niosv-shell-files\
c:\a\Python\Python38\python main.py
As suggested above, set the PATH to minimal, we recommend installation to be at default c:\intelFPGA_pro\23.4 and run NIOS V shell.
- prashant_gohel
New Contributor
Hi BB and Divya,
We have installed Python 3.8.10 as per your suggestion.
Initially, everything was working well — the Nios V console functioned correctly even after multiple system restarts.
However, today when I powered on my PC, I observed that the same error has reappeared.
Best Regards,
Prashant Gohel
- BoonBengT_Altera
Moderator
Hi @prashant_gohel,
Good day, just following up on the previous clarification.
By any chances did you managed to look into it?
Hope to hear from you soon.
Best Wishes
BB