IDE hangs on startup: "Error: 13 INTERNAL: Received RST_STREAM with code 0"

Hi there!

As title suggests, installing Arduino IDE on a XPS laptop results in application getting stuck on pulsing logo screen. Full details below:

PS C:\Program Files\arduino-ide> & ".\Arduino IDE"
PS C:\Program Files\arduino-ide>
Arduino IDE 2.3.3
Checking for frontend application configuration customizations. Module path: C:\Program Files\arduino-ide\resources\app\lib\backend\electron-main.js, destination 'package.json': C:\Program Files\arduino-ide\resources\app\package.json
Setting 'theia.frontend.config.appVersion' application configuration value to: "2.3.3" (type of string)
Setting 'theia.frontend.config.cliVersion' application configuration value to: "1.0.4" (type of string)
Setting 'theia.frontend.config.buildDate' application configuration value to: "2024-09-25T09:41:18.242Z" (type of string)
Frontend application configuration after modifications: {"applicationName":"Arduino IDE","defaultTheme":{"light":"arduino-theme","dark":"arduino-theme-dark"},"defaultIconTheme":"none","electron":{"windowOptions":{}},"defaultLocale":"","validatePreferencesSchema":false,"preferences":{"window.title":"${rootName}${activeEditorShort}${appName}","files.autoSave":"afterDelay","editor.minimap.enabled":false,"editor.tabSize":2,"editor.scrollBeyondLastLine":false,"editor.quickSuggestions":{"other":false,"comments":false,"strings":false},"editor.maxTokenizationLineLength":500,"editor.bracketPairColorization.enabled":false,"breadcrumbs.enabled":false,"workbench.tree.renderIndentGuides":"none","explorer.compactFolders":false},"appVersion":"2.3.3","cliVersion":"1.0.4","buildDate":"2024-09-25T09:41:18.242Z"}
Starting backend process. PID: 21728
Using browser-only version of superagent in non-browser environment
Configuration directory URI: 'file:///c%3A/Users/msavvides/.arduinoIDE'
Configuring to accept webviews on '^.+\.webview\..+$' hostname.
2024-09-30T08:49:50.945Z root INFO Backend Object.initialize: 6.2 ms [Finished 0.703 s after backend start]
2024-09-30T08:49:50.977Z root INFO Backend Object.configure: 5.0 ms [Finished 0.703 s after backend start]
2024-09-30T08:49:50.977Z root INFO Backend a.onStart: 1.8 ms [Finished 0.703 s after backend start]
2024-09-30T08:49:50.978Z root INFO Backend a.configure: 0.4 ms [Finished 0.729 s after backend start]
2024-09-30T08:49:50.979Z root INFO Backend d.onStart: 0.3 ms [Finished 0.729 s after backend start]
2024-09-30T08:49:50.981Z root INFO Backend d.configure: 0.1 ms [Finished 0.729 s after backend start]
2024-09-30T08:49:50.983Z root INFO Backend d.initialize: 25.6 ms [Finished 0.729 s after backend start]
2024-09-30T08:49:50.983Z root INFO Backend c.onStart: 0.3 ms [Finished 0.729 s after backend start]
2024-09-30T08:49:50.984Z root INFO Backend s.configure: 32.1 ms [Finished 0.761 s after backend start]
2024-09-30T08:49:50.987Z config INFO >>> Initializing CLI configuration...
2024-09-30T08:49:50.988Z root INFO Backend c.initialize: 1.1 ms [Finished 0.762 s after backend start]
2024-09-30T08:49:50.988Z root INFO Backend x.onStart: 1.5 ms [Finished 0.763 s after backend start]
2024-09-30T08:49:50.990Z config INFO Loading CLI configuration from c:\Users\msavvides\.arduinoIDE\arduino-cli.yaml...
2024-09-30T08:49:50.991Z daemon INFO Starting daemon from C:\Program Files\arduino-ide\resources\app\lib\backend\resources\arduino-cli.exe...
2024-09-30T08:49:50.991Z root INFO Backend s.initialize: 0.7 ms [Finished 0.765 s after backend start]
2024-09-30T08:49:50.991Z root INFO Backend w.onStart: 2.5 ms [Finished 0.767 s after backend start]
2024-09-30T08:49:50.991Z root INFO Backend r.configure: 4.0 ms [Finished 0.767 s after backend start]
2024-09-30T08:49:50.991Z discovery-log INFO start
2024-09-30T08:49:50.991Z discovery-log INFO start new deferred
2024-09-30T08:49:50.991Z root INFO Backend d.initialize: 1.2 ms [Finished 0.768 s after backend start]
2024-09-30T08:49:50.991Z root INFO Backend y.onStart: 4.1 ms [Finished 0.771 s after backend start]
2024-09-30T08:49:50.991Z root INFO Backend r.configure: 3.2 ms [Finished 0.772 s after backend start]
2024-09-30T08:49:50.991Z root INFO Backend s.onStart: 0.9 ms [Finished 0.774 s after backend start]
2024-09-30T08:49:50.991Z root INFO Backend h.configure: 0.8 ms [Finished 0.774 s after backend start]
2024-09-30T08:49:50.991Z root INFO Backend a.configure: 0.3 ms [Finished 0.775 s after backend start]
2024-09-30T08:49:50.991Z root INFO Backend l.configure: 0.1 ms [Finished 0.775 s after backend start]
2024-09-30T08:49:50.996Z root INFO Theia app listening on http://127.0.0.1:57597.
2024-09-30T08:49:50.996Z root INFO Finished starting backend application: 5.4 ms [Finished 0.780 s after backend start]
2024-09-30T08:49:51.023Z root WARN The local plugin referenced by local-dir:/c%3A/Users/msavvides/.arduinoIDE/plugins does not exist.
2024-09-30T08:49:51.024Z root WARN The local plugin referenced by local-dir:/c%3A/Users/msavvides/.arduinoIDE/extensions does not exist.
2024-09-30T08:49:51.024Z root WARN The local plugin referenced by local-dir:C:\Users\msavvides\.arduinoIDE\plugins does not exist.
2024-09-30T08:49:51.075Z config INFO Loaded CLI configuration: {"board_manager":{"additional_urls":[]}}
2024-09-30T08:49:51.075Z config INFO Loading fallback CLI configuration to get 'directories.data' and 'directories.user'
2024-09-30T08:49:51.170Z root INFO Resolve plugins list: 180.8 ms [Finished 0.953 s after backend start]
2024-09-30T08:49:52.673Z daemon INFO time="2024-09-30T09:49:52+01:00" level=info msg="arduino-cli version 1.0.4"
time="2024-09-30T09:49:52+01:00" level=info msg="Using config file: c:\\Users\\msavvides\\.arduinoIDE\\arduino-cli.yaml"
time="2024-09-30T09:49:52+01:00" level=info msg="Executing `arduino-cli daemon`"
Daemon is now listening on 127.0.0.1:57601
{"IP":"127.0.0.1","Port":"57601"}
2024-09-30T08:49:52.673Z daemon INFO Daemon is running.
2024-09-30T08:49:52.674Z config INFO Loaded fallback CLI configuration: {"directories":{"user":"C:\\Users\\msavvides\\OneDrive - Haberdashers' Elstree Schools\\Documents\\Arduino","data":"C:\\Users\\msavvides\\AppData\\Local\\Arduino15"}}
2024-09-30T08:49:52.674Z config INFO Merged CLI configuration with the fallback: {"directories":{"user":"C:\\Users\\msavvides\\OneDrive - Haberdashers' Elstree Schools\\Documents\\Arduino","data":"C:\\Users\\msavvides\\AppData\\Local\\Arduino15"},"board_manager":{"additional_urls":[]}}
2024-09-30T08:49:52.674Z config INFO Loaded the CLI configuration.
2024-09-30T08:49:52.681Z config INFO Mapped the CLI configuration: {"dataDirUri":"file:///c%3A/Users/msavvides/AppData/Local/Arduino15","sketchDirUri":"file:///c%3A/Users/msavvides/OneDrive%20-%20Haberdashers%27%20Elstree%20Schools/Documents/Arduino","additionalUrls":[],"network":"none","locale":"en"}
2024-09-30T08:49:52.681Z config INFO Validating the CLI configuration...
2024-09-30T08:49:52.683Z config INFO The CLI config is valid.
2024-09-30T08:49:52.683Z config INFO <<< Initialized the CLI configuration.
2024-09-30T08:49:52.692Z root ERROR Uncaught Exception:  Error: 13 INTERNAL: Received RST_STREAM with code 0
2024-09-30T08:49:52.692Z root ERROR Error: 13 INTERNAL: Received RST_STREAM with code 0
    at t.callErrorFromStatus (C:\Program Files\arduino-ide\resources\app\lib\backend\main.js:2:912720)
    at Object.onReceiveStatus (C:\Program Files\arduino-ide\resources\app\lib\backend\main.js:2:938041)
    at Object.onReceiveStatus (C:\Program Files\arduino-ide\resources\app\lib\backend\main.js:2:933919)
    at Object.onReceiveStatus (C:\Program Files\arduino-ide\resources\app\lib\backend\main.js:2:933364)
    at C:\Program Files\arduino-ide\resources\app\lib\backend\main.js:2:1019505
    at process.processTicksAndRejections (node:internal/process/task_queues:77:11)
