[GH-ISSUE #5583] [Bug] Black screen after second launch [LINUX][FLATPAK][WAYLAND] #2482

Closed
opened 2026-03-23 21:22:48 +00:00 by mirror · 7 comments
Owner

Originally created by @AxelSkye on GitHub (Jun 19, 2024).
Original GitHub issue: https://github.com/AppFlowy-IO/AppFlowy/issues/5583

Bug Description

On first launch everything works fine, but once the app is closed if I try to launch it again I get a black screen, just the titlebar works. The only way to open it is to fully remove it and install it again (only working for one single launch).

How to Reproduce

  1. Install the app from Flathub.
  2. Run it
  3. First launch is okay
  4. Close it
  5. Open it again
  6. Black screen

Expected Behavior

The content should be seen

Operating System

Linux - openSUSE Aeon, Gnome Desktop, Wayland session

AppFlowy Version(s)

0.6.0

Screenshots

Captura desde 2024-06-19 21-35-34

Additional Context

No response

Originally created by @AxelSkye on GitHub (Jun 19, 2024). Original GitHub issue: https://github.com/AppFlowy-IO/AppFlowy/issues/5583 ### Bug Description On first launch everything works fine, but once the app is closed if I try to launch it again I get a black screen, just the titlebar works. The only way to open it is to fully remove it and install it again (only working for one single launch). ### How to Reproduce 1. Install the app from Flathub. 2. Run it 3. First launch is okay 4. Close it 5. Open it again 6. Black screen ### Expected Behavior The content should be seen ### Operating System Linux - openSUSE Aeon, Gnome Desktop, Wayland session ### AppFlowy Version(s) 0.6.0 ### Screenshots ![Captura desde 2024-06-19 21-35-34](https://github.com/AppFlowy-IO/AppFlowy/assets/31951244/efe1a7a2-5a21-451c-83b7-689081a3683a) ### Additional Context _No response_
Author
Owner

@LucasXu0 commented on GitHub (Jun 20, 2024):

@AxelSkye Any outputs from the terminal when you launch the flatpak?

<!-- gh-comment-id:2179657239 --> @LucasXu0 commented on GitHub (Jun 20, 2024): @AxelSkye Any outputs from the terminal when you launch the flatpak?
Author
Owner

@HeathenHacks commented on GitHub (Jun 20, 2024):

Same thing happening on the Flatpak version on X11.

It launches just fine using the terminal, but it's saying these:

Gtk-Message: 15:26:37.612: Failed to load module "canberra-gtk-module"
Gtk-Message: 15:26:37.612: Failed to load module "appmenu-gtk-module"

** (AppFlowy:2): CRITICAL **: 15:26:37.755: Failed to read XDG desktop portal settings: GDBus.Error:org.freedesktop.portal.Error.NotFound: Requested setting not found

Not sure if these would be useful, since I did not connect any cloud accounts to it nor use AI, but, here are some more errors that might be related to it:

ERROR client_api::http: error: code:NotLoggedIn msg: Not Logged In:token is empty

ERROR flowy_user::user_manager::manager_user_workspace: error: NotSupportYet: Not support yet

ERROR flowy_user::event_handler: error: NotSupportYet: Not support yet

ERROR flowy_folder::manager: Can't find the view with id:

ERROR flowy_folder::event_handler: error: RecordNotFound: Record not found



<!-- gh-comment-id:2180026536 --> @HeathenHacks commented on GitHub (Jun 20, 2024): Same thing happening on the Flatpak version on X11. It launches just fine using the terminal, but it's saying these: ``` Gtk-Message: 15:26:37.612: Failed to load module "canberra-gtk-module" Gtk-Message: 15:26:37.612: Failed to load module "appmenu-gtk-module" ** (AppFlowy:2): CRITICAL **: 15:26:37.755: Failed to read XDG desktop portal settings: GDBus.Error:org.freedesktop.portal.Error.NotFound: Requested setting not found Not sure if these would be useful, since I did not connect any cloud accounts to it nor use AI, but, here are some more errors that might be related to it: ERROR client_api::http: error: code:NotLoggedIn msg: Not Logged In:token is empty ERROR flowy_user::user_manager::manager_user_workspace: error: NotSupportYet: Not support yet ERROR flowy_user::event_handler: error: NotSupportYet: Not support yet ERROR flowy_folder::manager: Can't find the view with id: ERROR flowy_folder::event_handler: error: RecordNotFound: Record not found ```
Author
Owner

@LucasXu0 commented on GitHub (Jun 20, 2024):

@HeathenHacks The error message doesn't matter if you didn't log in.

<!-- gh-comment-id:2180243737 --> @LucasXu0 commented on GitHub (Jun 20, 2024): @HeathenHacks The error message doesn't matter if you didn't log in.
Author
Owner

@HeathenHacks commented on GitHub (Jun 20, 2024):

i see. how about the error mentioning gtk-modules and XDG desktop portal?

<!-- gh-comment-id:2180247748 --> @HeathenHacks commented on GitHub (Jun 20, 2024): i see. how about the error mentioning gtk-modules and XDG desktop portal?
Author
Owner

@suntorytimed commented on GitHub (Jun 20, 2024):

#5582 mentions this issue with Windows 11 as well. I can confirm it with Flatpak on openSUSE Tumbleweed running GNOME Wayland, but it doesn't happen at every start.

To be more precise, it happens only when starting AppFlowy via the .desktop file, but it works fine when starting via flatpak run io.appflowy.AppFlowy

<!-- gh-comment-id:2180257842 --> @suntorytimed commented on GitHub (Jun 20, 2024): #5582 mentions this issue with Windows 11 as well. I can confirm it with Flatpak on openSUSE Tumbleweed running GNOME Wayland, but it doesn't happen at every start. To be more precise, it happens only when starting AppFlowy via the .desktop file, but it works fine when starting via `flatpak run io.appflowy.AppFlowy`
Author
Owner

@AxelSkye commented on GitHub (Jun 20, 2024):

@AxelSkye Any outputs from the terminal when you launch the flatpak?

I think that the relevant error I get is this:

** (AppFlowy:2): WARNING **: 18:25:17.322: Failed to link program: error: fragment shader lacks `main'

<!-- gh-comment-id:2181095649 --> @AxelSkye commented on GitHub (Jun 20, 2024): > @AxelSkye Any outputs from the terminal when you launch the flatpak? I think that the relevant error I get is this: ** (AppFlowy:2): WARNING **: 18:25:17.322: Failed to link program: error: fragment shader lacks `main'
Author
Owner

@LucasXu0 commented on GitHub (Jun 24, 2024):

https://github.com/flathub/io.appflowy.AppFlowy/pull/109

FYI, I have removed the OpenGL env in Flatpak. Updating to the latest version should fix the black screen issue.

<!-- gh-comment-id:2185435781 --> @LucasXu0 commented on GitHub (Jun 24, 2024): https://github.com/flathub/io.appflowy.AppFlowy/pull/109 FYI, I have removed the OpenGL env in Flatpak. Updating to the latest version should fix the black screen issue.
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#2482
No description provided.