the vesktop client is bugged on my system, it does launch but doesn’t load no matter what, trying to start it from the terminal outputs the following:
Vesktop v1.5.6
[arRPC > ipc] listening at /run/user/1000/discord-ipc-0
[arRPC > websocket] listening on 6463
[arRPC > process] started
[59578:0516/234322.269597:ERROR:gl_surface_presentation_helper.cc(260)] GetVSyncParametersIfAvailable() failed for 1 times!
[59578:0516/234323.713176:ERROR:gl_surface_presentation_helper.cc(260)] GetVSyncParametersIfAvailable() failed for 2 times!
[59578:0516/234324.812157:ERROR:gl_surface_presentation_helper.cc(260)] GetVSyncParametersIfAvailable() failed for 3 times!
I decided to look up on open issues on the nixpkgs github to see if this was something on me only and, seems that an issue (#382612) was open about Electron apps failing to launch around February 16 this year and a similar thing with vscode having an invisible window ( #404160) which seems to be the same issue.
is there any current workarounds for it to work or, just wait?
Try env ELECTRON_OZONE_PLATFORM_HINT=x11 vesktop
. This opens vesktop with xorg, fixes 95% of my errors with electron apps.
The GetVSyncParametersIfAvailable()
error could be related to this issue: [Bug]: GetVSyncParametersIfAvailable() failed for 1 times! · Issue #32760 · electron/electron · GitHub, try to disable hardware acceleration in vesktop settings.
This setting can be changed in ~/.config/vesktop/settings.json
by setting "hardwareAcceleration": false,
.
A third problem could be some corrupted state in vesktop. Rename the ~/.config/vesktop
folder to something like ~/.config/vesktop_old
and try starting vesktop again. If this does not work rename vesktop_old back to its original name.
1 Like
Removing ~/.config/vesktop
worked for me, thanks for the suggestion!
just for curiosity:
are there any possible cons of removing hardwareAcceleration? would it impact on performance/stability in some way?
Using hardwareAcceleration should typically speed up an application and might even result in less power consumption since we use specialized hardware to render an application. A lot of terminal Emulators for example kitty are very fast to render since they use hardwareAcceleration and offload the rendering from cpu to gpu. It tends to be error prone in general.
I just researched a bit and it seems for Electron hardwareAcceleration can slow an app down? I personally use it, and disable it on the first sign of error. I have not noticed a huge increase in performance and haven’t bench-marked it however.
disabling hardware acceleration didn’t do it but the third option worked thanks a lot!! (let’s hope it keeps on working)