Arduino IDE 2.0.3 is extremely slow on Win 11

Hi

When I am loading a huge sketch, containing the additional board URLs listed below, the Arduino IDE 2.0.3 hangs infinitively in the "Downloading index: package_sparkfun_index-json" and I can't compile anything.

Any suggestions are appreciated :slight_smile:

Beside that it seem my nicely and fast running Win 11 PC slows down quite a lot, when Arduino IDE 2.0.3 i running - despite disabling F-secure and other running antivirus SW.

Best regards
Bjarke

List of board URLs:

https://raw.githubusercontent.com/espressif/arduino-esp32/gh-pages/package_esp32_index.json

https://raw.githubusercontent.com/sparkfun/Arduino_Boards/master/IDE_Board_Manager/package_sparkfun_index.json

download an older version of Arduino IDE. link: https://www.arduino.cc/en/software and pick: Arduino IDE 1.8.19

Hi Memind
Thank you for answering.
I have tried that, but Arduino IDE 1.8.19 will not start. I only see the splash screen and then the program terminates.

Hi @Ferrari. Since we are on the subject of Arduino IDE 1.x, I think it would be worth investigating that problem. At the least, we may be able to get that version of the IDE working for you. At best, perhaps when we identify the cause of Arduino IDE 1.x not starting, we might also have identified the problem with Arduino IDE 2.x.

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

Please do this:

  1. Start Windows "File Explorer".
  2. Open the Arduino IDE 1.x installation folder.
    (usually C:\Program Files (x86)\Arduino)
  3. In the folder listing of the Arduino IDE installation folder, hold the Shift key while clicking the right hand button on the mouse.
  4. From the context menu, click "Open PowerShell window here".
    PowerShell will now open with the current directory set to the Arduino IDE installation folder.
  5. Type the following command:
    .\arduino_debug
    
  6. Press the Enter key.
    Debug output should now be printed to the PowerShell window as the Arduino IDE starts.
  7. Wait for the Arduino IDE to finish starting, or failing to start.
    1. Switch back to the PowerShell window if the Arduino IDE window took the focus.
  8. Right click on the title bar of the PowerShell window.
    This will open a context menu.
  9. Select Edit > Select All from the context menu.
    This will select all the text in the PowerShell window.
  10. Press Ctrl+C.
    This will copy the contents of the PowerShell window to the clipboard.
  11. Open a forum reply here by clicking the Reply button.
  12. Click the </> 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
  13. Press Ctrl+V.
    This will paste the output into the code block.
  14. Move the cursor outside of the code block markup before you add any additional text to your reply.
  15. Click the Reply button to post the output.

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

try opening the file on another device.

Hi ptillisch

Oh - thank you so much for helping me :slight_smile:

Below is the debug output. It looks like there is some cloud issues by this line

java.io.IOException: Cloudfiludbyderen kører ikke

directly translated from danish to english:
java.io.IOException: "The Cloud file service provider is not running"

PS C:\Program Files (x86)\Arduino> .\arduino_debug
Loading configuration...
Initializing packages...
java.io.IOException: Cloudfiludbyderen kører ikke
        at java.io.FileInputStream.readBytes(Native Method)
        at java.io.FileInputStream.read(FileInputStream.java:255)
        at sun.nio.cs.StreamDecoder.readBytes(StreamDecoder.java:284)
        at sun.nio.cs.StreamDecoder.implRead(StreamDecoder.java:326)
        at sun.nio.cs.StreamDecoder.read(StreamDecoder.java:178)
        at java.io.InputStreamReader.read(InputStreamReader.java:184)
        at java.io.BufferedReader.fill(BufferedReader.java:161)
        at java.io.BufferedReader.readLine(BufferedReader.java:324)
        at java.io.BufferedReader.readLine(BufferedReader.java:389)
        at processing.app.legacy.PApplet.loadStrings(PApplet.java:249)
        at processing.app.helpers.PreferencesMap.load(PreferencesMap.java:100)
        at processing.app.helpers.PreferencesMap.load(PreferencesMap.java:74)
        at processing.app.helpers.PreferencesMap.<init>(PreferencesMap.java:56)
        at processing.app.debug.LegacyTargetPlatform.<init>(LegacyTargetPlatform.java:72)
        at processing.app.BaseNoGui.loadTargetPackage(BaseNoGui.java:602)
        at processing.app.BaseNoGui.loadHardware(BaseNoGui.java:582)
        at processing.app.BaseNoGui.initPackages(BaseNoGui.java:496)
        at processing.app.Base.<init>(Base.java:272)
        at processing.app.Base.main(Base.java:150)
java.lang.NullPointerException
        at processing.app.helpers.PreferencesMap.load(PreferencesMap.java:101)
        at processing.app.helpers.PreferencesMap.load(PreferencesMap.java:74)
        at processing.app.helpers.PreferencesMap.<init>(PreferencesMap.java:56)
        at processing.app.debug.LegacyTargetPlatform.<init>(LegacyTargetPlatform.java:72)
        at processing.app.BaseNoGui.loadTargetPackage(BaseNoGui.java:602)
        at processing.app.BaseNoGui.loadHardware(BaseNoGui.java:582)
        at processing.app.BaseNoGui.initPackages(BaseNoGui.java:496)
        at processing.app.Base.<init>(Base.java:272)
        at processing.app.Base.main(Base.java:150)
PS C:\Program Files (x86)\Arduino>

As a "once" MCSE, my suspiction is a system bottleneck with the harddrive and cache/swapfile.

The above may not be "fixable" on older hardware.

  • If you have a spinner disk, SSD "may" be helpful but only if your SATA interface is SATA III
  • More RAM will provide more cache but 8G should be satisfactory
  • An i5 is often the processor on consumer PC and is the minimum I would recommend for IDE 2

All the above are just possibilities; the expensive solution is shiny new hardware.

Windows 10/11 is minimally useful for browsing and email with 4G RAM and 128G SSD and i3. As expected, moving up the technology tier to i5, i7, i9 and RAM > 8G generally improves the end-user expectations for speed.

If you do not require a browser while programming, you may wish to change the background programs that are loaded at boot-up:

You may find that fine-tuning screen performance will help:

And the Internet is filled with numerous suggestions; just beware what you do so you can "un-do" if not benefitial.

I personally have not purchased a new PC in 12+ years, rather I look for refurbished class "A" deals ... tremendous savings on corporate retired machines. I am on a Win-11 i5, 8G, 250SSD Surface Pro purchased for under $250... received in like-new condition.

My Dev box is a Dell notebook, 16G RAM, i7, 1T SSD and IDE 2 is a joy to use, improving with each revision.

@ptillisch @Ferrari - I wonder if this is related to some of the stuff I posted on the Teensy thread today:
Arduino CLI And IDE now Released - Teensy Supported! - Page 16 (pjrc.com)

Where I notice that it can take a very long time for the downloading ... to complete. In my case the majority of the time it is showing the Teensy Json file.

There are times where it feels like it is > 30 seconds.
Note: My last run it took something like 15 seconds for it to load all of the board json files

Wget of the teensy one on my W11 machine took about 3.5 seconds
EDIT: error on my wget timing. It is actually taking between about .09 and .2 seconds.
So obviously something else happening.

This topic was automatically closed 180 days after the last reply. New replies are no longer allowed.