Skip to content

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

Closed
@theopenhighway

Description

@theopenhighway

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

Activity

dankeboy36

dankeboy36 commented on May 24, 2023

@dankeboy36
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.

theopenhighway

theopenhighway commented on May 30, 2023

@theopenhighway
Author

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

image

kittaakos

kittaakos commented on Jun 2, 2023

@kittaakos
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!

self-assigned this
on Jun 2, 2023
theopenhighway

theopenhighway commented on Jun 8, 2023

@theopenhighway
Author

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

2023-05-30_log.zip

theopenhighway

theopenhighway commented on Jun 8, 2023

@theopenhighway
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

kittaakos commented on Jun 8, 2023

@kittaakos
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.
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`[/+] on Jun 9, 2023
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`[/+] on Jun 9, 2023
theopenhighway

theopenhighway commented on Jun 10, 2023

@theopenhighway
Author

image

bobqianic

bobqianic commented on Jul 21, 2023

@bobqianic

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

4 remaining items

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

    Development

    No branches or pull requests

      Participants

      @kittaakos@per1234@theopenhighway@dankeboy36@bobqianic

      Issue actions

        IDE fails to open: `spawn C:\WINDOWS\system32\cmd.exe ENOENT` · Issue #2073 · arduino/arduino-ide