Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Bug] Blank screen in 0.5.9 when loading with GDK_GL=gles #5497

Closed
Thrilleratplay opened this issue Jun 8, 2024 · 12 comments · Fixed by #5564
Closed

[Bug] Blank screen in 0.5.9 when loading with GDK_GL=gles #5497

Thrilleratplay opened this issue Jun 8, 2024 · 12 comments · Fixed by #5564

Comments

@Thrilleratplay
Copy link

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.

@emmggi
Copy link

emmggi commented 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.

@khorshuheng
Copy link

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

@Thrilleratplay
Copy link
Author

Thrilleratplay commented 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

@emmggi
Copy link

emmggi commented Jun 10, 2024

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

Yes. Mine is 24.1.1-1.

@imoize
Copy link

imoize commented Jun 10, 2024

same issue, related to mesa 24.1.1-1 ?

@LucasXu0
Copy link
Collaborator

LucasXu0 commented 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.

@b-quentin
Copy link

b-quentin commented 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

@b-quentin
Copy link

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

@emmggi
Copy link

emmggi commented 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.

@Thrilleratplay
Copy link
Author

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.

@b-quentin
Copy link

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'

@LucasXu0
Copy link
Collaborator

LucasXu0 commented Jun 18, 2024

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging a pull request may close this issue.

6 participants