snapcrafters / mattermost-desktop

A community-maintained package to easily install Mattermost Desktop on Linux
https://snapcraft.io/mattermost-desktop/
MIT License
11 stars 7 forks source link

[Bug]: important pieces off window #74

Open hellsworth opened 1 year ago

hellsworth commented 1 year ago

What happened?

I recently refreshed to the --channel=stable/wayland and now the input text box, user icon in the top right (where you set the status) are now off screen. Even if I maximize the window, the input text box is barely visible. This is with mattermost-desktop started in NOT full screen mode (whatever the small default size is), and then maximizing.

If I close mattermost-desktop while it's maximized, and then relaunch it, it launches mattermost-desktop in a maximized window size, and the input box (and all elements are visible). However, if you try to minimize it to go back to the small default screen size, then we encounter the input text box falling off the window again.

What should have happened?

All elements should be visible in the default window size, or any other window size.

Output of snap info $snap_name

$ snap info mattermost-desktop
name:      mattermost-desktop
summary:   Open source, private cloud Slack-alternative
publisher: Snapcrafters
store-url: https://snapcraft.io/mattermost-desktop
contact:   https://github.com/snapcrafters/mattermost-desktop/issues
license:   unset
description: |
  Mattermost is secure workplace messaging from behind your firewall.

    - Discuss topics in private groups, one-to-one or team-wide
    - Easily share and view image files
    - Connect in-house systems with webhooks and Slack-compatible integrations

  To use this app, you need a URL for a Mattermost server.

  -------

  Host your own server: https://about.mattermost.com/download
  Terms of Service: http://about.mattermost.com/terms/
  Contribute to the project: https://github.com/mattermost/desktop

  This snap is maintained by the Snapcrafters community, and is not necessarily endorsed or
  officially maintained by the upstream developers.
commands:
  - mattermost-desktop
snap-id:      ed0pxJoDHrgmAWHH7baX5nryAHy1UNj0
tracking:     latest/stable/wayland
refresh-date: today at 22:48 CEST
channels:
  latest/stable:    5.3.1 2023-04-11 (618) 113MB -
  latest/candidate: 5.3.1 2023-04-05 (618) 113MB -
  latest/beta:      ↑                            
  latest/edge:      5.3.1 2023-04-23 (625) 113MB -
installed:          5.3.1            (627) 113MB -

Output of snap connections $snap_name

$ snap connections mattermost-desktop
Interface               Plug                                       Slot                            Notes
audio-playback          mattermost-desktop:audio-playback          :audio-playback                 -
audio-record            mattermost-desktop:audio-record            -                               -
camera                  mattermost-desktop:camera                  -                               -
content[gnome-42-2204]  mattermost-desktop:gnome-42-2204           gnome-42-2204:gnome-42-2204     -
content[gtk-3-themes]   mattermost-desktop:gtk-3-themes            gtk-common-themes:gtk-3-themes  -
content[icon-themes]    mattermost-desktop:icon-themes             gtk-common-themes:icon-themes   -
content[sound-themes]   mattermost-desktop:sound-themes            gtk-common-themes:sound-themes  -
desktop                 mattermost-desktop:desktop                 :desktop                        -
desktop-legacy          mattermost-desktop:desktop-legacy          :desktop-legacy                 -
gsettings               mattermost-desktop:gsettings               :gsettings                      -
home                    mattermost-desktop:home                    :home                           -
login-session-observe   mattermost-desktop:login-session-observe   -                               -
network                 mattermost-desktop:network                 :network                        -
network-bind            mattermost-desktop:network-bind            :network-bind                   -
opengl                  mattermost-desktop:opengl                  :opengl                         -
pulseaudio              mattermost-desktop:pulseaudio              :pulseaudio                     -
removable-media         mattermost-desktop:removable-media         -                               -
screen-inhibit-control  mattermost-desktop:screen-inhibit-control  :screen-inhibit-control         -
shared-memory           mattermost-desktop:shmem                   :shared-memory                  -
unity7                  mattermost-desktop:unity7                  :unity7                         -
wayland                 mattermost-desktop:wayland                 :wayland                        -
x11                     mattermost-desktop:x11                     :x11                            -

Output of snap version

$ snap version
snap    2.59.1+23.04ubuntu1
snapd   2.59.1+23.04ubuntu1
series  16
ubuntu  23.04
kernel  6.2.0-20-generic

Relevant log output

No response

Teminal output of app