for call at
    at a.makeUnaryRequest (C:\Program Files\arduino-ide\resources\app\lib\backend\main.js:2:937582)
    at a.create (C:\Program Files\arduino-ide\resources\app\lib\backend\main.js:2:1004397)
    at instance (C:\Program Files\arduino-ide\resources\app\lib\backend\main.js:2:769581)
    at new Promise (<anonymous>)
    at v.createClient (C:\Program Files\arduino-ide\resources\app\lib\backend\main.js:2:769558)
    at v.create (C:\Program Files\arduino-ide\resources\app\lib\backend\main.js:2:768466)
    at C:\Program Files\arduino-ide\resources\app\lib\backend\main.js:2:767362
    at C:\Program Files\arduino-ide\resources\app\lib\backend\main.js:2:1212097
    at i.invoke (C:\Program Files\arduino-ide\resources\app\lib\backend\main.js:2:1212187)
    at a.fire (C:\Program Files\arduino-ide\resources\app\lib\backend\main.js:2:1213990)
2024-09-30T08:49:52.931Z root INFO Deploy plugins list: 180.8 ms [Finished 2.714 s after backend start]
Opening channel for service path '/services/electron-window'.
Opening channel for service path '/services/ide-updater'.
2024-09-30T08:49:53.543Z root WARN Frontend a.configure took longer than the expected maximum 100 milliseconds: 194.1 ms [Finished 2.370 s after frontend start]
2024-09-30T08:49:53.543Z root WARN A command editor.action.toggleStickyScroll is already registered.

