AppFlowy icon indicating copy to clipboard operation
AppFlowy copied to clipboard

[Bug] snap install: white empty screen

Open alexander-mart opened this issue 1 year ago • 5 comments

Bug Description

user@my-pc:~/Downloads$ sudo snap install appflowy
appflowy 0.3.7 от AppFlowy установлен
user@my-pc:~/Downloads$ appflowy
OnLoad
Gtk-Message: 17:35:52.737: Not loading module "atk-bridge": The functionality is provided by GTK natively. Please try to not load it.

** (AppFlowy:52684): WARNING **: 17:35:52.923: Failed to start Flutter renderer: Отсутствуют доступные конфигурации для данного формата пикселя RGBA

** (AppFlowy:52684): WARNING **: 17:35:52.924: gtk.dart: failed to call method: No engine to send to

How to Reproduce

  1. sudo snap install appflowy
  2. appflowy
  3. See empty screen

Expected Behavior

App loading without errors :)

Operating System

Ubuntu 20.04.1 LTS x86_64

AppFlowy Version(s)

0.3.7

Screenshots

No response

Additional Context

No response

alexander-mart avatar Dec 13 '23 10:12 alexander-mart

I am unable to reproduce this issue on my new Ubuntu virtual machine, as I haven't downloaded any packages or dependencies yet. If you have any additional information that could assist us in troubleshooting, please provide it below.

Here's my machine configuration. Screenshot from 2023-12-14 11-17-07

the console outputs
lucas@lucas-VirtualBox:~$ sudo apt update
[sudo] password for lucas: 
Hit:1 http://security.ubuntu.com/ubuntu focal-security InRelease
Hit:2 http://sg.archive.ubuntu.com/ubuntu focal InRelease
Hit:3 http://sg.archive.ubuntu.com/ubuntu focal-updates InRelease
Hit:4 http://sg.archive.ubuntu.com/ubuntu focal-backports InRelease
Reading package lists... Done
Building dependency tree       
Reading state information... Done
259 packages can be upgraded. Run 'apt list --upgradable' to see them.
lucas@lucas-VirtualBox:~$ sudo apt install snapd
Reading package lists... Done
Building dependency tree       
Reading state information... Done
The following packages will be upgraded:
  snapd
1 upgraded, 0 newly installed, 0 to remove and 258 not upgraded.
Need to get 37.9 MB of archives.
After this operation, 5,120 B of additional disk space will be used.
Get:1 http://sg.archive.ubuntu.com/ubuntu focal-updates/main amd64 snapd amd64 2.58+20.04.1 [37.9 MB]
Fetched 37.9 MB in 9s (4,092 kB/s)                                                                                                                       
(Reading database ... 179343 files and directories currently installed.)
Preparing to unpack .../snapd_2.58+20.04.1_amd64.deb ...
Unpacking snapd (2.58+20.04.1) over (2.58+20.04) ...
Setting up snapd (2.58+20.04.1) ...
snapd.failure.service is a disabled or a static unit not running, not starting it.
snapd.snap-repair.service is a disabled or a static unit not running, not starting it.
Failed to restart snapd.mounts-pre.target: Operation refused, unit snapd.mounts-pre.target may be requested by dependency only (it is configured to refuse manual start/stop).
See system logs and 'systemctl status snapd.mounts-pre.target' for details.
Processing triggers for mime-support (3.64ubuntu1) ...
Processing triggers for gnome-menus (3.36.0-1ubuntu1) ...
Processing triggers for man-db (2.9.1-1) ...
Processing triggers for dbus (1.12.16-2ubuntu2.3) ...
Processing triggers for desktop-file-utils (0.24-1ubuntu3) ...
lucas@lucas-VirtualBox:~$ sudo snap install appflowy
Automatically connect eligible plugs and slots of snap "appflowy"                                                                                        -
Automatically connect eligible plugs and slots of snap "appflowy"                                                                                        -error: change finished in status "Undone" with no error message
lucas@lucas-VirtualBox:~$ sudo snap install appflowy
Setup snap "appflowy" (19) security profiles for auto-connections              appflowy 0.3.9.1 from AppFlowy installed
lucas@lucas-VirtualBox:~$ snap run appflowy
OnLoad
Gtk-Message: 12:11:15.093: Not loading module "atk-bridge": The functionality is provided by GTK natively. Please try to not load it.

(AppFlowy:4836): Gtk-WARNING **: 12:11:15.155: GTK+ module /snap/appflowy/19/gnome-platform/usr/lib/gtk-2.0/modules/libcanberra-gtk-module.so cannot be loaded.
GTK+ 2.x symbols detected. Using GTK+ 2.x and GTK+ 3 in the same process is not supported.
Gtk-Message: 12:11:15.155: Failed to load module "canberra-gtk-module"

(AppFlowy:4836): Gtk-WARNING **: 12:11:15.157: GTK+ module /snap/appflowy/19/gnome-platform/usr/lib/gtk-2.0/modules/libcanberra-gtk-module.so cannot be loaded.
GTK+ 2.x symbols detected. Using GTK+ 2.x and GTK+ 3 in the same process is not supported.
Gtk-Message: 12:11:15.157: Failed to load module "canberra-gtk-module"

