IDE hangs on startup

Continuing the discussion from Arduino IDE 2.3.2 stuck on Loading Screen Win 11 Home:

Yes, I did change time zones yesterday. EST to PST. I did the sync and IDE 2.3.2 will still not load, hangs at startup. Pulsing center icon on screen.

1 Like

This is the second 2.3.x hang I've had with the new Arduino IDE. The first was round OneDrive and now an unknown. Tried the clock sync no change. I did change time zone yesterday. 5/4/2024 EST > 5/5/2024 PST. I feel that the development team needs to go back and look at the code changes from 1.8.x to 2.3.x and clean up whatever is causing this mess. I am not the only person having hang problems. I'm re-installing 1.8.x. I did nothing to my laptop other than get on an airplane.

I uninstalled 2.3.2 and reinstalled and sync'd the clock. Still hangs at startup. IDE 1.8.18 runs fine.

Hi @lsdobyns. I'm going to ask you to post some additional information that might help us to identify the problem.


:exclamation: This procedure is not intended to solve the problem. The purpose is to gather more information.


Please do this:

  1. Close all Arduino IDE windows if the IDE is already running.
  2. Start Windows "File Explorer".
  3. Open the Arduino IDE installation folder.
    The default installation location is at one of the following paths:
    • C:\Program Files\Arduino IDE
      
    • C:\Users\<username>\AppData\Local\Programs\Arduino IDE
      
      (where <username> is your Windows username)
      :exclamation: If looking for it with your file manager or command line, note that the AppData folder is hidden by default. On Windows "File Explorer", you can make it visible by opening the "View" menu, then checking the box next to "☐ Hidden items".
  4. In the folder listing of the Arduino IDE installation folder, hold the Shift key while clicking the right hand button on the mouse.
  5. From the context menu, click "Open PowerShell window here".
    Windows PowerShell will now open with the current directory set to the Arduino IDE installation folder.
  6. Type the following command:
    & ".\Arduino IDE"
    
  7. Press the Enter key.
    Debug output should now be printed to the PowerShell window as Arduino IDE starts.
  8. Wait until you are sure the IDE startup has gone into the hang state
    (as indicated by no additional output being printed to the terminal).
  9. Switch back to the PowerShell window if the Arduino IDE window took the focus.
  10. Press the Ctrl+Shift+A keyboard shortcut.
    This will select all the text in the PowerShell window.
  11. Press the Ctrl+C keyboard shortcut.
    This will copy the contents of the PowerShell window to the clipboard.
  12. Open a forum reply here by clicking the "Reply" button.
  13. Click the <CODE/> icon on the post composer toolbar.
    This will add the forum's code block markup (```) to your reply to make sure the error messages are correctly formatted.
    Code block icon on toolbar
  14. Press the Ctrl+V keyboard shortcut.
    This will paste the output into the code block.
  15. Move the cursor outside of the code block markup before you add any additional text to your reply.
  16. Click the "Reply" button to post the output.

Please let me know if you have any questions or problems while following those instructions.

Well Murphy. I noticed MS updated OneDrive on 4/27/2024. I did not have it connected/Linking anything on this PC. So, signed into OneDrive and then I and unlinked this PC again. Now the 2.3.2 IDE loads.

I will see if I can uninstall OneDrive.

Lee

Great job on getting it working again! It might have the same explanation as I mentioned the last time you were having a problem with the IDE failing to start up:

There are several distinct and unrelated problems that can cause the general symptom of the IDE failing to start up completely. Each individual cause will typically be associated with a distinctive error message in the logs generated by Arduino IDE (which are printed to the terminal when you start the IDE from the command line).

In Arduino IDE 2.3.2 stuck on Loading Screen Win 11 Home, I could tell that the cause was an out of sync clock due to this error in their logs:

So if a user is experiencing the general symptom of Arduino IDE failing to start up completely, they should not immediately jump to the conclusion that the cause is definitely an out of sync clock, unless they also find the "Error verifying signature: openpgp: signature expired" error in their logs.

Arduino IDE 2.x is a complete rewrite of Arduino IDE from scratch, in a new programming language (TypeScript vs. Java), which does not share even a single line of code with Arduino IDE 1.x. So "the code changes" are everything.

4 posts were split to a new topic: IDE hangs on startup: seems that the program cannot find certain things

My IDE hung on startup too, looking at the logs, a file named library_index.json was missing under AppData/Arduino15. I just created an empty file with that name there and it worked.

edit: It actually didn't work, I had to download the correct file from here:

https://downloads.arduino.cc/libraries/library_index.tar.bz2

then extracted it and moved it into the Arduino15 directory, that solved it