$ snap run mattermost-desktop
23:01:49.991 › DownloadsManager.init { 'this.json': {}, validatedJSON: {} }
23:01:49.994 › DownloadsManager.saveAll
23:01:49.995 › DownloadsManager.checkForDeletedFiles
23:01:50.047 › Current working directory is /home/heather, changing into /snap/mattermost-desktop/627/opt/Mattermost
Error org.freedesktop.DBus.Error.Failed: cannot set "default-url-scheme-handler" subproperty "mattermost" setting to invalid value "Mattermost.Desktop"
[16038:0426/230150.256934:ERROR:zygote_host_impl_linux.cc(273)] Failed to adjust OOM score of renderer with pid 16177: Permission denied (13)
23:01:50.257 › config.autostart has been configured: true
23:01:50.257 › config.autostart has been configured: true
23:01:50.274 › Autoupgrade disabled: false
[16038:0426/230150.309039:ERROR:zygote_host_impl_linux.cc(273)] Failed to adjust OOM score of renderer with pid 16190: Permission denied (13)
[16038:0426/230150.313523:ERROR:zygote_host_impl_linux.cc(273)] Failed to adjust OOM score of renderer with pid 16206: Permission denied (13)
[16038:0426/230150.317187:ERROR:zygote_host_impl_linux.cc(273)] Failed to adjust OOM score of renderer with pid 16211: Permission denied (13)
[16038:0426/230150.320747:ERROR:zygote_host_impl_linux.cc(273)] Failed to adjust OOM score of renderer with pid 16218: Permission denied (13)
[16177:0426/230150.325166:ERROR:gpu_init.cc(523)] Passthrough is not supported, GL is egl, ANGLE is 
[16038:0426/230150.328985:ERROR:zygote_host_impl_linux.cc(273)] Failed to adjust OOM score of renderer with pid 16231: Permission denied (13)
[16038:0426/230150.333742:ERROR:zygote_host_impl_linux.cc(273)] Failed to adjust OOM score of renderer with pid 16242: Permission denied (13)
[16038:0426/230150.341036:ERROR:zygote_host_impl_linux.cc(273)] Failed to adjust OOM score of renderer with pid 16258: Permission denied (13)
[16038:0426/230150.346907:ERROR:zygote_host_impl_linux.cc(273)] Failed to adjust OOM score of renderer with pid 16273: Permission denied (13)
[16038:0426/230150.352161:ERROR:zygote_host_impl_linux.cc(273)] Failed to adjust OOM score of renderer with pid 16280: Permission denied (13)
23:01:50.353 › couldn't show canonical___TAB_MESSAGING, not ready
[16038:0426/230150.357028:ERROR:zygote_host_impl_linux.cc(273)] Failed to adjust OOM score of renderer with pid 16286: Permission denied (13)
23:01:50.357 › Failed to set new language en-US
23:01:50.359 › Failed to set new language US
WARNING: Kernel has no file descriptor comparison support: Operation not permitted
[16038:0426/230151.365699:ERROR:object_proxy.cc(622)] Failed to call method: org.gnome.Mutter.IdleMonitor.AddIdleWatch: object_path= /org/gnome/Mutter/IdleMonitor/Core: org.freedesktop.DBus.Error.AccessDenied: An AppArmor policy prevents this sender from sending this message to this recipient; type="method_call", sender=":1.351" (uid=1000 pid=16038 comm="/snap/mattermost-desktop/627/opt/Mattermost/matter" label="snap.mattermost-desktop.mattermost-desktop (enforce)") interface="org.gnome.Mutter.IdleMonitor" member="AddIdleWatch" error name="(unset)" requested_reply="0" destination="org.gnome.Mutter.IdleMonitor" (uid=1000 pid=2758 comm="/usr/bin/gnome-shell" label="unconfined")
23:01:52.474 › hide back button
23:01:52.548 › hide back button
23:01:55.405 › charmhub___TAB_MESSAGING timeout expired will show the browserview
23:01:55.439 › charmhub___TAB_FOCALBOARD timeout expired will show the browserview
kenvandine commented 1 year ago

This is noted in the upstream wayland feature request issue https://github.com/mattermost/mattermost/issues/24685

hellsworth commented 1 year ago

Just a note that resizing the window does not work. The input box adjusts to stay off screen. Screencast from 2023-04-27 09-42-24.webm

sergio-costas commented 1 year ago

This sounds more like a bug in electron...