chromebrew / chromebrew

Package manager for Chrome OS
https://chromebrew.github.io
GNU General Public License v3.0
2.31k stars 375 forks source link

sommelier doesn't work properly on lenovo chromebook duet #7576

Closed SilverArrow009 closed 1 year ago

SilverArrow009 commented 1 year ago

Description

After installing sommelier with chromebrew, all GUI apps don't launch with the error cannot open display. I was trying to install remmina with the command,

crew install remmina

before launching remmina, I wanted to ensure if sommelier is working properly. so, I ran restartsommelier before launching remmina. but it gives the output,

some sommelier processes failed to start
sommelier processes running:  

/usr/local/bin/startsommelier: line 39: return: can only `return' from a function or sourced script

and when I try to launch remmina with G_MESSAGES_DEBUG=all, my output was

** (process:26382): DEBUG: 23:26:28.707: (remmina_pref_init) - periodic_rmnews_last_get set to 0
** (process:26382): DEBUG: 23:26:28.715: (remmina_file_manager_init) - Initialized the "/usr/local/.config/.local/share/remmina" data folder
(process:26382): GLib-GIO-DEBUG: 23:26:28.720: _g_io_module_get_default: Found default implementation local (GLocalVfs) for ?gio-vfs?
Load modules from /usr/local/lib/remmina/plugins
Remmina plugin glibsecret (type=Secret) has been registered, but is not yet initialized/activated. The initialization order is 2000.
** (process:26382): DEBUG: 23:26:28.862: (remmina_plugin_entry) - gfx_h264_available: 1
** (process:26382): DEBUG: 23:26:28.863: (remmina_rdp_settings_kbd_init) - rdp_keyboard_remapping_list: (null)
xprop:  unable to open display ':0'
xprop:  unable to open display ':0'
Failed to load plugin: /usr/local/lib/remmina/plugins/remmina-plugin-vnc.so.
Error: /usr/local/lib/libjpeg.so.9: version `LIBJPEG_8.0' not found (required by /usr/local/lib/libvncclient.so.1)
(process:26382): GLib-GIO-DEBUG: 23:26:28.877: Using cross-namespace EXTERNAL authentication (this will deadlock if server is GDBus < 2.73.3)

(process:26382): libsecret-CRITICAL **: 23:26:28.881: secret_service_load_collections_sync: assertion 'paths != NULL' failed
[glibsecret] unable to get secret service: Unknown error.
(process:26382): GLib-DEBUG: 23:26:28.882: unsetenv() is not thread-safe and should not be used after threads are created
(org.remmina.Remmina:26382): GLib-GIO-DEBUG: 23:26:28.883: Using cross-namespace EXTERNAL authentication (this will deadlock if server is GDBus < 2.73.3)

(org.remmina.Remmina:26382): Gtk-WARNING **: 23:26:28.886: cannot open display: :0

I have double checked my display variable. it is set to :0.

Attempting to launch remmina with,

sommelier -X --x-display=$DISPLAY --scale=1 remmina

gives a different error,

error: failed to create virtwl context: Inappropriate ioctl for device

I have tried reinstalling remmina with the -s option. It didn't change anything.

Versions and system information


Output of crew sysinfo

