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

Sometimes it will not compile after switching development version #1970

Closed
3 tasks done
Tinyu-Zhao opened this issue Oct 30, 2022 · 19 comments · Fixed by #1972
Closed
3 tasks done

Sometimes it will not compile after switching development version #1970

Tinyu-Zhao opened this issue Oct 30, 2022 · 19 comments · Fixed by #1972
Assignees
Labels
conclusion: resolved Issue was resolved topic: code Related to content of the project itself type: imperfection Perceived defect in any part of project

Comments

@Tinyu-Zhao
Copy link

Tinyu-Zhao commented Oct 30, 2022

Describe the problem

Sometimes it fails to compile after switching to the development version, and it says "No connection established".

image

But strangely enough, after restarting the IDE, most of them will be able to compile normally.

To reproduce

Sometimes switching clients and compiling will cause this problem, and sometimes not.

Expected behavior

2.0.1

Arduino IDE version

Normal compilation

Operating system

macOS

Operating system version

Big Sur 11.7 (20G817)

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
@Tinyu-Zhao

This comment was marked as duplicate.

@per1234
Copy link
Contributor

per1234 commented Nov 3, 2022

Hi @Tinyu-Zhao. Thanks for your report.

In order to gather more information that might help us to troubleshoot your problem, I'm going to ask you to run the Arduino IDE from the command line, then share the output.

Please do this:

  1. Open your Applications folder.
  2. Open Utilities.
  3. Double-click on "Terminal".
  4. Type the following command:
    "/Applications/Arduino IDE.app/Contents/MacOS/Arduino IDE"
    
  5. Press Enter
  6. Take whatever actions are required to produce the "No connection established" error.
  7. Switch back to the terminal window if the Arduino IDE window took the focus.
  8. Press +A.
    This will select all the text in the terminal window.
  9. Press +C.
    This will copy the selected text to the clipboard.
  10. Click on the "Leave a comment" field here on this GitHub issue.
  11. Press +V.
    This will paste the output into the code block.
  12. Click the Comment button to make the reply.

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


after switching to the development version

I'm not sure I understood correctly what you mean by this. Please provide a more detailed description to help me to understand it.

@per1234 per1234 self-assigned this Nov 3, 2022
@per1234 per1234 added status: waiting for information More information must be provided before work can proceed topic: code Related to content of the project itself labels Nov 3, 2022
@kittaakos kittaakos self-assigned this Nov 8, 2022
@kldorseyNU
Copy link

Hi @per1234. I'm having the same issue. If I try to compile the Blink example for an Arduino AVR, (e.g., Uno), it compiles correctly. Switching to the ESP32 board, which is my goal, creates the no connection established error even if I'm purely trying to compile. Switching back to Uno also creates the error. Attached is my terminal log showing successful compile to Uno, unsuccessful compile to the ESP32, and following unsuccessful compile to Uno. Thank you for your guidance and advice!
debug_board_manager.txt

@numaga94
Copy link

numaga94 commented Nov 9, 2022

