Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

IDE fails to open: spawn C:\WINDOWS\system32\cmd.exe ENOENT #2073

Closed
3 tasks done
theopenhighway opened this issue May 23, 2023 · 10 comments
Closed
3 tasks done

IDE fails to open: spawn C:\WINDOWS\system32\cmd.exe ENOENT #2073

theopenhighway opened this issue May 23, 2023 · 10 comments
Assignees
Labels
status: waiting for information More information must be provided before work can proceed type: imperfection Perceived defect in any part of project

Comments

@theopenhighway
Copy link

theopenhighway commented May 23, 2023

Describe the problem

I have installed Arduino 2.0 around April 2023 on an Asus laptop (with Windows) and been using it on a regular basis. However, today I encountered a problem where the IDE stuck in the loading page, as shown in this figure below. Never done any modifications on the software itself. Tried to reinstall the program but the problem still occurs. Have looked through similar problems with this but no documented issue on version 2.1.0, as far as I am aware of.

image

To reproduce

I just clicked on the exe file and it happened. So I don't know what would be needed to reproduce it.

Expected behavior

Arduino IDE running normally (directly showing IDE after it loads)

Arduino IDE version

2.1.0

Operating system

Windows

Operating system version

11 ver 22H2

Additional context

I have included additional information that may help to identify the problem. Basically went to an endless loop of error codes.
Windows PowerShell.txt

2023-05-23T17:50:11.112Z daemon ERROR Error: spawn C:\WINDOWS\system32\cmd.exe ENOENT
    at Process.ChildProcess._handle.onexit (node:internal/child_process:282:19)
    at onErrorNT (node:internal/child_process:480:16)
    at processTicksAndRejections (node:internal/process/task_queues:83:21)

Issue checklist

  • I searched for previous reports in the issue tracker
  • I verified the problem still occurs when using the latest nightly build
  • My report contains all necessary details
@theopenhighway theopenhighway added the type: imperfection Perceived defect in any part of project label May 23, 2023
@dankeboy36
Copy link
Contributor

I have included additional information that may help to identify the problem

Please reference this Arduino forum thread to see if it fixes your issue: https://forum.arduino.cc/t/arduino-ide-v2-hangs-at-start-up/1030052/7.

@per1234 per1234 added the status: waiting for information More information must be provided before work can proceed label May 24, 2023
@theopenhighway
Copy link
Author

theopenhighway commented May 30, 2023

sorry for the late update. still stuck in the loading page. however, error code doesn't appear.

image

@kittaakos
Copy link
Contributor

@theopenhighway, could you share the log files with us? You find the log files on Windows under C:\Users\<username>\AppData\Roaming\Arduino IDE\ where <username> is your Windows username. Please start the app; it does not load. Quit the app, go to the log folder, and attach the most recent log file to this GitHub issue. Thank you!

@kittaakos kittaakos self-assigned this Jun 2, 2023
@theopenhighway
Copy link
Author

here you go. compressed it since the file is too big.

2023-05-30_log.zip

@theopenhighway
Copy link
Author

anyway, i did uninstall and reinstall the software today. still show the same error code as the error code in the original post
2023-06-08_log.log

@kittaakos
Copy link
Contributor

Please check what does the following prints:

  • Open the Run dialog with +R (where ⊞ is the Windows sign on your keyboard),
  • Type cmd and press Enter (a terminal opens), and
  • Type echo %ComSpec% and press Enter.

@per1234 per1234 changed the title Arduino 2.1.0 fails to open, stuck in loading page Arduino 2.1.0 fails to open: spawn C:\WINDOWS\system32\cmd.exe ENOENT Jun 9, 2023
@per1234 per1234 changed the title Arduino 2.1.0 fails to open: spawn C:\WINDOWS\system32\cmd.exe ENOENT IDE fails to open: spawn C:\WINDOWS\system32\cmd.exe ENOENT Jun 9, 2023
@theopenhighway
Copy link
Author

image

@per1234 per1234 removed the status: waiting for information More information must be provided before work can proceed label Jun 10, 2023
@bobqianic
Copy link

bobqianic commented Jul 21, 2023

I've just run into the same issue on Windows 11. When I click on the IDE icon, I get the loading animation. But interestingly, the CPU usage remains quite low, and I've noticed that there are roughly 10 instances of the IDE executable running simultaneously.

I've tested all the IDE2 versions and they all seem to be experiencing the exact same issue. However, IDE1 works without a hitch on my computer.
@theopenhighway

@per1234 per1234 added the status: waiting for information More information must be provided before work can proceed label Jul 27, 2023
@per1234
Copy link
Contributor

per1234 commented Sep 28, 2023

Hi @theopenhighway. Please comment here to tell us whether you are still experiencing the problem if you try again with the latest version of Arduino IDE (currently 2.2.1).

This type of problem should now be completely avoided because Arduino IDE no longer uses cmd.exe thanks to #2067 and #2112

@theopenhighway
Copy link
Author

Hello @per1234 just want to let you know, it's running properly now. Thanks for your help.

image

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
status: waiting for information More information must be provided before work can proceed type: imperfection Perceived defect in any part of project
Projects
None yet
Development

No branches or pull requests

5 participants