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,352 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
2,546 Views

 

Sorry to hear that didn't help.

Could you please try running 'quartus_sh -s' to see if Quartus starts successfully?

0 Kudos
prashant_gohel
2,473 Views
0 Kudos
BoonBengT_Altera
Moderator
2,583 Views

Hi @DivyaG_Altera,


Unfortunately issues are still persisting, can you please advise on above?

Hope to hear from you soon.


Best Wishes

BB


0 Kudos
BoonBengT_Altera
Moderator
2,429 Views

Hi @DivyaG_Altera,


Any advise for from the above latest response?

Eager to hear from you soon.


Best Wishes

BB


0 Kudos
DivyaG_Altera
Employee
2,406 Views

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 

18042640322_embedded_image.png

 

Please let us know if this makes any difference.

 

Regards,

Divya 

 

0 Kudos
DivyaG_Altera
Employee
2,406 Views

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.

18042640322_embedded_image.png

0 Kudos
prashant_gohel
2,309 Views

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.

 

prashant_gohel_0-1752725467263.png

 

Best Regards,
Prashant Gohel

 

0 Kudos
BoonBengT_Altera
Moderator
2,323 Views

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


0 Kudos
BoonBengT_Altera
Moderator
1,675 Views

Hi @prashant_gohel,


As previously installing Python 3.8.10 did managed to fixed the issues until recently.

Which suspecting that there might be some corruption in the python end.

Did you managed to reinstalled as mention steps above to see if that works?

And recent is there any changes toward your system?


Best Wishes

BB


0 Kudos
DivyaG_Altera
Employee
1,608 Views

Hi @prashant_gohel 

 

Thanks for testing it out. Let us know if re-installing Python makes any difference. 

 

Meanwhile, our tools team have created a test setup with Windows 10 to list out the list of DLLs that are expected to be present for niosv-shell / qyartus_py.  To find this on your Windows machine, use this Microsoft utility : https://learn.microsoft.com/en-us/sysinternals/downloads/listdlls

 

To run this, first launch niosv shell :  c:\intelFPGA_pro\23.4\niosv\bin\niosv-shell.exe

Then from a new cmd shell, run : Listdlls.exe quartus_py.exe > out.txt

You can compare the DLLs listed in 'out.txt' with the list provided below by our tools team. For convenience, we've categorized the DLLs based on their source.

 

Below is the list of DLLs provided by Windows:

 

Base                Size      Path

0x00000000072b0000  0x1f8000  C:\WINDOWS\SYSTEM32\ntdll.dll

0x0000000005750000  0xc2000   C:\WINDOWS\System32\KERNEL32.DLL

0x00000000049f0000  0x2ff000  C:\WINDOWS\System32\KERNELBASE.dll

0x00000000051d0000  0x100000  C:\WINDOWS\System32\ucrtbase.dll

0x0000000003cf0000  0x3b000   C:\WINDOWS\SYSTEM32\IPHLPAPI.DLL

0x0000000007260000  0x8000    C:\WINDOWS\System32\PSAPI.DLL

0x00000000058b0000  0x6b000   C:\WINDOWS\System32\WS2_32.dll

0x00000000070c0000  0x19d000  C:\WINDOWS\System32\USER32.dll

0x0000000005f70000  0x123000  C:\WINDOWS\System32\RPCRT4.dll

0x0000000004f40000  0x22000   C:\WINDOWS\System32\win32u.dll

0x0000000006280000  0xaf000   C:\WINDOWS\System32\ADVAPI32.dll

0x0000000005920000  0x9e000   C:\WINDOWS\System32\msvcrt.dll

0x00000000063c0000  0x2b000   C:\WINDOWS\System32\GDI32.dll

0x00000000052d0000  0x9f000   C:\WINDOWS\System32\sechost.dll

0x0000000004d90000  0x11a000  C:\WINDOWS\System32\gdi32full.dll

0x0000000005540000  0x55000   C:\WINDOWS\System32\SHLWAPI.dll

0x00000000049c0000  0x27000   C:\WINDOWS\System32\bcrypt.dll

0x0000000004cf0000  0x9d000   C:\WINDOWS\System32\msvcp_win.dll

0x00000000f5a10000  0x1d000   C:\WINDOWS\SYSTEM32\MPR.dll

0x00000000f2650000  0x19000   C:\WINDOWS\SYSTEM32\NETAPI32.dll

0x0000000005820000  0x2f000   C:\WINDOWS\System32\IMM32.DLL

0x0000000004200000  0x18000   C:\WINDOWS\SYSTEM32\CRYPTSP.dll

0x0000000003930000  0x38000   C:\WINDOWS\system32\rsaenh.dll

0x0000000004220000  0xc000    C:\WINDOWS\SYSTEM32\CRYPTBASE.dll

0x0000000004eb0000  0x82000   C:\WINDOWS\System32\bcryptPrimitives.dll

0x00000000f8e30000  0x19000   C:\WINDOWS\SYSTEM32\SAMCLI.DLL

0x0000000003e00000  0xc000    C:\WINDOWS\SYSTEM32\NETUTILS.DLL

0x0000000003e10000  0x43000   C:\WINDOWS\SYSTEM32\LOGONCLI.DLL

0x00000000f8d10000  0xa000    C:\WINDOWS\SYSTEM32\VERSION.dll

 

Here is a list of DLLs provided by Quartus : 

 

 

0x00000000a08f0000  0x1b000   C:\intelfpga_pro\23.4\quartus\bin64\quartus_py.exe

0x00000000fffc0000  0x6000    C:\intelfpga_pro\23.4\quartus\bin64\ccl_main_globals.dll

0x00000000e76d0000  0x1fb000  C:\intelfpga_pro\23.4\quartus\bin64\tcmalloc_minimal.dll

0x00000000f45e0000  0x59000   C:\intelfpga_pro\23.4\quartus\bin64\ccl_mem.dll

0x00000000e7550000  0x172000  C:\intelfpga_pro\23.4\quartus\bin64\ccl_msg.dll

0x00000000cd8a0000  0x1b4000  C:\intelfpga_pro\23.4\quartus\bin64\ccl_gen.dll

0x00000000ff420000  0x14000   C:\intelfpga_pro\23.4\quartus\bin64\ccl_py.dll

0x00000000a8990000  0x42b000  C:\intelfpga_pro\23.4\quartus\bin64\python38.dll

0x00000000fbdf0000  0x1b000   C:\intelfpga_pro\23.4\quartus\bin64\VCRUNTIME140.dll

0x00000000e4750000  0x8e000   C:\intelfpga_pro\23.4\quartus\bin64\MSVCP140.dll

0x00000000ffd20000  0xc000    C:\intelfpga_pro\23.4\quartus\bin64\VCRUNTIME140_1.dll

0x00000000ff9d0000  0x6000    C:\intelfpga_pro\23.4\quartus\bin64\udm_barebones.dll

0x00000000f3400000  0x2e000   C:\intelfpga_pro\23.4\quartus\bin64\CCL_ERR.dll

0x00000000f2b30000  0x53000   C:\intelfpga_pro\23.4\quartus\bin64\ccl_thr.dll

0x00000000c24b0000  0x1f3000  C:\intelfpga_pro\23.4\quartus\bin64\dbghelp.dll

0x00000000ff410000  0x7000    C:\intelfpga_pro\23.4\quartus\bin64\tbbamalloc.dll

0x00000000a5170000  0x323000  C:\intelfpga_pro\23.4\quartus\bin64\tbbmalloc.dll

0x00000000e74f0000  0x51000   C:\intelfpga_pro\23.4\quartus\bin64\tbb12.dll

0x00000000f2ca0000  0x2e000   C:\intelfpga_pro\23.4\quartus\bin64\boost_filesystem-mt-x64.dll

0x00000000e4710000  0x31000   C:\intelfpga_pro\23.4\quartus\bin64\VCOMP140.DLL

