Skip to content

Beta 12 crashes on Linux and produces endless loop #629

Open
@AlfredoCubitos

Description

@AlfredoCubitos

Describe the problem

calling arduino-ide produces the following error:


I replaced my actual home dir path with $HOME in the below log content.


Starting backend process. PID: 9301
[9284:1121/121607.182528:FATAL:gpu_data_manager_impl_private.cc(439)] GPU process isn't usable. Goodbye.

arduino-ide_2.0.0> Using browser-only version of superagent in non-browser environment
Configuring to accept webviews on '^.+\.webview\..+$' hostname.
root INFO Configuration directory URI: 'file://$HOME/.theia'
root ERROR (node:9301) [DEP0005] DeprecationWarning: Buffer() is deprecated due to security and usability issues. Please use the Buffer.alloc(), Buffer.allocUnsafe(), or Buffer.from() methods instead.
root INFO Theia app listening on http://localhost:35643.
root WARN The local plugin referenced by local-dir:$HOME/.arduinoIDE/plugins does not exist.
root WARN The local plugin referenced by local-dir:$HOME/.arduinoIDE/extensions does not exist.
root WARN The local plugin referenced by local-dir:$HOME/.arduinoProIDE/plugins does not exist.
root INFO PluginTheiaDirectoryHandler: accepting plugin with path
root INFO Resolved "cortex-debug" to a VS Code extension "[email protected]" with engines:
root INFO PluginTheiaDirectoryHandler: accepting plugin with path
root INFO Resolved "vscode-arduino-tools" to a VS Code extension "[email protected]" with engines:
root INFO PluginTheiaDirectoryHandler: accepting plugin with path
root INFO Resolved "vscode-builtin-cpp" to a VS Code extension "[email protected]" with engines:
root INFO PluginTheiaDirectoryHandler: accepting plugin with path
root INFO Resolved "vscode-builtin-json" to a VS Code extension "[email protected]" with engines:
root INFO PluginTheiaDirectoryHandler: accepting plugin with path
root INFO Resolved "vscode-builtin-json-language-features" to a VS Code extension "[email protected]" with engines:
root INFO Deploying backend plugin "[email protected]" from "$HOME/Devel/Arduino/arduino-ide_2.0.0/resources/app/plugins/cortex-debug/extension/dist/extension"
root INFO Deploying backend plugin "[email protected]" from "$HOME/Devel/Arduino/arduino-ide_2.0.0/resources/app/plugins/vscode-arduino-tools/extension/dist/bundle"
root INFO Deploying backend plugin "[email protected]" from "$HOME/Devel/Arduino/arduino-ide_2.0.0/resources/app/plugins/vscode-builtin-cpp/extension"
root WARN Backend ConfigServiceImpl.onStart is slow, took: 53.1 ms
daemon INFO Starting daemon from $HOME/Devel/Arduino/arduino-ide_2.0.0/resources/app/node_modules/arduino-ide-extension/build/arduino-cli...
root INFO Deploying backend plugin "[email protected]" from "$HOME/Devel/Arduino/arduino-ide_2.0.0/resources/app/plugins/vscode-builtin-json/extension"
root INFO Deploying backend plugin "[email protected]" from "$HOME/Devel/Arduino/arduino-ide_2.0.0/resources/app/plugins/vscode-builtin-json-language-features/extension/client/dist/jsonMain"
root INFO Deploy plugins list took: 57.2 ms
root ERROR Could not start contribution
root ERROR Uncaught Exception: 
root ERROR Error [ERR_IPC_CHANNEL_CLOSED]: Channel closed
    at process.target.send (internal/child_process.js:678:16)
    at $HOME/Devel/Arduino/arduino-ide_2.0.0/resources/app/src-gen/backend/main.js:26:17
daemon INFO Using config file: $HOME/.arduinoIDE/arduino-cli.yaml
daemon INFO arduino-cli version 0.19.1
daemon INFO Setting up Prometheus metrics on :9090/metrics
daemon INFO Starting daemon on TCP address 127.0.0.1:50051
daemon INFO Daemon is now listening on 127.0.0.1:50051...
daemon INFO Daemon is running.
daemon ERROR Failed to listen on TCP port: 50051. Address already in use.
daemon INFO Failed to start the daemon.
daemon ERROR Error: Failed to listen on TCP port. Address already in use.
    at Function.parse $HOME/Devel/Arduino/arduino-ide_2.0.0/resources/app/node_modules/arduino-ide-extension/lib/node/arduino-daemon-impl.js:239:24)
    at Socket.<anonymous> ($HOME/Devel/Arduino/arduino-ide_2.0.0/resources/app/node_modules/arduino-ide-extension/lib/node/arduino-daemon-impl.js:142:43)
    at Socket.emit (events.js:223:5)
    at addChunk (_stream_readable.js:309:12)
    at readableAddChunk (_stream_readable.js:290:11)
    at Socket.Readable.push (_stream_readable.js:224:10)
    at Pipe.onStreamRead (internal/stream_base_commons.js:181:23)

In this state it produces an endless loop, which produces:

daemon INFO Restarting daemon in 5 seconds...
daemon INFO Failed to listen on TCP port: 50051. Address already in use.
daemon INFO Daemon exited with exit code: 5.
daemon INFO Restarting daemon in 4 seconds...
daemon INFO Restarting daemon in 3 seconds...
daemon INFO Restarting daemon in 2 seconds...
daemon INFO Restarting daemon in 1 seconds...
daemon INFO Restarting daemon now...

To reproduce

Start Arduino IDE.

Expected behavior

Arduino IDE starts without errors.

Arduino IDE version

2.0.0-beta.12

Operating system

Linux

Operating system version

openSuSe Tumbleweed with KDE Plasma

Metadata

Metadata

Assignees

Labels

topic: CLIRelated to Arduino CLItype: imperfectionPerceived defect in any part of project

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions