eclipse-theia / theia-blueprint

The Eclipse IDE is a modern and open IDE for cloud and desktop. The Theia IDE is based on the Theia platform. The Theia IDE is available as a downloadable desktop application. You can also try the latest version of the Theia IDE online. For more details, see the Readme below.
https://theia-ide.org/#theiaide
MIT License
335 stars 125 forks source link

Appimage wont start at all (1.51)(Wayland) #377

Open squalou opened 2 months ago

squalou commented 2 months ago

Bug Description:

Downloaded latest Appimage, chmod +x, try to run it.

First I got a segmentation fault, tried again and since then I get

Error: node-loader:
Error: /tmp/.mount_TheiaInkhtIA/resources/app/lib/backend/native/pty.node: cannot open shared object file: No such file or directory
    at 24632 (/tmp/.mount_TheiaInkhtIA/resources/app/lib/backend/268.js:2:599)

sometimes the seg fault is back

Steps to Reproduce:

  1. Download latet AppImage (at the moment : 1.51)
  2. chmod +x TheiaIDE.AppImage
  3. ./TheiaIDE.AppImage
Error: node-loader:
Error: /tmp/.mount_TheiaInkhtIA/resources/app/lib/backend/native/pty.node: cannot open shared object file: No such file or directory
    at 24632 (/tmp/.mount_TheiaInkhtIA/resources/app/lib/backend/268.js:2:599)
    at i (/tmp/.mount_TheiaInkhtIA/resources/app/lib/backend/main.js:1:14494)
    at 85969 (/tmp/.mount_TheiaInkhtIA/resources/app/lib/backend/268.js:2:1392011)
    at i (/tmp/.mount_TheiaInkhtIA/resources/app/lib/backend/main.js:1:14494)
    at 87047 (/tmp/.mount_TheiaInkhtIA/resources/app/lib/backend/268.js:2:1387699)
    at i (/tmp/.mount_TheiaInkhtIA/resources/app/lib/backend/main.js:1:14494)
    at 3979 (/tmp/.mount_TheiaInkhtIA/resources/app/lib/backend/268.js:2:410632)
    at i (/tmp/.mount_TheiaInkhtIA/resources/app/lib/backend/main.js:1:14494)
    at 47552 (/tmp/.mount_TheiaInkhtIA/resources/app/lib/backend/268.js:2:402568)
    at i (/tmp/.mount_TheiaInkhtIA/resources/app/lib/backend/main.js:1:14494)

Additional Information

Workaround

see below to use x11 instead of wayland

squalou commented 2 months ago

OK probably my bad : I'm using wayland.

./TheiaIDE.AppImage --ozone-platform=x11

and it works

JonasHelming commented 1 month ago

@squalou Is this issue then closed for you or do you want to adapt the description?

maehne commented 1 month ago

I am observing the same issue in a KDE Plasma 6 Wayland session on an up-to-date Endeavour OS. Launching the TheiaIDE.AppImage (version 1.52) gives:

$ ~/Downloads/TheiaIDE.AppImage             
Configuring to accept webviews on '^.+\.webview\..+$' hostname.
2024-08-13T12:14:46.233Z root INFO Backend u.initialize: 14.8 ms [Finished 0.413 s after backend start]
2024-08-13T12:14:46.237Z root INFO Backend Object.initialize: 13.8 ms [Finished 0.413 s after backend start]
2024-08-13T12:14:46.237Z root INFO Backend a.initialize: 1.2 ms [Finished 0.413 s after backend start]
2024-08-13T12:14:46.237Z root INFO Backend a.initialize: 1.0 ms [Finished 0.413 s after backend start]
2024-08-13T12:14:46.237Z root INFO Backend a.initialize: 0.8 ms [Finished 0.413 s after backend start]
2024-08-13T12:14:46.237Z root INFO Backend f.initialize: 0.9 ms [Finished 0.413 s after backend start]
2024-08-13T12:14:46.237Z root INFO Backend l.initialize: 0.8 ms [Finished 0.413 s after backend start]
2024-08-13T12:14:46.239Z root INFO Backend l.initialize: 15.0 ms [Finished 0.414 s after backend start]
2024-08-13T12:14:46.242Z root INFO configured all backend app contributions
2024-08-13T12:14:46.242Z root INFO Backend l.onStart: 1.0 ms [Finished 0.423 s after backend start]
2024-08-13T12:14:46.242Z root INFO Configuration directory URI: 'file://~/.theia'
2024-08-13T12:14:46.243Z root INFO Theia app listening on http://127.0.0.1:38355.
2024-08-13T12:14:46.244Z root INFO Backend g.onStart: 1.7 ms [Finished 0.424 s after backend start]
2024-08-13T12:14:46.244Z root INFO Backend a.onStart: 0.2 ms [Finished 0.425 s after backend start]
2024-08-13T12:14:46.254Z root INFO Backend p.onStart: 0.2 ms [Finished 0.425 s after backend start]
2024-08-13T12:14:46.254Z root INFO Backend n.onStart: 9.8 ms [Finished 0.435 s after backend start]
2024-08-13T12:14:46.254Z root INFO Finished starting backend application: 0.0 ms [Finished 0.435 s after backend start]
2024-08-13T12:14:46.255Z root WARN The local plugin referenced by local-dir:~/.theia-ide/plugins does not exist.
2024-08-13T12:14:46.256Z root WARN The local plugin referenced by local-dir:~/.theia-ide/deployedPlugins does not exist.
2024-08-13T12:14:46.293Z root INFO Resolve plugins list: 49.7 ms [Finished 0.473 s after backend start]
2024-08-13T12:14:46.368Z root INFO Deploy plugins list: 125.2 ms [Finished 0.549 s after backend start]
[1]    30395 segmentation fault (core dumped)  ~/Downloads/TheiaIDE.AppImage

The workaround ./TheiaIDE.AppImage --ozone-platform=x11 by @squalou makes Theia IDE launch successfully and use its proper icon. After that, --ozone-platform=x11 is not any more necessary. However, the IDE gets assigned a generic Wayland icon:

grafik

See here, here, and here for options on how to fix it.

squalou commented 1 month ago

@squalou Is this issue then closed for you or do you want to adapt the description?

Well I don't know if this is to be considered an issue, or just a missing documentation somewhere, I'll just adapt the description for now to help maybe other people find it, but as far as I'm concerned you also could close the issue due to the workaround.

maehne commented 1 month ago

From my point of view, this is clearly a Wayland-related issue, which should be kept open until the workaround --ozone-platform=x11 is not necessary.