0x00000000e2400000  0x85000   C:\intelfpga_pro\23.4\quartus\bin64\ccl_atcl.dll

0x00000000f2930000  0x26000   C:\intelfpga_pro\23.4\quartus\bin64\ccl_big.dll

0x00000000ddb10000  0x3f000   C:\intelfpga_pro\23.4\quartus\bin64\ccl_cfg_ini.dll

0x00000000cd840000  0x53000   C:\intelfpga_pro\23.4\quartus\bin64\ccl_fio.dll

0x00000000f3b10000  0x14000   C:\intelfpga_pro\23.4\quartus\bin64\ccl_ver.dll

0x00000000faad0000  0xb000    C:\intelfpga_pro\23.4\quartus\bin64\ccl_osi.dll

0x00000000cd7e0000  0x59000   C:\intelfpga_pro\23.4\quartus\bin64\ccl_qtl.dll

0x000000006ded0000  0x18a000  C:\intelfpga_pro\23.4\quartus\bin64\tcl86.dll

0x00000000f34f0000  0x19000   C:\intelfpga_pro\23.4\quartus\bin64\ccl_tst.dll

0x00000000ee710000  0x24000   C:\intelfpga_pro\23.4\quartus\bin64\ccl_fstr.dll

0x00000000c2c40000  0x136000  C:\intelfpga_pro\23.4\quartus\bin64\ccl_sqlite3.dll

0x00000000f3320000  0x17000   C:\intelfpga_pro\23.4\quartus\bin64\ccl_xml.dll

0x00000000cd600000  0x58000   C:\intelfpga_pro\23.4\quartus\bin64\ccl_pdb.dll

0x00000000a4e80000  0x2e7000  C:\intelfpga_pro\23.4\quartus\bin64\xerces-c_3_2.dll

0x00000000e9d90000  0x2a000   C:\intelfpga_pro\23.4\quartus\bin64\fmt.dll

0x00000000f2c60000  0x1b000   C:\intelfpga_pro\23.4\quartus\bin64\ccl_zlib.dll

0x00000000a4b20000  0x352000  C:\intelfpga_pro\23.4\quartus\bin64\libcrypto-1_1-x64.dll

0x00000000a4950000  0x1ce000  C:\intelfpga_pro\23.4\quartus\bin64\icuuc69.dll

0x00000000f2670000  0x1e000   C:\intelfpga_pro\23.4\quartus\bin64\ccl_clw.dll

0x00000000e3800000  0x22000   C:\intelfpga_pro\23.4\quartus\bin64\lz4.dll

0x00000000c13d0000  0xb4000   C:\intelfpga_pro\23.4\quartus\bin64\zstd.dll

0x00000000f25f0000  0x12000   C:\intelfpga_pro\23.4\quartus\bin64\LZMA18.dll

0x00000000d1090000  0x31000   C:\intelfpga_pro\23.4\quartus\bin64\liblzma.dll

0x00000000c3d70000  0x1b59000  C:\intelfpga_pro\23.4\quartus\bin64\icudt69.dll

0x00000000f4a00000  0xf000    C:\intelfpga_pro\23.4\quartus\bin64\python3.DLL

0x00000000f2270000  0x18000   c:\intelfpga_pro\23.4\quartus\bin64\python\lib\_bz2.pyd

0x00000000e1c80000  0x2b000   c:\intelfpga_pro\23.4\quartus\bin64\python\lib\_lzma.pyd

0x00000000f0c90000  0x17000   c:\intelfpga_pro\23.4\quartus\bin64\python\lib\_socket.pyd

0x00000000f42f0000  0xa000    c:\intelfpga_pro\23.4\quartus\bin64\python\lib\select.pyd

 

0 Kudos
BoonBengT_Altera
Moderator
1,554 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
1,535 Views

Hi @DivyaG_Altera 

 

I have tried to uninstall all version of python from my PC and re-install 3.8.10 but still facing the same application error randomly on system power cycle.

I have run the list DLL command as you have mentioned and attached the out.txt file here.

