nixpkgs icon indicating copy to clipboard operation
nixpkgs copied to clipboard

Brave: Some text is not rendering

Open Wlnfr opened this issue 1 year ago • 10 comments

Nixpkgs version

  • Stable (25.05)

Describe the bug

As per title, some text, specifically japanese, chinese and korean characters, do not render at all, regardless of website. This happened after updating brave to 1.84.132.

Steps to reproduce

  1. Open brave
  2. Open https://en.wikipedia.org/wiki/Japanese_Wikipedia
  3. See that japanese characters are invisible

Expected behaviour

Characters render correctly instead of being invisible

Screenshots

Image Image

Relevant log output


Additional context

I have tried running it as another user, which led to same behavior, so it's not a user configuration. Just to be sure, I also started up a NixOS VM and only installed brave there and was able to reproduce the bug. Just in case it is relevant, I'm running KDE Plasma 6.

I think it might be a dependency issue(don't quote me on that though), since official brave flatpak works as intended. As does the official .deb package that I installed in Linux Mint VM. Though I did find this issue on brave github, which might be the same issue, but OP there is using Arch.

System metadata

  • system: "x86_64-linux"
  • host os: Linux 6.12.56, NixOS, 25.05 (Warbler), 25.05.812242.3de8f8d73e35
  • multi-user?: yes
  • sandbox: yes
  • version: nix-env (Nix) 2.28.5
  • channels(root): "nixos-25.05"
  • nixpkgs: /nix/store/yzr20m248p468rli3qs426pvbjfm6mam-nixos-25.05/nixos

Notify maintainers

@uskudnik @rht @JeffLabonte @nasirhm @buckley310 @matteo-pacini


Note for maintainers: Please tag this issue in your pull request description. (i.e. Resolves #ISSUE.)

I assert that this issue is relevant for Nixpkgs

Is this issue important to you?

Add a :+1: reaction to issues you find important.

Wlnfr avatar Nov 06 '25 12:11 Wlnfr

Maybe this is a Chromium issue. I experience the same since yesterday after upgrading google chrome:

141.0.7390.122 -> 142.0.7444.59

(Look at the tab-titles, google-chrome 142.0.7444.59 on the left, Firefox on the right)

Image

BerriJ avatar Nov 06 '25 13:11 BerriJ

If it affects google chrome too, maybe chromium has a new dependency? Or a new version of existing dependencies broke something. Since if it was an actual chromium bug, I would expect that brave flatpak and .deb(on Mint) would have broken rendering too

Wlnfr avatar Nov 06 '25 15:11 Wlnfr

I would expect that brave flatpak and .deb(on Mint) would have broken rendering too

I've just tested Chromium version 142.0.7444.162 from flathub.

flatpak install flathub org.chromium.Chromium
flatpak run org.chromium.Chromium

Can confirm that there are indeed issues with rendering the text.

Image

nikableh avatar Nov 14 '25 13:11 nikableh

FYI, this seems to be the relevant upstream issue for problem — https://issues.chromium.org/issues/459848497.

nikableh avatar Nov 14 '25 14:11 nikableh

I have such a problem on Chromium 144.0.7559.96 on NixOS.

When you take a character like 中 and paste it in the URL bar, does it show up there? For me it's invisible even in the URL bar.

nh2 avatar Jan 31 '26 22:01 nh2

Hm, /nix/store/dqc7wm0a797frqqsndka9q3dif77nhsj-chromium-144.0.7559.109/bin/chromium-browser --user-data-dir=/tmp/chrome-debug --no-first-run shows the characters on Ubuntu but not my NixOS 25.11, suggesting it is indeed some system font problem.

nh2 avatar Jan 31 '26 22:01 nh2

In NixOS, I could fix the issue in my chromium by installing noto-fonts-cjk-sans:

    fonts.packages = with pkgs; [
      noto-fonts-cjk-sans # fixes e.g. Chinese characters being invisible in chromium
    ];

I still wonder why this is newly necessary, and wasn't necessary before.

nh2 avatar Feb 01 '26 00:02 nh2

Related: https://github.com/NixOS/nixpkgs/issues/463615

sifmelcara avatar Feb 13 '26 08:02 sifmelcara

Seems this issue is now traveling into various apps. teams-for-linux is now also affected (Since version 2.7.0 -> The last working version is 2.6.19). I'll open up an issue in teams-for-linux.

BerriJ avatar Feb 13 '26 08:02 BerriJ

This should be fixed now by https://github.com/NixOS/nixpkgs/pull/521738. Please reopen if the issue still exists.

BerriJ avatar Jun 15 '26 06:06 BerriJ