Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

IDE hangs on startup in macOS GUI mode #1527

Open
3 tasks done
erongd opened this issue Oct 5, 2022 · 8 comments
Open
3 tasks done

IDE hangs on startup in macOS GUI mode #1527

erongd opened this issue Oct 5, 2022 · 8 comments
Assignees
Labels
type: imperfection Perceived defect in any part of project

Comments

@erongd
Copy link

erongd commented Oct 5, 2022

Describe the problem

I have installed the Arduino IDE 2.0 on MacOS Monterey (12.6). It is a late-2019 16" macbook pro. When start the IDE in UI mode through spotlight or application folder, the IDE hangs. No splash screen, only the icon jumping in the dock eventually stuck with "Application not responding". However when I start the IDE in command line mode through terminal, the IDE starts just fine. Due to hang state I could not get any logs. It is very strange behavior.

I start to experience the issue in rc-9, thought it is due to beta. But seems the 2.0 GA version has the same problem. Once the IDE starts from the command line everything seems to work just fine.

To reproduce

Don't know what would be needed to reproduce it.

Expected behavior

Arduino IDE should start normally with splash screen then the actual IDE open on desktop.

Arduino IDE version

2.0.1-nightly-20221004

Operating system

macOS

Operating system version

12.6

Additional context

No response

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
@erongd erongd added the type: imperfection Perceived defect in any part of project label Oct 5, 2022
@per1234 per1234 self-assigned this Oct 5, 2022
@CptHolzschnauz
Copy link

Can't confirm. I installed it on a 2013 MacPro, on a iMac27 and on a M1 Air (All 12.6) without any problems or the issue you described here.

@per1234
Copy link
Contributor

per1234 commented Oct 5, 2022

Hi @erongd. Thanks for you report.

The IDE automatically writes log files while it is running. I think these logs might contain some information that will allow us to identify the problem so I'm going to ask you to provide the log file from your computer.

Please do this:

  1. Attempt to start the Arduino IDE "in UI mode", as you did before.
  2. Wait some time to be sure the application is in the hung state.
  3. Open the issue page here on GitHub:
    IDE hangs on startup in macOS GUI mode #1527 (comment)
  4. Click the "Attach files by dragging & dropping, selecting or pasting them" at the bottom of the "Leave a comment" field.
  5. Select the latest .log file from this folder (the files are named according to the date):
    ~/Library/Logs/Arduino IDE/
    
  6. Click the Open button to attach the file to the comment.
  7. You will now see an "Uploading your files... (1/1)" status indicator at the bottom of the "Leave a comment" field. Wait until that disappears.
  8. Click the Comment button to publish the comment.

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

@per1234 per1234 added the status: waiting for information More information must be provided before work can proceed label Oct 5, 2022
@erongd
Copy link
Author

erongd commented Oct 6, 2022

Unfortunately start from UI mode does not produce any log before it hung.

@per1234 per1234 removed the status: waiting for information More information must be provided before work can proceed label Oct 11, 2022
@Arcanum-XIII
Copy link

Arcanum-XIII commented Oct 24, 2022

On my Mac, (Monterey 12.5.1, Air M1), I got:

root ERROR Failed to start the backend application:
root ERROR Error: listen EADDRNOTAVAIL: address not available 127.0.0.1
    at Server.setupListenHandle [as _listen2] (node:net:1298:21)
    at listenInCluster (node:net:1363:12)
    at GetAddrInfoReqWrap.doListen [as callback] (node:net:1501:7)
    at GetAddrInfoReqWrap.onlookup [as oncomplete] (node:dns:73:8)
root ERROR Uncaught Exception:
root ERROR Error: listen EADDRNOTAVAIL: address not available 127.0.0.1
    at Server.setupListenHandle [as _listen2] (node:net:1298:21)
    at listenInCluster (node:net:1363:12)
    at GetAddrInfoReqWrap.doListen [as callback] (node:net:1501:7)
    at GetAddrInfoReqWrap.onlookup [as oncomplete] (node:dns:73:8)