Recently, we have updated to Windows 11, so the list is based on the Windows 11.

0 Kudos
prashant_gohel
1,369 Views

We have observed the similar issue while using quartus_pfg.exe as well, this is with the Quartus 25.1

prashant_gohel_0-1753963168972.jpeg

 

0 Kudos
BoonBengT_Altera
Moderator
1,147 Views

Hi @DivyaG_Altera,


Any inputs on above latest finding?

Hope to hear from you soon


Regards

BB


0 Kudos
LYGOOI
Employee
1,085 Views

Hi @prashant_gohel ,

 

I will be representing @DivyaG_Altera while she is temporary away.

Our team is concerned with the files' integrity in your system, and we wish to get more info on them.

 

Please hold on while our team is preparing script to run file integrity checks in your system.

 

Regards,

Liang Yu  

 

0 Kudos
LYGOOI
Employee
966 Views

Hi @prashant_gohel 

 

The script for Windows 11 is ready, and attached in this article.

1. Update the required_files_win11.txt based on your system's Windows installation directory and Quartus installation directory paths. 

2. Run generate_md5.bat (as shown below)

generate_md5.bat required_files_win11.txt my_md5.txt

3. This will produce my_md5.txt

4. Run file compare

> fc required_files_win11_md5.txt my_md5.txt

5. This will report the lines that are different between the two files.

6. Please share your results with us.

 

 

Alternatively, you can also use Listdlls.exe (link).

1. Enter Nios V Shell

2. Run Listdlls.exe

Listdlls.exe quartus_py > my_raw.txt

3. Run file compare

> fc required_files_win11_raw.txt my_raw.txt

 

Regards,

Liang Yu

0 Kudos
prashant_gohel
894 Views

Hi Liang Yu,

 

Thank you for sharing the script files.

 

I have executed the script as suggested and copied the command prompt log(compare_25.1.txt) to share with you. The script was run on a Windows 11 PC with Quartus version 25.1.

 

Could you please share the required_files_win11_md5.txt file for Quartus Prime Pro 23.4 as well?

 

Thanks and regards,

Prashant Gohel

0 Kudos
LYGOOI
Employee
880 Views

Hi @prashant_gohel 

 

Thanks for the compare_25.1.txt.

I shared the txt file to my colleagues for their analysis.

 

It seems that a file is missing in your system - WINDOWS\System32\umppc19811.dll  , FILE NOT FOUND

Let's wait for their advice on the missing file.

I will keep you updated on any progress soon.

 

Also relayed your request to them on the Quartus Prime Pro 23.4 's required_files_win11_md5.txt too.

 

Regards,

Liang Yu

0 Kudos
LYGOOI
Employee
687 Views

Hi @prashant_gohel ,

 

Attached the Quartus Prime Pro 23.4 's required_files_win11_md5.txt in the ZIP package.

 

About the missing umppc19811.dll,

  1. It might be possible that it have a different version number. Try the command below & see if it has a different version:
dir C:\Windows\system32\umppc*
dism /online /Cleanup-Image /CheckHealth


If a problem is detected, perform the auto-fix. 

dism /online /Cleanup-Image /RestoreHealth

 

Lastly, can you share your Windows 11 system info?
Run "systeminfo", report back the OS Name & OS Version.

 

For example, our system here is:

OS Name: Microsoft Windows 11 Enterprise

OS Version: 10.0.22631 N/A Build 22631

 

Regards,

Liang Yu

 

0 Kudos
prashant_gohel
680 Views

Hi Liang Yu,

Here is the information about the Windows 11.

OS Name: Microsoft Windows 11 Pro
OS Version: 10.0.26100 N/A Build 26100

I have run the same for Quartus 23.4 and atached the command promt log here.

I have checked the dir C:\Windows\system32\umppc* command and didn't found any file.

Will try the DISM command and share the result with you.

 

0 Kudos
prashant_gohel
669 Views

prashant_gohel_1-1755674859555.png

I have run the DISM command, But still not found the umppc dll files.

0 Kudos
Reply