SpikeHD / Dorion

Tiny alternative Discord client with a smaller footprint, snappier startup, themes, plugins and more!
https://spikehd.github.io/projects/dorion/
GNU General Public License v3.0
574 stars 18 forks source link

[Bug] AcceleratedSurfaceDMABuf was unable to construct a complete framebuffer #237

Closed SuperMeepBoy closed 3 months ago

SuperMeepBoy commented 3 months ago

Describe the bug The app is a grey screen, nothing loads. When I run it from my terminal I get AcceleratedSurfaceDMABuf was unable to construct a complete framebuffer

To Reproduce Steps to reproduce the behavior: start the app

Expected behavior The app starts with components showing to log in, start chatting, etc.

System Info (please complete the following information):

SpikeHD commented 3 months ago

Looks like there is a related upstream issue, try doing this fix mentioned in this comment

SuperMeepBoy commented 3 months ago

Adding it in /etc/environment did not fix it. But running the command with WEBKIT_DISABLE_DMABUF_RENDERER=1 as a prefix did work tho.

I guess I'll have to check an alternative for /etc/environment.

SpikeHD commented 3 months ago

Glad that works! I'll see if I can find an easy way to detect GPU vendor and set the env var accordingly within Dorion itself

SpikeHD commented 3 months ago

This should hopefully be fixed in f8ef9af, feel free to try an Actions build or just wait til the next release. If it still doesn't work lemme know 👍

SuperMeepBoy commented 3 months ago

Adding a comment for people like me who wonder why it does not work after adding WEBKIT_DISABLE_DMABUF_RENDERER=1 in /etc/environment, I had to reboot my computer ! :)

goyalyashpal commented 2 months ago

running the command with WEBKIT_DISABLE_DMABUF_RENDERER=1 as a prefix did work tho. - @ SuperMeepBoy at https://github.com/SpikeHD/Dorion/issues/237#issuecomment-2155586392

thanks a lot for this.

how can this be set up in nixos?

SpikeHD commented 2 months ago

@goyalyashpal Assuming you are on an NVIDIA card (which iirc is where the problem lies), Dorion should properly automatically detect it and set the environment variable.

If you're still having the problem (as in, Dorion isn't detecting your GPU for some reason so you're getting the same issue), you can consult the NixOS documentation on env variables (that's all I can point you to though, I don't use Nix :P)

goyalyashpal commented 2 months ago

you can consult the NixOS documentation on env variables

thanks a lot 😇😇

Assuming you are on an NVIDIA card (which iirc is where the problem lies)

wowww, so root of 90-99% of the problems i am facing in linux is due to nvidia 😂😂

its kinda amazing to me 😄

Dorion should properly automatically detect it and set the environment variable

i ran it via nix-shell -p whatsapp-for-linux which runs the apps in an isolated environment. i think maybe doing proper install will allow the app to set those.

i will try that a bit later. would u need an update on this?

SpikeHD commented 2 months ago

would u need an update on this?

It wouldn't hurt to leave one here for other NixOS users. I don't use Nix nor do I maintain the Dorion Nix package, so it won't be helpful to me specifically, but I'm sure it would help other users that may come across this!

goyalyashpal commented 1 month ago

Dorion should properly automatically detect it and set the environment variable. - @ SpikeHD at https://github.com/SpikeHD/Dorion/issues/237#issuecomment-2265965363

i think that would have to be specified in the .nix file for the wfl package; otherwise the conventional methods of env-var setting likely don't work in nixos as far as i understand it.

so,

  # Did NOT work
  # home.sessionVariables = {
  #   WEBKIT_DISABLE_DMABUF_RENDERER = "1";  
  # };
  environment.variables = {
    WEBKIT_DISABLE_DMABUF_RENDERER = "1";
  };