/usr/local/bin/crew:1820:in `sysinfo_command': uninitialized constant ARCH_ACTUAL (NameError)

    - Architecture: `#{ARCH_ACTUAL}` (`#{ARCH}`)
                       ^^^^^^^^^^^
        from /usr/local/bin/crew:1867:in `<main>'

Output of cat /etc/lsb-release

CHROMEOS_ARC_ANDROID_SDK_VERSION=28
CHROMEOS_ARC_VERSION=9138510
CHROMEOS_AUSERVER=https://tools.google.com/service/update2
CHROMEOS_BOARD_APPID={50F3C95B-CA5B-4AF8-87A2-8CD19588BD12}
CHROMEOS_CANARY_APPID={90F229CE-83E2-4FAF-8479-E368A34938B1}
CHROMEOS_DEVSERVER=
CHROMEOS_RELEASE_APPID={50F3C95B-CA5B-4AF8-87A2-8CD19588BD12}
CHROMEOS_RELEASE_BOARD=kukui-signed-mp-v4keys
CHROMEOS_RELEASE_BRANCH_NUMBER=87
CHROMEOS_RELEASE_BUILDER_PATH=kukui-release/R107-15117.87.0
CHROMEOS_RELEASE_BUILD_NUMBER=15117
CHROMEOS_RELEASE_BUILD_TYPE=Official Build
CHROMEOS_RELEASE_CHROME_MILESTONE=107
CHROMEOS_RELEASE_DESCRIPTION=15117.87.0 (Official Build) stable-channel kukui 
CHROMEOS_RELEASE_KEYSET=mp-v4
CHROMEOS_RELEASE_NAME=Chrome OS
CHROMEOS_RELEASE_PATCH_NUMBER=0
CHROMEOS_RELEASE_TRACK=stable-channel
CHROMEOS_RELEASE_UNIBUILD=1
CHROMEOS_RELEASE_VERSION=15117.87.0
DEVICETYPE=CHROMEBOOK
GOOGLE_RELEASE=15117.87.0

Any help is much appreciated. Thanks !

satmandu commented 1 year ago

Can you open a new crosh shell? That should open sommelier properly. Or do a reboot, and check remmina again.

If that doesn't work, just wait a couple of days. There is I believe a new remmina build in the gnome 43 PR which is being reviewed now.

Also try this to fix sommelier:

. startsommelier

SilverArrow009 commented 1 year ago

@satmandu Thanks for your reply. I have tried rebooting and launching from a new crosh shell too, but was getting the same error.

Afaik, this issue is most probably isn't related to remmina. Almost all the gui apps (gimp, gedit, etc.) Fail to launch with the same issue.

satmandu commented 1 year ago

Please tell us if this helps:

CREW_TESTING_REPO=https://github.com/satmandu/chromebrew.git CREW_TESTING_BRANCH=gnome43_libjpeg_turbo_icu72 CREW_TESTING=1 crew update ; yes | crew upgrade
satmandu commented 1 year ago

You're also running into a libjpeg issue which is addressed in with the updates in the PR mentioned above...

SilverArrow009 commented 1 year ago

@satmandu I have tried the command above. webkit2gtk_4 package fails to build. Nevertheless, I have manually updated other packages. Launching remmina still gives the same error as mentioned above.

Let me know if I have to provide any additional info

SilverArrow009 commented 1 year ago

also, I have noticed that xfce4-terminal launches properly, if that helps.

satmandu commented 1 year ago

@satmandu I have tried the command above. webkit2gtk_4 package fails to build.

You should do a crew update ; crew upgrade at this point.

I am still working on getting webkit2gtk_{4,4_1,5} to build for armv7l systems like yours, but most other recent software is at least building...

satmandu commented 1 year ago

also, I have noticed that xfce4-terminal launches properly, if that helps.

You should also see if kgx from the gnome_console package works...

Sommelier should in theory just work now after you open crosh after logging into your machine.

SilverArrow009 commented 1 year ago

I installed gnome_console as instructed. when I run kgx command, I get the following error

(kgx:15957): Gtk-WARNING **: 15:09:07.373: cannot open display: :0

Please let me know if I need to attach additional info.

satmandu commented 1 year ago

That tells me that sommelier didn't start.

What happens when you try this? crew update ; crew upgrade ; crew reinstall sommelier ; startsommelier ; kgx

SilverArrow009 commented 1 year ago

here's the output of the above command

some sommelier processes failed to start
sommelier processes running:  

(kgx:25581): Gtk-WARNING **: 19:25:56.012: cannot open display: :0

How should I start sommelier processes ?

SilverArrow009 commented 1 year ago

@satmandu attached here is the output of my sommelier.log

/usr/local/bin/sommelier: line 18: /usr/local/bin/../lib/ld-linux-armhf.so.3: No such file or directory
/usr/local/bin/sommelier: line 18: /usr/local/bin/../lib/ld-linux-armhf.so.3: No such file or directory
/usr/local/bin/sommelier: line 18: /usr/local/bin/../lib/ld-linux-armhf.so.3: No such file or directory
/usr/local/bin/sommelier.elf: error while loading shared libraries: /usr/local/lib/gbm/tls/vgem_gbm.so: cannot open shared object file: No such file or directory
/usr/local/bin/sommelier.elf: error while loading shared libraries: /usr/local/lib/gbm/tls/vgem_gbm.so: cannot open shared object file: No such file or directory
/usr/local/bin/sommelier.elf: error while loading shared libraries: /usr/local/lib/gbm/tls/vgem_gbm.so: cannot open shared object file: No such file or directory
error: XDG_RUNTIME_DIR not set in the environment
/usr/local/bin/sommelier.elf: error while loading shared libraries: /usr/local/lib/gbm/tls/vgem_gbm.so: cannot open shared object file: No such file or directory
/usr/local/bin/sommelier.elf: error while loading shared libraries: /usr/local/lib/gbm/tls/vgem_gbm.so: cannot open shared object file: No such file or directory
/usr/local/bin/sommelier.elf: error while loading shared libraries: /usr/local/lib/gbm/tls/vgem_gbm.so: cannot open shared object file: No such file or directory
/usr/local/bin/sommelier.elf: error while loading shared libraries: /usr/local/lib/gbm/tls/vgem_gbm.so: cannot open shared object file: No such file or directory
/usr/local/bin/sommelier.elf: error while loading shared libraries: /usr/local/lib/gbm/tls/vgem_gbm.so: cannot open shared object file: No such file or directory
/usr/local/bin/sommelier.elf: error while loading shared libraries: /usr/local/lib/gbm/tls/vgem_gbm.so: cannot open shared object file: No such file or directory
/usr/local/bin/sommelier.elf: error while loading shared libraries: /usr/local/lib/gbm/tls/vgem_gbm.so: cannot open shared object file: No such file or directory
/usr/local/bin/sommelier.elf: error while loading shared libraries: /usr/local/lib/gbm/tls/vgem_gbm.so: cannot open shared object file: No such file or directory
/usr/local/bin/sommelier.elf: error while loading shared libraries: /usr/local/lib/gbm/tls/vgem_gbm.so: cannot open shared object file: No such file or directory
/usr/local/bin/sommelier.elf: error while loading shared libraries: /usr/local/lib/gbm/tls/vgem_gbm.so: cannot open shared object file: No such file or directory
/usr/local/bin/sommelier.elf: error while loading shared libraries: /usr/local/lib/gbm/tls/vgem_gbm.so: cannot open shared object file: No such file or directory
/usr/local/bin/sommelier.elf: error while loading shared libraries: /usr/local/lib/gbm/tls/vgem_gbm.so: cannot open shared object file: No such file or directory
/usr/local/bin/sommelier.elf: error while loading shared libraries: /usr/local/lib/gbm/tls/vgem_gbm.so: cannot open shared object file: No such file or directory
/usr/local/bin/sommelier.elf: error while loading shared libraries: /usr/local/lib/libgbm.so.1: cannot open shared object file: No such file or directory
/usr/local/bin/sommelier.elf: error while loading shared libraries: /usr/local/lib/gbm/tls/vgem_gbm.so: cannot open shared object file: No such file or directory
/usr/local/bin/sommelier.elf: error while loading shared libraries: /usr/local/lib/gbm/tls/vgem_gbm.so: cannot open shared object file: No such file or directory
/usr/local/bin/sommelier.elf: error while loading shared libraries: /usr/local/lib/gbm/tls/vgem_gbm.so: cannot open shared object file: No such file or directory
/usr/local/bin/sommelier.elf: error while loading shared libraries: /usr/local/lib/gbm/tls/vgem_gbm.so: cannot open shared object file: No such file or directory
error: couldn't get display device
error: couldn't get display device
error: couldn't get display device
error: couldn't get display device
error: couldn't get display device
error: couldn't get display device
error: couldn't get display device
error: couldn't get display device

I have also noticed that glxinfo gives command not found. while running weston, I get the output as follows:

Date: 2022-11-03 UTC
[14:48:51.248] weston 11.0.0
               https://wayland.freedesktop.org
               Bug reports to: https://gitlab.freedesktop.org/wayland/weston/issues/
               Build: 11.0.0
[14:48:51.248] Command line: weston
[14:48:51.248] OS: Linux, 5.10.142-19740-g3a142da07016, #1 SMP PREEMPT Wed Oct 26 21:15:31 PDT 2022, aarch64
[14:48:51.248] Flight recorder: enabled
[14:48:51.248] warning: XDG_RUNTIME_DIR "/var/run/chrome" is not configured
correctly.  Unix access mode must be 0700 (current mode is 0755),
and must be owned by the user UID 1000 (current owner is UID 1000).
Refer to your distribution on how to get it, or
http://www.freedesktop.org/wiki/Specifications/basedir-spec
on how to implement it.
[14:48:51.249] Using config file '/home/chronos/user/.config/weston.ini'
[14:48:51.249] Output repaint window is 7 ms maximum.
[14:48:51.249] Loading module '/usr/local/lib/libweston-11/wayland-backend.so'
[14:48:51.268] Loading module '/usr/local/lib/libweston-11/gl-renderer.so'
[14:48:51.660] warning: failed to query rendering device from EGL
[14:48:51.660] EGL version: 1.5
[14:48:51.660] EGL vendor: Mesa Project
[14:48:51.660] EGL client APIs: OpenGL OpenGL_ES 
[14:48:51.660] warning: Disabling render GPU timeline and explicit synchronization due to missing EGL_ANDROID_native_fence_sync extension
[14:48:51.660] EGL features:
               EGL Wayland extension: no
               context priority: no
               buffer age: no
               partial update: no
               swap buffers with damage: no
               configless context: yes
               surfaceless context: yes
               dmabuf support: no
[14:48:51.683] GL version: OpenGL ES 3.2 Mesa 21.3.9 (git-78c96ae5b6)
[14:48:51.683] GLSL version: OpenGL ES GLSL ES 3.20
[14:48:51.683] GL vendor: Mesa/X.org
[14:48:51.683] GL renderer: llvmpipe (LLVM 15.0.0, 128 bits)
[14:48:51.714] GL ES 3.2 - renderer features:
               read-back format: ARGB8888
               wl_shm 10 bpc formats: yes
               wl_shm 16 bpc formats: yes
               wl_shm half-float formats: yes
               internal R and RG formats: yes
               OES_EGL_image_external: yes
[14:48:51.714] Registered plugin API 'weston_windowed_output_api_v1' of size 8
[14:48:51.714] Color manager: no-op
[14:48:51.715] Output 'wayland0' attempts EOTF mode: SDR
[14:48:51.715] Output 'wayland0' using color profile: built-in default sRGB SDR profile
[14:48:51.715] Creating 1024x640 wayland output at (0, 0)
[14:48:51.720] wayland-backend: Using xdg_wm_base
[14:48:51.720] Chosen EGL config details: id:   1 rgba: 8 8 8 8 buf: 32 dep:  0 stcl: 0 int: 0-1 type: win vis_id: 0
[14:48:51.742] Output 'wayland0' enabled with head(s) wayland0
[14:48:51.742] Compositor capabilities:
               arbitrary surface rotation: yes
               screen capture uses y-flip: yes
               cursor planes: no
               arbitrary resolutions: no
               view mask clipping: yes
               explicit sync: no
               color operations: yes
               presentation clock: CLOCK_MONOTONIC_RAW, id 4
               presentation clock resolution: 0.000000001 s
[14:48:51.743] Loading module '/usr/local/lib/weston/desktop-shell.so'
[14:48:51.744] Loading module '/usr/local/lib/libweston-11/xwayland.so'
[14:48:51.747] Registered plugin API 'weston_xwayland_v1' of size 16
[14:48:51.747] Registered plugin API 'weston_xwayland_surface_v1' of size 8
[14:48:51.747] failed to bind to /tmp/.X11-unix/X0: No such file or directory
Segmentation fault (core dumped)

I verified that mesa is installed. Hope this helps.

satmandu commented 1 year ago

@uberhacker is this what you get with sommelier on your aarch64 & armv7l kernel machines too?

satmandu commented 1 year ago

You could also see if this works, which bypasses sommelier:

WAYLAND_DISPLAY=wayland-0 XDG_SESSION_TYPE=wayland kgx
SilverArrow009 commented 1 year ago

I still get the same error as before. (kgx:25880): Gtk-WARNING **: 21:36:03.624: cannot open display: :0