Any help would be appreciated, I've tried uninstalling / reinstalling, deleting Arduino15 and related folders and tried to use to Arduino CLI to update Arduino with no success.

Hi @msavvides. I'm going to ask you to provide the logs produced by Arduino IDE when some additional debugging output is enabled.


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


Please do this:

  1. Start Windows "File Explorer".
  2. 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".
  3. In the folder listing of the Arduino IDE installation folder, hold the Shift key while clicking the right hand button on the mouse.
    A context menu will open.
  4. Select "Open PowerShell window here" from the menu.
    PowerShell will now open with the current directory set to the Arduino IDE installation folder.
  5. Type the following command:
    $Env:GRPC_VERBOSITY = "DEBUG"
    
  6. Press the Enter key.
  7. Type the following command in the terminal:
    $Env:GRPC_TRACE = "all"
    
  8. Press the Enter key.
  9. Type the following command:
    & ".\Arduino IDE"
    
  10. Press the Enter key.
    Debug output should now be printed to the PowerShell window as Arduino IDE starts (or fails to start).
  11. Wait for Arduino IDE to .
  12. Switch back to the PowerShell window if the Arduino IDE window took the focus.
  13. Press the Ctrl+Shift+A keyboard shortcut.
    This will select all the text in the PowerShell window.
  14. Press the Ctrl+C keyboard shortcut.
    This will copy the contents of the PowerShell window to the clipboard.
  15. Open a forum reply here by clicking the "Reply" button.
  16. 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
  17. Press the Ctrl+V keyboard shortcut.
    This will paste the output into the code block.
  18. Move the cursor outside of the code block markup before you add any additional text to your reply.
  19. Click the "Reply" button to post the output.

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