Last login: Wed Nov  9 18:51:12 on console
➜  ~ "/Applications/Arduino IDE.app/Contents/MacOS/Arduino IDE"
➜  ~ "/Applications/Arduino IDE.app/Contents/MacOS/Arduino IDE"
Arduino IDE 2.0.1
Starting backend process. PID: 1881
Using browser-only version of superagent in non-browser environment
Configuring to accept webviews on '^.+\.webview\..+$' hostname.
root INFO Configuration directory URI: 'file:///Users/yu/.theia'
root INFO Backend Object.initialize: 9.2 ms [Finished 1.818 s after backend start]
root INFO Backend Object.configure: 6.2 ms [Finished 1.818 s after backend start]
root INFO Backend MessagingContribution.onStart: 3.0 ms [Finished 1.818 s after backend start]
root INFO Backend OSBackendApplicationContribution.configure: 1.6 ms [Finished 1.876 s after backend start]
root INFO Backend DefaultWorkspaceServer.onStart: 1.0 ms [Finished 1.876 s after backend start]
root INFO Backend LocalizationBackendContribution.configure: 0.3 ms [Finished 1.876 s after backend start]
root WARN Backend LocalizationBackendContribution.initialize took longer than the expected maximum 50 milliseconds: 59.5 ms [Finished 1.878 s after backend start]
root INFO Backend TaskBackendApplicationContribution.onStart: 1.8 ms [Finished 1.878 s after backend start]
root INFO Backend ElectronTokenBackendContribution.configure: 3.9 ms [Finished 1.882 s after backend start]
root INFO Backend PluginDeployerContribution.initialize: 0.8 ms [Finished 1.883 s after backend start]
root INFO Backend ConfigServiceImpl.onStart: 2.1 ms [Finished 1.885 s after backend start]
root INFO Backend WebviewBackendSecurityWarnings.initialize: 3.6 ms [Finished 1.892 s after backend start]
root INFO Backend ArduinoDaemonImpl.onStart: 5.1 ms [Finished 1.894 s after backend start]
root INFO Backend NodeFileUploadService.configure: 9.3 ms [Finished 1.894 s after backend start]
daemon INFO Starting daemon from /Applications/Arduino IDE.app/Contents/Resources/app/node_modules/arduino-ide-extension/build/arduino-cli...
discovery-log INFO start
discovery-log INFO start new deferred
root INFO Backend BoardDiscovery.onStart: 2.2 ms [Finished 1.897 s after backend start]
root INFO Backend FileDownloadEndpoint.configure: 1.1 ms [Finished 1.898 s after backend start]
root INFO Backend AuthenticationServiceImpl.onStart: 0.6 ms [Finished 1.900 s after backend start]
root INFO Backend PluginApiContribution.configure: 1.5 ms [Finished 1.901 s after backend start]
root INFO Backend HostedPluginReader.configure: 0.4 ms [Finished 1.903 s after backend start]
root INFO Backend HostedPluginReader.configure: 0.2 ms [Finished 1.904 s after backend start]
root INFO Backend PlotterBackendContribution.configure: 1.0 ms [Finished 1.906 s after backend start]
root INFO Theia app listening on http://localhost:49482.
root INFO Finished starting backend application: 10.7 ms [Finished 1.913 s after backend start]
root WARN The local plugin referenced by local-dir:/Users/yu/.arduinoIDE/plugins does not exist.
root WARN The local plugin referenced by local-dir:/Users/yu/.arduinoIDE/extensions does not exist.
root WARN The local plugin referenced by local-dir:/Users/yu/.arduinoProIDE/plugins does not exist.
root INFO PluginTheiaDirectoryHandler: accepting plugin with path
root INFO Resolved "cortex-debug" to a VS Code extension "cortex-debug@0.3.10" with engines:
root INFO PluginTheiaDirectoryHandler: accepting plugin with path
root INFO Resolved "vscode-arduino-tools" to a VS Code extension "vscode-arduino-tools@0.0.2-beta.5" with engines:
root INFO PluginTheiaDirectoryHandler: accepting plugin with path
root INFO Resolved "vscode-builtin-cpp" to a VS Code extension "cpp@1.52.1" with engines:
root INFO PluginTheiaDirectoryHandler: accepting plugin with path
root INFO Resolved "vscode-builtin-json" to a VS Code extension "json@1.46.1" with engines:
root INFO PluginTheiaDirectoryHandler: accepting plugin with path
root INFO Resolved "vscode-builtin-json-language-features" to a VS Code extension "json-language-features@1.46.1" with engines:
root INFO PluginTheiaDirectoryHandler: accepting plugin with path
root INFO Resolved "vscode-language-pack-bg" to a VS Code extension "vscode-language-pack-bg@1.48.3" with engines:
root INFO PluginTheiaDirectoryHandler: accepting plugin with path
root INFO Resolved "vscode-language-pack-cs" to a VS Code extension "vscode-language-pack-cs@1.53.2" with engines:
root INFO PluginTheiaDirectoryHandler: accepting plugin with path
root INFO Resolved "vscode-language-pack-de" to a VS Code extension "vscode-language-pack-de@1.53.2" with engines:
root INFO PluginTheiaDirectoryHandler: accepting plugin with path
root INFO Resolved "vscode-language-pack-es" to a VS Code extension "vscode-language-pack-es@1.53.2" with engines:
root INFO PluginTheiaDirectoryHandler: accepting plugin with path
root INFO Resolved "vscode-language-pack-fr" to a VS Code extension "vscode-language-pack-fr@1.53.2" with engines:
root INFO PluginTheiaDirectoryHandler: accepting plugin with path
root INFO Resolved "vscode-language-pack-hu" to a VS Code extension "vscode-language-pack-hu@1.48.3" with engines:
root INFO PluginTheiaDirectoryHandler: accepting plugin with path
root INFO Resolved "vscode-language-pack-it" to a VS Code extension "vscode-language-pack-it@1.53.2" with engines:
root INFO PluginTheiaDirectoryHandler: accepting plugin with path
root INFO Resolved "vscode-language-pack-ja" to a VS Code extension "vscode-language-pack-ja@1.53.2" with engines:
root INFO PluginTheiaDirectoryHandler: accepting plugin with path
root INFO Resolved "vscode-language-pack-ko" to a VS Code extension "vscode-language-pack-ko@1.53.2" with engines:
root INFO PluginTheiaDirectoryHandler: accepting plugin with path
root INFO Resolved "vscode-language-pack-nl" to a VS Code extension "vscode-language-pack-nl@1.48.3" with engines:
root INFO PluginTheiaDirectoryHandler: accepting plugin with path
root INFO Resolved "vscode-language-pack-pl" to a VS Code extension "vscode-language-pack-pl@1.53.2" with engines:
root INFO PluginTheiaDirectoryHandler: accepting plugin with path
root INFO Resolved "vscode-language-pack-pt-BR" to a VS Code extension "vscode-language-pack-pt-BR@1.53.2" with engines:
root INFO PluginTheiaDirectoryHandler: accepting plugin with path
root INFO Resolved "vscode-language-pack-ru" to a VS Code extension "vscode-language-pack-ru@1.53.2" with engines:
root INFO PluginTheiaDirectoryHandler: accepting plugin with path
root INFO Resolved "vscode-language-pack-tr" to a VS Code extension "vscode-language-pack-tr@1.53.2" with engines:
root INFO PluginTheiaDirectoryHandler: accepting plugin with path
root INFO Resolved "vscode-language-pack-uk" to a VS Code extension "vscode-language-pack-uk@1.48.3" with engines:
root INFO PluginTheiaDirectoryHandler: accepting plugin with path
root INFO Resolved "vscode-language-pack-zh-hans" to a VS Code extension "vscode-language-pack-zh-hans@1.53.2" with engines:
root INFO Resolve plugins list: 125.5 ms [Finished 2.024 s after backend start]
root INFO Deployed backend plugin "cortex-debug@0.3.10" from "/Applications/Arduino IDE.app/Contents/Resources/app/plugins/cortex-debug/extension/dist/extension": 10.0 ms [Finished 2.035 s after backend start]
root INFO Deployed backend plugin "vscode-arduino-tools@0.0.2-beta.5" from "/Applications/Arduino IDE.app/Contents/Resources/app/plugins/vscode-arduino-tools/extension/dist/bundle": 11.3 ms [Finished 2.046 s after backend start]
root INFO Deployed backend plugin "cpp@1.52.1" from "/Applications/Arduino IDE.app/Contents/Resources/app/plugins/vscode-builtin-cpp/extension": 14.9 ms [Finished 2.061 s after backend start]
root INFO Deployed backend plugin "json@1.46.1" from "/Applications/Arduino IDE.app/Contents/Resources/app/plugins/vscode-builtin-json/extension": 6.2 ms [Finished 2.067 s after backend start]
root INFO Deployed backend plugin "json-language-features@1.46.1" from "/Applications/Arduino IDE.app/Contents/Resources/app/plugins/vscode-builtin-json-language-features/extension/client/dist/jsonMain": 4.9 ms [Finished 2.072 s after backend start]
root INFO Deployed backend plugin "vscode-language-pack-bg@1.48.3" from "/Applications/Arduino IDE.app/Contents/Resources/app/plugins/vscode-language-pack-bg/extension": 186.0 ms [Finished 2.258 s after backend start]
daemon INFO INFO[0000] Using config file: /Users/yu/.arduinoIDE/arduino-cli.yaml 
INFO[0000] arduino-cli version 0.28.0                   
INFO[0000] Executing `arduino-cli daemon`               
{"IP":"127.0.0.1","Port":"49483"}

daemon INFO Daemon is running.
root INFO Deployed backend plugin "vscode-language-pack-cs@1.53.2" from "/Applications/Arduino IDE.app/Contents/Resources/app/plugins/vscode-language-pack-cs/extension": 131.6 ms [Finished 2.390 s after backend start]
daemon INFO INFO[0000] Loading hardware from: /Users/yu/Library/Arduino15/packages 
INFO[0000] Loading package arduino from: /Users/yu/Library/Arduino15/packages/arduino/hardware 