(AppFlowy:4836): Gdk-CRITICAL **: 12:11:15.570: gdk_window_get_state: assertion 'GDK_IS_WINDOW (window)' failed

** (AppFlowy:4836): CRITICAL **: 12:11:15.932: Failed to read XDG desktop portal settings: GDBus.Error:org.freedesktop.portal.Error.NotFound: Requested setting not found

** (AppFlowy:4836): CRITICAL **: 12:11:15.934: Failed to read XDG desktop portal settings: GDBus.Error:org.freedesktop.portal.Error.NotFound: Requested setting not found
  2023-12-14 12:11:16  INFO  🔥AppFlowy Configuration { storage_path: "/home/lucas/snap/appflowy/19/.local/share/io.appflowy.appflowy/data", application_path: "/home/lucas/snap/appflowy/19/.local/share/io.appflowy.appflowy/data" }
    at flowy-core/src/lib.rs:88

  2023-12-14 12:11:16 ERROR  Uncaught platform error
    at dart-ffi/src/lib.rs:171

  2023-12-14 12:11:17 ERROR  Uncaught platform error
    at dart-ffi/src/lib.rs:171

  2023-12-14 12:11:25  INFO  open collab db to validate data integration for user 271456944630272000 at path: "/home/lucas/snap/appflowy/19/.local/share/io.appflowy.appflowy/data/271456944630272000/collab_db"
    at flowy-user/src/services/database.rs:342
    in continue_sign_up
    in sign_up with authenticator: Local

  2023-12-14 12:11:25  INFO  open collab db for user 271456944630272000 at path: "/home/lucas/snap/appflowy/19/.local/share/io.appflowy.appflowy/data/271456944630272000/collab_db"
    at flowy-user/src/services/database.rs:195
    in continue_sign_up
    in sign_up with authenticator: Local

  2023-12-14 12:11:25 ERROR  error: No such file or directory (os error 2)
    at flowy-user/src/services/database.rs:255
    in restore_latest_backup
    in continue_sign_up
    in sign_up with authenticator: Local

  2023-12-14 12:11:25 ERROR  restore collab db failed, Os { code: 2, kind: NotFound, message: "No such file or directory" }
    at flowy-user/src/services/database.rs:101
    in continue_sign_up
    in sign_up with authenticator: Local

  2023-12-14 12:11:25  INFO  Save new user profile to disk
    at flowy-user/src/manager.rs:760
    in save_auth_data
    in continue_sign_up
    in sign_up with authenticator: Local

  2023-12-14 12:11:25  INFO  initialize_when_sign_up: is_new: true
    at flowy-folder2/src/manager.rs:289
    in initialize_with_new_user
    in continue_sign_up
    in sign_up with authenticator: Local

  2023-12-14 12:11:25  INFO  Init workspace: 93b620b2-1e81-486f-91f6-b09e28afec6e from: LocalDisk
    at flowy-folder2/src/manager.rs:137
    in initialize with uid: 271456944630272000, workspace_id: "93b620b2-1e81-486f-91f6-b09e28afec6e"
    in initialize_with_new_user
    in continue_sign_up
    in sign_up with authenticator: Local

  2023-12-14 12:11:25  INFO  Create folder with default folder builder
    at flowy-folder2/src/manager.rs:170
    in initialize with uid: 271456944630272000, workspace_id: "93b620b2-1e81-486f-91f6-b09e28afec6e"
    in initialize_with_new_user
    in continue_sign_up
    in sign_up with authenticator: Local

  2023-12-14 12:11:25  INFO  open aggregate database views object: a368545d-5d2f-4dd9-8544-fd88f922048a
    at flowy-database2/src/manager.rs:125
    in continue_sign_up
    in sign_up with authenticator: Local

LucasXu0 avatar Dec 14 '23 04:12 LucasXu0

Same here. Used to work, created many notes and they survived many reboots, but now:

env GDK_GL=gles /usr/bin/AppFlowy %U  OnLoad

(AppFlowy:1405851): Gdk-CRITICAL **: 12:03:11.774: gdk_window_get_state: assertion 'GDK_IS_WINDOW (window)' failed

** (AppFlowy:1405851): WARNING **: 12:03:11.957: Failed to start Flutter renderer: Unable to create a GL context

** (AppFlowy:1405851): WARNING **: 12:03:11.957: gtk.dart: failed to call method: No engine to send to

White empty screen.

Ubuntu 22.04 LTS. No system changes (apart from updates) since install and suddenly doesn't work.

airdogvan avatar Jan 23 '24 20:01 airdogvan

Same issue but on Windows 11

lbpth avatar Feb 08 '24 19:02 lbpth

Hi there! There's a workaround worth trying: before running the application, execute this command: export LIBGL_ALWAYS_SOFTWARE=1.

it comes from https://github.com/flutter/flutter/issues/106941

LucasXu0 avatar Feb 26 '24 06:02 LucasXu0

that works for me. Thank you!!!!

airdogvan avatar Feb 26 '24 21:02 airdogvan