Then some error regarding missing plugins in my localUser .arduinoIDE config. It's currently empty so...

But I guess the Backend without connection would explain most of the issue.

@Arcanum-XIII
Copy link

After updating to 12.6, it seems the network stack is working better and it allowed me to get the IDE working.

I've checked with arduino-cli daemon and it couldn't bind to 50051 (even though nothing used the socket). So on my end, more than probably linked to something rotten on the system network stack.

@dave0mi
Copy link

dave0mi commented Jan 19, 2023

Problem: The IDE splash screen appears and hangs forever (2.0.3 IDE for Mac).

This is the startup log in MacOS Monterey 12.1. It is an M1, not sure if that is relevant because, java?
(Sorry for pasting the log inline, but my interface resisted every effort to upload the file.)

2023-01-19 12:24:49 Using browser-only version of superagent in non-browser environment
2023-01-19 12:24:49 Configuration directory URI: 'file:///Users/dilstrup/.theia'
2023-01-19 12:24:49 Configuring to accept webviews on '^.+\.webview\..+$' hostname.
2023-01-19 12:24:49 2023-01-19T20:24:49.626Z root INFO Backend Object.initialize: 2.1 ms [Finished 0.476 s after backend start]
2023-01-19 12:24:49 2023-01-19T20:24:49.626Z root INFO Backend Object.configure: 1.6 ms [Finished 0.476 s after backend start]
2023-01-19 12:24:49 2023-01-19T20:24:49.626Z root INFO Backend MessagingContribution.onStart: 0.8 ms [Finished 0.476 s after backend start]
2023-01-19 12:24:49 2023-01-19T20:24:49.626Z root INFO Backend OSBackendApplicationContribution.configure: 0.2 ms [Finished 0.494 s after backend start]
2023-01-19 12:24:49 2023-01-19T20:24:49.627Z root INFO Backend DefaultWorkspaceServer.onStart: 0.2 ms [Finished 0.495 s after backend start]
2023-01-19 12:24:49 2023-01-19T20:24:49.627Z root INFO Backend PluginLocalizationBackendContribution.configure: 0.1 ms [Finished 0.495 s after backend start]
2023-01-19 12:24:49 2023-01-19T20:24:49.628Z root INFO Backend PluginLocalizationBackendContribution.initialize: 18.1 ms [Finished 0.495 s after backend start]
2023-01-19 12:24:49 2023-01-19T20:24:49.628Z root INFO Backend TaskBackendApplicationContribution.onStart: 0.1 ms [Finished 0.495 s after backend start]
2023-01-19 12:24:49 2023-01-19T20:24:49.628Z root INFO Backend ElectronTokenBackendContribution.configure: 0.4 ms [Finished 0.495 s after backend start]
2023-01-19 12:24:49 2023-01-19T20:24:49.628Z root INFO Backend PluginDeployerContribution.initialize: 0.2 ms [Finished 0.495 s after backend start]
2023-01-19 12:24:49 2023-01-19T20:24:49.629Z root INFO Backend ConfigServiceImpl.onStart: 0.4 ms [Finished 0.496 s after backend start]
2023-01-19 12:24:49 2023-01-19T20:24:49.629Z root INFO Backend WebviewBackendSecurityWarnings.initialize: 0.2 ms [Finished 0.496 s after backend start]
2023-01-19 12:24:49 2023-01-19T20:24:49.629Z root INFO Backend ArduinoDaemonImpl.onStart: 0.6 ms [Finished 0.497 s after backend start]
2023-01-19 12:24:49 2023-01-19T20:24:49.629Z root INFO Backend NodeFileUploadService.configure: 0.9 ms [Finished 0.497 s after backend start]
2023-01-19 12:24:49 2023-01-19T20:24:49.629Z daemon INFO Starting daemon from /Applications/Arduino IDE.app/Contents/Resources/app/node_modules/arduino-ide-extension/build/arduino-cli...
2023-01-19 12:24:49 2023-01-19T20:24:49.629Z discovery-log INFO start
2023-01-19 12:24:49 2023-01-19T20:24:49.629Z discovery-log INFO start new deferred
2023-01-19 12:24:49 2023-01-19T20:24:49.629Z root INFO Backend HostedPluginLocalizationService.initialize: 0.3 ms [Finished 0.497 s after backend start]
2023-01-19 12:24:49 2023-01-19T20:24:49.629Z root INFO Backend BoardDiscovery.onStart: 0.4 ms [Finished 0.497 s after backend start]
2023-01-19 12:24:49 2023-01-19T20:24:49.629Z root INFO Backend FileDownloadEndpoint.configure: 0.3 ms [Finished 0.497 s after backend start]
2023-01-19 12:24:49 2023-01-19T20:24:49.629Z root INFO Backend AuthenticationServiceImpl.onStart: 0.2 ms [Finished 0.498 s after backend start]
2023-01-19 12:24:49 2023-01-19T20:24:49.629Z root INFO Backend PluginApiContribution.configure: 0.2 ms [Finished 0.498 s after backend start]
2023-01-19 12:24:49 2023-01-19T20:24:49.630Z root INFO Backend HostedPluginReader.configure: 0.1 ms [Finished 0.498 s after backend start]
2023-01-19 12:24:49 2023-01-19T20:24:49.630Z root INFO Backend HostedPluginReader.configure: 0.0 ms [Finished 0.498 s after backend start]
2023-01-19 12:24:49 2023-01-19T20:24:49.630Z root INFO Backend PlotterBackendContribution.configure: 0.2 ms [Finished 0.499 s after backend start]
2023-01-19 12:24:49 2023-01-19T20:24:49.631Z root INFO Theia app listening on http://localhost:57465.
2023-01-19 12:24:49 2023-01-19T20:24:49.631Z root INFO Finished starting backend application: 1.7 ms [Finished 0.500 s after backend start]
2023-01-19 12:24:49 2023-01-19T20:24:49.634Z root WARN The local plugin referenced by local-dir:/Users/dilstrup/.arduinoIDE/plugins does not exist.
2023-01-19 12:24:49 2023-01-19T20:24:49.634Z root WARN The local plugin referenced by local-dir:/Users/dilstrup/.arduinoIDE/extensions does not exist.
2023-01-19 12:24:49 2023-01-19T20:24:49.634Z root WARN The local plugin referenced by local-dir:/Users/dilstrup/.arduinoProIDE/plugins does not exist.
2023-01-19 12:24:49 2023-01-19T20:24:49.646Z root INFO PluginTheiaDirectoryHandler: accepting plugin with path
2023-01-19 12:24:49 2023-01-19T20:24:49.646Z root INFO Resolved "cortex-debug" to a VS Code extension "cortex-debug@1.5.1" with engines:
2023-01-19 12:24:49 2023-01-19T20:24:49.646Z root INFO PluginTheiaDirectoryHandler: accepting plugin with path
2023-01-19 12:24:49 2023-01-19T20:24:49.646Z root INFO Resolved "vscode-arduino-tools" to a VS Code extension "vscode-arduino-tools@0.0.2-beta.5" with engines:
2023-01-19 12:24:49 2023-01-19T20:24:49.646Z root INFO PluginTheiaDirectoryHandler: accepting plugin with path
2023-01-19 12:24:49 2023-01-19T20:24:49.646Z root INFO Resolved "vscode-builtin-cpp" to a VS Code extension "cpp@1.52.1" with engines:
2023-01-19 12:24:49 2023-01-19T20:24:49.646Z root INFO PluginTheiaDirectoryHandler: accepting plugin with path
2023-01-19 12:24:49 2023-01-19T20:24:49.646Z root INFO Resolved "vscode-builtin-json" to a VS Code extension "json@1.46.1" with engines:
2023-01-19 12:24:49 2023-01-19T20:24:49.646Z root INFO PluginTheiaDirectoryHandler: accepting plugin with path
2023-01-19 12:24:49 2023-01-19T20:24:49.646Z root INFO Resolved "vscode-builtin-json-language-features" to a VS Code extension "json-language-features@1.46.1" with engines:
2023-01-19 12:24:49 2023-01-19T20:24:49.646Z root INFO PluginTheiaDirectoryHandler: accepting plugin with path
2023-01-19 12:24:49 2023-01-19T20:24:49.646Z root INFO Resolved "vscode-language-pack-bg" to a VS Code extension "vscode-language-pack-bg@1.48.3" with engines:
2023-01-19 12:24:49 2023-01-19T20:24:49.646Z root INFO PluginTheiaDirectoryHandler: accepting plugin with path
2023-01-19 12:24:49 2023-01-19T20:24:49.646Z root INFO Resolved "vscode-language-pack-cs" to a VS Code extension "vscode-language-pack-cs@1.53.2" with engines:
2023-01-19 12:24:49 2023-01-19T20:24:49.646Z root INFO PluginTheiaDirectoryHandler: accepting plugin with path
2023-01-19 12:24:49 2023-01-19T20:24:49.646Z root INFO Resolved "vscode-language-pack-de" to a VS Code extension "vscode-language-pack-de@1.53.2" with engines:
2023-01-19 12:24:49 2023-01-19T20:24:49.646Z root INFO PluginTheiaDirectoryHandler: accepting plugin with path
2023-01-19 12:24:49 2023-01-19T20:24:49.646Z root INFO Resolved "vscode-language-pack-es" to a VS Code extension "vscode-language-pack-es@1.53.2" with engines:
2023-01-19 12:24:49 2023-01-19T20:24:49.646Z root INFO PluginTheiaDirectoryHandler: accepting plugin with path
2023-01-19 12:24:49 2023-01-19T20:24:49.646Z root INFO Resolved "vscode-language-pack-fr" to a VS Code extension "vscode-language-pack-fr@1.53.2" with engines:
2023-01-19 12:24:49 2023-01-19T20:24:49.646Z root INFO PluginTheiaDirectoryHandler: accepting plugin with path
2023-01-19 12:24:49 2023-01-19T20:24:49.646Z root INFO Resolved "vscode-language-pack-hu" to a VS Code extension "vscode-language-pack-hu@1.48.3" with engines:
2023-01-19 12:24:49 2023-01-19T20:24:49.646Z root INFO PluginTheiaDirectoryHandler: accepting plugin with path
2023-01-19 12:24:49 2023-01-19T20:24:49.646Z root INFO Resolved "vscode-language-pack-it" to a VS Code extension "vscode-language-pack-it@1.53.2" with engines:
2023-01-19 12:24:49 2023-01-19T20:24:49.646Z root INFO PluginTheiaDirectoryHandler: accepting plugin with path
2023-01-19 12:24:49 2023-01-19T20:24:49.646Z root INFO Resolved "vscode-language-pack-ja" to a VS Code extension "vscode-language-pack-ja@1.53.2" with engines:
2023-01-19 12:24:49 2023-01-19T20:24:49.646Z root INFO PluginTheiaDirectoryHandler: accepting plugin with path
2023-01-19 12:24:49 2023-01-19T20:24:49.646Z root INFO Resolved "vscode-language-pack-ko" to a VS Code extension "vscode-language-pack-ko@1.53.2" with engines:
2023-01-19 12:24:49 2023-01-19T20:24:49.646Z root INFO PluginTheiaDirectoryHandler: accepting plugin with path
2023-01-19 12:24:49 2023-01-19T20:24:49.646Z root INFO Resolved "vscode-language-pack-nl" to a VS Code extension "vscode-language-pack-nl@1.48.3" with engines:
2023-01-19 12:24:49 2023-01-19T20:24:49.646Z root INFO PluginTheiaDirectoryHandler: accepting plugin with path
2023-01-19 12:24:49 2023-01-19T20:24:49.646Z root INFO Resolved "vscode-language-pack-pl" to a VS Code extension "vscode-language-pack-pl@1.53.2" with engines:
2023-01-19 12:24:49 2023-01-19T20:24:49.646Z root INFO PluginTheiaDirectoryHandler: accepting plugin with path
2023-01-19 12:24:49 2023-01-19T20:24:49.646Z root INFO Resolved "vscode-language-pack-pt-BR" to a VS Code extension "vscode-language-pack-pt-BR@1.53.2" with engines:
2023-01-19 12:24:49 2023-01-19T20:24:49.646Z root INFO PluginTheiaDirectoryHandler: accepting plugin with path
2023-01-19 12:24:49 2023-01-19T20:24:49.646Z root INFO Resolved "vscode-language-pack-ru" to a VS Code extension "vscode-language-pack-ru@1.53.2" with engines:
2023-01-19 12:24:49 2023-01-19T20:24:49.646Z root INFO PluginTheiaDirectoryHandler: accepting plugin with path
2023-01-19 12:24:49 2023-01-19T20:24:49.646Z root INFO Resolved "vscode-language-pack-tr" to a VS Code extension "vscode-language-pack-tr@1.53.2" with engines:
2023-01-19 12:24:49 2023-01-19T20:24:49.646Z root INFO PluginTheiaDirectoryHandler: accepting plugin with path
2023-01-19 12:24:49 2023-01-19T20:24:49.646Z root INFO Resolved "vscode-language-pack-uk" to a VS Code extension "vscode-language-pack-uk@1.48.3" with engines:
2023-01-19 12:24:49 2023-01-19T20:24:49.646Z root INFO PluginTheiaDirectoryHandler: accepting plugin with path
2023-01-19 12:24:49 2023-01-19T20:24:49.646Z root INFO Resolved "vscode-language-pack-zh-hans" to a VS Code extension "vscode-language-pack-zh-hans@1.53.2" with engines:
2023-01-19 12:24:49 2023-01-19T20:24:49.651Z root INFO Resolve plugins list: 22.1 ms [Finished 0.520 s after backend start]
2023-01-19 12:24:49 2023-01-19T20:24:49.653Z root INFO Deployed backend plugin "marus25.cortex-debug@1.5.1" from "/Applications/Arduino IDE.app/Contents/Resources/app/plugins/cortex-debug/extension/dist/extension.js": 2.1 ms [Finished 0.522 s after backend start]
2023-01-19 12:24:49 2023-01-19T20:24:49.670Z root INFO Deployed backend plugin "arduino.vscode-arduino-tools@0.0.2-beta.5" from "/Applications/Arduino IDE.app/Contents/Resources/app/plugins/vscode-arduino-tools/extension/dist/bundle": 17.4 ms [Finished 0.539 s after backend start]
2023-01-19 12:24:49 2023-01-19T20:24:49.696Z root INFO Deployed backend plugin "vscode.cpp@1.52.1" from "/Applications/Arduino IDE.app/Contents/Resources/app/plugins/vscode-builtin-cpp/extension": 25.3 ms [Finished 0.565 s after backend start]
2023-01-19 12:24:49 2023-01-19T20:24:49.697Z root INFO Deployed backend plugin "vscode.json@1.46.1" from "/Applications/Arduino IDE.app/Contents/Resources/app/plugins/vscode-builtin-json/extension": 0.8 ms [Finished 0.565 s after backend start]
2023-01-19 12:24:49 2023-01-19T20:24:49.710Z root INFO Deployed backend plugin "vscode.json-language-features@1.46.1" from "/Applications/Arduino IDE.app/Contents/Resources/app/plugins/vscode-builtin-json-language-features/extension/client/dist/jsonMain": 13.2 ms [Finished 0.579 s after backend start]
2023-01-19 12:24:49 2023-01-19T20:24:49.740Z daemon INFO �[36mINFO�[0m[0000] Config file not found, using default values  
�[36mINFO�[0m[0000] arduino-cli version 0.29.0                   
�[36mINFO�[0m[0000] Executing `arduino-cli daemon`               
{"IP":"127.0.0.1","Port":"57466"}

2023-01-19 12:24:49 2023-01-19T20:24:49.740Z daemon INFO Daemon is running.
2023-01-19 12:24:49 2023-01-19T20:24:49.774Z root INFO Deployed backend plugin "ms-ceintl.vscode-language-pack-bg@1.48.3" from "/Applications/Arduino IDE.app/Contents/Resources/app/plugins/vscode-language-pack-bg/extension": 64.5 ms [Finished 0.643 s after backend start]
2023-01-19 12:24:49 2023-01-19T20:24:49.802Z root INFO Deployed backend plugin "ms-ceintl.vscode-language-pack-cs@1.53.2" from "/Applications/Arduino IDE.app/Contents/Resources/app/plugins/vscode-language-pack-cs/extension": 27.5 ms [Finished 0.671 s after backend start]
2023-01-19 12:24:49 2023-01-19T20:24:49.842Z root INFO Deployed backend plugin "ms-ceintl.vscode-language-pack-de@1.53.2" from "/Applications/Arduino IDE.app/Contents/Resources/app/plugins/vscode-language-pack-de/extension": 40.4 ms [Finished 0.711 s after backend start]
2023-01-19 12:24:49 2023-01-19T20:24:49.847Z daemon INFO �[36mINFO�[0m[0000] Loading hardware from: /Users/dilstrup/Library/Arduino15/packages 
�[36mINFO�[0m[0000] Loading libraries index file                  �[36mindex�[0m=/Users/dilstrup/Library/Arduino15/library_index.json
�[36mINFO�[0m[0000] Adding libraries dir                          �[36mdir�[0m=/Users/dilstrup/Library/Arduino15/libraries �[36mlocation�[0m=ide
�[36mINFO�[0m[0000] Adding libraries dir                          �[36mdir�[0m=/Users/dilstrup/Documents/Arduino/libraries �[36mlocation�[0m=user

2023-01-19 12:24:49 2023-01-19T20:24:49.881Z root INFO Deployed backend plugin "ms-ceintl.vscode-language-pack-es@1.53.2" from "/Applications/Arduino IDE.app/Contents/Resources/app/plugins/vscode-language-pack-es/extension": 39.2 ms [Finished 0.750 s after backend start]
2023-01-19 12:24:49 2023-01-19T20:24:49.885Z root ERROR Detected an error response during the gRPC core client initialization: code: 9, message: Loading index file: loading json index file /Users/dilstrup/Library/Arduino15/package_index.json: open /Users/dilstrup/Library/Arduino15/package_index.json: no such file or directory
2023-01-19 12:24:49 2023-01-19T20:24:49.886Z root ERROR Detected an error response during the gRPC core client initialization: code: 9, message: Error loading hardware platform: discovery builtin:serial-discovery not found
2023-01-19 12:24:49 2023-01-19T20:24:49.886Z root ERROR Detected an error response during the gRPC core client initialization: code: 9, message: Error loading hardware platform: discovery builtin:mdns-discovery not found
2023-01-19 12:24:49 2023-01-19T20:24:49.886Z root ERROR Detected an error response during the gRPC core client initialization: code: 9, message: Loading index file: reading library_index.json: open /Users/dilstrup/Library/Arduino15/library_index.json: no such file or directory
2023-01-19 12:24:49 2023-01-19T20:24:49.886Z root ERROR Error occurred while initializing the core gRPC client provider
2023-01-19 12:24:49 2023-01-19T20:24:49.887Z root ERROR Uncaught Exception: 
2023-01-19 12:24:49 2023-01-19T20:24:49.887Z root ERROR Error: Could not read the CLI configuration file.
    at CoreClientProvider.evaluateErrorStatus (/Applications/Arduino IDE.app/Contents/Resources/app/node_modules/arduino-ide-extension/lib/node/core-client-provider.js:188:20)
    at ClientReadableStreamImpl.<anonymous> (/Applications/Arduino IDE.app/Contents/Resources/app/node_modules/arduino-ide-extension/lib/node/core-client-provider.js:175:36)
    at ClientReadableStreamImpl.emit (node:events:394:28)
    at endReadableNT (node:internal/streams/readable:1331:12)
    at processTicksAndRejections (node:internal/process/task_queues:83:21)
2023-01-19 12:24:49 2023-01-19T20:24:49.912Z root INFO Deployed backend plugin "ms-ceintl.vscode-language-pack-fr@1.53.2" from "/Applications/Arduino IDE.app/Contents/Resources/app/plugins/vscode-language-pack-fr/extension": 30.1 ms [Finished 0.780 s after backend start]
2023-01-19 12:24:49 2023-01-19T20:24:49.926Z root INFO Deployed backend plugin "ms-ceintl.vscode-language-pack-hu@1.48.3" from "/Applications/Arduino IDE.app/Contents/Resources/app/plugins/vscode-language-pack-hu/extension": 14.0 ms [Finished 0.794 s after backend start]
2023-01-19 12:24:49 2023-01-19T20:24:49.946Z root INFO Deployed backend plugin "ms-ceintl.vscode-language-pack-it@1.53.2" from "/Applications/Arduino IDE.app/Contents/Resources/app/plugins/vscode-language-pack-it/extension": 20.4 ms [Finished 0.815 s after backend start]
2023-01-19 12:24:49 2023-01-19T20:24:49.974Z root INFO Deployed backend plugin "ms-ceintl.vscode-language-pack-ja@1.53.2" from "/Applications/Arduino IDE.app/Contents/Resources/app/plugins/vscode-language-pack-ja/extension": 27.4 ms [Finished 0.842 s after backend start]
2023-01-19 12:24:49 2023-01-19T20:24:49.992Z root INFO Deployed backend plugin "ms-ceintl.vscode-language-pack-ko@1.53.2" from "/Applications/Arduino IDE.app/Contents/Resources/app/plugins/vscode-language-pack-ko/extension": 18.7 ms [Finished 0.861 s after backend start]
2023-01-19 12:24:50 2023-01-19T20:24:50.000Z root INFO Deployed backend plugin "ms-ceintl.vscode-language-pack-nl@1.48.3" from "/Applications/Arduino IDE.app/Contents/Resources/app/plugins/vscode-language-pack-nl/extension": 7.8 ms [Finished 0.869 s after backend start]
2023-01-19 12:24:50 2023-01-19T20:24:50.018Z root INFO Deployed backend plugin "ms-ceintl.vscode-language-pack-pl@1.53.2" from "/Applications/Arduino IDE.app/Contents/Resources/app/plugins/vscode-language-pack-pl/extension": 18.2 ms [Finished 0.887 s after backend start]
2023-01-19 12:24:50 2023-01-19T20:24:50.038Z root INFO Deployed backend plugin "ms-ceintl.vscode-language-pack-pt-br@1.53.2" from "/Applications/Arduino IDE.app/Contents/Resources/app/plugins/vscode-language-pack-pt-BR/extension": 19.9 ms [Finished 0.907 s after backend start]
2023-01-19 12:24:50 2023-01-19T20:24:50.062Z root INFO Deployed backend plugin "ms-ceintl.vscode-language-pack-ru@1.53.2" from "/Applications/Arduino IDE.app/Contents/Resources/app/plugins/vscode-language-pack-ru/extension": 23.2 ms [Finished 0.930 s after backend start]
2023-01-19 12:24:50 2023-01-19T20:24:50.082Z root INFO Deployed backend plugin "ms-ceintl.vscode-language-pack-tr@1.53.2" from "/Applications/Arduino IDE.app/Contents/Resources/app/plugins/vscode-language-pack-tr/extension": 19.9 ms [Finished 0.950 s after backend start]
2023-01-19 12:24:50 2023-01-19T20:24:50.096Z root INFO Deployed backend plugin "ms-ceintl.vscode-language-pack-uk@1.48.3" from "/Applications/Arduino IDE.app/Contents/Resources/app/plugins/vscode-language-pack-uk/extension": 14.1 ms [Finished 0.964 s after backend start]
2023-01-19 12:24:50 2023-01-19T20:24:50.118Z root INFO Deployed backend plugin "ms-ceintl.vscode-language-pack-zh-hans@1.53.2" from "/Applications/Arduino IDE.app/Contents/Resources/app/plugins/vscode-language-pack-zh-hans/extension": 19.3 ms [Finished 0.984 s after backend start]
2023-01-19 12:24:50 2023-01-19T20:24:50.118Z root INFO Deploy plugins list: 22.1 ms [Finished 0.987 s after backend start]
2023-01-19 12:24:50 2023-01-19T20:24:50.720Z root WARN Frontend a.configure took longer than the expected maximum 100 milliseconds: 230.1 ms [Finished 0.852 s after frontend start]

@dave0mi
Copy link

dave0mi commented Jan 19, 2023

Follow up on the above posting with the extensive log ...
(Re: Problem: The IDE splash screen appears and hangs forever (2.0.3 IDE for MacOS Monterey 12.1).

After simply quitting the application and trying again, the IDE is able to start successfully (on my system).
Is it possible that the initial start is simply timing out on some of the 'first-run' configuration?

@kittaakos
Copy link
Contributor

The problem on your side is unrelated to any timing or missing localhost (#1708 (comment)):

2023-01-19 12:24:49 2023-01-19T20:24:49.740Z daemon INFO �[36mINFO�[0m[0000] Config file not found, using default values  
ERROR Error: Could not read the CLI configuration file.
    at CoreClientProvider.evaluateErrorStatus (/Applications/Arduino IDE.app/Contents/Resources/app/node_modules/arduino-ide-extension/lib/node/core-client-provider.js:188:20)
    at ClientReadableStreamImpl.<anonymous> (/Applications/Arduino IDE.app/Contents/Resources/app/node_modules/arduino-ide-extension/lib/node/core-client-provider.js:175:36)
    at ClientReadableStreamImpl.emit (node:events:394:28)
    at endReadableNT (node:internal/streams/readable:1331:12)
    at processTicksAndRejections (node:internal/process/task_queues:83:21)

Most likely, when IDE2 started the first time on your macOS, it asked for permission to put the config file into ~/.arduinoIDE/arduino-cli.yaml location, and you rejected it. But this is a guess. Try to give the Arduino IDE.app read-write access if the issue persists:
System Preferences > Security & Privacy > Privacy > Files and Folders and enable both. On my macOS, it looks like this:

Screen Shot 2023-01-20 at 07 51 31

If you cannot fix the problem by changing the permissions, please open a new issue in this repo or ask on the Arduino Forum: https://forum.arduino.cc/c/software/arduino-ide-2-0/93.

java?

There is no Java.

@per1234 per1234 changed the title Arduino IDE 2.0 hangs on startup in GUI mode - MacOS Monterey. IDE hangs on startup in macOS GUI mode Sep 26, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
type: imperfection Perceived defect in any part of project
Projects
None yet
Development

No branches or pull requests

6 participants