root INFO Deployed backend plugin "vscode-language-pack-de@1.53.2" from "/Applications/Arduino IDE.app/Contents/Resources/app/plugins/vscode-language-pack-de/extension": 586.9 ms [Finished 2.977 s after backend start]
daemon INFO INFO[0000] Checking signature                            error="opening signature file: open /Users/yu/Library/Arduino15/packages/arduino/hardware/avr/1.8.6/installed.json.sig: no such file or directory" index=/Users/yu/Library/Arduino15/packages/arduino/hardware/avr/1.8.6/installed.json signatureFile=/Users/yu/Library/Arduino15/packages/arduino/hardware/avr/1.8.6/installed.json.sig
INFO[0000] Adding monitor tool                           protocol=serial tool="builtin:serial-monitor"
INFO[0000] Loaded platform                               platform="arduino:avr@1.8.6"
INFO[0000] Checking existence of 'tools' path: /Users/yu/Library/Arduino15/packages/arduino/tools 
INFO[0000] Loading tools from dir: /Users/yu/Library/Arduino15/packages/arduino/tools 
INFO[0000] Loaded tool                                   tool="arduino:arduinoOTA@1.3.0"
INFO[0000] Loaded tool                                   tool="arduino:avr-gcc@7.3.0-atmel3.6.1-arduino7"
INFO[0000] Loaded tool                                   tool="arduino:avrdude@6.3.0-arduino17"
INFO[0000] Loading package builtin from: /Users/yu/Library/Arduino15/packages/builtin 
INFO[0000] Checking existence of 'tools' path: /Users/yu/Library/Arduino15/packages/builtin/tools 
INFO[0000] Loading tools from dir: /Users/yu/Library/Arduino15/packages/builtin/tools 
INFO[0000] Loaded tool                                   tool="builtin:ctags@5.8-arduino11"
INFO[0000] Loaded tool                                   tool="builtin:mdns-discovery@1.0.6"
INFO[0000] Loaded tool                                   tool="builtin:serial-discovery@1.3.2"
INFO[0000] Loaded tool                                   tool="builtin:serial-monitor@0.10.0"
INFO[0000] Loading package esp8266 from: /Users/yu/Library/Arduino15/packages/esp8266/hardware 
INFO[0000] Checking signature                            error="opening signature file: open /Users/yu/Library/Arduino15/packages/esp8266/hardware/esp8266/3.0.2/installed.json.sig: no such file or directory" index=/Users/yu/Library/Arduino15/packages/esp8266/hardware/esp8266/3.0.2/installed.json signatureFile=/Users/yu/Library/Arduino15/packages/esp8266/hardware/esp8266/3.0.2/installed.json.sig
INFO[0000] Adding monitor tool                           protocol=serial tool="builtin:serial-monitor"
INFO[0000] Loaded platform                               platform="esp8266:esp8266@3.0.2"
INFO[0000] Checking existence of 'tools' path: /Users/yu/Library/Arduino15/packages/esp8266/tools 
INFO[0000] Loading tools from dir: /Users/yu/Library/Arduino15/packages/esp8266/tools 
INFO[0000] Loaded tool                                   tool="esp8266:mklittlefs@3.0.4-gcc10.3-1757bed"
INFO[0000] Loaded tool                                   tool="esp8266:mkspiffs@3.0.4-gcc10.3-1757bed"
INFO[0000] Loaded tool                                   tool="esp8266:python3@3.7.2-post1"
INFO[0000] Loaded tool                                   tool="esp8266:xtensa-lx106-elf-gcc@3.0.4-gcc10.3-1757bed"
INFO[0000] Checking signature                            index=/Users/yu/Library/Arduino15/package_index.json signatureFile=/Users/yu/Library/Arduino15/package_index.json.sig trusted=true
INFO[0000] Checking signature                            error="opening signature file: open /Users/yu/Library/Arduino15/package_esp8266com_index.json.sig: no such file or directory" index=/Users/yu/Library/Arduino15/package_esp8266com_index.json signatureFile=/Users/yu/Library/Arduino15/package_esp8266com_index.json.sig
INFO[0000] Adding libraries dir                          dir=/Users/yu/Library/Arduino15/packages/esp8266/hardware/esp8266/3.0.2/libraries location=platform
INFO[0000] Adding libraries dir                          dir=/Users/yu/Library/Arduino15/packages/arduino/hardware/avr/1.8.6/libraries location=platform
INFO[0000] Loading libraries index file                  index=/Users/yu/Library/Arduino15/library_index.json
INFO[0000] Adding libraries dir                          dir=/Users/yu/Library/Arduino15/libraries location=ide
INFO[0000] Adding libraries dir                          dir=/Users/yu/Documents/Arduino/libraries location=user

root INFO Deployed backend plugin "vscode-language-pack-es@1.53.2" from "/Applications/Arduino IDE.app/Contents/Resources/app/plugins/vscode-language-pack-es/extension": 89.6 ms [Finished 3.067 s after backend start]
root INFO Deployed backend plugin "vscode-language-pack-fr@1.53.2" from "/Applications/Arduino IDE.app/Contents/Resources/app/plugins/vscode-language-pack-fr/extension": 99.8 ms [Finished 3.167 s after backend start]
root INFO Deployed backend plugin "vscode-language-pack-hu@1.48.3" from "/Applications/Arduino IDE.app/Contents/Resources/app/plugins/vscode-language-pack-hu/extension": 50.9 ms [Finished 3.218 s after backend start]
root INFO Deployed backend plugin "vscode-language-pack-it@1.53.2" from "/Applications/Arduino IDE.app/Contents/Resources/app/plugins/vscode-language-pack-it/extension": 44.9 ms [Finished 3.263 s after backend start]
root INFO Deployed backend plugin "vscode-language-pack-ja@1.53.2" from "/Applications/Arduino IDE.app/Contents/Resources/app/plugins/vscode-language-pack-ja/extension": 58.7 ms [Finished 3.322 s after backend start]
root INFO Deployed backend plugin "vscode-language-pack-ko@1.53.2" from "/Applications/Arduino IDE.app/Contents/Resources/app/plugins/vscode-language-pack-ko/extension": 55.6 ms [Finished 3.379 s after backend start]
root INFO Deployed backend plugin "vscode-language-pack-nl@1.48.3" from "/Applications/Arduino IDE.app/Contents/Resources/app/plugins/vscode-language-pack-nl/extension": 19.0 ms [Finished 3.398 s after backend start]
root INFO Deployed backend plugin "vscode-language-pack-pl@1.53.2" from "/Applications/Arduino IDE.app/Contents/Resources/app/plugins/vscode-language-pack-pl/extension": 39.2 ms [Finished 3.438 s after backend start]
root INFO Deployed backend plugin "vscode-language-pack-pt-BR@1.53.2" from "/Applications/Arduino IDE.app/Contents/Resources/app/plugins/vscode-language-pack-pt-BR/extension": 53.6 ms [Finished 3.491 s after backend start]
root INFO Deployed backend plugin "vscode-language-pack-ru@1.53.2" from "/Applications/Arduino IDE.app/Contents/Resources/app/plugins/vscode-language-pack-ru/extension": 50.1 ms [Finished 3.541 s after backend start]
root INFO Deployed backend plugin "vscode-language-pack-tr@1.53.2" from "/Applications/Arduino IDE.app/Contents/Resources/app/plugins/vscode-language-pack-tr/extension": 39.2 ms [Finished 3.581 s after backend start]
root INFO Deployed backend plugin "vscode-language-pack-uk@1.48.3" from "/Applications/Arduino IDE.app/Contents/Resources/app/plugins/vscode-language-pack-uk/extension": 40.4 ms [Finished 3.621 s after backend start]
root INFO Deployed backend plugin "vscode-language-pack-zh-hans@1.53.2" from "/Applications/Arduino IDE.app/Contents/Resources/app/plugins/vscode-language-pack-zh-hans/extension": 39.6 ms [Finished 3.661 s after backend start]
root INFO Deploy plugins list: 125.5 ms [Finished 3.667 s after backend start]
discovery-log INFO start request start watch
discovery-log INFO start requested start watch
discovery-log INFO start resolved watching
daemon INFO INFO[0003] starting discovery builtin:mdns-discovery process 

daemon INFO INFO[0003] starting discovery builtin:serial-discovery process 

daemon INFO INFO[0003] started discovery builtin:serial-discovery process 

daemon INFO INFO[0003] sending command HELLO 1 "arduino-cli 0.28.0" to discovery builtin:serial-discovery 

daemon INFO INFO[0003] started discovery builtin:mdns-discovery process 
INFO[0003] sending command HELLO 1 "arduino-cli 0.28.0" to discovery builtin:mdns-discovery 

daemon INFO INFO[0003] from discovery builtin:mdns-discovery received message type: hello, message: OK, protocol version: 1 

daemon INFO INFO[0003] sending command START_SYNC to discovery builtin:mdns-discovery 

daemon INFO INFO[0003] from discovery builtin:mdns-discovery received message type: start_sync, message: OK 

daemon INFO INFO[0003] from discovery builtin:serial-discovery received message type: hello, message: OK, protocol version: 1 

daemon INFO INFO[0003] sending command START_SYNC to discovery builtin:serial-discovery 
INFO[0003] from discovery builtin:serial-discovery received message type: start_sync, message: OK 

daemon INFO INFO[0003] from discovery builtin:serial-discovery received message type: add, port: /dev/cu.wlan-debug 

daemon INFO INFO[0003] from discovery builtin:serial-discovery received message type: add, port: /dev/cu.usbserial-2430 
INFO[0003] from discovery builtin:serial-discovery received message type: add, port: /dev/cu.BoseQCdeYU 
INFO[0003] from discovery builtin:serial-discovery received message type: add, port: /dev/cu.Bluetooth-Incoming-Port 

discovery-log INFO {"eventType":"add","port":{"matchingBoardsList":[],"port":{"address":"/dev/cu.wlan-debug","label":"/dev/cu.wlan-debug","protocol":"serial","protocolLabel":"Serial Port","propertiesMap":[]}},"error":""}
discovery-log INFO {"eventType":"add","port":{"matchingBoardsList":[],"port":{"address":"/dev/cu.usbserial-2430","label":"/dev/cu.usbserial-2430","protocol":"serial","protocolLabel":"Serial Port (USB)","propertiesMap":[["pid","0x7523"],["serialNumber",""],["vid","0x1A86"]]}},"error":""}
discovery-log INFO {"eventType":"add","port":{"matchingBoardsList":[],"port":{"address":"/dev/cu.BoseQCdeYU","label":"/dev/cu.BoseQCdeYU","protocol":"serial","protocolLabel":"Serial Port","propertiesMap":[]}},"error":""}
discovery-log INFO {"eventType":"add","port":{"matchingBoardsList":[],"port":{"address":"/dev/cu.Bluetooth-Incoming-Port","label":"/dev/cu.Bluetooth-Incoming-Port","protocol":"serial","protocolLabel":"Serial Port","propertiesMap":[]}},"error":""}
root WARN Frontend s.configure took longer than the expected maximum 100 milliseconds: 1508.2 ms [Finished 5.311 s after frontend start]
root WARN Frontend keybindings.onStart took longer than the expected maximum 100 milliseconds: 102.5 ms [Finished 5.462 s after frontend start]
root WARN Frontend m.onStart took longer than the expected maximum 100 milliseconds: 187.1 ms [Finished 5.766 s after frontend start]
root WARN Frontend l.onStart took longer than the expected maximum 100 milliseconds: 176.8 ms [Finished 5.946 s after frontend start]
root INFO Start frontend contributions: 2482.7 ms [Finished 5.953 s after frontend start]
root INFO Changed application state from 'init' to 'started_contributions'.
root INFO Changed application state from 'started_contributions' to 'attached_shell'.
root INFO >>> Restoring the layout state...
root INFO <<< Nothing to restore.
root INFO Initialize the workbench layout: 92.0 ms [Finished 6.520 s after frontend start]
root INFO Changed application state from 'attached_shell' to 'initialized_layout'.
root INFO [cd9132aa-061f-4eb0-94b9-a2306d8679db] Waiting for backend deployment: 900.3 ms [Finished 6.848 s after frontend start]
root INFO [hosted-plugin: 1895] PLUGIN_HOST(1895) starting instance
root INFO [cd9132aa-061f-4eb0-94b9-a2306d8679db] Sync of 21 plugins: 666.3 ms [Finished 7.515 s after frontend start]
root INFO [cd9132aa-061f-4eb0-94b9-a2306d8679db][marus25.cortex-debug]: Loaded contributions.
root INFO [cd9132aa-061f-4eb0-94b9-a2306d8679db][arduino.vscode-arduino-tools]: Loaded contributions.
root INFO [cd9132aa-061f-4eb0-94b9-a2306d8679db][vscode.cpp]: Loaded contributions.
root INFO [cd9132aa-061f-4eb0-94b9-a2306d8679db][vscode.json]: Loaded contributions.
root INFO [cd9132aa-061f-4eb0-94b9-a2306d8679db][vscode.json-language-features]: Loaded contributions.
root INFO [cd9132aa-061f-4eb0-94b9-a2306d8679db][ms-ceintl.vscode-language-pack-bg]: Loaded contributions.
root INFO [cd9132aa-061f-4eb0-94b9-a2306d8679db][ms-ceintl.vscode-language-pack-cs]: Loaded contributions.
root INFO [cd9132aa-061f-4eb0-94b9-a2306d8679db][ms-ceintl.vscode-language-pack-de]: Loaded contributions.
root INFO [cd9132aa-061f-4eb0-94b9-a2306d8679db][ms-ceintl.vscode-language-pack-es]: Loaded contributions.
root INFO [cd9132aa-061f-4eb0-94b9-a2306d8679db][ms-ceintl.vscode-language-pack-fr]: Loaded contributions.
root INFO [cd9132aa-061f-4eb0-94b9-a2306d8679db][ms-ceintl.vscode-language-pack-hu]: Loaded contributions.
root INFO [cd9132aa-061f-4eb0-94b9-a2306d8679db][ms-ceintl.vscode-language-pack-it]: Loaded contributions.
root INFO [cd9132aa-061f-4eb0-94b9-a2306d8679db][ms-ceintl.vscode-language-pack-ja]: Loaded contributions.
root INFO [cd9132aa-061f-4eb0-94b9-a2306d8679db][ms-ceintl.vscode-language-pack-ko]: Loaded contributions.
root INFO [cd9132aa-061f-4eb0-94b9-a2306d8679db][ms-ceintl.vscode-language-pack-nl]: Loaded contributions.
root INFO [cd9132aa-061f-4eb0-94b9-a2306d8679db][ms-ceintl.vscode-language-pack-pl]: Loaded contributions.
root INFO [cd9132aa-061f-4eb0-94b9-a2306d8679db][ms-ceintl.vscode-language-pack-pt-br]: Loaded contributions.
root INFO [cd9132aa-061f-4eb0-94b9-a2306d8679db][ms-ceintl.vscode-language-pack-ru]: Loaded contributions.
root INFO [cd9132aa-061f-4eb0-94b9-a2306d8679db][ms-ceintl.vscode-language-pack-tr]: Loaded contributions.
root INFO [cd9132aa-061f-4eb0-94b9-a2306d8679db][ms-ceintl.vscode-language-pack-uk]: Loaded contributions.
root INFO [cd9132aa-061f-4eb0-94b9-a2306d8679db][ms-ceintl.vscode-language-pack-zh-hans]: Loaded contributions.
root INFO [cd9132aa-061f-4eb0-94b9-a2306d8679db] Load contributions of 21 plugins: 46.6 ms [Finished 7.562 s after frontend start]
root INFO Frontend application start: 3432.5 ms [Finished 10.425 s after backend start]
root INFO Replace loading indicator with ready workbench UI (animation): 1058.9 ms [Finished 7.580 s after frontend start]
root INFO Changed application state from 'initialized_layout' to 'ready'.
Checking for update
root WARN 'cpp' language is remapped from 'source.cpp.embedded.macro' to 'source.cpp' scope
root WARN a registered grammar configuration for 'cpp' language is overridden
Update for version 2.0.1 is not available (latest version: 2.0.1, downgrade is allowed).
2022-11-09 18:56:56.477 Arduino IDE Helper (Renderer)[1887:15601] CoreText note: Client requested name ".NewYork-Regular", it will get TimesNewRomanPSMT rather than the intended font. All system UI font access should be through proper APIs such as CTFontCreateUIFontForLanguage() or +[NSFont systemFontOfSize:].
2022-11-09 18:56:56.477 Arduino IDE Helper (Renderer)[1887:15601] CoreText note: Set a breakpoint on CTFontLogSystemFontNameRequest to debug.
root ERROR ---- !!!SLOW!!! DURATION: search took 1049.060 ms. Args: [{"type":"Updatable"}] ----
root INFO [hosted-plugin: 1895] PLUGIN_HOST(1895): PluginManagerExtImpl/init()
root INFO [hosted-plugin: 1895] PLUGIN_HOST(1895): initializing(cortex-debug@0.3.10 with /Applications/Arduino IDE.app/Contents/Resources/app/node_modules/@theia/plugin-ext-vscode/lib/node/plugin-vscode-init)
root INFO [hosted-plugin: 1895] Debugger contribution has been registered: cortex-debug
root INFO [hosted-plugin: 1895] PLUGIN_HOST(1895): initializing(vscode-arduino-tools@0.0.2-beta.5 with /Applications/Arduino IDE.app/Contents/Resources/app/node_modules/@theia/plugin-ext-vscode/lib/node/plugin-vscode-init)
root INFO [hosted-plugin: 1895] PLUGIN_HOST(1895): initializing(cpp@1.52.1 with /Applications/Arduino IDE.app/Contents/Resources/app/node_modules/@theia/plugin-ext-vscode/lib/node/plugin-vscode-init)
root INFO [hosted-plugin: 1895] PLUGIN_HOST(1895): initializing(json@1.46.1 with /Applications/Arduino IDE.app/Contents/Resources/app/node_modules/@theia/plugin-ext-vscode/lib/node/plugin-vscode-init)
root INFO [hosted-plugin: 1895] PLUGIN_HOST(1895): initializing(json-language-features@1.46.1 with /Applications/Arduino IDE.app/Contents/Resources/app/node_modules/@theia/plugin-ext-vscode/lib/node/plugin-vscode-init)
root INFO [hosted-plugin: 1895] PLUGIN_HOST(1895): initializing(vscode-language-pack-bg@1.48.3 with /Applications/Arduino IDE.app/Contents/Resources/app/node_modules/@theia/plugin-ext-vscode/lib/node/plugin-vscode-init)
root INFO [hosted-plugin: 1895] PLUGIN_HOST(1895): initializing(vscode-language-pack-cs@1.53.2 with /Applications/Arduino IDE.app/Contents/Resources/app/node_modules/@theia/plugin-ext-vscode/lib/node/plugin-vscode-init)
root INFO [hosted-plugin: 1895] PLUGIN_HOST(1895): initializing(vscode-language-pack-de@1.53.2 with /Applications/Arduino IDE.app/Contents/Resources/app/node_modules/@theia/plugin-ext-vscode/lib/node/plugin-vscode-init)
root INFO [hosted-plugin: 1895] PLUGIN_HOST(1895): initializing(vscode-language-pack-es@1.53.2 with /Applications/Arduino IDE.app/Contents/Resources/app/node_modules/@theia/plugin-ext-vscode/lib/node/plugin-vscode-init)
root INFO [hosted-plugin: 1895] PLUGIN_HOST(1895): initializing(vscode-language-pack-fr@1.53.2 with /Applications/Arduino IDE.app/Contents/Resources/app/node_modules/@theia/plugin-ext-vscode/lib/node/plugin-vscode-init)
root INFO [hosted-plugin: 1895] PLUGIN_HOST(1895): initializing(vscode-language-pack-hu@1.48.3 with /Applications/Arduino IDE.app/Contents/Resources/app/node_modules/@theia/plugin-ext-vscode/lib/node/plugin-vscode-init)
root INFO [hosted-plugin: 1895] PLUGIN_HOST(1895): initializing(vscode-language-pack-it@1.53.2 with /Applications/Arduino IDE.app/Contents/Resources/app/node_modules/@theia/plugin-ext-vscode/lib/node/plugin-vscode-init)
root INFO [hosted-plugin: 1895] PLUGIN_HOST(1895): initializing(vscode-language-pack-ja@1.53.2 with /Applications/Arduino IDE.app/Contents/Resources/app/node_modules/@theia/plugin-ext-vscode/lib/node/plugin-vscode-init)
root INFO [hosted-plugin: 1895] PLUGIN_HOST(1895): initializing(vscode-language-pack-ko@1.53.2 with /Applications/Arduino IDE.app/Contents/Resources/app/node_modules/@theia/plugin-ext-vscode/lib/node/plugin-vscode-init)
root INFO [hosted-plugin: 1895] PLUGIN_HOST(1895): initializing(vscode-language-pack-nl@1.48.3 with /Applications/Arduino IDE.app/Contents/Resources/app/node_modules/@theia/plugin-ext-vscode/lib/node/plugin-vscode-init)
root INFO [hosted-plugin: 1895] PLUGIN_HOST(1895): initializing(vscode-language-pack-pl@1.53.2 with /Applications/Arduino IDE.app/Contents/Resources/app/node_modules/@theia/plugin-ext-vscode/lib/node/plugin-vscode-init)
root INFO [hosted-plugin: 1895] PLUGIN_HOST(1895): initializing(vscode-language-pack-pt-BR@1.53.2 with /Applications/Arduino IDE.app/Contents/Resources/app/node_modules/@theia/plugin-ext-vscode/lib/node/plugin-vscode-init)
root INFO [hosted-plugin: 1895] PLUGIN_HOST(1895): initializing(vscode-language-pack-ru@1.53.2 with /Applications/Arduino IDE.app/Contents/Resources/app/node_modules/@theia/plugin-ext-vscode/lib/node/plugin-vscode-init)
root INFO [hosted-plugin: 1895] PLUGIN_HOST(1895): initializing(vscode-language-pack-tr@1.53.2 with /Applications/Arduino IDE.app/Contents/Resources/app/node_modules/@theia/plugin-ext-vscode/lib/node/plugin-vscode-init)
root INFO [hosted-plugin: 1895] PLUGIN_HOST(1895): initializing(vscode-language-pack-uk@1.48.3 with /Applications/Arduino IDE.app/Contents/Resources/app/node_modules/@theia/plugin-ext-vscode/lib/node/plugin-vscode-init)
root INFO [hosted-plugin: 1895] PLUGIN_HOST(1895): initializing(vscode-language-pack-zh-hans@1.53.2 with /Applications/Arduino IDE.app/Contents/Resources/app/node_modules/@theia/plugin-ext-vscode/lib/node/plugin-vscode-init)
root INFO [hosted-plugin: 1895] PLUGIN_HOST(1895): PluginManagerExtImpl/loadPlugin(/Applications/Arduino IDE.app/Contents/Resources/app/plugins/vscode-builtin-json-language-features/extension/client/dist/jsonMain)
root INFO [cd9132aa-061f-4eb0-94b9-a2306d8679db][marus25.cortex-debug]: Started plugin.
root INFO [cd9132aa-061f-4eb0-94b9-a2306d8679db][arduino.vscode-arduino-tools]: Started plugin.
root INFO [cd9132aa-061f-4eb0-94b9-a2306d8679db][vscode.cpp]: Started plugin.
root INFO [cd9132aa-061f-4eb0-94b9-a2306d8679db][vscode.json]: Started plugin.
root INFO [cd9132aa-061f-4eb0-94b9-a2306d8679db][vscode.json-language-features]: Started plugin.
root INFO [cd9132aa-061f-4eb0-94b9-a2306d8679db][ms-ceintl.vscode-language-pack-bg]: Started plugin.
root INFO [cd9132aa-061f-4eb0-94b9-a2306d8679db][ms-ceintl.vscode-language-pack-cs]: Started plugin.
root INFO [cd9132aa-061f-4eb0-94b9-a2306d8679db][ms-ceintl.vscode-language-pack-de]: Started plugin.
root INFO [cd9132aa-061f-4eb0-94b9-a2306d8679db][ms-ceintl.vscode-language-pack-es]: Started plugin.
root INFO [cd9132aa-061f-4eb0-94b9-a2306d8679db][ms-ceintl.vscode-language-pack-fr]: Started plugin.
root INFO [cd9132aa-061f-4eb0-94b9-a2306d8679db][ms-ceintl.vscode-language-pack-hu]: Started plugin.
root INFO [cd9132aa-061f-4eb0-94b9-a2306d8679db][ms-ceintl.vscode-language-pack-it]: Started plugin.
root INFO [cd9132aa-061f-4eb0-94b9-a2306d8679db][ms-ceintl.vscode-language-pack-ja]: Started plugin.
root INFO [cd9132aa-061f-4eb0-94b9-a2306d8679db][ms-ceintl.vscode-language-pack-ko]: Started plugin.
root INFO [cd9132aa-061f-4eb0-94b9-a2306d8679db][ms-ceintl.vscode-language-pack-nl]: Started plugin.
root INFO [cd9132aa-061f-4eb0-94b9-a2306d8679db][ms-ceintl.vscode-language-pack-pl]: Started plugin.
root INFO [cd9132aa-061f-4eb0-94b9-a2306d8679db][ms-ceintl.vscode-language-pack-pt-br]: Started plugin.
root INFO [cd9132aa-061f-4eb0-94b9-a2306d8679db][ms-ceintl.vscode-language-pack-ru]: Started plugin.
root INFO [cd9132aa-061f-4eb0-94b9-a2306d8679db][ms-ceintl.vscode-language-pack-tr]: Started plugin.
root INFO [cd9132aa-061f-4eb0-94b9-a2306d8679db][ms-ceintl.vscode-language-pack-uk]: Started plugin.
root INFO [cd9132aa-061f-4eb0-94b9-a2306d8679db][ms-ceintl.vscode-language-pack-zh-hans]: Started plugin.
root INFO [cd9132aa-061f-4eb0-94b9-a2306d8679db] Start of 21 plugins: 3406.6 ms [Finished 10.986 s after frontend start]
root WARN Timeout after 5000 millis. The editor has not shown up in time. URI: file:///private/var/folders/3k/gzdftw_d6tdcmryzxjx72s400000gn/T/.arduinoIDE-unsaved2022109-1881-gbxpva.vfep/sketch_nov9a/sketch_nov9a.ino
daemon INFO panic: 
daemon INFO runtime error: invalid memory address or nil pointer dereference
[signal SIGSEGV: segmentation violation code=0x1 addr=0x10 pc=0x42ffc5d]

