[GH-ISSUE #4140] [Bug] snap install: white empty screen #1854

Closed
opened 2026-03-23 21:17:43 +00:00 by mirror · 5 comments
Owner

Originally created by @alexander-mart on GitHub (Dec 13, 2023).
Original GitHub issue: https://github.com/AppFlowy-IO/AppFlowy/issues/4140

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

Originally created by @alexander-mart on GitHub (Dec 13, 2023). Original GitHub issue: https://github.com/AppFlowy-IO/AppFlowy/issues/4140 ### Bug Description ```sh 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_
mirror 2026-03-23 21:17:43 +00:00
Author
Owner

@LucasXu0 commented on GitHub (Dec 14, 2023):

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
<!-- gh-comment-id:1855100566 --> @LucasXu0 commented on GitHub (Dec 14, 2023): 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](https://github.com/AppFlowy-IO/AppFlowy/assets/11863087/5c7956dd-9960-4813-a1ea-44a62d282ded) <details> <summary>the console outputs</summary> ``` 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 ``` </details>
Author
Owner

@airdogvan commented on GitHub (Jan 23, 2024):

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.

<!-- gh-comment-id:1906841508 --> @airdogvan commented on GitHub (Jan 23, 2024): 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.
Author
Owner

@lbpth commented on GitHub (Feb 8, 2024):

Same issue but on Windows 11

<!-- gh-comment-id:1934808091 --> @lbpth commented on GitHub (Feb 8, 2024): Same issue but on Windows 11
Author
Owner

@LucasXu0 commented on GitHub (Feb 26, 2024):

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

<!-- gh-comment-id:1963379754 --> @LucasXu0 commented on GitHub (Feb 26, 2024): 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
Author
Owner

@airdogvan commented on GitHub (Feb 26, 2024):

that works for me. Thank you!!!!

<!-- gh-comment-id:1965319764 --> @airdogvan commented on GitHub (Feb 26, 2024): that works for me. Thank you!!!!
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
AppFlowy-IO/AppFlowy#1854
No description provided.