flathub / cc.arduino.IDE2

https://flathub.org/apps/details/cc.arduino.IDE2
6 stars 4 forks source link

IDE fails to start #40

Closed her01n closed 6 months ago

her01n commented 1 year ago

Hi I have installed the IDE from flathub using gnome software. Launching the application has no visible effect. No window is displayed. System is Arch Linux. Arduino IDE version 2.0.4. Here is the output of command "/var/lib/flatpak/exports/bin/cc.arduino.IDE2" from the terminal.

Arduino IDE 2.0.4
Starting backend process. PID: 31
[31 zypak-helper] Using spawn strategy test 1 as set by environment
Gtk-Message: 12:14:17.289: Failed to load module "canberra-gtk-module"
Gtk-Message: 12:14:17.289: Failed to load module "canberra-gtk-module"
libva error: vaGetDriverNameByIndex() failed with unknown libva error, driver_name = (null)
[54:0403/121417.348647: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/heroin/.theia'
Configuring to accept webviews on '^.+\.webview\..+$' hostname.
2023-04-03T10:14:17.799Z root INFO Backend Object.initialize: 3.1 ms [Finished 0.490 s after backend start]
2023-04-03T10:14:17.799Z root INFO Backend Object.configure: 2.5 ms [Finished 0.490 s after backend start]
2023-04-03T10:14:17.800Z root INFO Backend MessagingContribution.onStart: 1.1 ms [Finished 0.490 s after backend start]
2023-04-03T10:14:17.800Z root INFO Backend OSBackendApplicationContribution.configure: 0.3 ms [Finished 0.511 s after backend start]
2023-04-03T10:14:17.801Z root INFO Backend DefaultWorkspaceServer.onStart: 0.2 ms [Finished 0.511 s after backend start]
2023-04-03T10:14:17.801Z root INFO Backend PluginLocalizationBackendContribution.configure: 0.1 ms [Finished 0.511 s after backend start]
2023-04-03T10:14:17.802Z root INFO Backend PluginLocalizationBackendContribution.initialize: 21.5 ms [Finished 0.512 s after backend start]
2023-04-03T10:14:17.802Z root INFO Backend TaskBackendApplicationContribution.onStart: 0.2 ms [Finished 0.512 s after backend start]
2023-04-03T10:14:17.802Z root INFO Backend ElectronTokenBackendContribution.configure: 0.6 ms [Finished 0.512 s after backend start]
2023-04-03T10:14:17.803Z config INFO >>> Initializing CLI configuration...
2023-04-03T10:14:17.803Z root INFO Backend PluginDeployerContribution.initialize: 0.4 ms [Finished 0.512 s after backend start]
2023-04-03T10:14:17.803Z root INFO Backend ConfigServiceImpl.onStart: 0.6 ms [Finished 0.513 s after backend start]
2023-04-03T10:14:17.803Z config INFO Loading CLI configuration from /home/heroin/.arduinoIDE/arduino-cli.yaml...
2023-04-03T10:14:17.804Z root INFO Backend WebviewBackendSecurityWarnings.initialize: 0.3 ms [Finished 0.514 s after backend start]
2023-04-03T10:14:17.804Z root INFO Backend ArduinoDaemonImpl.onStart: 0.6 ms [Finished 0.514 s after backend start]
2023-04-03T10:14:17.804Z root INFO Backend NodeFileUploadService.configure: 1.2 ms [Finished 0.514 s after backend start]
2023-04-03T10:14:17.804Z daemon INFO Starting daemon from /app/arduino-ide/resources/app/node_modules/arduino-ide-extension/build/arduino-cli...
2023-04-03T10:14:17.804Z discovery-log INFO start
2023-04-03T10:14:17.804Z discovery-log INFO start new deferred
2023-04-03T10:14:17.804Z root INFO Backend HostedPluginLocalizationService.initialize: 0.4 ms [Finished 0.515 s after backend start]
2023-04-03T10:14:17.804Z root INFO Backend BoardDiscovery.onStart: 0.7 ms [Finished 0.515 s after backend start]
2023-04-03T10:14:17.804Z root INFO Backend FileDownloadEndpoint.configure: 0.6 ms [Finished 0.515 s after backend start]
2023-04-03T10:14:17.804Z root INFO Backend AuthenticationServiceImpl.onStart: 0.3 ms [Finished 0.516 s after backend start]
2023-04-03T10:14:17.804Z root INFO Backend PluginApiContribution.configure: 0.3 ms [Finished 0.516 s after backend start]
2023-04-03T10:14:17.805Z root INFO Backend HostedPluginReader.configure: 0.2 ms [Finished 0.517 s after backend start]
2023-04-03T10:14:17.805Z root INFO Backend HostedPluginReader.configure: 0.1 ms [Finished 0.517 s after backend start]
2023-04-03T10:14:17.805Z root INFO Backend PlotterBackendContribution.configure: 0.3 ms [Finished 0.517 s after backend start]
2023-04-03T10:14:17.807Z root ERROR Failed to start the backend application:
2023-04-03T10:14:17.807Z root ERROR Error: listen EADDRNOTAVAIL: address not available 218.93.250.18
    at Server.setupListenHandle [as _listen2] (node:net:1298:21)
    at listenInCluster (node:net:1363:12)
    at GetAddrInfoReqWrap.doListen [as callback] (node:net:1501:7)
    at GetAddrInfoReqWrap.onlookup [as oncomplete] (node:dns:73:8)
2023-04-03T10:14:17.807Z root ERROR Uncaught Exception:
2023-04-03T10:14:17.807Z root ERROR Error: listen EADDRNOTAVAIL: address not available 218.93.250.18
    at Server.setupListenHandle [as _listen2] (node:net:1298:21)
    at listenInCluster (node:net:1363:12)
    at GetAddrInfoReqWrap.doListen [as callback] (node:net:1501:7)
    at GetAddrInfoReqWrap.onlookup [as oncomplete] (node:dns:73:8)
2023-04-03T10:14:17.812Z root WARN The local plugin referenced by local-dir:/home/heroin/.arduinoIDE/plugins does not exist.
2023-04-03T10:14:17.812Z root WARN The local plugin referenced by local-dir:/home/heroin/.arduinoIDE/extensions does not exist.
2023-04-03T10:14:17.813Z root WARN The local plugin referenced by local-dir:/home/heroin/.arduinoProIDE/plugins does not exist.
[31 preload-host-spawn-strategy] Warning: kill override ignores groups

The process hangs and have to be killed with ctrl+c. AppImage from the official arduino web works correctly, also version 1 from flathub works.

SuperNinja-4965 commented 1 year ago

Hi, Could this be related to #38? Do you have localhost in your hosts file.

SuperNinja-4965 commented 1 year ago

My only other thought is that it could be related to this error. This could be a misconfigured graphics environment or a missing graphics driver.

libva error: vaGetDriverNameByIndex() failed with unknown libva error, driver_name = (null)

ninjadev64 commented 6 months ago

My only other thought is that it could be related to this error. This could be a misconfigured graphics environment or a missing graphics driver.

libva error: vaGetDriverNameByIndex() failed with unknown libva error, driver_name = (null)

It won't be this; this error is common with Chromium-based applications on Linux.

SuperNinja-4965 commented 6 months ago

My only other thought is that it could be related to this error. This could be a misconfigured graphics environment or a missing graphics driver.

libva error: vaGetDriverNameByIndex() failed with unknown libva error, driver_name = (null)

It won't be this; this error is common with Chromium-based applications on Linux.

You are probably right but given the GPU sandbox crashed, @her01n could you try running the IDE with the --disable-gpu-sandbox flag?

flatpak run cc.arduino.IDE2 --disable-gpu-sandbox
her01n commented 6 months ago

The issue is resolved by adding localhost to hosts file, like in #38. Option --disable-gpu-sandbox has no effect, when localhost is missing from hosts.