goroutine 99 [running]:
github.com/arduino/go-properties-orderedmap.(*Map).Merge(0x0, {0xc000c0f658, 0x1, 0x0})
	/go/pkg/mod/github.com/arduino/go-properties-orderedmap@v1.6.0/properties.go:443 +0x3d
github.com/arduino/go-properties-orderedmap.(*Map).Clone(...)
	/go/pkg/mod/github.com/arduino/go-properties-orderedmap@v1.6.0/properties.go:477
github.com/arduino/arduino-cli/arduino/cores.(*Board).GetBuildProperties(0xc0000b5380, 0xc0048fc600)
	/home/build/arduino/cores/board.go:119 +0xd5
github.com/arduino/arduino-cli/arduino/cores/packagemanager.(*Explorer).ResolveFQBN(0xc006fb6000, 0xc0062cc2c0)
	/home/build/arduino/cores/packagemanager/package_manager.go:291 +0x105
github.com/arduino/arduino-cli/commands/lib.LibraryList({0x400cd45, 0x49b9100}, 0xc001ff8180)
	/home/build/commands/lib/list.go:57 +0x24a
github.com/arduino/arduino-cli/commands/daemon.(*ArduinoCoreServerImpl).LibraryList(0x4983940, {0x4c5e870, 0xc0048fc570}, 0x0)
	/home/build/commands/daemon/daemon.go:467 +0x2c
github.com/arduino/arduino-cli/rpc/cc/arduino/cli/commands/v1._ArduinoCoreService_LibraryList_Handler({0x49cdd60, 0xc0002e0ce0}, {0x4c5e870, 0xc0048fc570}, 0xc001ff8120, 0x0)
	/home/build/rpc/cc/arduino/cli/commands/v1/commands_grpc.pb.go:2051 +0x173
google.golang.org/grpc.(*Server).processUnaryRPC(0xc0002528c0, {0x4c70c18, 0xc000162000}, 0xc0003fc240, 0xc0003dcd20, 0x52b27d8, 0x0)
	/go/pkg/mod/google.golang.org/grpc@v1.38.0/server.go:1286 +0xc8f
