[GH-ISSUE #5497] [Bug] Blank screen in 0.5.9 when loading with GDK_GL=gles #2451

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

Originally created by @Thrilleratplay on GitHub (Jun 8, 2024).
Original GitHub issue: https://github.com/AppFlowy-IO/AppFlowy/issues/5497

Bug Description

When opening AppFlowy v 0.5.9, using either the application link or the command from the application link, env GDK_GL=gles /usr/bin/AppFlowy %U, AppFlowy opens but is blank. If opening AppFlowy without the environmental flag, it opens but is very slow to render and visual artifacts are left such as titles from dialog boxes that had been closed.

The only difference between the logs when initially loading is when using GDK_GL there is an extra line before :

** (AppFlowy:12331): WARNING **: 11:04:30.274: Failed to link program: error: fragment shader lacks `main'

How to Reproduce

  1. Click the AppFlowy.desktop link or exec the command, env GDK_GL=gles /usr/bin/AppFlowy %U in a terminal.
  2. Application opens but is blank.
  3. Close application
  4. Execute the command /usr/bin/AppFlowy %U
  5. Aplication opens and interface is visible but slow to render changes.

Expected Behavior

AppFlowy to open with content appearing.

Operating System

Linux

AppFlowy Version(s)

0.5.9

Screenshots

No response

Additional Context

I installed AppFlowy via AUR using the AppFlowy-bin package. The package extracts the precompiled contents from the Debian package. I have not tried compiling AppFlowy but will try that today.

I'm aware this is not a supported installed. However, based on a comment in #5492, "The GUI glitches or goes black randomly.", I opened this as it may give more context for others that may be seeing a similar issue. If it is not relevant, please feel free to close this.

Originally created by @Thrilleratplay on GitHub (Jun 8, 2024). Original GitHub issue: https://github.com/AppFlowy-IO/AppFlowy/issues/5497 ### Bug Description When opening AppFlowy v 0.5.9, using either the application link or the command from the application link, `env GDK_GL=gles /usr/bin/AppFlowy %U`, AppFlowy opens but is blank. If opening AppFlowy without the environmental flag, it opens but is very slow to render and visual artifacts are left such as titles from dialog boxes that had been closed. The only difference between the logs when initially loading is when using GDK_GL there is an extra line before : ``` ** (AppFlowy:12331): WARNING **: 11:04:30.274: Failed to link program: error: fragment shader lacks `main' ``` ### How to Reproduce 1. Click the AppFlowy.desktop link or exec the command, `env GDK_GL=gles /usr/bin/AppFlowy %U` in a terminal. 2. Application opens but is blank. 3. Close application 4. Execute the command `/usr/bin/AppFlowy %U` 5. Aplication opens and interface is visible but slow to render changes. ### Expected Behavior AppFlowy to open with content appearing. ### Operating System Linux ### AppFlowy Version(s) 0.5.9 ### Screenshots _No response_ ### Additional Context I installed AppFlowy via AUR using the [AppFlowy-bin](https://aur.archlinux.org/packages/appflowy-bin) package. The package extracts the precompiled contents from the Debian package. I have not tried compiling AppFlowy but will try that today. I'm aware this is not a supported installed. However, based on a comment in #5492, "The GUI glitches or goes black randomly.", I opened this as it may give more context for others that may be seeing a similar issue. If it is not relevant, please feel free to close this.
mirror 2026-03-23 21:22:29 +00:00
Author
Owner

@emmggi commented on GitHub (Jun 9, 2024):

I also have this on Endeavour OS. Have also used appflowy-bin from AUR.

Running only $ AppFlowy in terminal works for me and is not slow to render changes.

<!-- gh-comment-id:2156642837 --> @emmggi commented on GitHub (Jun 9, 2024): I also have this on Endeavour OS. Have also used `appflowy-bin` from AUR. Running only `$ AppFlowy` in terminal works for me and is not slow to render changes.
Author
Owner

@khorshuheng commented on GitHub (Jun 10, 2024):

By any chance, was the Mesa package updated to version 24.1.1?

<!-- gh-comment-id:2157006258 --> @khorshuheng commented on GitHub (Jun 10, 2024): By any chance, was the Mesa package updated to version 24.1.1?
Author
Owner

@Thrilleratplay commented on GitHub (Jun 10, 2024):

By any chance, was the Mesa package updated to version 24.1.1?

No, I do not have Mesa installed. CORRECTION: I have Mesa Amber installed.

` ``
pacman -Qi local/mesa [22:21:28]
Name : mesa-amber
Version : 21.3.9-6
Description : classic OpenGL (non-Gallium3D) drivers
Architecture : x86_64
URL : https://www.mesa3d.org/
Licenses : MIT AND BSD-3-Clause AND SGI-B-2.0
Groups : None
Provides : mesa=21.3.9 opengl-driver
Depends On : libdrm libglvnd libxfixes libxshmfence libxxf86vm wayland zstd
Optional Deps : None
Required By : cogl gst-plugins-base-libs libglvnd mpv qt5-base qt6-base qt6-webengine signal-desktop thorium-browser-bin webkit2gtk webkit2gtk-4.1 xf86-video-intel xf86-video-nouveau
Optional For : None
Conflicts With : mesa
Replaces : None
Installed Size : 40.51 MiB
Packager : Jan Alexander Steffens (heftig) heftig@archlinux.org
Build Date : Sun 31 Dec 2023 07:56:34 PM EST
Install Date : Mon 01 Jan 2024 01:14:04 PM EST
Install Reason : Explicitly installed
Install Script : No
Validated By : Signature

<!-- gh-comment-id:2157062115 --> @Thrilleratplay commented on GitHub (Jun 10, 2024): > By any chance, was the Mesa package updated to version 24.1.1? ~No, I do not have Mesa installed.~ CORRECTION: I have Mesa Amber installed. ` `` pacman -Qi local/mesa [22:21:28] Name : mesa-amber Version : 21.3.9-6 Description : classic OpenGL (non-Gallium3D) drivers Architecture : x86_64 URL : https://www.mesa3d.org/ Licenses : MIT AND BSD-3-Clause AND SGI-B-2.0 Groups : None Provides : mesa=21.3.9 opengl-driver Depends On : libdrm libglvnd libxfixes libxshmfence libxxf86vm wayland zstd Optional Deps : None Required By : cogl gst-plugins-base-libs libglvnd mpv qt5-base qt6-base qt6-webengine signal-desktop thorium-browser-bin webkit2gtk webkit2gtk-4.1 xf86-video-intel xf86-video-nouveau Optional For : None Conflicts With : mesa Replaces : None Installed Size : 40.51 MiB Packager : Jan Alexander Steffens (heftig) <heftig@archlinux.org> Build Date : Sun 31 Dec 2023 07:56:34 PM EST Install Date : Mon 01 Jan 2024 01:14:04 PM EST Install Reason : Explicitly installed Install Script : No Validated By : Signature ```
Author
Owner

@emmggi commented on GitHub (Jun 10, 2024):

By any chance, was the Mesa package updated to version 24.1.1?

Yes. Mine is 24.1.1-1.

<!-- gh-comment-id:2158188732 --> @emmggi commented on GitHub (Jun 10, 2024): > By any chance, was the Mesa package updated to version 24.1.1? Yes. Mine is 24.1.1-1.
Author
Owner

@imoize commented on GitHub (Jun 10, 2024):

same issue, related to mesa 24.1.1-1 ?

<!-- gh-comment-id:2158966304 --> @imoize commented on GitHub (Jun 10, 2024): same issue, related to mesa 24.1.1-1 ?
Author
Owner

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

I will remove the environment variable GDK_GL=gles in the next version. However, the primary issue might be related to a recent update in Mesa, as this environment variable has been in place for quite some time.

Aplication opens and interface is visible but slow to render changes.

This issue will also be fixed in the upcoming release.

<!-- gh-comment-id:2159589849 --> @LucasXu0 commented on GitHub (Jun 11, 2024): I will remove the environment variable `GDK_GL=gles` in the next version. However, the primary issue might be related to a recent update in Mesa, as this environment variable has been in place for quite some time. > Aplication opens and interface is visible but slow to render changes. This issue will also be fixed in the upcoming release.
Author
Owner

@b-quentin commented on GitHub (Jun 11, 2024):

By any chance, was the Mesa package updated to version 24.1.1?

Yes. Mine is 24.1.1-1.

Me too.

pacman -Qi local/mesa
Install Date    : jeu. 06 juin 2024 20:35:30
pacman -Qi appflowy-bin
Install Date    : jeu. 06 juin 2024 21:09:35
<!-- gh-comment-id:2161444081 --> @b-quentin commented on GitHub (Jun 11, 2024): > > By any chance, was the Mesa package updated to version 24.1.1? > > Yes. Mine is 24.1.1-1. Me too. ``` pacman -Qi local/mesa ``` ``` Install Date : jeu. 06 juin 2024 20:35:30 ``` ``` pacman -Qi appflowy-bin ``` ``` Install Date : jeu. 06 juin 2024 21:09:35 ```
Author
Owner

@b-quentin commented on GitHub (Jun 11, 2024):

I downgraded this package but the problem persists

local/lib32-mesa 1:24.0.7-3
    Open-source OpenGL drivers - 32-bit
local/libva-mesa-driver 1:24.0.7-3
    Open-source VA-API drivers
local/mesa 1:24.0.7-3
    Open-source OpenGL drivers
<!-- gh-comment-id:2161463924 --> @b-quentin commented on GitHub (Jun 11, 2024): I downgraded this package but the problem persists ``` local/lib32-mesa 1:24.0.7-3 Open-source OpenGL drivers - 32-bit local/libva-mesa-driver 1:24.0.7-3 Open-source VA-API drivers local/mesa 1:24.0.7-3 Open-source OpenGL drivers ```
Author
Owner

@emmggi commented on GitHub (Jun 12, 2024):

Downgrading to 23.1.1-1 (and rebooting) which was what I had before the upgrade, doesn't do any good either.

<!-- gh-comment-id:2162347574 --> @emmggi commented on GitHub (Jun 12, 2024): Downgrading to 23.1.1-1 (and rebooting) which was what I had before the upgrade, doesn't do any good either.
Author
Owner

@Thrilleratplay commented on GitHub (Jun 12, 2024):

I incorrectly thought I did not have Mesa installed (updated above), but have 21.3.9 installed. This has not changed for me since January. There may also be an issue with the latest Mesa version but it does not seem to be the only cause.

<!-- gh-comment-id:2162750398 --> @Thrilleratplay commented on GitHub (Jun 12, 2024): I incorrectly thought I did not have Mesa installed (updated above), but have 21.3.9 installed. This has not changed for me since January. There may also be an issue with the latest Mesa version but it does not seem to be the only cause.
Author
Owner

@b-quentin commented on GitHub (Jun 12, 2024):

I tested with rofy with the terminal, I have the same problem but I was able to obtain logs

$ /tmp rofi -show drun -debug > with_rofi.log

(process:22792): Modes.Window-WARNING **: 21:36:25.616: Unsupported window field name :role. Wayland window switcher supports only 'title' and 'app-id' ('class') fields

(process:22792): Modes.Window-WARNING **: 21:36:25.616: Unsupported window field name :name. Wayland window switcher supports only 'title' and 'app-id' ('class') fields

(process:22792): Modes.Window-WARNING **: 21:36:25.616: Unsupported window field name :desktop. Wayland window switcher supports only 'title' and 'app-id' ('class') fields

(process:22792): Helpers.IconFetcher-WARNING **: 21:36:25.642: Failed to load image: |network.cycles.wdisplays| 23 23 Failed to open file “network.cycles.wdisplays”: No such file or directory ((nil))
$ /tmp
** (AppFlowy:22808): WARNING **: 21:36:27.885: Failed to link program: error: fragment shader lacks `main'
<!-- gh-comment-id:2163771610 --> @b-quentin commented on GitHub (Jun 12, 2024): I tested with rofy with the terminal, I have the same problem but I was able to obtain logs ``` $ /tmp rofi -show drun -debug > with_rofi.log (process:22792): Modes.Window-WARNING **: 21:36:25.616: Unsupported window field name :role. Wayland window switcher supports only 'title' and 'app-id' ('class') fields (process:22792): Modes.Window-WARNING **: 21:36:25.616: Unsupported window field name :name. Wayland window switcher supports only 'title' and 'app-id' ('class') fields (process:22792): Modes.Window-WARNING **: 21:36:25.616: Unsupported window field name :desktop. Wayland window switcher supports only 'title' and 'app-id' ('class') fields (process:22792): Helpers.IconFetcher-WARNING **: 21:36:25.642: Failed to load image: |network.cycles.wdisplays| 23 23 Failed to open file “network.cycles.wdisplays”: No such file or directory ((nil)) $ /tmp ** (AppFlowy:22808): WARNING **: 21:36:27.885: Failed to link program: error: fragment shader lacks `main' ```
Author
Owner

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

FYI, I have removed the env line from the .desktop file. It will be included in the upcoming version.

<!-- gh-comment-id:2175472653 --> @LucasXu0 commented on GitHub (Jun 18, 2024): FYI, I have removed the `env` line from the .desktop file. It will be included in the upcoming version.
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#2451
No description provided.