Skip to content

Cannot run Arduino IDE under native Wayland #2107

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

Open
3 tasks done
Integral-Tech opened this issue Jun 20, 2023 · 9 comments
Open
3 tasks done

Cannot run Arduino IDE under native Wayland #2107

Integral-Tech opened this issue Jun 20, 2023 · 9 comments
Assignees
Labels
os: linux Specific to Linux operating system type: imperfection Perceived defect in any part of project

Comments

@Integral-Tech
Copy link

Integral-Tech commented Jun 20, 2023

Describe the problem

I'm using Arduino IDE 2.1.0 on KDE Plasma + Wayland, but I find it can only run under XWayland.

After adding --enable-features=UseOzonePlatform --ozone-platform=wayland parameters to force it to run under native Wayland, it crashes.

To reproduce

Execute the following command to force it to run under native Wayland:

arduino-ide --enable-features=UseOzonePlatform --ozone-platform=wayland

It crashes:

zsh: segmentation fault (core dumped)  arduino-ide --enable-features=UseOzonePlatform --ozone-platform=wayland

Full log:

> arduino-ide --enable-features=UseOzonePlatform --ozone-platform=wayland
Arduino IDE 2.1.0
Starting backend process. PID: 126461
[126486:0620/143121.470045:ERROR:gpu_init.cc(453)] Passthrough is not supported, GL is egl, ANGLE is 
[126486:0620/143121.476150:ERROR:sandbox_linux.cc(374)] InitializeSandbox() called with multiple threads in process gpu-process.
Using browser-only version of superagent in non-browser environment
Configuration directory URI: 'file:///home/integral/.theia'
Configuring to accept webviews on '^.+\.webview\..+$' hostname.
2023-06-20T06:31:22.372Z root INFO Backend Object.initialize: 4.2 ms [Finished 1.007 s after backend start]
2023-06-20T06:31:22.372Z root INFO Backend Object.configure: 3.4 ms [Finished 1.007 s after backend start]
2023-06-20T06:31:22.372Z root INFO Backend MessagingContribution.onStart: 1.5 ms [Finished 1.007 s after backend start]
2023-06-20T06:31:22.373Z root INFO Backend OSBackendApplicationContribution.configure: 0.4 ms [Finished 1.054 s after backend start]
2023-06-20T06:31:22.374Z root INFO Backend DefaultWorkspaceServer.onStart: 0.3 ms [Finished 1.054 s after backend start]
2023-06-20T06:31:22.374Z root INFO Backend PluginLocalizationBackendContribution.configure: 0.1 ms [Finished 1.054 s after backend start]
2023-06-20T06:31:22.375Z root INFO Backend PluginLocalizationBackendContribution.initialize: 46.3 ms [Finished 1.054 s after backend start]
2023-06-20T06:31:22.375Z root INFO Backend TaskBackendApplicationContribution.onStart: 0.3 ms [Finished 1.054 s after backend start]
2023-06-20T06:31:22.376Z root INFO Backend ElectronTokenBackendContribution.configure: 0.7 ms [Finished 1.055 s after backend start]
2023-06-20T06:31:22.376Z config INFO >>> Initializing CLI configuration...
2023-06-20T06:31:22.376Z root INFO Backend PluginDeployerContribution.initialize: 0.5 ms [Finished 1.055 s after backend start]
2023-06-20T06:31:22.377Z root INFO Backend ConfigServiceImpl.onStart: 0.8 ms [Finished 1.056 s after backend start]
2023-06-20T06:31:22.377Z config INFO Loading CLI configuration from /home/integral/.arduinoIDE/arduino-cli.yaml...
2023-06-20T06:31:22.378Z root INFO Backend WebviewBackendSecurityWarnings.initialize: 0.4 ms [Finished 1.057 s after backend start]
2023-06-20T06:31:22.378Z root INFO Backend ArduinoDaemonImpl.onStart: 0.9 ms [Finished 1.057 s after backend start]
2023-06-20T06:31:22.378Z root INFO Backend NodeFileUploadService.configure: 1.6 ms [Finished 1.057 s after backend start]
2023-06-20T06:31:22.378Z daemon INFO Starting daemon from /opt/arduino-ide/resources/app/node_modules/arduino-ide-extension/build/arduino-cli...
2023-06-20T06:31:22.378Z discovery-log INFO start
2023-06-20T06:31:22.378Z discovery-log INFO start new deferred
2023-06-20T06:31:22.378Z root INFO Backend HostedPluginLocalizationService.initialize: 0.4 ms [Finished 1.058 s after backend start]
2023-06-20T06:31:22.379Z root INFO Backend BoardDiscovery.onStart: 0.9 ms [Finished 1.059 s after backend start]
2023-06-20T06:31:22.379Z root INFO Backend FileDownloadEndpoint.configure: 0.8 ms [Finished 1.059 s after backend start]
2023-06-20T06:31:22.379Z root INFO Backend AuthenticationServiceImpl.onStart: 0.4 ms [Finished 1.060 s after backend start]
2023-06-20T06:31:22.379Z root INFO Backend PluginApiContribution.configure: 0.4 ms [Finished 1.060 s after backend start]
2023-06-20T06:31:22.379Z root INFO Backend HostedPluginReader.configure: 0.3 ms [Finished 1.061 s after backend start]
2023-06-20T06:31:22.379Z root INFO Backend HostedPluginReader.configure: 0.1 ms [Finished 1.061 s after backend start]
2023-06-20T06:31:22.379Z root INFO Backend PlotterBackendContribution.configure: 0.4 ms [Finished 1.062 s after backend start]
2023-06-20T06:31:22.381Z root INFO Theia app listening on http://localhost:41219.
2023-06-20T06:31:22.382Z root INFO Finished starting backend application: 3.2 ms [Finished 1.064 s after backend start]
2023-06-20T06:31:22.383Z root WARN The local plugin referenced by local-dir:/home/integral/.arduinoIDE/plugins does not exist.
2023-06-20T06:31:22.383Z root WARN The local plugin referenced by local-dir:/home/integral/.arduinoIDE/extensions does not exist.
2023-06-20T06:31:22.398Z root INFO PluginTheiaDirectoryHandler: accepting plugin with path
2023-06-20T06:31:22.398Z root INFO Resolved "cortex-debug" to a VS Code extension "[email protected]" with engines:
2023-06-20T06:31:22.398Z root INFO PluginTheiaDirectoryHandler: accepting plugin with path
2023-06-20T06:31:22.398Z root INFO Resolved "vscode-arduino-tools" to a VS Code extension "[email protected]" with engines:
2023-06-20T06:31:22.398Z root INFO PluginTheiaDirectoryHandler: accepting plugin with path
2023-06-20T06:31:22.398Z root INFO Resolved "vscode-builtin-cpp" to a VS Code extension "[email protected]" with engines:
2023-06-20T06:31:22.398Z root INFO PluginTheiaDirectoryHandler: accepting plugin with path
2023-06-20T06:31:22.398Z root INFO Resolved "vscode-builtin-json" to a VS Code extension "[email protected]" with engines:
2023-06-20T06:31:22.398Z root INFO PluginTheiaDirectoryHandler: accepting plugin with path
2023-06-20T06:31:22.398Z root INFO Resolved "vscode-builtin-json-language-features" to a VS Code extension "[email protected]" with engines:
2023-06-20T06:31:22.399Z root INFO PluginTheiaDirectoryHandler: accepting plugin with path
2023-06-20T06:31:22.399Z root INFO Resolved "vscode-language-pack-bg" to a VS Code extension "[email protected]" with engines:
2023-06-20T06:31:22.399Z root INFO PluginTheiaDirectoryHandler: accepting plugin with path
2023-06-20T06:31:22.399Z root INFO Resolved "vscode-language-pack-cs" to a VS Code extension "[email protected]" with engines:
2023-06-20T06:31:22.399Z root INFO PluginTheiaDirectoryHandler: accepting plugin with path
2023-06-20T06:31:22.399Z root INFO Resolved "vscode-language-pack-de" to a VS Code extension "[email protected]" with engines:
2023-06-20T06:31:22.399Z root INFO PluginTheiaDirectoryHandler: accepting plugin with path
2023-06-20T06:31:22.399Z root INFO Resolved "vscode-language-pack-es" to a VS Code extension "[email protected]" with engines:
2023-06-20T06:31:22.399Z root INFO PluginTheiaDirectoryHandler: accepting plugin with path
2023-06-20T06:31:22.399Z root INFO Resolved "vscode-language-pack-fr" to a VS Code extension "[email protected]" with engines:
2023-06-20T06:31:22.399Z root INFO PluginTheiaDirectoryHandler: accepting plugin with path
2023-06-20T06:31:22.399Z root INFO Resolved "vscode-language-pack-hu" to a VS Code extension "[email protected]" with engines:
2023-06-20T06:31:22.399Z root INFO PluginTheiaDirectoryHandler: accepting plugin with path
2023-06-20T06:31:22.399Z root INFO Resolved "vscode-language-pack-it" to a VS Code extension "[email protected]" with engines:
2023-06-20T06:31:22.399Z root INFO PluginTheiaDirectoryHandler: accepting plugin with path
2023-06-20T06:31:22.399Z root INFO Resolved "vscode-language-pack-ja" to a VS Code extension "[email protected]" with engines:
2023-06-20T06:31:22.399Z root INFO PluginTheiaDirectoryHandler: accepting plugin with path
2023-06-20T06:31:22.399Z root INFO Resolved "vscode-language-pack-ko" to a VS Code extension "[email protected]" with engines:
2023-06-20T06:31:22.399Z root INFO PluginTheiaDirectoryHandler: accepting plugin with path
2023-06-20T06:31:22.399Z root INFO Resolved "vscode-language-pack-nl" to a VS Code extension "[email protected]" with engines:
2023-06-20T06:31:22.399Z root INFO PluginTheiaDirectoryHandler: accepting plugin with path
2023-06-20T06:31:22.399Z root INFO Resolved "vscode-language-pack-pl" to a VS Code extension "[email protected]" with engines:
2023-06-20T06:31:22.399Z root INFO PluginTheiaDirectoryHandler: accepting plugin with path
2023-06-20T06:31:22.399Z root INFO Resolved "vscode-language-pack-pt-BR" to a VS Code extension "[email protected]" with engines:
2023-06-20T06:31:22.399Z root INFO PluginTheiaDirectoryHandler: accepting plugin with path
2023-06-20T06:31:22.399Z root INFO Resolved "vscode-language-pack-ru" to a VS Code extension "[email protected]" with engines:
2023-06-20T06:31:22.399Z root INFO PluginTheiaDirectoryHandler: accepting plugin with path
2023-06-20T06:31:22.400Z root INFO Resolved "vscode-language-pack-tr" to a VS Code extension "[email protected]" with engines:
2023-06-20T06:31:22.400Z root INFO PluginTheiaDirectoryHandler: accepting plugin with path
2023-06-20T06:31:22.400Z root INFO Resolved "vscode-language-pack-uk" to a VS Code extension "[email protected]" with engines:
2023-06-20T06:31:22.400Z root INFO PluginTheiaDirectoryHandler: accepting plugin with path
2023-06-20T06:31:22.400Z root INFO Resolved "vscode-language-pack-zh-hans" to a VS Code extension "[email protected]" with engines:
2023-06-20T06:31:22.403Z config INFO Loaded CLI configuration: {"board_manager":{"additional_urls":["https://github.com/sonydevworld/spresense-arduino-compatible/releases/download/generic/package_spresense_index.json"]},"build_cache":{"compilations_before_purge":10,"ttl":"720h0m0s"},"daemon":{"port":"50051"},"directories":{"builtin":{"libraries":"/home/integral/.arduino15/libraries"},"data":"/home/integral/.arduino15","downloads":"/home/integral/.arduino15/staging","user":"/home/integral/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}}
2023-06-20T06:31:22.404Z config INFO 'directories.data' and 'directories.user' are set in the CLI configuration model.
2023-06-20T06:31:22.404Z config INFO Loaded the CLI configuration.
2023-06-20T06:31:22.414Z config INFO Mapped the CLI configuration: {"dataDirUri":"file:///home/integral/.arduino15","sketchDirUri":"file:///home/integral/Arduino","additionalUrls":["https://github.com/sonydevworld/spresense-arduino-compatible/releases/download/generic/package_spresense_index.json"],"network":"none","locale":"en"}
2023-06-20T06:31:22.414Z config INFO Validating the CLI configuration...
2023-06-20T06:31:22.416Z config INFO The CLI config is valid.
2023-06-20T06:31:22.416Z config INFO <<< Initialized the CLI configuration.
2023-06-20T06:31:22.420Z daemon INFO INFO[0000] Using config file: /home/integral/.arduinoIDE/arduino-cli.yaml 
INFO[0000] arduino-cli version 0.32.2                   
INFO[0000] Executing `arduino-cli daemon`               

2023-06-20T06:31:22.431Z daemon INFO Daemon is now listening on 127.0.0.1:43167
{"IP":"127.0.0.1","Port":"43167"}


2023-06-20T06:31:22.431Z daemon INFO Daemon is running.
2023-06-20T06:31:22.449Z daemon INFO INFO[0000] Loading hardware from: /home/integral/.arduino15/packages 
INFO[0000] Loading package SPRESENSE from: /home/integral/.arduino15/packages/SPRESENSE/hardware 

2023-06-20T06:31:22.454Z root INFO Resolve plugins list: 76.8 ms [Finished 1.136 s after backend start]
2023-06-20T06:31:22.458Z root INFO Deployed backend plugin "[email protected]" from "/opt/arduino-ide/resources/app/plugins/cortex-debug/extension/dist/extension.js": 4.1 ms [Finished 1.141 s after backend start]
2023-06-20T06:31:22.461Z root INFO Deployed backend plugin "[email protected]" from "/opt/arduino-ide/resources/app/plugins/vscode-arduino-tools/extension/dist/bundle": 2.3 ms [Finished 1.143 s after backend start]
2023-06-20T06:31:22.469Z root INFO Deployed backend plugin "[email protected]" from "/opt/arduino-ide/resources/app/plugins/vscode-builtin-cpp/extension": 8.5 ms [Finished 1.152 s after backend start]
2023-06-20T06:31:22.470Z daemon INFO INFO[0000] Checking signature                            error="opening signature file: open /home/integral/.arduino15/packages/SPRESENSE/hardware/spresense/3.0.1/installed.json.sig: no such file or directory" index=/home/integral/.arduino15/packages/SPRESENSE/hardware/spresense/3.0.1/installed.json signatureFile=/home/integral/.arduino15/packages/SPRESENSE/hardware/spresense/3.0.1/installed.json.sig
INFO[0000] Adding monitor tool                           protocol=serial tool="builtin:serial-monitor"
INFO[0000] Loaded platform                               platform="SPRESENSE:[email protected]"
INFO[0000] Checking existence of 'tools' path: /home/integral/.arduino15/packages/SPRESENSE/tools 
INFO[0000] Loading tools from dir: /home/integral/.arduino15/packages/SPRESENSE/tools 
INFO[0000] Loaded tool                                   tool="SPRESENSE:[email protected]"
INFO[0000] Loaded tool                                   tool="SPRESENSE:[email protected]"
INFO[0000] Loaded tool                                   tool="SPRESENSE:[email protected]"
INFO[0000] Loading package arduino from: /home/integral/.arduino15/packages/arduino/hardware 

2023-06-20T06:31:22.471Z root INFO Deployed backend plugin "[email protected]" from "/opt/arduino-ide/resources/app/plugins/vscode-builtin-json/extension": 1.7 ms [Finished 1.153 s after backend start]
2023-06-20T06:31:22.471Z daemon INFO INFO[0000] Checking signature                            error="opening signature file: open /home/integral/.arduino15/packages/arduino/hardware/avr/1.8.6/installed.json.sig: no such file or directory" index=/home/integral/.arduino15/packages/arduino/hardware/avr/1.8.6/installed.json signatureFile=/home/integral/.arduino15/packages/arduino/hardware/avr/1.8.6/installed.json.sig

2023-06-20T06:31:22.472Z root INFO Deployed backend plugin "[email protected]" from "/opt/arduino-ide/resources/app/plugins/vscode-builtin-json-language-features/extension/client/dist/jsonMain": 0.7 ms [Finished 1.154 s after backend start]
2023-06-20T06:31:22.555Z root INFO Deployed backend plugin "[email protected]" from "/opt/arduino-ide/resources/app/plugins/vscode-language-pack-bg/extension": 83.1 ms [Finished 1.237 s after backend start]
2023-06-20T06:31:22.558Z daemon INFO INFO[0000] Adding monitor tool                           protocol=serial tool="builtin:serial-monitor"
INFO[0000] Loaded platform                               platform="arduino:[email protected]"
INFO[0000] Checking existence of 'tools' path: /home/integral/.arduino15/packages/arduino/tools 
INFO[0000] Loading tools from dir: /home/integral/.arduino15/packages/arduino/tools 
INFO[0000] Loaded tool                                   tool="arduino:[email protected]"
INFO[0000] Loaded tool                                   tool="arduino:[email protected]"
INFO[0000] Loaded tool                                   tool="arduino:[email protected]"
INFO[0000] Loading package builtin from: /home/integral/.arduino15/packages/builtin 
INFO[0000] Checking existence of 'tools' path: /home/integral/.arduino15/packages/builtin/tools 
INFO[0000] Loading tools from dir: /home/integral/.arduino15/packages/builtin/tools 
INFO[0000] Loaded tool                                   tool="builtin:[email protected]"
INFO[0000] Loaded tool                                   tool="builtin:[email protected]"
INFO[0000] Loaded tool                                   tool="builtin:[email protected]"
INFO[0000] Loaded tool                                   tool="builtin:[email protected]"
INFO[0000] Loaded tool                                   tool="builtin:[email protected]"
INFO[0000] Checking signature                            index=/home/integral/.arduino15/package_index.json signatureFile=/home/integral/.arduino15/package_index.json.sig trusted=true
INFO[0000] Checking signature                            error="opening signature file: open /home/integral/.arduino15/package_spresense_index.json.sig: no such file or directory" index=/home/integral/.arduino15/package_spresense_index.json signatureFile=/home/integral/.arduino15/package_spresense_index.json.sig
INFO[0000] Adding libraries dir                          dir=/home/integral/.arduino15/packages/SPRESENSE/hardware/spresense/3.0.1/libraries location=platform
INFO[0000] Adding libraries dir                          dir=/home/integral/.arduino15/packages/arduino/hardware/avr/1.8.6/libraries location=platform
INFO[0000] Loading libraries index file                  index=/home/integral/.arduino15/library_index.json

2023-06-20T06:31:22.612Z root INFO Deployed backend plugin "[email protected]" from "/opt/arduino-ide/resources/app/plugins/vscode-language-pack-cs/extension": 56.9 ms [Finished 1.294 s after backend start]
2023-06-20T06:31:22.696Z root INFO Deployed backend plugin "[email protected]" from "/opt/arduino-ide/resources/app/plugins/vscode-language-pack-de/extension": 84.3 ms [Finished 1.379 s after backend start]
2023-06-20T06:31:22.698Z daemon INFO INFO[0000] Adding libraries dir                          dir=/home/integral/.arduino15/libraries location=ide
INFO[0000] Adding libraries dir                          dir=/home/integral/Arduino/libraries location=user

2023-06-20T06:31:22.701Z discovery-log INFO start request start watch
2023-06-20T06:31:22.701Z discovery-log INFO start requested start watch
2023-06-20T06:31:22.701Z discovery-log INFO start resolved watching
2023-06-20T06:31:22.702Z daemon INFO INFO[0000] starting discovery builtin:mdns-discovery process 
INFO[0000] starting discovery builtin:serial-discovery process 

2023-06-20T06:31:22.773Z root INFO Deployed backend plugin "[email protected]" from "/opt/arduino-ide/resources/app/plugins/vscode-language-pack-es/extension": 76.0 ms [Finished 1.455 s after backend start]
2023-06-20T06:31:22.779Z daemon INFO INFO[0000] started discovery builtin:mdns-discovery process 
INFO[0000] sending command HELLO 1 "arduino-cli 0.32.2" to discovery builtin:mdns-discovery 
INFO[0000] started discovery builtin:serial-discovery process 
INFO[0000] sending command HELLO 1 "arduino-cli 0.32.2" to discovery builtin:serial-discovery 
INFO[0000] from discovery builtin:serial-discovery received message type: hello, message: OK, protocol version: 1 
INFO[0000] sending command START_SYNC to discovery builtin:serial-discovery 
INFO[0000] from discovery builtin:mdns-discovery received message type: hello, message: OK, protocol version: 1 
INFO[0000] sending command START_SYNC to discovery builtin:mdns-discovery 
INFO[0000] from discovery builtin:mdns-discovery received message type: start_sync, message: OK 
INFO[0000] from discovery builtin:serial-discovery received message type: start_sync, message: OK 
INFO[0000] from discovery builtin:serial-discovery received message type: add, port: /dev/ttyS4 
INFO[0000] from discovery builtin:serial-discovery received message type: add, port: /dev/ttyUSB0 

2023-06-20T06:31:22.782Z discovery-log INFO {"eventType":"add","port":{"matchingBoardsList":[],"port":{"address":"/dev/ttyS4","label":"/dev/ttyS4","protocol":"serial","protocolLabel":"Serial Port","propertiesMap":[],"hardwareId":""}},"error":""}
2023-06-20T06:31:22.784Z discovery-log INFO {"eventType":"add","port":{"matchingBoardsList":[{"name":"Spresense","fqbn":"SPRESENSE:spresense:spresense","isHidden":false}],"port":{"address":"/dev/ttyUSB0","label":"/dev/ttyUSB0","protocol":"serial","protocolLabel":"Serial Port (USB)","propertiesMap":[["pid","0xea60"],["serialNumber","a4e21a732581e811a1a38837ee88247e"],["vid","0x10c4"]],"hardwareId":"a4e21a732581e811a1a38837ee88247e"}},"error":""}
2023-06-20T06:31:22.829Z root INFO Deployed backend plugin "[email protected]" from "/opt/arduino-ide/resources/app/plugins/vscode-language-pack-fr/extension": 56.7 ms [Finished 1.512 s after backend start]
2023-06-20T06:31:22.859Z root INFO Deployed backend plugin "[email protected]" from "/opt/arduino-ide/resources/app/plugins/vscode-language-pack-hu/extension": 29.6 ms [Finished 1.541 s after backend start]
2023-06-20T06:31:22.893Z root INFO Deployed backend plugin "[email protected]" from "/opt/arduino-ide/resources/app/plugins/vscode-language-pack-it/extension": 34.3 ms [Finished 1.576 s after backend start]
2023-06-20T06:31:22.931Z root INFO Deployed backend plugin "[email protected]" from "/opt/arduino-ide/resources/app/plugins/vscode-language-pack-ja/extension": 38.0 ms [Finished 1.614 s after backend start]
2023-06-20T06:31:22.963Z root INFO Deployed backend plugin "[email protected]" from "/opt/arduino-ide/resources/app/plugins/vscode-language-pack-ko/extension": 31.9 ms [Finished 1.646 s after backend start]
2023-06-20T06:31:22.978Z root INFO Deployed backend plugin "[email protected]" from "/opt/arduino-ide/resources/app/plugins/vscode-language-pack-nl/extension": 14.1 ms [Finished 1.660 s after backend start]
2023-06-20T06:31:23.018Z root INFO Deployed backend plugin "[email protected]" from "/opt/arduino-ide/resources/app/plugins/vscode-language-pack-pl/extension": 40.8 ms [Finished 1.701 s after backend start]
2023-06-20T06:31:23.056Z root INFO Deployed backend plugin "[email protected]" from "/opt/arduino-ide/resources/app/plugins/vscode-language-pack-pt-BR/extension": 37.2 ms [Finished 1.738 s after backend start]
2023-06-20T06:31:23.097Z root INFO Deployed backend plugin "[email protected]" from "/opt/arduino-ide/resources/app/plugins/vscode-language-pack-ru/extension": 41.0 ms [Finished 1.779 s after backend start]
2023-06-20T06:31:23.128Z root INFO Deployed backend plugin "[email protected]" from "/opt/arduino-ide/resources/app/plugins/vscode-language-pack-tr/extension": 31.3 ms [Finished 1.810 s after backend start]
2023-06-20T06:31:23.154Z root INFO Deployed backend plugin "[email protected]" from "/opt/arduino-ide/resources/app/plugins/vscode-language-pack-uk/extension": 25.8 ms [Finished 1.836 s after backend start]
2023-06-20T06:31:23.191Z root INFO Deployed backend plugin "[email protected]" from "/opt/arduino-ide/resources/app/plugins/vscode-language-pack-zh-hans/extension": 32.2 ms [Finished 1.868 s after backend start]
2023-06-20T06:31:23.191Z root INFO Deploy plugins list: 76.8 ms [Finished 1.873 s after backend start]
zsh: segmentation fault (core dumped)  arduino-ide --enable-features=UseOzonePlatform --ozone-platform=wayland

Expected behavior

It should NOT crash.

Arduino IDE version

2.1.0

Operating system

Linux

Operating system version

Arch Linux, rolling
KDE Plasma 5.27.5 + Wayland

Additional context

Arch Wiki: https://wiki.archlinux.org/title/Wayland#Electron
--ozone-platform-hint=auto does NOT work (Arduino is stil running under XWayland with --ozone-platform-hint=auto)

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
@Integral-Tech Integral-Tech added the type: imperfection Perceived defect in any part of project label Jun 20, 2023
@Integral-Tech Integral-Tech changed the title Cannot run Arduino IDE 2.1.0 in Native Wayland Cannot run Arduino IDE 2.1.0 under Native Wayland Jun 20, 2023
@Integral-Tech Integral-Tech changed the title Cannot run Arduino IDE 2.1.0 under Native Wayland Cannot run Arduino IDE 2.1.0 under native Wayland Jun 20, 2023
@kittaakos
Copy link
Contributor

Thank you for reporting it to us. @Integral-Tech, could you please try if starting the app from a terminal with the --disable-gpu flag solves the problem on your env? See #1816 (comment).

@kittaakos kittaakos added the status: waiting for information More information must be provided before work can proceed label Jun 21, 2023
@rdlu
Copy link

rdlu commented Jul 2, 2023

Hey, I'm having almost the same issue arduino-ide killed by SIGSEGV after adding the wayland flags.

I need it to make it correctly resize on my secondary monitor. It resizes only on primary using xwayland.

OS: Fedora 38
Dell XPS Plus 9320 with Intel GPU / 12th gen i7.
Using Arduino IDE version 2.1.1 with the following command line:

flatpak run --branch=stable --arch=x86_64 --command=arduino-ide --file-forwarding cc.arduino.IDE2 --enable-features=UseOzonePlatform --ozone-platform=wayland --disable-gpu

Without the wayland flags it opens fine, but resizing, changing dpi settings, etc shows several weird behaviors whenever I move the IDE window to a secondary display. Also due to xwayland it feels more sluggish than usual.

Disable GPU makes no difference with wayland flags.

--disable-gpu makes a bit more bearable on xwayland tho, bit less sluggish but it still tries to use the DPI settings from the primary display on the secondary one. (200% on primary and 100% on secondary).

I have several electron apps running fine with wayland flags where needed, from chromium itself, to vscode, slack, obsidian, logseq, etc.

Thanks all!

Log:

[⚡] × flatpak run --branch=stable --arch=x86_64 --command=arduino-ide --file-forwarding cc.arduino.IDE2 --enable-features=UseOzonePlatform --ozone-platform=wayland --disable-gpu
Arduino IDE 2.1.1
Starting backend process. PID: 31
[31 zypak-helper] Using spawn strategy test 1 as set by environment
[59:0702/161235.136397:ERROR:gpu_init.cc(453)] Passthrough is not supported, GL is swiftshader, ANGLE is
[59:0702/161235.138819:ERROR:sandbox_linux.cc(374)] InitializeSandbox() called with multiple threads in process gpu-process.
Using browser-only version of superagent in non-browser environment
Configuration directory URI: 'file:///home/rdlu/.theia'
Configuring to accept webviews on '^.+\.webview\..+$' hostname.
2023-07-02T19:12:35.519Z root INFO Backend Object.initialize: 2.6 ms [Finished 0.434 s after backend start]
2023-07-02T19:12:35.519Z root INFO Backend Object.configure: 2.1 ms [Finished 0.434 s after backend start]
2023-07-02T19:12:35.519Z root INFO Backend MessagingContribution.onStart: 0.9 ms [Finished 0.434 s after backend start]
2023-07-02T19:12:35.520Z root INFO Backend OSBackendApplicationContribution.configure: 0.3 ms [Finished 0.456 s after backend start]
2023-07-02T19:12:35.520Z root INFO Backend DefaultWorkspaceServer.onStart: 0.2 ms [Finished 0.456 s after backend start]
2023-07-02T19:12:35.521Z root INFO Backend PluginLocalizationBackendContribution.configure: 0.1 ms [Finished 0.456 s after backend start]
2023-07-02T19:12:35.521Z root INFO Backend PluginLocalizationBackendContribution.initialize: 22.2 ms [Finished 0.456 s after backend start]
2023-07-02T19:12:35.521Z root INFO Backend TaskBackendApplicationContribution.onStart: 0.2 ms [Finished 0.456 s after backend start]
2023-07-02T19:12:35.522Z root INFO Backend ElectronTokenBackendContribution.configure: 0.5 ms [Finished 0.457 s after backend start]
2023-07-02T19:12:35.522Z config INFO >>> Initializing CLI configuration...
2023-07-02T19:12:35.522Z root INFO Backend PluginDeployerContribution.initialize: 0.3 ms [Finished 0.457 s after backend start]
2023-07-02T19:12:35.522Z root INFO Backend ConfigServiceImpl.onStart: 0.5 ms [Finished 0.457 s after backend start]
2023-07-02T19:12:35.523Z config INFO Loading CLI configuration from /home/rdlu/.arduinoIDE/arduino-cli.yaml...
2023-07-02T19:12:35.523Z root INFO Backend WebviewBackendSecurityWarnings.initialize: 0.2 ms [Finished 0.458 s after backend start]
2023-07-02T19:12:35.523Z root INFO Backend ArduinoDaemonImpl.onStart: 0.5 ms [Finished 0.458 s after backend start]
2023-07-02T19:12:35.523Z root INFO Backend NodeFileUploadService.configure: 1.1 ms [Finished 0.458 s after backend start]
2023-07-02T19:12:35.523Z daemon INFO Starting daemon from /app/arduino-ide/resources/app/node_modules/arduino-ide-extension/build/arduino-cli...
2023-07-02T19:12:35.523Z discovery-log INFO start
2023-07-02T19:12:35.523Z discovery-log INFO start new deferred
2023-07-02T19:12:35.523Z root INFO Backend HostedPluginLocalizationService.initialize: 0.3 ms [Finished 0.459 s after backend start]
2023-07-02T19:12:35.523Z root INFO Backend BoardDiscovery.onStart: 0.6 ms [Finished 0.459 s after backend start]
2023-07-02T19:12:35.523Z root INFO Backend FileDownloadEndpoint.configure: 0.5 ms [Finished 0.459 s after backend start]
2023-07-02T19:12:35.523Z root INFO Backend AuthenticationServiceImpl.onStart: 0.3 ms [Finished 0.460 s after backend start]
2023-07-02T19:12:35.524Z root INFO Backend PluginApiContribution.configure: 0.3 ms [Finished 0.460 s after backend start]
2023-07-02T19:12:35.524Z root INFO Backend HostedPluginReader.configure: 0.2 ms [Finished 0.461 s after backend start]
2023-07-02T19:12:35.524Z root INFO Backend HostedPluginReader.configure: 0.0 ms [Finished 0.461 s after backend start]
2023-07-02T19:12:35.524Z root INFO Backend PlotterBackendContribution.configure: 0.2 ms [Finished 0.461 s after backend start]
2023-07-02T19:12:35.525Z root INFO Theia app listening on http://localhost:34883.
2023-07-02T19:12:35.526Z root INFO Finished starting backend application: 2.1 ms [Finished 0.463 s after backend start]
2023-07-02T19:12:35.526Z root WARN The local plugin referenced by local-dir:/home/rdlu/.arduinoIDE/plugins does not exist.
2023-07-02T19:12:35.526Z root WARN The local plugin referenced by local-dir:/home/rdlu/.arduinoIDE/extensions does not exist.
2023-07-02T19:12:35.533Z root INFO PluginTheiaDirectoryHandler: accepting plugin with path
2023-07-02T19:12:35.533Z root INFO Resolved "cortex-debug" to a VS Code extension "[email protected]" with engines:
2023-07-02T19:12:35.533Z root INFO PluginTheiaDirectoryHandler: accepting plugin with path
2023-07-02T19:12:35.533Z root INFO Resolved "vscode-arduino-tools" to a VS Code extension "[email protected]" with engines:
2023-07-02T19:12:35.533Z root INFO PluginTheiaDirectoryHandler: accepting plugin with path
2023-07-02T19:12:35.533Z root INFO Resolved "vscode-builtin-cpp" to a VS Code extension "[email protected]" with engines:
2023-07-02T19:12:35.533Z root INFO PluginTheiaDirectoryHandler: accepting plugin with path
2023-07-02T19:12:35.533Z root INFO Resolved "vscode-builtin-json" to a VS Code extension "[email protected]" with engines:
2023-07-02T19:12:35.533Z root INFO PluginTheiaDirectoryHandler: accepting plugin with path
2023-07-02T19:12:35.533Z root INFO Resolved "vscode-builtin-json-language-features" to a VS Code extension "[email protected]" with engines:
2023-07-02T19:12:35.533Z root INFO PluginTheiaDirectoryHandler: accepting plugin with path
2023-07-02T19:12:35.533Z root INFO Resolved "vscode-language-pack-bg" to a VS Code extension "[email protected]" with engines:
2023-07-02T19:12:35.533Z root INFO PluginTheiaDirectoryHandler: accepting plugin with path
2023-07-02T19:12:35.533Z root INFO Resolved "vscode-language-pack-cs" to a VS Code extension "[email protected]" with engines:
2023-07-02T19:12:35.533Z root INFO PluginTheiaDirectoryHandler: accepting plugin with path
2023-07-02T19:12:35.533Z root INFO Resolved "vscode-language-pack-de" to a VS Code extension "[email protected]" with engines:
2023-07-02T19:12:35.533Z root INFO PluginTheiaDirectoryHandler: accepting plugin with path
2023-07-02T19:12:35.533Z root INFO Resolved "vscode-language-pack-es" to a VS Code extension "[email protected]" with engines:
2023-07-02T19:12:35.533Z root INFO PluginTheiaDirectoryHandler: accepting plugin with path
2023-07-02T19:12:35.533Z root INFO Resolved "vscode-language-pack-fr" to a VS Code extension "[email protected]" with engines:
2023-07-02T19:12:35.533Z root INFO PluginTheiaDirectoryHandler: accepting plugin with path
2023-07-02T19:12:35.533Z root INFO Resolved "vscode-language-pack-hu" to a VS Code extension "[email protected]" with engines:
2023-07-02T19:12:35.533Z root INFO PluginTheiaDirectoryHandler: accepting plugin with path
2023-07-02T19:12:35.533Z root INFO Resolved "vscode-language-pack-it" to a VS Code extension "[email protected]" with engines:
2023-07-02T19:12:35.533Z root INFO PluginTheiaDirectoryHandler: accepting plugin with path
2023-07-02T19:12:35.533Z root INFO Resolved "vscode-language-pack-ja" to a VS Code extension "[email protected]" with engines:
2023-07-02T19:12:35.534Z root INFO PluginTheiaDirectoryHandler: accepting plugin with path
2023-07-02T19:12:35.534Z root INFO Resolved "vscode-language-pack-ko" to a VS Code extension "[email protected]" with engines:
2023-07-02T19:12:35.534Z root INFO PluginTheiaDirectoryHandler: accepting plugin with path
2023-07-02T19:12:35.534Z root INFO Resolved "vscode-language-pack-nl" to a VS Code extension "[email protected]" with engines:
2023-07-02T19:12:35.534Z root INFO PluginTheiaDirectoryHandler: accepting plugin with path
2023-07-02T19:12:35.534Z root INFO Resolved "vscode-language-pack-pl" to a VS Code extension "[email protected]" with engines:
2023-07-02T19:12:35.534Z root INFO PluginTheiaDirectoryHandler: accepting plugin with path
2023-07-02T19:12:35.534Z root INFO Resolved "vscode-language-pack-pt-BR" to a VS Code extension "[email protected]" with engines:
2023-07-02T19:12:35.534Z root INFO PluginTheiaDirectoryHandler: accepting plugin with path
2023-07-02T19:12:35.534Z root INFO Resolved "vscode-language-pack-ru" to a VS Code extension "[email protected]" with engines:
2023-07-02T19:12:35.534Z root INFO PluginTheiaDirectoryHandler: accepting plugin with path
2023-07-02T19:12:35.534Z root INFO Resolved "vscode-language-pack-tr" to a VS Code extension "[email protected]" with engines:
2023-07-02T19:12:35.534Z root INFO PluginTheiaDirectoryHandler: accepting plugin with path
2023-07-02T19:12:35.534Z root INFO Resolved "vscode-language-pack-uk" to a VS Code extension "[email protected]" with engines:
2023-07-02T19:12:35.534Z root INFO PluginTheiaDirectoryHandler: accepting plugin with path
2023-07-02T19:12:35.534Z root INFO Resolved "vscode-language-pack-zh-hans" to a VS Code extension "[email protected]" with engines:
Restoring workspace roots: /home/rdlu/Projects/arduino/robocore/blink
isTempSketch: false. Input was /home/rdlu/Projects/arduino/robocore/blink/blink.ino
2023-07-02T19:12:35.537Z config INFO Loaded CLI configuration: {"board_manager":{"additional_urls":["https://dl.espressif.com/dl/package_esp32_index.json"]},"build_cache":{"compilations_before_purge":10,"ttl":"720h0m0s"},"daemon":{"port":"50051"},"directories":{"builtin":{"libraries":"/home/rdlu/.arduino15/libraries"},"data":"/home/rdlu/.arduino15","downloads":"/home/rdlu/.arduino15/staging","user":"/home/rdlu/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}}
2023-07-02T19:12:35.537Z config INFO 'directories.data' and 'directories.user' are set in the CLI configuration model.
2023-07-02T19:12:35.537Z config INFO Loaded the CLI configuration.
2023-07-02T19:12:35.545Z config INFO Mapped the CLI configuration: {"dataDirUri":"file:///home/rdlu/.arduino15","sketchDirUri":"file:///home/rdlu/Arduino","additionalUrls":["https://dl.espressif.com/dl/package_esp32_index.json"],"network":"none","locale":"en"}
2023-07-02T19:12:35.545Z config INFO Validating the CLI configuration...
2023-07-02T19:12:35.546Z config INFO The CLI config is valid.
2023-07-02T19:12:35.546Z config INFO <<< Initialized the CLI configuration.
2023-07-02T19:12:35.550Z daemon INFO INFO[0000] Using config file: /home/rdlu/.arduinoIDE/arduino-cli.yaml
INFO[0000] arduino-cli version 0.32.3
INFO[0000] Executing `arduino-cli daemon`

2023-07-02T19:12:35.560Z daemon INFO Daemon is now listening on 127.0.0.1:34121
{"IP":"127.0.0.1","Port":"34121"}


2023-07-02T19:12:35.560Z daemon INFO Daemon is running.
2023-07-02T19:12:35.573Z daemon INFO INFO[0000] Loading hardware from: /home/rdlu/.arduino15/packages
INFO[0000] Loading package arduino from: /home/rdlu/.arduino15/packages/arduino/hardware

2023-07-02T19:12:35.574Z root INFO Resolve plugins list: 51.2 ms [Finished 0.511 s after backend start]
2023-07-02T19:12:35.579Z root INFO Deployed backend plugin "[email protected]" from "/app/arduino-ide/resources/app/plugins/cortex-debug/extension/dist/extension.js": 4.8 ms [Finished 0.516 s after backend start]
2023-07-02T19:12:35.580Z daemon INFO INFO[0000] Checking signature                            error="opening signature file: open /home/rdlu/.arduino15/packages/arduino/hardware/avr/1.8.6/installed.json.sig: no such file or directory" index=/home/rdlu/.arduino15/packages/arduino/hardware/avr/1.8.6/installed.json signatureFile=/home/rdlu/.arduino15/packages/arduino/hardware/avr/1.8.6/installed.json.sig

2023-07-02T19:12:35.582Z root INFO Deployed backend plugin "[email protected]" from "/app/arduino-ide/resources/app/plugins/vscode-arduino-tools/extension/dist/bundle": 2.7 ms [Finished 0.519 s after backend start]
2023-07-02T19:12:35.582Z daemon INFO INFO[0000] Adding monitor tool                           protocol=serial tool="builtin:serial-monitor"
INFO[0000] Loaded platform                               platform="arduino:[email protected]"
INFO[0000] Checking existence of 'tools' path: /home/rdlu/.arduino15/packages/arduino/tools
INFO[0000] Loading tools from dir: /home/rdlu/.arduino15/packages/arduino/tools
INFO[0000] Loaded tool                                   tool="arduino:[email protected]"
INFO[0000] Loaded tool                                   tool="arduino:[email protected]"
INFO[0000] Loaded tool                                   tool="arduino:[email protected]"
INFO[0000] Loading package builtin from: /home/rdlu/.arduino15/packages/builtin
INFO[0000] Checking existence of 'tools' path: /home/rdlu/.arduino15/packages/builtin/tools
INFO[0000] Loading tools from dir: /home/rdlu/.arduino15/packages/builtin/tools
INFO[0000] Loaded tool                                   tool="builtin:[email protected]"
INFO[0000] Loaded tool                                   tool="builtin:[email protected]"
INFO[0000] Loaded tool                                   tool="builtin:[email protected]"
INFO[0000] Loaded tool                                   tool="builtin:[email protected]"
INFO[0000] Loaded tool                                   tool="builtin:[email protected]"
INFO[0000] Loading package esp32 from: /home/rdlu/.arduino15/packages/esp32/hardware

2023-07-02T19:12:35.590Z root INFO Deployed backend plugin "[email protected]" from "/app/arduino-ide/resources/app/plugins/vscode-builtin-cpp/extension": 8.0 ms [Finished 0.527 s after backend start]
2023-07-02T19:12:35.591Z root INFO Deployed backend plugin "[email protected]" from "/app/arduino-ide/resources/app/plugins/vscode-builtin-json/extension": 1.4 ms [Finished 0.529 s after backend start]
2023-07-02T19:12:35.592Z root INFO Deployed backend plugin "[email protected]" from "/app/arduino-ide/resources/app/plugins/vscode-builtin-json-language-features/extension/client/dist/jsonMain": 0.6 ms [Finished 0.529 s after backend start]
2023-07-02T19:12:35.644Z root INFO Deployed backend plugin "[email protected]" from "/app/arduino-ide/resources/app/plugins/vscode-language-pack-bg/extension": 52.2 ms [Finished 0.582 s after backend start]
2023-07-02T19:12:35.646Z daemon INFO INFO[0000] Checking signature                            error="opening signature file: open /home/rdlu/.arduino15/packages/esp32/hardware/esp32/1.0.6/installed.json.sig: no such file or directory" index=/home/rdlu/.arduino15/packages/esp32/hardware/esp32/1.0.6/installed.json signatureFile=/home/rdlu/.arduino15/packages/esp32/hardware/esp32/1.0.6/installed.json.sig
INFO[0000] Adding monitor tool                           protocol=serial tool="builtin:serial-monitor"
INFO[0000] Loaded platform                               platform="esp32:[email protected]"
INFO[0000] Checking existence of 'tools' path: /home/rdlu/.arduino15/packages/esp32/tools
INFO[0000] Loading tools from dir: /home/rdlu/.arduino15/packages/esp32/tools
INFO[0000] Loaded tool                                   tool="esp32:[email protected]"
INFO[0000] Loaded tool                                   tool="esp32:[email protected]"
INFO[0000] Loaded tool                                   tool="esp32:[email protected]"
INFO[0000] Checking signature                            index=/home/rdlu/.arduino15/package_index.json signatureFile=/home/rdlu/.arduino15/package_index.json.sig trusted=true
INFO[0000] Checking signature                            error="opening signature file: open /home/rdlu/.arduino15/package_esp32_index.json.sig: no such file or directory" index=/home/rdlu/.arduino15/package_esp32_index.json signatureFile=/home/rdlu/.arduino15/package_esp32_index.json.sig
INFO[0000] Adding libraries dir                          dir=/home/rdlu/.arduino15/packages/arduino/hardware/avr/1.8.6/libraries location=platform
INFO[0000] Adding libraries dir                          dir=/home/rdlu/.arduino15/packages/esp32/hardware/esp32/1.0.6/libraries location=platform
INFO[0000] Loading libraries index file                  index=/home/rdlu/.arduino15/library_index.json

2023-07-02T19:12:35.674Z root INFO Deployed backend plugin "[email protected]" from "/app/arduino-ide/resources/app/plugins/vscode-language-pack-cs/extension": 29.4 ms [Finished 0.611 s after backend start]
2023-07-02T19:12:35.731Z root INFO Deployed backend plugin "[email protected]" from "/app/arduino-ide/resources/app/plugins/vscode-language-pack-de/extension": 57.2 ms [Finished 0.668 s after backend start]
2023-07-02T19:12:35.763Z root INFO Deployed backend plugin "[email protected]" from "/app/arduino-ide/resources/app/plugins/vscode-language-pack-es/extension": 31.6 ms [Finished 0.700 s after backend start]
2023-07-02T19:12:35.764Z daemon INFO INFO[0000] Adding libraries dir                          dir=/home/rdlu/.arduino15/libraries location=ide
INFO[0000] Adding libraries dir                          dir=/home/rdlu/Arduino/libraries location=user

2023-07-02T19:12:35.765Z discovery-log INFO start request start watch
2023-07-02T19:12:35.766Z discovery-log INFO start requested start watch
2023-07-02T19:12:35.766Z discovery-log INFO start resolved watching
2023-07-02T19:12:35.791Z root INFO Deployed backend plugin "[email protected]" from "/app/arduino-ide/resources/app/plugins/vscode-language-pack-fr/extension": 28.7 ms [Finished 0.729 s after backend start]
2023-07-02T19:12:35.796Z daemon INFO INFO[0000] starting discovery builtin:mdns-discovery process
INFO[0000] starting discovery builtin:serial-discovery process
INFO[0000] started discovery builtin:mdns-discovery process
INFO[0000] sending command HELLO 1 "arduino-cli 0.32.3" to discovery builtin:mdns-discovery
INFO[0000] started discovery builtin:serial-discovery process
INFO[0000] sending command HELLO 1 "arduino-cli 0.32.3" to discovery builtin:serial-discovery
INFO[0000] from discovery builtin:serial-discovery received message type: hello, message: OK, protocol version: 1
INFO[0000] sending command START_SYNC to discovery builtin:serial-discovery
INFO[0000] from discovery builtin:mdns-discovery received message type: hello, message: OK, protocol version: 1
INFO[0000] sending command START_SYNC to discovery builtin:mdns-discovery
INFO[0000] from discovery builtin:mdns-discovery received message type: start_sync, message: OK
INFO[0000] from discovery builtin:serial-discovery received message type: start_sync, message: OK
INFO[0000] from discovery builtin:serial-discovery received message type: add, port: /dev/ttyS4
INFO[0000] from discovery builtin:serial-discovery received message type: add, port: /dev/ttyUSB0

2023-07-02T19:12:35.797Z discovery-log INFO {"eventType":"add","port":{"matchingBoardsList":[],"port":{"address":"/dev/ttyS4","label":"/dev/ttyS4","protocol":"serial","protocolLabel":"Serial Port","propertiesMap":[],"hardwareId":""}},"error":""}
2023-07-02T19:12:35.798Z discovery-log INFO {"eventType":"add","port":{"matchingBoardsList":[],"port":{"address":"/dev/ttyUSB0","label":"/dev/ttyUSB0","protocol":"serial","protocolLabel":"Serial Port (USB)","propertiesMap":[["pid","0xea60"],["serialNumber","8e99adb6b779eb119302a9b7f771a14a"],["vid","0x10c4"]],"hardwareId":"8e99adb6b779eb119302a9b7f771a14a"}},"error":""}
2023-07-02T19:12:35.823Z root INFO Deployed backend plugin "[email protected]" from "/app/arduino-ide/resources/app/plugins/vscode-language-pack-hu/extension": 31.5 ms [Finished 0.760 s after backend start]
2023-07-02T19:12:35.840Z root INFO Deployed backend plugin "[email protected]" from "/app/arduino-ide/resources/app/plugins/vscode-language-pack-it/extension": 16.6 ms [Finished 0.777 s after backend start]
2023-07-02T19:12:35.861Z root INFO Deployed backend plugin "[email protected]" from "/app/arduino-ide/resources/app/plugins/vscode-language-pack-ja/extension": 21.3 ms [Finished 0.798 s after backend start]
2023-07-02T19:12:35.881Z root INFO Deployed backend plugin "[email protected]" from "/app/arduino-ide/resources/app/plugins/vscode-language-pack-ko/extension": 19.7 ms [Finished 0.818 s after backend start]
2023-07-02T19:12:35.887Z root INFO Deployed backend plugin "[email protected]" from "/app/arduino-ide/resources/app/plugins/vscode-language-pack-nl/extension": 6.5 ms [Finished 0.824 s after backend start]
2023-07-02T19:12:35.910Z root INFO Deployed backend plugin "[email protected]" from "/app/arduino-ide/resources/app/plugins/vscode-language-pack-pl/extension": 22.1 ms [Finished 0.847 s after backend start]
2023-07-02T19:12:35.927Z root INFO Deployed backend plugin "[email protected]" from "/app/arduino-ide/resources/app/plugins/vscode-language-pack-pt-BR/extension": 17.3 ms [Finished 0.864 s after backend start]
2023-07-02T19:12:35.949Z root INFO Deployed backend plugin "[email protected]" from "/app/arduino-ide/resources/app/plugins/vscode-language-pack-ru/extension": 22.3 ms [Finished 0.886 s after backend start]
2023-07-02T19:12:35.968Z root INFO Deployed backend plugin "[email protected]" from "/app/arduino-ide/resources/app/plugins/vscode-language-pack-tr/extension": 18.9 ms [Finished 0.905 s after backend start]
2023-07-02T19:12:35.982Z root INFO Deployed backend plugin "[email protected]" from "/app/arduino-ide/resources/app/plugins/vscode-language-pack-uk/extension": 13.9 ms [Finished 0.919 s after backend start]
2023-07-02T19:12:36.004Z root INFO Deployed backend plugin "[email protected]" from "/app/arduino-ide/resources/app/plugins/vscode-language-pack-zh-hans/extension": 19.5 ms [Finished 0.939 s after backend start]
2023-07-02T19:12:36.005Z root INFO Deploy plugins list: 51.2 ms [Finished 0.942 s after backend start]
/app/bin/arduino-ide: line 10:     3 Segmentation fault      (core dumped) env TMPDIR=$XDG_CACHE_HOME zypak-wrapper /app/arduino-ide/arduino-ide $CUSTOM_IDE_FLAGS "$@"

@kittaakos
Copy link
Contributor

[⚡] × flatpak run --branch=stable --arch=x86_64 --command=arduino-ide --file-forwarding cc.arduino.IDE2 --enable-features=UseOzonePlatform --ozone-platform=wayland --disable-gpu

I see you're using FlatPack which is not officially supported by IDE2: #1848.

@joshuag1000, could you help come over this problem?

/app/bin/arduino-ide: line 10: 3 Segmentation fault (core dumped) env TMPDIR=$XDG_CACHE_HOME zypak-wrapper /app/arduino-ide/arduino-ide $CUSTOM_IDE_FLAGS "$@"

The problematic code is with the logger patching 0b33b51, but I do not know much about the FlatPack support.

@SuperNinja-4965
Copy link

Hey, I'm having almost the same issue arduino-ide killed by SIGSEGV after adding the wayland flags.

I need it to make it correctly resize on my secondary monitor. It resizes only on primary using xwayland.

OS: Fedora 38 Dell XPS Plus 9320 with Intel GPU / 12th gen i7. Using Arduino IDE version 2.1.1 with the following command line:

flatpak run --branch=stable --arch=x86_64 --command=arduino-ide --file-forwarding cc.arduino.IDE2 --enable-features=UseOzonePlatform --ozone-platform=wayland --disable-gpu

Without the wayland flags it opens fine, but resizing, changing dpi settings, etc shows several weird behaviors whenever I move the IDE window to a secondary display. Also due to xwayland it feels more sluggish than usual.

Disable GPU makes no difference with wayland flags.

disable-gpu It makes a bit more bearable on xwayland tho, bit less sluggish but it still tries to use the DPI settings from the primary display on the secondary one. (200% on primary and 100% on secondary).

I have several electron apps running fine with wayland flags where needed, from chromium itself, to vscode, slack, obsidian, logseq, etc.

Thanks all!

Log:

[⚡] × flatpak run --branch=stable --arch=x86_64 --command=arduino-ide --file-forwarding cc.arduino.IDE2 --enable-features=UseOzonePlatform --ozone-platform=wayland --disable-gpu
Arduino IDE 2.1.1
Starting backend process. PID: 31
[31 zypak-helper] Using spawn strategy test 1 as set by environment
[59:0702/161235.136397:ERROR:gpu_init.cc(453)] Passthrough is not supported, GL is swiftshader, ANGLE is
[59:0702/161235.138819:ERROR:sandbox_linux.cc(374)] InitializeSandbox() called with multiple threads in process gpu-process.
Using browser-only version of superagent in non-browser environment
Configuration directory URI: 'file:///home/rdlu/.theia'
Configuring to accept webviews on '^.+\.webview\..+$' hostname.
2023-07-02T19:12:35.519Z root INFO Backend Object.initialize: 2.6 ms [Finished 0.434 s after backend start]
2023-07-02T19:12:35.519Z root INFO Backend Object.configure: 2.1 ms [Finished 0.434 s after backend start]
2023-07-02T19:12:35.519Z root INFO Backend MessagingContribution.onStart: 0.9 ms [Finished 0.434 s after backend start]
2023-07-02T19:12:35.520Z root INFO Backend OSBackendApplicationContribution.configure: 0.3 ms [Finished 0.456 s after backend start]
2023-07-02T19:12:35.520Z root INFO Backend DefaultWorkspaceServer.onStart: 0.2 ms [Finished 0.456 s after backend start]
2023-07-02T19:12:35.521Z root INFO Backend PluginLocalizationBackendContribution.configure: 0.1 ms [Finished 0.456 s after backend start]
2023-07-02T19:12:35.521Z root INFO Backend PluginLocalizationBackendContribution.initialize: 22.2 ms [Finished 0.456 s after backend start]
2023-07-02T19:12:35.521Z root INFO Backend TaskBackendApplicationContribution.onStart: 0.2 ms [Finished 0.456 s after backend start]
2023-07-02T19:12:35.522Z root INFO Backend ElectronTokenBackendContribution.configure: 0.5 ms [Finished 0.457 s after backend start]
2023-07-02T19:12:35.522Z config INFO >>> Initializing CLI configuration...
2023-07-02T19:12:35.522Z root INFO Backend PluginDeployerContribution.initialize: 0.3 ms [Finished 0.457 s after backend start]
2023-07-02T19:12:35.522Z root INFO Backend ConfigServiceImpl.onStart: 0.5 ms [Finished 0.457 s after backend start]
2023-07-02T19:12:35.523Z config INFO Loading CLI configuration from /home/rdlu/.arduinoIDE/arduino-cli.yaml...
2023-07-02T19:12:35.523Z root INFO Backend WebviewBackendSecurityWarnings.initialize: 0.2 ms [Finished 0.458 s after backend start]
2023-07-02T19:12:35.523Z root INFO Backend ArduinoDaemonImpl.onStart: 0.5 ms [Finished 0.458 s after backend start]
2023-07-02T19:12:35.523Z root INFO Backend NodeFileUploadService.configure: 1.1 ms [Finished 0.458 s after backend start]
2023-07-02T19:12:35.523Z daemon INFO Starting daemon from /app/arduino-ide/resources/app/node_modules/arduino-ide-extension/build/arduino-cli...
2023-07-02T19:12:35.523Z discovery-log INFO start
2023-07-02T19:12:35.523Z discovery-log INFO start new deferred
2023-07-02T19:12:35.523Z root INFO Backend HostedPluginLocalizationService.initialize: 0.3 ms [Finished 0.459 s after backend start]
2023-07-02T19:12:35.523Z root INFO Backend BoardDiscovery.onStart: 0.6 ms [Finished 0.459 s after backend start]
2023-07-02T19:12:35.523Z root INFO Backend FileDownloadEndpoint.configure: 0.5 ms [Finished 0.459 s after backend start]
2023-07-02T19:12:35.523Z root INFO Backend AuthenticationServiceImpl.onStart: 0.3 ms [Finished 0.460 s after backend start]
2023-07-02T19:12:35.524Z root INFO Backend PluginApiContribution.configure: 0.3 ms [Finished 0.460 s after backend start]
2023-07-02T19:12:35.524Z root INFO Backend HostedPluginReader.configure: 0.2 ms [Finished 0.461 s after backend start]
2023-07-02T19:12:35.524Z root INFO Backend HostedPluginReader.configure: 0.0 ms [Finished 0.461 s after backend start]
2023-07-02T19:12:35.524Z root INFO Backend PlotterBackendContribution.configure: 0.2 ms [Finished 0.461 s after backend start]
2023-07-02T19:12:35.525Z root INFO Theia app listening on http://localhost:34883.
2023-07-02T19:12:35.526Z root INFO Finished starting backend application: 2.1 ms [Finished 0.463 s after backend start]
2023-07-02T19:12:35.526Z root WARN The local plugin referenced by local-dir:/home/rdlu/.arduinoIDE/plugins does not exist.
2023-07-02T19:12:35.526Z root WARN The local plugin referenced by local-dir:/home/rdlu/.arduinoIDE/extensions does not exist.
2023-07-02T19:12:35.533Z root INFO PluginTheiaDirectoryHandler: accepting plugin with path
2023-07-02T19:12:35.533Z root INFO Resolved "cortex-debug" to a VS Code extension "[email protected]" with engines:
2023-07-02T19:12:35.533Z root INFO PluginTheiaDirectoryHandler: accepting plugin with path
2023-07-02T19:12:35.533Z root INFO Resolved "vscode-arduino-tools" to a VS Code extension "[email protected]" with engines:
2023-07-02T19:12:35.533Z root INFO PluginTheiaDirectoryHandler: accepting plugin with path
2023-07-02T19:12:35.533Z root INFO Resolved "vscode-builtin-cpp" to a VS Code extension "[email protected]" with engines:
2023-07-02T19:12:35.533Z root INFO PluginTheiaDirectoryHandler: accepting plugin with path
2023-07-02T19:12:35.533Z root INFO Resolved "vscode-builtin-json" to a VS Code extension "[email protected]" with engines:
2023-07-02T19:12:35.533Z root INFO PluginTheiaDirectoryHandler: accepting plugin with path
2023-07-02T19:12:35.533Z root INFO Resolved "vscode-builtin-json-language-features" to a VS Code extension "[email protected]" with engines:
2023-07-02T19:12:35.533Z root INFO PluginTheiaDirectoryHandler: accepting plugin with path
2023-07-02T19:12:35.533Z root INFO Resolved "vscode-language-pack-bg" to a VS Code extension "[email protected]" with engines:
2023-07-02T19:12:35.533Z root INFO PluginTheiaDirectoryHandler: accepting plugin with path
2023-07-02T19:12:35.533Z root INFO Resolved "vscode-language-pack-cs" to a VS Code extension "[email protected]" with engines:
2023-07-02T19:12:35.533Z root INFO PluginTheiaDirectoryHandler: accepting plugin with path
2023-07-02T19:12:35.533Z root INFO Resolved "vscode-language-pack-de" to a VS Code extension "[email protected]" with engines:
2023-07-02T19:12:35.533Z root INFO PluginTheiaDirectoryHandler: accepting plugin with path
2023-07-02T19:12:35.533Z root INFO Resolved "vscode-language-pack-es" to a VS Code extension "[email protected]" with engines:
2023-07-02T19:12:35.533Z root INFO PluginTheiaDirectoryHandler: accepting plugin with path
2023-07-02T19:12:35.533Z root INFO Resolved "vscode-language-pack-fr" to a VS Code extension "[email protected]" with engines:
2023-07-02T19:12:35.533Z root INFO PluginTheiaDirectoryHandler: accepting plugin with path
2023-07-02T19:12:35.533Z root INFO Resolved "vscode-language-pack-hu" to a VS Code extension "[email protected]" with engines:
2023-07-02T19:12:35.533Z root INFO PluginTheiaDirectoryHandler: accepting plugin with path
2023-07-02T19:12:35.533Z root INFO Resolved "vscode-language-pack-it" to a VS Code extension "[email protected]" with engines:
2023-07-02T19:12:35.533Z root INFO PluginTheiaDirectoryHandler: accepting plugin with path
2023-07-02T19:12:35.533Z root INFO Resolved "vscode-language-pack-ja" to a VS Code extension "[email protected]" with engines:
2023-07-02T19:12:35.534Z root INFO PluginTheiaDirectoryHandler: accepting plugin with path
2023-07-02T19:12:35.534Z root INFO Resolved "vscode-language-pack-ko" to a VS Code extension "[email protected]" with engines:
2023-07-02T19:12:35.534Z root INFO PluginTheiaDirectoryHandler: accepting plugin with path
2023-07-02T19:12:35.534Z root INFO Resolved "vscode-language-pack-nl" to a VS Code extension "[email protected]" with engines:
2023-07-02T19:12:35.534Z root INFO PluginTheiaDirectoryHandler: accepting plugin with path
2023-07-02T19:12:35.534Z root INFO Resolved "vscode-language-pack-pl" to a VS Code extension "[email protected]" with engines:
2023-07-02T19:12:35.534Z root INFO PluginTheiaDirectoryHandler: accepting plugin with path
2023-07-02T19:12:35.534Z root INFO Resolved "vscode-language-pack-pt-BR" to a VS Code extension "[email protected]" with engines:
2023-07-02T19:12:35.534Z root INFO PluginTheiaDirectoryHandler: accepting plugin with path
2023-07-02T19:12:35.534Z root INFO Resolved "vscode-language-pack-ru" to a VS Code extension "[email protected]" with engines:
2023-07-02T19:12:35.534Z root INFO PluginTheiaDirectoryHandler: accepting plugin with path
2023-07-02T19:12:35.534Z root INFO Resolved "vscode-language-pack-tr" to a VS Code extension "[email protected]" with engines:
2023-07-02T19:12:35.534Z root INFO PluginTheiaDirectoryHandler: accepting plugin with path
2023-07-02T19:12:35.534Z root INFO Resolved "vscode-language-pack-uk" to a VS Code extension "[email protected]" with engines:
2023-07-02T19:12:35.534Z root INFO PluginTheiaDirectoryHandler: accepting plugin with path
2023-07-02T19:12:35.534Z root INFO Resolved "vscode-language-pack-zh-hans" to a VS Code extension "[email protected]" with engines:
Restoring workspace roots: /home/rdlu/Projects/arduino/robocore/blink
isTempSketch: false. Input was /home/rdlu/Projects/arduino/robocore/blink/blink.ino
2023-07-02T19:12:35.537Z config INFO Loaded CLI configuration: {"board_manager":{"additional_urls":["https://dl.espressif.com/dl/package_esp32_index.json"]},"build_cache":{"compilations_before_purge":10,"ttl":"720h0m0s"},"daemon":{"port":"50051"},"directories":{"builtin":{"libraries":"/home/rdlu/.arduino15/libraries"},"data":"/home/rdlu/.arduino15","downloads":"/home/rdlu/.arduino15/staging","user":"/home/rdlu/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}}
2023-07-02T19:12:35.537Z config INFO 'directories.data' and 'directories.user' are set in the CLI configuration model.
2023-07-02T19:12:35.537Z config INFO Loaded the CLI configuration.
2023-07-02T19:12:35.545Z config INFO Mapped the CLI configuration: {"dataDirUri":"file:///home/rdlu/.arduino15","sketchDirUri":"file:///home/rdlu/Arduino","additionalUrls":["https://dl.espressif.com/dl/package_esp32_index.json"],"network":"none","locale":"en"}
2023-07-02T19:12:35.545Z config INFO Validating the CLI configuration...
2023-07-02T19:12:35.546Z config INFO The CLI config is valid.
2023-07-02T19:12:35.546Z config INFO <<< Initialized the CLI configuration.
2023-07-02T19:12:35.550Z daemon INFO INFO[0000] Using config file: /home/rdlu/.arduinoIDE/arduino-cli.yaml
INFO[0000] arduino-cli version 0.32.3
INFO[0000] Executing `arduino-cli daemon`

2023-07-02T19:12:35.560Z daemon INFO Daemon is now listening on 127.0.0.1:34121
{"IP":"127.0.0.1","Port":"34121"}


2023-07-02T19:12:35.560Z daemon INFO Daemon is running.
2023-07-02T19:12:35.573Z daemon INFO INFO[0000] Loading hardware from: /home/rdlu/.arduino15/packages
INFO[0000] Loading package arduino from: /home/rdlu/.arduino15/packages/arduino/hardware

2023-07-02T19:12:35.574Z root INFO Resolve plugins list: 51.2 ms [Finished 0.511 s after backend start]
2023-07-02T19:12:35.579Z root INFO Deployed backend plugin "[email protected]" from "/app/arduino-ide/resources/app/plugins/cortex-debug/extension/dist/extension.js": 4.8 ms [Finished 0.516 s after backend start]
2023-07-02T19:12:35.580Z daemon INFO INFO[0000] Checking signature                            error="opening signature file: open /home/rdlu/.arduino15/packages/arduino/hardware/avr/1.8.6/installed.json.sig: no such file or directory" index=/home/rdlu/.arduino15/packages/arduino/hardware/avr/1.8.6/installed.json signatureFile=/home/rdlu/.arduino15/packages/arduino/hardware/avr/1.8.6/installed.json.sig

2023-07-02T19:12:35.582Z root INFO Deployed backend plugin "[email protected]" from "/app/arduino-ide/resources/app/plugins/vscode-arduino-tools/extension/dist/bundle": 2.7 ms [Finished 0.519 s after backend start]
2023-07-02T19:12:35.582Z daemon INFO INFO[0000] Adding monitor tool                           protocol=serial tool="builtin:serial-monitor"
INFO[0000] Loaded platform                               platform="arduino:[email protected]"
INFO[0000] Checking existence of 'tools' path: /home/rdlu/.arduino15/packages/arduino/tools
INFO[0000] Loading tools from dir: /home/rdlu/.arduino15/packages/arduino/tools
INFO[0000] Loaded tool                                   tool="arduino:[email protected]"
INFO[0000] Loaded tool                                   tool="arduino:[email protected]"
INFO[0000] Loaded tool                                   tool="arduino:[email protected]"
INFO[0000] Loading package builtin from: /home/rdlu/.arduino15/packages/builtin
INFO[0000] Checking existence of 'tools' path: /home/rdlu/.arduino15/packages/builtin/tools
INFO[0000] Loading tools from dir: /home/rdlu/.arduino15/packages/builtin/tools
INFO[0000] Loaded tool                                   tool="builtin:[email protected]"
INFO[0000] Loaded tool                                   tool="builtin:[email protected]"
INFO[0000] Loaded tool                                   tool="builtin:[email protected]"
INFO[0000] Loaded tool                                   tool="builtin:[email protected]"
INFO[0000] Loaded tool                                   tool="builtin:[email protected]"
INFO[0000] Loading package esp32 from: /home/rdlu/.arduino15/packages/esp32/hardware

2023-07-02T19:12:35.590Z root INFO Deployed backend plugin "[email protected]" from "/app/arduino-ide/resources/app/plugins/vscode-builtin-cpp/extension": 8.0 ms [Finished 0.527 s after backend start]
2023-07-02T19:12:35.591Z root INFO Deployed backend plugin "[email protected]" from "/app/arduino-ide/resources/app/plugins/vscode-builtin-json/extension": 1.4 ms [Finished 0.529 s after backend start]
2023-07-02T19:12:35.592Z root INFO Deployed backend plugin "[email protected]" from "/app/arduino-ide/resources/app/plugins/vscode-builtin-json-language-features/extension/client/dist/jsonMain": 0.6 ms [Finished 0.529 s after backend start]
2023-07-02T19:12:35.644Z root INFO Deployed backend plugin "[email protected]" from "/app/arduino-ide/resources/app/plugins/vscode-language-pack-bg/extension": 52.2 ms [Finished 0.582 s after backend start]
2023-07-02T19:12:35.646Z daemon INFO INFO[0000] Checking signature                            error="opening signature file: open /home/rdlu/.arduino15/packages/esp32/hardware/esp32/1.0.6/installed.json.sig: no such file or directory" index=/home/rdlu/.arduino15/packages/esp32/hardware/esp32/1.0.6/installed.json signatureFile=/home/rdlu/.arduino15/packages/esp32/hardware/esp32/1.0.6/installed.json.sig
INFO[0000] Adding monitor tool                           protocol=serial tool="builtin:serial-monitor"
INFO[0000] Loaded platform                               platform="esp32:[email protected]"
INFO[0000] Checking existence of 'tools' path: /home/rdlu/.arduino15/packages/esp32/tools
INFO[0000] Loading tools from dir: /home/rdlu/.arduino15/packages/esp32/tools
INFO[0000] Loaded tool                                   tool="esp32:[email protected]"
INFO[0000] Loaded tool                                   tool="esp32:[email protected]"
INFO[0000] Loaded tool                                   tool="esp32:[email protected]"
INFO[0000] Checking signature                            index=/home/rdlu/.arduino15/package_index.json signatureFile=/home/rdlu/.arduino15/package_index.json.sig trusted=true
INFO[0000] Checking signature                            error="opening signature file: open /home/rdlu/.arduino15/package_esp32_index.json.sig: no such file or directory" index=/home/rdlu/.arduino15/package_esp32_index.json signatureFile=/home/rdlu/.arduino15/package_esp32_index.json.sig
INFO[0000] Adding libraries dir                          dir=/home/rdlu/.arduino15/packages/arduino/hardware/avr/1.8.6/libraries location=platform
INFO[0000] Adding libraries dir                          dir=/home/rdlu/.arduino15/packages/esp32/hardware/esp32/1.0.6/libraries location=platform
INFO[0000] Loading libraries index file                  index=/home/rdlu/.arduino15/library_index.json

2023-07-02T19:12:35.674Z root INFO Deployed backend plugin "[email protected]" from "/app/arduino-ide/resources/app/plugins/vscode-language-pack-cs/extension": 29.4 ms [Finished 0.611 s after backend start]
2023-07-02T19:12:35.731Z root INFO Deployed backend plugin "[email protected]" from "/app/arduino-ide/resources/app/plugins/vscode-language-pack-de/extension": 57.2 ms [Finished 0.668 s after backend start]
2023-07-02T19:12:35.763Z root INFO Deployed backend plugin "[email protected]" from "/app/arduino-ide/resources/app/plugins/vscode-language-pack-es/extension": 31.6 ms [Finished 0.700 s after backend start]
2023-07-02T19:12:35.764Z daemon INFO INFO[0000] Adding libraries dir                          dir=/home/rdlu/.arduino15/libraries location=ide
INFO[0000] Adding libraries dir                          dir=/home/rdlu/Arduino/libraries location=user

2023-07-02T19:12:35.765Z discovery-log INFO start request start watch
2023-07-02T19:12:35.766Z discovery-log INFO start requested start watch
2023-07-02T19:12:35.766Z discovery-log INFO start resolved watching
2023-07-02T19:12:35.791Z root INFO Deployed backend plugin "[email protected]" from "/app/arduino-ide/resources/app/plugins/vscode-language-pack-fr/extension": 28.7 ms [Finished 0.729 s after backend start]
2023-07-02T19:12:35.796Z daemon INFO INFO[0000] starting discovery builtin:mdns-discovery process
INFO[0000] starting discovery builtin:serial-discovery process
INFO[0000] started discovery builtin:mdns-discovery process
INFO[0000] sending command HELLO 1 "arduino-cli 0.32.3" to discovery builtin:mdns-discovery
INFO[0000] started discovery builtin:serial-discovery process
INFO[0000] sending command HELLO 1 "arduino-cli 0.32.3" to discovery builtin:serial-discovery
INFO[0000] from discovery builtin:serial-discovery received message type: hello, message: OK, protocol version: 1
INFO[0000] sending command START_SYNC to discovery builtin:serial-discovery
INFO[0000] from discovery builtin:mdns-discovery received message type: hello, message: OK, protocol version: 1
INFO[0000] sending command START_SYNC to discovery builtin:mdns-discovery
INFO[0000] from discovery builtin:mdns-discovery received message type: start_sync, message: OK
INFO[0000] from discovery builtin:serial-discovery received message type: start_sync, message: OK
INFO[0000] from discovery builtin:serial-discovery received message type: add, port: /dev/ttyS4
INFO[0000] from discovery builtin:serial-discovery received message type: add, port: /dev/ttyUSB0

2023-07-02T19:12:35.797Z discovery-log INFO {"eventType":"add","port":{"matchingBoardsList":[],"port":{"address":"/dev/ttyS4","label":"/dev/ttyS4","protocol":"serial","protocolLabel":"Serial Port","propertiesMap":[],"hardwareId":""}},"error":""}
2023-07-02T19:12:35.798Z discovery-log INFO {"eventType":"add","port":{"matchingBoardsList":[],"port":{"address":"/dev/ttyUSB0","label":"/dev/ttyUSB0","protocol":"serial","protocolLabel":"Serial Port (USB)","propertiesMap":[["pid","0xea60"],["serialNumber","8e99adb6b779eb119302a9b7f771a14a"],["vid","0x10c4"]],"hardwareId":"8e99adb6b779eb119302a9b7f771a14a"}},"error":""}
2023-07-02T19:12:35.823Z root INFO Deployed backend plugin "[email protected]" from "/app/arduino-ide/resources/app/plugins/vscode-language-pack-hu/extension": 31.5 ms [Finished 0.760 s after backend start]
2023-07-02T19:12:35.840Z root INFO Deployed backend plugin "[email protected]" from "/app/arduino-ide/resources/app/plugins/vscode-language-pack-it/extension": 16.6 ms [Finished 0.777 s after backend start]
2023-07-02T19:12:35.861Z root INFO Deployed backend plugin "[email protected]" from "/app/arduino-ide/resources/app/plugins/vscode-language-pack-ja/extension": 21.3 ms [Finished 0.798 s after backend start]
2023-07-02T19:12:35.881Z root INFO Deployed backend plugin "[email protected]" from "/app/arduino-ide/resources/app/plugins/vscode-language-pack-ko/extension": 19.7 ms [Finished 0.818 s after backend start]
2023-07-02T19:12:35.887Z root INFO Deployed backend plugin "[email protected]" from "/app/arduino-ide/resources/app/plugins/vscode-language-pack-nl/extension": 6.5 ms [Finished 0.824 s after backend start]
2023-07-02T19:12:35.910Z root INFO Deployed backend plugin "[email protected]" from "/app/arduino-ide/resources/app/plugins/vscode-language-pack-pl/extension": 22.1 ms [Finished 0.847 s after backend start]
2023-07-02T19:12:35.927Z root INFO Deployed backend plugin "[email protected]" from "/app/arduino-ide/resources/app/plugins/vscode-language-pack-pt-BR/extension": 17.3 ms [Finished 0.864 s after backend start]
2023-07-02T19:12:35.949Z root INFO Deployed backend plugin "[email protected]" from "/app/arduino-ide/resources/app/plugins/vscode-language-pack-ru/extension": 22.3 ms [Finished 0.886 s after backend start]
2023-07-02T19:12:35.968Z root INFO Deployed backend plugin "[email protected]" from "/app/arduino-ide/resources/app/plugins/vscode-language-pack-tr/extension": 18.9 ms [Finished 0.905 s after backend start]
2023-07-02T19:12:35.982Z root INFO Deployed backend plugin "[email protected]" from "/app/arduino-ide/resources/app/plugins/vscode-language-pack-uk/extension": 13.9 ms [Finished 0.919 s after backend start]
2023-07-02T19:12:36.004Z root INFO Deployed backend plugin "[email protected]" from "/app/arduino-ide/resources/app/plugins/vscode-language-pack-zh-hans/extension": 19.5 ms [Finished 0.939 s after backend start]
2023-07-02T19:12:36.005Z root INFO Deploy plugins list: 51.2 ms [Finished 0.942 s after backend start]
/app/bin/arduino-ide: line 10:     3 Segmentation fault      (core dumped) env TMPDIR=$XDG_CACHE_HOME zypak-wrapper /app/arduino-ide/arduino-ide $CUSTOM_IDE_FLAGS "$@"

Hi,
I use x11 most of the time but i hopped into wayland to do some testing.
I was able to reproduce your issue on my system and i was able to get it running again by doing a few steps:

sudo flatpak override cc.arduino.IDE2 --socket=wayland

Firstly making sure i had given access to the wayland socket to the IDE which can be done using the command above.

And secondly running the IDE using the following command before then running it with the typical wayland parameters:

flatpak run --branch=stable --arch=x86_64 --command=arduino-ide --file-forwarding cc.arduino.IDE2 --enable-features=UseOzonePlatform

With regards to wayland and chromium apps it is considered experimental.
It is also worth noting that this might have only fixed it on my system because of how it is configured.

Finally the above step (running arduino-ide --log-level=warn --enable-features=UseOzonePlatform before arduino-ide --log-level=warn --enable-features=UseOzonePlatform --ozone-platform=wayland) seemed to fix the issue for me on a non-flatpak build of the app. I cannot say why or if this will work for you but please do let me know if this helps.

  • Joshua

@per1234 per1234 added the os: linux Specific to Linux operating system label Jul 4, 2023
@rdlu
Copy link

rdlu commented Jul 12, 2023

It still crashes from the terminal - a different one: Address already in use or something
But changing the .desktop link using Menu Libre it works with the commands you provided.

Thanks for the answer! Now it's behaving as it should with Pop Shell tiling functionality.

@per1234 per1234 changed the title Cannot run Arduino IDE 2.1.0 under native Wayland Cannot run Arduino IDE under native Wayland Sep 26, 2023
@per1234
Copy link
Contributor

per1234 commented Sep 28, 2023

Hi @Integral-Tech. We are still waiting for you to provide the information requested in the previous reply (#2107 (comment)) so that we can proceed with the investigation or evaluation of this.

Please comment here to add the requested information.

@per1234 per1234 self-assigned this Sep 28, 2023
@Integral-Tech
Copy link
Author

Hi @Integral-Tech. We are still waiting for you to provide the information requested in the previous reply (#2107 (comment)) so that we can proceed with the investigation or evaluation of this.

Please comment here to add the requested information.

@kittaakos It also crashes with --disable-gpu flag.

╰─ arduino-ide --enable-features=UseOzonePlatform --ozone-platform=wayland --disable-gpu
Arduino IDE 2.2.1
Checking for frontend application configuration customizations. Module path: /opt/arduino-ide/resources/app/lib/backend/electron-main.js, destination 'package.json': /opt/arduino-ide/resources/app/package.json
Setting 'theia.frontend.config.appVersion' application configuration value to: "2.2.1" (type of string)
Setting 'theia.frontend.config.cliVersion' application configuration value to: "0.34.0" (type of string)
Setting 'theia.frontend.config.buildDate' application configuration value to: "2023-08-31T14:18:20.829Z" (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.2.1","cliVersion":"0.34.0","buildDate":"2023-08-31T14:18:20.829Z"}
Starting backend process. PID: 336151
Using browser-only version of superagent in non-browser environment
Configuration directory URI: 'file:///home/integral/.arduinoIDE'
Configuring to accept webviews on '^.+\.webview\..+$' hostname.
2023-10-02T14:40:24.832Z root INFO Backend Object.initialize: 8.1 ms [Finished 0.671 s after backend start]
2023-10-02T14:40:24.833Z root INFO Backend Object.configure: 6.0 ms [Finished 0.671 s after backend start]
2023-10-02T14:40:24.833Z root INFO Backend a.onStart: 2.2 ms [Finished 0.671 s after backend start]
2023-10-02T14:40:24.834Z root INFO Backend a.configure: 0.7 ms [Finished 0.711 s after backend start]
2023-10-02T14:40:24.835Z root INFO Backend u.onStart: 0.5 ms [Finished 0.711 s after backend start]
2023-10-02T14:40:24.836Z root INFO Backend d.configure: 0.2 ms [Finished 0.711 s after backend start]
2023-10-02T14:40:24.837Z root INFO Backend d.initialize: 40.5 ms [Finished 0.712 s after backend start]
2023-10-02T14:40:24.837Z root INFO Backend c.onStart: 0.4 ms [Finished 0.712 s after backend start]
2023-10-02T14:40:24.838Z root INFO Backend s.configure: 1.3 ms [Finished 0.713 s after backend start]
2023-10-02T14:40:24.840Z config INFO >>> Initializing CLI configuration...
2023-10-02T14:40:24.840Z root INFO Backend c.initialize: 0.7 ms [Finished 0.714 s after backend start]
2023-10-02T14:40:24.840Z root INFO Backend P.onStart: 1.1 ms [Finished 0.714 s after backend start]
2023-10-02T14:40:24.841Z config INFO Loading CLI configuration from /home/integral/.arduinoIDE/arduino-cli.yaml...
2023-10-02T14:40:24.842Z daemon INFO Starting daemon from /opt/arduino-ide/resources/app/lib/backend/resources/arduino-cli...
2023-10-02T14:40:24.842Z root INFO Backend s.initialize: 0.5 ms [Finished 0.716 s after backend start]
2023-10-02T14:40:24.842Z root INFO Backend w.onStart: 1.3 ms [Finished 0.717 s after backend start]
2023-10-02T14:40:24.842Z root INFO Backend r.configure: 2.5 ms [Finished 0.717 s after backend start]
2023-10-02T14:40:24.843Z discovery-log INFO start
2023-10-02T14:40:24.843Z discovery-log INFO start new deferred
2023-10-02T14:40:24.843Z root INFO Backend d.initialize: 0.5 ms [Finished 0.718 s after backend start]
2023-10-02T14:40:24.843Z root INFO Backend y.onStart: 2.7 ms [Finished 0.720 s after backend start]
2023-10-02T14:40:24.843Z root INFO Backend r.configure: 2.5 ms [Finished 0.720 s after backend start]
2023-10-02T14:40:24.843Z root INFO Backend s.onStart: 0.8 ms [Finished 0.722 s after backend start]
2023-10-02T14:40:24.844Z root INFO Backend h.configure: 0.7 ms [Finished 0.722 s after backend start]
2023-10-02T14:40:24.844Z root INFO Backend a.configure: 0.6 ms [Finished 0.723 s after backend start]
2023-10-02T14:40:24.844Z root INFO Backend s.configure: 0.2 ms [Finished 0.723 s after backend start]
2023-10-02T14:40:24.844Z root INFO Backend l.configure: 0.2 ms [Finished 0.724 s after backend start]
2023-10-02T14:40:24.849Z root INFO Theia app listening on http://localhost:40961.
2023-10-02T14:40:24.850Z root INFO Finished starting backend application: 6.8 ms [Finished 0.729 s after backend start]
2023-10-02T14:40:24.859Z root WARN The local plugin referenced by local-dir:/home/integral/.arduinoIDE/plugins does not exist.
2023-10-02T14:40:24.859Z root WARN The local plugin referenced by local-dir:/home/integral/.arduinoIDE/extensions does not exist.
2023-10-02T14:40:24.882Z daemon INFO time="2023-10-02T22:40:24+08:00" level=info msg="Using config file: /home/integral/.arduinoIDE/arduino-cli.yaml"
time="2023-10-02T22:40:24+08:00" level=info msg="arduino-cli version 0.34.0"
time="2023-10-02T22:40:24+08:00" level=info msg="Executing `arduino-cli daemon`"
守护进程正在监听 127.0.0.1:38493
{"IP":"127.0.0.1","Port":"38493"}
2023-10-02T14:40:24.882Z daemon INFO Daemon is running.
2023-10-02T14:40:24.886Z config INFO Loaded CLI configuration: {"board_manager":{"additional_urls":[]},"build_cache":{"compilations_before_purge":10,"ttl":"720h0m0s"},"daemon":{"port":"50051"},"directories":{"data":"/home/integral/.arduino15","downloads":"/home/integral/.arduino15/staging","user":"/home/integral/Arduino"},"library":{"enable_unsafe_install":false},"logging":{"file":"","format":"text","level":"info"},"metrics":{"addr":":9090","enabled":true},"output":{"no_color":false},"sketch":{"always_export_binaries":false},"updater":{"enable_notification":true}}
2023-10-02T14:40:24.886Z config INFO 'directories.data' and 'directories.user' are set in the CLI configuration model.
2023-10-02T14:40:24.886Z config INFO Loaded the CLI configuration.
2023-10-02T14:40:24.902Z config INFO Mapped the CLI configuration: {"dataDirUri":"file:///home/integral/.arduino15","sketchDirUri":"file:///home/integral/Arduino","additionalUrls":[],"network":"none","locale":"en"}
2023-10-02T14:40:24.903Z config INFO Validating the CLI configuration...
2023-10-02T14:40:24.912Z config INFO The CLI config is valid.
2023-10-02T14:40:24.912Z config INFO <<< Initialized the CLI configuration.
2023-10-02T14:40:24.925Z root INFO Resolve plugins list: 83.9 ms [Finished 0.804 s after backend start]
2023-10-02T14:40:24.932Z daemon INFO time="2023-10-02T22:40:24+08:00" level=info msg="Checking signature" index=/home/integral/.arduino15/package_index.json signatureFile=/home/integral/.arduino15/package_index.json.sig trusted=true
time="2023-10-02T22:40:24+08:00" level=info msg="Loading hardware from: /home/integral/.arduino15/packages"
time="2023-10-02T22:40:24+08:00" level=info msg="Loading package SPRESENSE from: /home/integral/.arduino15/packages/SPRESENSE/hardware"
time="2023-10-02T22:40:24+08:00" level=info msg="Missing signature file" index=/home/integral/.arduino15/packages/SPRESENSE/hardware/spresense/3.0.1/installed.json
time="2023-10-02T22:40:24+08:00" level=info msg="Adding monitor tool" protocol=serial tool="builtin:serial-monitor"
time="2023-10-02T22:40:24+08:00" level=info msg="Loaded platform" platform="SPRESENSE:[email protected]"
time="2023-10-02T22:40:24+08:00" level=info msg="Checking existence of 'tools' path: /home/integral/.arduino15/packages/SPRESENSE/tools"
time="2023-10-02T22:40:24+08:00" level=info msg="Loading tools from dir: /home/integral/.arduino15/packages/SPRESENSE/tools"
time="2023-10-02T22:40:24+08:00" level=info msg="Loaded tool" tool="SPRESENSE:[email protected]"
time="2023-10-02T22:40:24+08:00" level=info msg="Loaded tool" tool="SPRESENSE:[email protected]"
time="2023-10-02T22:40:24+08:00" level=info msg="Loaded tool" tool="SPRESENSE:[email protected]"
time="2023-10-02T22:40:24+08:00" level=info msg="Loading package builtin from: /home/integral/.arduino15/packages/builtin"
time="2023-10-02T22:40:24+08:00" level=info msg="Checking existence of 'tools' path: /home/integral/.arduino15/packages/builtin/tools"
time="2023-10-02T22:40:24+08:00" level=info msg="Loading tools from dir: /home/integral/.arduino15/packages/builtin/tools"
time="2023-10-02T22:40:24+08:00" level=info msg="Loaded tool" tool="builtin:[email protected]"
time="2023-10-02T22:40:24+08:00" level=info msg="Loaded tool" tool="builtin:[email protected]"
time="2023-10-02T22:40:24+08:00" level=info msg="Loaded tool" tool="builtin:[email protected]"
time="2023-10-02T22:40:24+08:00" level=info msg="Loaded tool" tool="builtin:[email protected]"
time="2023-10-02T22:40:24+08:00" level=info msg="Loaded tool" tool="builtin:[email protected]"
time="2023-10-02T22:40:24+08:00" level=info msg="Adding libraries dir" dir=/home/integral/.arduino15/packages/SPRESENSE/hardware/spresense/3.0.1/libraries location=platform
time="2023-10-02T22:40:24+08:00" level=info msg="Loading libraries index file" index=/home/integral/.arduino15/library_index.json
2023-10-02T14:40:25.167Z daemon INFO time="2023-10-02T22:40:25+08:00" level=info msg="Adding libraries dir" dir=/home/integral/.arduino15/libraries location=ide
time="2023-10-02T22:40:25+08:00" level=info msg="Adding libraries dir" dir=/home/integral/Arduino/libraries location=user
2023-10-02T14:40:25.170Z discovery-log INFO start request start watch
2023-10-02T14:40:25.170Z discovery-log INFO start requested start watch
2023-10-02T14:40:25.170Z discovery-log INFO start resolved watching
2023-10-02T14:40:25.220Z daemon INFO time="2023-10-02T22:40:25+08:00" level=info msg="starting discovery builtin:mdns-discovery process"
time="2023-10-02T22:40:25+08:00" level=info msg="starting discovery builtin:serial-discovery process"
time="2023-10-02T22:40:25+08:00" level=info msg="started discovery builtin:mdns-discovery process"
time="2023-10-02T22:40:25+08:00" level=info msg="sending command HELLO 1 \"arduino-cli 0.34.0\" to discovery builtin:mdns-discovery"
time="2023-10-02T22:40:25+08:00" level=info msg="started discovery builtin:serial-discovery process"
time="2023-10-02T22:40:25+08:00" level=info msg="sending command HELLO 1 \"arduino-cli 0.34.0\" to discovery builtin:serial-discovery"
time="2023-10-02T22:40:25+08:00" level=info msg="from discovery builtin:serial-discovery received message type: hello,消息:OK,协议版本:1"
time="2023-10-02T22:40:25+08:00" level=info msg="sending command START_SYNC to discovery builtin:serial-discovery"
time="2023-10-02T22:40:25+08:00" level=info msg="from discovery builtin:mdns-discovery received message type: hello,消息:OK,协议版本:1"
time="2023-10-02T22:40:25+08:00" level=info msg="sending command START_SYNC to discovery builtin:mdns-discovery"
time="2023-10-02T22:40:25+08:00" level=info msg="from discovery builtin:mdns-discovery received message type: start_sync,消息:OK"
time="2023-10-02T22:40:25+08:00" level=info msg="from discovery builtin:serial-discovery received message type: start_sync,消息:OK"
2023-10-02T14:40:25.572Z root INFO Deploy plugins list: 83.9 ms [Finished 1.452 s after backend start]
zsh: segmentation fault (core dumped)  arduino-ide --enable-features=UseOzonePlatform --ozone-platform=wayland 

@per1234 per1234 removed the status: waiting for information More information must be provided before work can proceed label Oct 2, 2023
@amalinda
Copy link

Siimlar issue. the IDE does not work in Wayland SWAY.

@secretmango

This comment was marked as off-topic.

@arduino arduino locked as too heated and limited conversation to collaborators Dec 10, 2023
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
os: linux Specific to Linux operating system type: imperfection Perceived defect in any part of project
Projects
None yet
Development

No branches or pull requests

7 participants