google.golang.org/grpc.(*Server).handleStream(0xc0002528c0, {0x4c70c18, 0xc000162000}, 0xc0003fc240, 0x0)
	/go/pkg/mod/google.golang.org/grpc@v1.38.0/server.go:1609 +0xa2a
google.golang.org/grpc.(*Server).serveStreams.func1.2()
	/go/pkg/mod/google.golang.org/grpc@v1.38.0/server.go:934 +0x98
created by google.golang.org/grpc.(*Server).serveStreams.func1
	/go/pkg/mod/google.golang.org/grpc@v1.38.0/server.go:932 +0x294

daemon INFO panic: runtime error: invalid memory address or nil pointer dereference
[signal SIGSEGV: segmentation violation code=0x1 addr=0x10 pc=0x42ffc5d]

goroutine 65 [running]:
github.com/arduino/go-properties-orderedmap.(*Map).Merge
daemon INFO (0x0, {0xc00063d880, 0x1, 0x0})
	/go/pkg/mod/github.com/arduino/go-properties-orderedmap@v1.6.0/properties.go:443 +0x3d
github.com/arduino/go-properties-orderedmap.(*Map).Clone(...)
	/go/pkg/mod/github.com/arduino/go-properties-orderedmap@v1.6.0/properties.go:477
github.com/arduino/arduino-cli/arduino/cores.(*Board).GetBuildProperties(0xc0000b5380, 0xc0063665a0)
	/home/build/arduino/cores/board.go:119 +0xd5
github.com/arduino/arduino-cli/arduino/cores/packagemanager.(*Explorer).ResolveFQBN(0xc0058d3080, 0xc006afa440)
	/home/build/arduino/cores/packagemanager/package_manager.go:291 +0x105

daemon INFO github.com/arduino/arduino-cli/commands/upload.SupportedUserFields({0x400cd45, 0x49b9100}, 0xc0098164b0)
	/home/build/commands/upload/upload.go:62 +0x159
github.com/arduino/arduino-cli/commands/daemon.(*ArduinoCoreServerImpl).SupportedUserFields(0x4967f60, {0x4c5e870
daemon INFO , 0xc006366090}, 0x0)
	/home/build/commands/daemon/daemon.go:369 +0x2c
github.com/arduino/arduino-cli/rpc/cc/arduino/cli/commands/v1._ArduinoCoreService_SupportedUserFields_Handler({0x49cdd60, 0xc0002e0ce0}, {0x4c5e870, 0xc006366090}, 0xc009891140, 0x0)
	/home/build/rpc/cc/arduino/cli/commands/v1/commands_grpc.pb.go:1775 +0x173
google.golang.org/grpc.(*Server).processUnaryRPC(0xc0002528c0, {0x4c70c18, 0xc000162000}, 0xc0003fc000, 0xc0003dcd20, 0x52b2748, 0x0)
	/go/pkg/mod/google.golang.org/grpc@v1.38.0/server.go:1286 +0xc8f
google.golang.org/grpc.(*Server).handleStream(0xc0002528c0, {0x4c70c18, 0xc000162000}, 0xc0003fc000, 0x0)
	/go/pkg/mod/google.golang.org/grpc@v1.38.0/server.go:1609 +0xa2a
google.golang.org/grpc.(*Server).serveStreams.func1.2()
	/go/pkg/mod/google.golang.org/grpc@v1.38.0/server.go:934 +0x98
created by google.golang.org/grpc.(*Server).serveStreams.func1
	/go/pkg/mod/google.golang.org/grpc@v1.38.0/server.go:932 +0x294

discovery-log INFO error received
discovery-log ERROR Unexpected error occurred during the boards discovery.
discovery-log INFO received end
root ERROR Request getBoardUserFields failed with error: 14 UNAVAILABLE: read ECONNRESET
root ERROR Request list failed with error: 14 UNAVAILABLE: read ECONNRESET
root ERROR Request getBoardDetails failed with error: 14 UNAVAILABLE: read ECONNRESET
root ERROR Request search failed with error: 14 UNAVAILABLE: read ECONNRESET
root ERROR Request installed failed with error: 14 UNAVAILABLE: read ECONNRESET
daemon INFO Daemon exited with exit code: 2.
root ERROR Request getBoardDetails failed with error: 14 UNAVAILABLE: No connection established
root INFO Failed to start language server for esp8266:esp8266:d1_mini_pro
root ERROR Have not received the build path from the CLI while running the compilation.

@pdcook
Copy link

pdcook commented Nov 9, 2022

Can confirm that reverting to 2.0.0 fixes this issue. I am also using the ESP32.

@barc343
Copy link

barc343 commented Nov 9, 2022

Use a legacy version (1.8.X) for me works

@per1234
Copy link
Contributor

per1234 commented Nov 11, 2022

Hi all. Thanks for your reports. cmaglie investigated the problem and identified a potential cause.

A fix has been prepared, but unfortunately we were never able to reproduce the fault despite quite some attempts. So we are hoping that you might be willing to help us out by testing the fix and letting us know whether the error still occurs.

Everyone is welcome to test, but the most conclusive results will be in the case where the error is produced reliably with the regular production version of the software. So please first test with Arduino IDE 2.0.1 (or the latest nightly build of Arduino IDE if you prefer) to make sure you are able to reproduce the error.

I'll provide the instructions for getting the tester build of Arduino IDE that has the proposed fix:

  1. Sign in to your GitHub account.
    (GitHub only allows downloads of the tester builds when you are signed in.)

  2. Open this page in your browser:
    https://github.com/arduino/arduino-ide/actions/runs/3444944271#artifacts

  3. From the "Artifacts" section of the page, click the download link for your operating system:

    Operating system Link to use
    Windows Windows_X86-64_zip
    Linux Linux_X86-64_app_image
    macOS macOS_dmg
  4. Wait for the download to finish.

  5. Extract or install the downloaded file as usual.

  6. Start the tester build of Arduino IDE you downloaded.

  7. Perform whatever operations normally produce the error when using the regular version of Arduino IDE.

After doing that, please comment here to let me know the following:

  • Were you able to reproduce the fault using the regular version of Arduino IDE?
  • Were you able to reproduce the fault using the tester version of Arduino IDE?

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 Nov 11, 2022
@per1234 per1234 self-assigned this Nov 11, 2022
@ReneHeuker
Copy link

ReneHeuker commented Nov 11, 2022

Had same problem on Mac with the ide for arduino uno and esp01. problem occurs on regular version and disappears after installing this snapshot. thank you for solving it :-)

@simap
Copy link

simap commented Nov 11, 2022

Had the same problem after updating to 2.0.1 w/ esp32, went away when I restarted the IDE. 🤷‍♂️

@Burt-Silverman
Copy link

Burt-Silverman commented Nov 13, 2022

Were you able to reproduce the fault using the regular version of Arduino IDE?

Yes, I am using ESP8266 rather than ESP32 for my work.

Were you able to reproduce the fault using the tester version of Arduino IDE?

No, the tester version works fine for me.

@Andrew-F-in-Australia
Copy link

logs below. Test version (beta version) worked perfectly when executed through a terminal. Crashed when run on a clean install of Fedora 36 when executed by double clicking in terminal/graphical display manager.

Logs here: https://forum.arduino.cc/t/linux-nano-ch340-detected-working-in-ide1-8-13-but-not-ide2-0-1/1048313/15

The current fix also allows the user to select the example sketches. See detailed logs. Running very tired when testing (and typing this) so may have made an error my side. I'll check again with fresh eyes tomorrow.

Let me know if you want another beta version tested later please if you can see a simple fix. The error code when this is double-clicked seemed logical, but... ... ...

@limited
Copy link

limited commented Nov 13, 2022

  • System: OS X 12.6 on an M1 Mac
  • Board: Raspberry Pi Pico
  • I was able to reproduce the fault with the regular Arduino IDE version (stack trace below)
  • I was not able to reproduce the fault with the tester version.
Checking for update
Update for version 2.0.1 is not available (latest version: 2.0.1, downgrade is allowed).
root ERROR ---- !!!SLOW!!! DURATION: search took 1089.935 ms. Args: [{"type":"Updatable"}] ----
root WARN Timeout after 5000 millis. The editor has not shown up in time. URI: file:///private/var/folders/6k/rm3xpqmn4sg737d737mscccw0000gq/T/.arduinoIDE-unsaved20221013-90783-199s8mm.at44/sketch_nov13a/sketch_nov13a.ino
daemon INFO panic: runtime error: invalid memory address or nil pointer dereference
[signal SIGSEGV: segmentation violation code=0x1 addr=0x10 pc=0x42ffc5d]

goroutine 12 [running]:
github.com/arduino/go-properties-orderedmap.(*Map).Merge(0x0, {0xc00550b880, 0x1, 0x0})
	/go/pkg/mod/github.com/arduino/go-properties-orderedmap@v1.6.0/properties.go:443 +0x3d
github.com/arduino/go-properties-orderedmap.(*Map).Clone(...)
	/go/pkg/mod/github.com/arduino/go-properties-orderedmap@v1.6.0/properties.go:477
github.com/arduino/arduino-cli/arduino/cores.(*Board).GetBuildProperties(0xc0001a4120, 0xc008166a20)
	/home/build/arduino/cores/board.go:119 +0xd5
github.com/arduino/arduino-cli/arduino/cores/packagemanager.(*Explorer).ResolveFQBN(0xc0053c6200, 0xc0053a8140)
	/home/build/arduino/cores/packagemanager/package_manager.go:291 +0x105
github.com/arduino/arduino-cli/commands/upload.SupportedUserFields({0x400cd45, 0x49b9100}, 0xc0070d2000)
	/home/build/commands/upload/upload.go:62 +0x159
github.com/arduino/arduino-cli/commands/daemon.(*ArduinoCoreServerImpl).SupportedUserFields(0x4967f60, {0x4c5e870, 0xc008166000}, 0x0)
	/home/build/commands/daemon/daemon.go:369 +0x2c
github.com/arduino/arduino-cli/rpc/cc/arduino/cli/commands/v1._ArduinoCoreService_SupportedUserFields_Handler({0x49cdd60, 0xc0003c0d00}, {0x4c5e870, 0xc008166000}, 0xc00283c000, 0x0)
	/home/build/rpc/cc/arduino/cli/commands/v1/commands_grpc.pb.go:1775 +0x173
google.golang.org/grpc.(*Server).processUnaryRPC(0xc0003408c0, {0x4c70c18, 0xc000296f00}, 0xc00267a000, 0xc0004ccd80, 0x52b2748, 0x0)
	/go/pkg/mod/google.golang.org/grpc@v1.38.0/server.go:1286 +0xc8f
google.golang.org/grpc.(*Server).handleStream(0xc0003408c0, {0x4c70c18, 0xc000296f00}, 0xc00267a000, 0x0)
	/go/pkg/mod/google.golang.org/grpc@v1.38.0/server.go:1609 +0xa2a
google.golang.org/grpc.(*Server).serveStreams.func1.2()
	/go/pkg/mod/google.golang.org/grpc@v1.38.0/server.go:934 +0x98
created by google.golang.org/grpc.(*Server).serveStreams.func1
	/go/pkg/mod/google.golang.org/grpc@v1.38.0/server.go:932 +0x294

@per1234 per1234 linked a pull request Nov 14, 2022 that will close this issue
5 tasks
@cmaglie cmaglie added this to the Arduino CLI 1.0 milestone Nov 14, 2022
@per1234 per1234 added conclusion: resolved Issue was resolved and removed status: waiting for information More information must be provided before work can proceed labels Nov 14, 2022
@Andrew-F-in-Australia
Copy link

Hi all,

I had one of the forum issues above.

Confirming....
Nightly build 2.0.2 worked perfectly in a fresh build of Fedora, if you double click on the icon in file manager.
To get appimage working successfully in Fedora/Linux.

(1) sudo usermod -aG dialout horace
(2) sudo chmod +x arduino-ied_2.0.1_Linux_64bit.appimage {or whatever filename it is.]
(3) sudo chown : /dev/ttyUSB0 (or whatever port you are connected to.
(4) reboot, or at the least, log out and log back in again.

Then open app image by double clicking in graphical file manager.

Functions perfectly this way.


Had one successful run and one daemon panic in command line.

running in terminal/command line through ./arduino-ide_nightly-20221114_Linux_64bit.AppImage gives the following kernel panic

daemon INFO panic: runtime error: invalid memory address or nil pointer dereference [signal SIGSEGV: segmentation violation code=0x1 addr=0x10 pc=0x6fc2bd]
[ctrl]-C in the terminal to force-close the program, then opening through ./arduino-ide_nightly-20221114_Linux_64bit.AppImage gave a perfectly operating IDE the second time around.

Might be a linux bug we live with for a while - it's intermittent, so a re-loading of the program appears to fix it.

Thanks again to you and Cristian.

Regards,

A

@isaackhlam
Copy link

I encounter same problem today, without using above fix, I just uninstall esp32 from board manager and re-install, the problem fixed

@TheAeroPath
Copy link

I encounter same problem today, without using above fix, I just uninstall esp32 from board manager and re-install, the problem fixed

Fixed the problem for me as well. Thank you much!

@emrullahjack
Copy link

emrullahjack commented Nov 17, 2022

As a temporary solution, I re-install my board manager everytime I restart my computer to fix it.

The problem appears to occur when I click Tools > board > board_name
daemon INFO panic: runtime error: invalid memory address or nil pointer dereference
After that point it seems that the connection between the CLI and the GUI is broken

@per1234
Copy link
Contributor

per1234 commented Nov 17, 2022

Hi @emrullahjack. Please give the new Arduino IDE 2.0.2 release a try. The bug should be fixed in that version.

The download links are listed here:

https://www.arduino.cc/en/software

@emrullahjack
Copy link

Hi @per1234 thank you! 2.0.2 release works perfectly fine for me!!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
conclusion: resolved Issue was resolved topic: code Related to content of the project itself type: imperfection Perceived defect in any part of project
Projects
None yet
Development

Successfully merging a pull request may close this issue.