IDE hangs on startup: "14 UNAVAILABLE: read ECONNRESET"

Dear all,

When starting Arduino IDE 2.3.4 (MacOS 15.1.1; Intel) the main screens opens but hangs with the Arduino following a heart beat motion. Note that this was a working installation, but suddenly broke ?

Not virusscanner, real-time scanning or firewall ... whatsoever... installed. Internet works fine. Usage under different account, even with admin rights, same result. Removing application support preferences, etc, no change.

There is (currently) no option that shows the state of the IDE. A bit disappointing the hassle I'm experiencing. Restarting same result.

Any ideas are appreciated, funny remarks can be left out (thanks!).

Looking forward to your inputs,
Ronald.

Hi @RonaldG. I'm going to ask you to provide 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. Open macOS Launchpad.
  3. Type terminal in the "Search" field.
  4. Click on the "Terminal" icon.
    A "zsh" window will open.
  5. Type the following command in the zsh window:
    "/Applications/Arduino IDE.app/Contents/MacOS/Arduino IDE"
    
  6. Press the Enter key.
  7. 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 window).
  8. Switch back to the Terminal window if the Arduino IDE window took the focus.
  9. Press the Command+A keyboard shortcut.
    This will select all the text in the Terminal window.
  10. Press the Command+C keyboard shortcut.
    This will copy the selected text to the clipboard.
  11. Open a forum reply here by clicking the "Reply" button.
  12. 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 output is correctly formatted.
  13. Press the Command+V keyboard shortcut.
    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.

First of all, thanks for your reaction. In PS -ef several Arduino processes start-up.

Here is the dump after start-up in the terminal window:

"username@macbookpro ~ % /Applications/Arduino\ IDE.app/Contents/MacOS/Arduino\ IDE 
Arduino IDE 2.3.4
Checking for frontend application configuration customizations. Module path: /Applications/Arduino IDE.app/Contents/Resources/app/lib/backend/electron-main.js, destination 'package.json': /Applications/Arduino IDE.app/Contents/Resources/app/package.json
Setting 'theia.frontend.config.appVersion' application configuration value to: "2.3.4" (type of string)
Setting 'theia.frontend.config.cliVersion' application configuration value to: "1.1.1" (type of string)
Setting 'theia.frontend.config.buildDate' application configuration value to: "2024-12-03T10:01:12.470Z" (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.4","cliVersion":"1.1.1","buildDate":"2024-12-03T10:01:12.470Z"}
Starting backend process. PID: 15677
Using browser-only version of superagent in non-browser environment
Configuration directory URI: 'file:///Users/username/.arduinoIDE'
Configuring to accept webviews on '^.+\.webview\..+$' hostname.
2024-12-07T16:32:47.258Z root INFO Backend Object.initialize: 2.9 ms [Finished 0.648 s after backend start]
2024-12-07T16:32:47.261Z root INFO Backend Object.configure: 2.2 ms [Finished 0.648 s after backend start]
2024-12-07T16:32:47.261Z root INFO Backend s.onStart: 1.2 ms [Finished 0.648 s after backend start]
2024-12-07T16:32:47.261Z root INFO Backend s.configure: 0.3 ms [Finished 0.671 s after backend start]
2024-12-07T16:32:47.262Z root INFO Backend d.onStart: 0.2 ms [Finished 0.671 s after backend start]
2024-12-07T16:32:47.263Z root INFO Backend d.configure: 0.1 ms [Finished 0.672 s after backend start]
2024-12-07T16:32:47.263Z root INFO Backend d.initialize: 23.6 ms [Finished 0.672 s after backend start]
2024-12-07T16:32:47.263Z root INFO Backend c.onStart: 0.3 ms [Finished 0.672 s after backend start]
2024-12-07T16:32:47.264Z root INFO Backend a.configure: 2.5 ms [Finished 0.674 s after backend start]
2024-12-07T16:32:47.266Z config INFO >>> Initializing CLI configuration...
2024-12-07T16:32:47.266Z root INFO Backend c.initialize: 0.5 ms [Finished 0.675 s after backend start]
2024-12-07T16:32:47.266Z root INFO Backend x.onStart: 0.6 ms [Finished 0.675 s after backend start]
2024-12-07T16:32:47.266Z config INFO Loading CLI configuration from /Users/username/.arduinoIDE/arduino-cli.yaml...
2024-12-07T16:32:47.267Z daemon INFO Starting daemon from /Applications/Arduino IDE.app/Contents/Resources/app/lib/backend/resources/arduino-cli...
2024-12-07T16:32:47.267Z root INFO Backend a.initialize: 0.5 ms [Finished 0.676 s after backend start]
2024-12-07T16:32:47.267Z root INFO Backend w.onStart: 1.1 ms [Finished 0.677 s after backend start]
2024-12-07T16:32:47.267Z root INFO Backend r.configure: 1.8 ms [Finished 0.677 s after backend start]
2024-12-07T16:32:47.267Z discovery-log INFO start
2024-12-07T16:32:47.267Z discovery-log INFO start new deferred
2024-12-07T16:32:47.267Z root INFO Backend d.initialize: 0.7 ms [Finished 0.678 s after backend start]
2024-12-07T16:32:47.267Z root INFO Backend y.onStart: 1.8 ms [Finished 0.679 s after backend start]
2024-12-07T16:32:47.267Z root INFO Backend r.configure: 1.4 ms [Finished 0.679 s after backend start]
2024-12-07T16:32:47.267Z root INFO Backend a.onStart: 0.4 ms [Finished 0.680 s after backend start]
2024-12-07T16:32:47.267Z root INFO Backend h.configure: 0.3 ms [Finished 0.680 s after backend start]
2024-12-07T16:32:47.267Z root INFO Backend s.configure: 0.1 ms [Finished 0.680 s after backend start]
2024-12-07T16:32:47.267Z root INFO Backend l.configure: 0.1 ms [Finished 0.680 s after backend start]
2024-12-07T16:32:47.269Z root INFO Theia app listening on http://127.0.0.1:60608.
2024-12-07T16:32:47.269Z root INFO Finished starting backend application: 2.1 ms [Finished 0.682 s after backend start]
2024-12-07T16:32:47.270Z root WARN The local plugin referenced by local-dir:/Users/username/.arduinoIDE/plugins does not exist.
2024-12-07T16:32:47.270Z root WARN The local plugin referenced by local-dir:/Users/username/.arduinoIDE/extensions does not exist.
2024-12-07T16:32:47.280Z config INFO Loaded CLI configuration: {"board_manager":{"additional_urls":["http://arduino.esp8266.com/stable/package_esp8266com_index.json"]},"build_cache":{"compilations_before_purge":10,"ttl":"720h0m0s"},"daemon":{"port":"50051"},"directories":{"builtin":{"libraries":"/Users/username/Library/Arduino15/libraries"},"data":"/Users/username/Library/Arduino15","downloads":"/Users/username/Library/Arduino15/staging","user":"/Users/username/Documents/Arduino"},"library":{"enable_unsafe_install":false},"locale":"en","logging":{"file":"","format":"text","level":"info"},"metrics":{"addr":":9090","enabled":true},"output":{"no_color":false},"sketch":{"always_export_binaries":false},"updater":{"enable_notification":true}}
2024-12-07T16:32:47.280Z config INFO 'directories.data' and 'directories.user' are set in the CLI configuration model.
2024-12-07T16:32:47.280Z config INFO Loaded the CLI configuration.
2024-12-07T16:32:47.294Z config INFO Mapped the CLI configuration: {"dataDirUri":"file:///Users/username/Library/Arduino15","sketchDirUri":"file:///Users/username/Documents/Arduino","additionalUrls":["http://arduino.esp8266.com/stable/package_esp8266com_index.json"],"network":"none","locale":"en"}
2024-12-07T16:32:47.294Z config INFO Validating the CLI configuration...
2024-12-07T16:32:47.295Z config INFO The CLI config is valid.
2024-12-07T16:32:47.295Z config INFO <<< Initialized the CLI configuration.
Restoring workspace roots: /Users/username/Library/Mobile Documents/com~apple~CloudDocs/Doc (iC)/Home (iC)/1_Projecten/5AL/AL 2024/Software/Test/TFT-2-8-Inch-Test/TFT-Touch-Graphicstest/TFT-Touch-Graphicstest.ino
isTempSketch: false. Input was /Users/username/Library/Mobile Documents/com~apple~CloudDocs/Doc (iC)/Home (iC)/1_Projecten/5AL/AL 2024/Software/Test/TFT-2-8-Inch-Test/TFT-Touch-Graphicstest/TFT-Touch-Graphicstest.ino
2024-12-07T16:32:47.316Z root INFO Resolve plugins list: 50.1 ms [Finished 0.729 s after backend start]
2024-12-07T16:32:47.449Z daemon INFO time="2024-12-07T17:32:47+01:00" level=info msg="arduino-cli version 1.1.1"
time="2024-12-07T17:32:47+01:00" level=info msg="Using config file: /Users/username/.arduinoIDE/arduino-cli.yaml"
time="2024-12-07T17:32:47+01:00" level=info msg="Executing `arduino-cli daemon`"
Daemon is now listening on 127.0.0.1:60612
{"IP":"127.0.0.1","Port":"60612"}
2024-12-07T16:32:47.450Z daemon INFO Daemon is running.
2024-12-07T16:32:47.791Z root ERROR Uncaught Exception:  Error: 14 UNAVAILABLE: read ECONNRESET
2024-12-07T16:32:47.791Z root ERROR Error: 14 UNAVAILABLE: read ECONNRESET
    at t.callErrorFromStatus (/Applications/Arduino IDE.app/Contents/Resources/app/lib/backend/main.js:2:921584)
    at Object.onReceiveStatus (/Applications/Arduino IDE.app/Contents/Resources/app/lib/backend/main.js:2:946900)
    at Object.onReceiveStatus (/Applications/Arduino IDE.app/Contents/Resources/app/lib/backend/main.js:2:942780)
    at Object.onReceiveStatus (/Applications/Arduino IDE.app/Contents/Resources/app/lib/backend/main.js:2:942225)
    at /Applications/Arduino IDE.app/Contents/Resources/app/lib/backend/main.js:2:1028347
    at process.processTicksAndRejections (node:internal/process/task_queues:77:11)
for call at
    at s.makeUnaryRequest (/Applications/Arduino IDE.app/Contents/Resources/app/lib/backend/main.js:2:946441)
    at s.create (/Applications/Arduino IDE.app/Contents/Resources/app/lib/backend/main.js:2:1013244)
    at instance (/Applications/Arduino IDE.app/Contents/Resources/app/lib/backend/main.js:2:776525)
    at new Promise (<anonymous>)
    at v.createClient (/Applications/Arduino IDE.app/Contents/Resources/app/lib/backend/main.js:2:776502)
    at v.create (/Applications/Arduino IDE.app/Contents/Resources/app/lib/backend/main.js:2:775410)
    at /Applications/Arduino IDE.app/Contents/Resources/app/lib/backend/main.js:2:774306
    at /Applications/Arduino IDE.app/Contents/Resources/app/lib/backend/main.js:2:1220936
    at i.invoke (/Applications/Arduino IDE.app/Contents/Resources/app/lib/backend/main.js:2:1221026)
    at s.fire (/Applications/Arduino IDE.app/Contents/Resources/app/lib/backend/main.js:2:1222829)
2024-12-07T16:32:48.624Z root INFO Deploy plugins list: 50.1 ms [Finished 2.038 s after backend start]
Opening channel for service path '/services/electron-window'.
Opening channel for service path '/services/ide-updater'.
"

After a deep search, testing systematically all options in my preferences related to network activity, I discovered that ESET Cyber Security (v8.X) is the cause of the problems.

Although every network filtering and firewall was disable, including real-time monitoring the VPN/Filter was causing the problems, to be more specific: ESET Network content filter.

After disabling this content filer and enabling it again, the IDE seems to startup.

This is not the first time that ESET causes troubles, I thought I knew them all by disabling them in the UI... but I just learned another option.

Apologies for raising this issue, and solving it at the same time.

2 Likes

Thanks for taking the time to post an update with your solution! I'm glad it is working now.

Regards, Per

4 posts were split to a new topic: IDE hangs on startup: "wsarecv: Une connexion existante ..."

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