Nios® V/II Embedded Design Suite (EDS)
Support for Embedded Development Tools, Processors (SoCs and Nios® V/II processor), Embedded Development Suites (EDSs), Boot and Configuration, Operating Systems, C and C++
12744 Discussions

Failed to launch NIOSV Command Shell. Getting (0xc0000142) application error.

prashant_gohel
9,212 Views

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.

prashant_gohel_0-1746789795092.png


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.

Labels (1)
0 Kudos
43 Replies
DivyaG_Altera
Employee
6,212 Views

Hi Prashant, 

 

It appears you’ve already reinstalled the tools, yet the issue still persists.

Are there any other files remaining in the Quartus installation directory? Could you perform a completely clean install to ensure no outdated files are left behind?

 

Let me know if that works.

 

Regards,

Divya 

0 Kudos
prashant_gohel
6,118 Views

Hi Divya,

Thank you for the reply,

Yes, I have make sure that there is no outdated files in installation directory.

 

Best Regards,
Prashant Gohel

 

0 Kudos
prashant_gohel
6,117 Views

Hi divya,

Also the similar issue faced in some of my colleague system, in which we have intall Quartus 24.3 prime pro first time.

 

Best Regards, 
Prashant Gohel

 

0 Kudos
DivyaG_Altera
Employee
6,007 Views

Hi Prashant, 

 

We are not aware of any known issue and I cannot reproduce this at my end. It's interesting to see that two versions (23.4 and 24.3) far apart from each other show the exact same behavior. Do you only see this problem on a Windows machine ?

Can you share a screenshot of how the environment variables are setup. 

 

Regards,

Divya 

0 Kudos
prashant_gohel
5,965 Views

Hi Divya, 

prashant_gohel_0-1747714948229.png


We haven't tried on Linux system. As we only use windows system for Quartus tool.

Best Regards,
Prashant Gohel

0 Kudos
BoonBengT_Altera
Moderator
5,847 Views

Hi @DivyaG_Altera,


Any inputs from the environment variables from the windows system above.

Hope to hear from you soon.


Best Wishes

BB


0 Kudos
DivyaG_Altera
Employee
5,799 Views

Hi Prashant,

 

Since I’m unable to reproduce this issue, it’s hard to pinpoint the cause. I’ve checked the environment variable on my system and it mostly matches with yours, perhaps you could try updating the SOPC_KIT_NIOS2 under user variable to reference your current installation?

 

Regards,

Divya 

 

 

0 Kudos
prashant_gohel
5,712 Views

Hi Divya, 

Thank you for your response.

I have updated the SOPC_KIT_NIOS2 path as suggested, but unfortunately, the issue persists—I am still encountering the application error.

My Windows system operates under administrative restrictions. Could there be any background services or registry settings that require additional permissions to run the application properly?

I have also attempted to run the application using "Run as Administrator," but the error remains the same.

 

0 Kudos
DivyaG_Altera
Employee
5,680 Views

Hi Prashant, 

 

Is WSL installed on this Windows machine? If so, please try running the same process in WSL and let me know if that avoids the error you’re seeing on Windows.

 

Regards,

Divya 

0 Kudos
prashant_gohel
5,591 Views

HI Divya, 

I’ve attempted to run niosv-shell.exe using WSL, but I’m still encountering the application error.

prashant_gohel_0-1749011891970.png

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.

 

0 Kudos
DivyaG_Altera
Employee
5,569 Views

Hi Prashant, 

 

Please bear with me - I'm checking with our tools team internally. 

 

Regards,

Divya 

0 Kudos
prashant_gohel
5,519 Views

Hi Divya,

Ok, thank you, I will wait for your reply.

0 Kudos
prashant_gohel
5,184 Views

Hi Divya,

Is there any update from the tools team?

0 Kudos
DivyaG_Altera
Employee
5,149 Views

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 

0 Kudos
DivyaG_Altera
Employee
4,984 Views

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 

0 Kudos
BoonBengT_Altera
Moderator
4,815 Views

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


0 Kudos
prashant_gohel
4,786 Views

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

0 Kudos
prashant_gohel
4,781 Views

Did you find any PYTHON environment variables on your system ? 

I didn't get any path with PYTHON in environment variables.


0 Kudos
prashant_gohel
4,754 Views

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_0-1750663335428.png

 

0 Kudos
prashant_gohel
4,753 Views

We have also run the sfc/scannow command but still the behaviour is same.

prashant_gohel_1-1750663464352.png

 

0 Kudos
Reply