Gui distorted after sleek releases > v2.0.20
Bug Report
Affected: sleek versions > sleek-2.0.20
Platform: Linux (OpenSuse Tumbleweed/kde/wayland)
Installation Method: Direct Download
Expected Behavior: Texts, correct fonts
Actual Behavior: No texts, incorrect fonts
Steps to Reproduce:
- Install the latest sleek rpm for x86_64
- Start sleek
- Observe the unexpected behavior.
- Reverting back to sleek-2.0.20-linux-x86_64.rpm fixes the problem.
Screenshots:
In v20.0.21 we upgraded to Electron 38, might have to do something with this: https://github.com/electron/electron/issues/48298
Are you running Wayland? If so, could you check whether sleek is running on Wayland or on X11 (e.g. by using the xeyes tool) for both the broken and previous version?
Probably it's best for you to wait for our next release, when we're building with a (hopefully) fixed version of Electron 38.
I am running on Wayland as mentioned in the bug report. But it does not make a difference running in X11.
There are two lines I noticed in the output running sleek-2.0.21-linux-x86_64.appimage that do not appear when running sleek-2.0.20-linux-x86_64.appimage:
[101647:0926/231244.697415:ERROR:ui/gl/gl_surface_presentation_helper.cc:260] GetVSyncParametersIfAvailable() failed for 1 times!
and
[100696:0926/231020.081168:ERROR:ui/gfx/platform_font_skia.cc:258] Could not find any font: PT Sans, sans. Falling back to the default
So could it also be partly font related, as the font is incorrect and text is missing?
I have just set up a fresh Ubuntu VM and was not really able to reproduce this. sleek itself does not include any fonts and does not rely on PT Sans. Instead it is advised to use Helvetica or Arial and if both are not available, the next best sans-serif font. I don't want to exclude the fonts as the pitfall, but I believe it is not very likely.
I also don't see those error on my Ubuntu when running that file (I use the ARM64 file though, since I'm working on an old M1 macbook). I'm a bit puzzled.
I set up an OpenSuse Tumbleweed VM with KDE running Wayland, but I can't reproduce it as well. Can you try with this pre release version on your system? https://github.com/ransome1/sleek/releases/tag/v2.0.22-rc.1
The latest release candidate has the same issue.
My issue looks a lot like this one: https://github.com/ytmd-devs/ytmd/issues/3859. For good measure, I also updated my Slack app version to latest, and it now also has this crippled menu (rest is fine) and has the same font errorlog message. There must be some conflict between the new electron version and my setup. For now I will stick to v2.0.20.
@a-dekker it is likely to be connected to the latest Chromium, which is used by the current stable Electron build: https://issues.chromium.org/issues/442747781
As soon as Electron comes with an updated Chromium I will prepare another pre-release and will hope that this solves the issue on your end.
Could be a positive sign: the latest linux Slack electron base version (slack-4.46.99-0.1.el8.x86_64) works fine now.
@a-dekker the latest pre release of sleek also contains the latest version of Electron and I am curious, if this makes a difference on your machine: https://github.com/ransome1/sleek/releases/tag/v2.0.22-rc.2
Unfortunately, the same issue is still present.
@a-dekker I havnt really spend a lot of time on this issue, actually I only kept Electron updated in the hopes, that this solves the issue on your end. I am about to release 2.0.22. If you like you can try out the latest pre-release before we release. It contains the latest Electron: https://github.com/ransome1/sleek/releases/tag/v2.0.22-rc.3
Thanks for keeping a watch on this issue. I also try the latest version every now and then, to see if OS updates have fixed anything. But RC.3 still has the same issue.
The tricky thing here is that I wouldn't know how to fix this since I cannot reproduce it :/