You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When launching a fresh Logseq instance on this Ubuntu 22.04 machine, the text display of the left navigation menu is garbled.
Reproduce the Bug
Launch Logseq.
See the text garbled.
Expected Behavior
The text is not garbled.
Screenshots
Desktop Platform Information
Ubuntu 22.04, App, 0.8.10
Mobile Platform Information
No response
Additional Context
Thanks!
Reacted by Nick Sartor, Chris Coetzee, Geoffrey Bonneville, Jerry Ling, Carlos Eduardo Moreira dos Santos, John Doe, Mete, Calum Lind, Johnny and Jarod Liu
I can't reproduce this on my machine. @almereyda Could you please run Logseq with the --disable-gpu flag to check if that's a hardware acceleration issue?
One more piece of evidence that I just noticed and that may help debugging:
Turning on Bonofix Theme (installed via Marketplace) almost makes the problem go away. I can only see some small artifacts when hovering over the menu, but nothing permanent. Labels stay fully-readable.
I experienced the same issue with the 0.8.11 AppImage on linux. --disable-gpu also solves it for me. I do not have any default scaling set for my display.
EDIT After messing around with my drivers, it seems that when I switch from the on-demand nvidia PRIME profile to the nvidia (performance) profile, I am able to launch logseq without --disable-gpu and everything looks fine.
prime-select query shows on-demand -> garbled menus unless I use --disable-gpu
sudo prime-select nvidia then reboot and prime-select query shows nvidia -> menus not garbled regardless of --disable-gpu.
So maybe an issue related to the i915 intel gpu driver?
Since users reported it working in 0.8.8 I took it upon myself to do the tedious task of git biset and found that commit 7d3ed2b from merging #6926 resulted in triggering the problem in the sidebar and settings menu:
Reverting the changes relating to opacity resolves the issue. I am unable to speculate on the actual issue since there likely is more going on that just the CSS opacity. There is still an upstream hardware acceleration bug with Intel graphics in Chromium/Electron but Logseq can work around it for now.
To revert to a working sidebar and settings menu I made the following changes with 0.8.9:
A bit more fiddling with the CSS and it seems like it's related to the SVG icons since if they are hidden the text is displayed normally. Also applying opacity directly to the elements can cause the SVG icons to be corrupted instead!
Anyway this is the custom.css required to display the text correctly (tested on 0.9.4) while keeping the intended opacity:
A bit more fiddling with the CSS and it seems like it's related to the SVG icons since if they are hidden the text is displayed normally. Also applying opacity directly to the elements can cause the SVG icons to be corrupted instead!
Anyway this is the custom.css required to display the text correctly (tested on 0.9.4) while keeping the intended opacity:
Activity
sprocketc commentedon Nov 7, 2022
Looks like a duplicate of #7153, reported for 0.8.9.
sprocketc commentedon Nov 7, 2022
I can't reproduce this on my machine. @almereyda Could you please run Logseq with the
--disable-gpuflag to check if that's a hardware acceleration issue?marcel-me commentedon Nov 16, 2022
@sprocketc No text glitches if I run logseq with
--disable-gpu.almereyda commentedon Nov 17, 2022
Same here when testing on the affected instance, where we find the text glitches disappearing when disabling the GPU.
wiraki commentedon Nov 23, 2022
Same here, on 0.8.11,
--disable-gpuremoves the garble.wiraki commentedon Nov 24, 2022
One more piece of evidence that I just noticed and that may help debugging:
Turning on Bonofix Theme (installed via Marketplace) almost makes the problem go away. I can only see some small artifacts when hovering over the menu, but nothing permanent. Labels stay fully-readable.
dantswain commentedon Nov 29, 2022
I experienced the same issue with the 0.8.11 AppImage on linux.
--disable-gpualso solves it for me. I do not have any default scaling set for my display.EDIT After messing around with my drivers, it seems that when I switch from the
on-demandnvidia PRIME profile to thenvidia(performance) profile, I am able to launch logseq without--disable-gpuand everything looks fine.prime-select queryshowson-demand-> garbled menus unless I use--disable-gpusudo prime-select nvidiathen reboot andprime-select queryshowsnvidia-> menus not garbled regardless of--disable-gpu.So maybe an issue related to the i915 intel gpu driver?
almereyda commentedon Dec 9, 2022
Would you know how we can debug this?
cnrpman commentedon Dec 22, 2022
https://www.reddit.com/r/logseq/comments/zd3f88/artifacts_in_the_menu/
cnrpman commentedon Dec 22, 2022
@almereyda It's an upstream issue.
Wonder if electron 20 can fix #7692
24 remaining items
Bad3r commentedon Apr 30, 2023
You can override the CSS in custom.css
sutram commentedon May 1, 2023
@Bad3r Appreciate it. I have never used custom.css. How do I override the opacity in custom.css with 0.9.4? Thank you!
Bad3r commentedon May 1, 2023
Just copy and paste the CSS there with the new value. It overrides the default app CSS.
cas-- commentedon May 1, 2023
A bit more fiddling with the CSS and it seems like it's related to the SVG icons since if they are hidden the text is displayed normally. Also applying opacity directly to the elements can cause the SVG icons to be corrupted instead!
Anyway this is the
custom.cssrequired to display the text correctly (tested on 0.9.4) while keeping the intended opacity:Note will need a custom.css for every graph.
Edit: Modified to reflect new finding regarding stacking context #9286 (comment)
sutram commentedon May 1, 2023
@cas-- Wow! I verified that it works with 0.9.4. Thanks for providing the CSS change
Bad3r commentedon May 1, 2023
You should submit a PR :D
fix: Garbled text in sidebar and dropdown menus on Linux
fix: Garbled text in sidebar and dropdown menus on Linux
fix: Garbled text in sidebar and dropdown menus on Linux
fix: Garbled text in sidebar and dropdown menus on Linux
logseq-cldwalker commentedon May 2, 2023
Can anyone who's observed this issue confirm that #9286 fixes the issue?
fix: Garbled text in sidebar and dropdown menus on Linux
fix: Garbled text in sidebar and dropdown menus on Linux