Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Flatpak] Lollypop not showing certain Japanese characters #139

Closed
rdrms opened this issue Apr 2, 2021 · 9 comments
Closed

[Flatpak] Lollypop not showing certain Japanese characters #139

rdrms opened this issue Apr 2, 2021 · 9 comments

Comments

@rdrms
Copy link

rdrms commented Apr 2, 2021

Hi all, been using the flatpak version of lollypop for a bit now and like it a lot! I'm having an issue where Japanese fonts appear as boxes, not all of them - artists appear correctly (one didn't, but that one had malformed tags), only things that don't appear correctly are song and album titles. I'm at a loss as to why this happens.

For instance, this file:

Filename: /home/ryan/Storage/Music/Runa Miyoshida/美吉田 月 - Ska Flavor #2 【320K】 (2009.9.16)/03 やさしさに包まれたなら.mp3
Format: MPEG-1 Layer 3 - ID3v2.3
Size: 10.2 MB (9.7 MiB)
Length: 4:14
Bitrate: 320.0 kbps
Sample rate: 44100 Hz
Channels: Stereo

The artist appears correctly, but the song titles are all boxes.

Is there a font I need to install or something? I have fonts-takao-mincho installed (was installed by default on my distribution) and japanese fonts work flawlessly in other applications such as the terminal based mpd client ncmpcpp. I have allowed lollypop full access to the host filesystem. I've attached a screenshot of the two programs both displaying the same album, as you can see the English characters appear correctly but in lollypop it's just boxes for the Japanese characters.
Screenshot from 2021-04-01 18-08-27

OS Information: elementary OS "Odin" Development Preview, based on Ubuntu 20.04.x
Lollypop version: 1.4.18

@Eonfge
Copy link
Collaborator

Eonfge commented Apr 2, 2021

I'm not sure what and how. I've tried to reproduce the issue and I had this:

Screenshot from 2021-04-02 16-11-32
(Caveat Emptor, I have no idea what the characters mean)

Can you try install the following packages?

sudo apt install fonts-noto-cjk fonts-noto-cjk-extra

This should ensure that you have all the Ubuntu provided CJK fonts.

@rdrms
Copy link
Author

rdrms commented Apr 3, 2021

@Eonfge those two packages were installed by default by my distribution, and are now set to manually installed. It's really strange, because the PPA version of Lollypop displays song titles just fine, but the flatpak does not. Maybe it's not picking up on certain fonts in the system?

@Eonfge
Copy link
Collaborator

Eonfge commented Apr 8, 2021

Mmh. I've looked into it a bit more, and I think it's Flatpak related issue. Can you look at this issue and tell my if your fonts are installed in the right location:

flatpak/flatpak#924

I know too little about localization, and since it works on my machine, I fear that it's something Flatpak related or Ubuntu 20.04.

Wait, which flatpak version do you have? Can you do the following for me:

$ flatpak --version

@abderrahim
Copy link

I've noticed this too. IIRC, it used to work fine and just broke recently. I suspect it was either caused by the move to gnome 40, or by a recent update of gnome 40.

FTR, I'm using Debian sid, flatpak 1.10.2.

@Eonfge
Copy link
Collaborator

Eonfge commented Apr 28, 2021

I checked upstream and they have an issue about this dating back to Juli 2019...
https://gitlab.gnome.org/World/lollypop/-/issues/1906

Honestly, I think it's something about your setup since reproducing it has proven to be nigh-impossible. I'll give it another shot with Elementary OS 5.1, but it's a tough one to pin-point the responsibility.

@rdrms
Copy link
Author

rdrms commented Apr 28, 2021

I was running a prerelease version of elementary so it could have been misconfigured. I no longer run elementary and can no longer reproduce it so I'll close the issue.

@rdrms rdrms closed this as completed Apr 28, 2021
@rdrms
Copy link
Author

rdrms commented Apr 28, 2021

Oh shoot. Didn't realize it affects someone else. I'll reopen it and see if we can help the friend with Debian.

@rdrms rdrms reopened this Apr 28, 2021
@Eonfge
Copy link
Collaborator

Eonfge commented May 22, 2021

I've given it another shot but with no success:

Screenshot from 2021-05-22 08-42-42

On the left you can see my test-files, with different codecs and metadata, and on the right Lollypop. Only the .WMA test file is not displayed since I didn't include the non-free codecs in this test. Japanese characters are rendered properly though.

System used for testing:

DISTRIB_ID=elementary
DISTRIB_RELEASE=6
DISTRIB_CODENAME=odin
DISTRIB_DESCRIPTION="elementary OS 6 Early Access"
NAME="elementary OS"
VERSION="6 Early Access"
ID=elementary
ID_LIKE=ubuntu
PRETTY_NAME="elementary OS 6 Early Access"
LOGO=distributor-logo
VERSION_ID="6"
HOME_URL="https://elementary.io/"
DOCUMENTATION_URL="https://elementary.io/docs/learning-the-basics"
SUPPORT_URL="https://elementary.io/support"
BUG_REPORT_URL="https://github.com/elementary/os/issues/new"
PRIVACY_POLICY_URL="https://elementary.io/privacy-policy"
VERSION_CODENAME=odin
UBUNTU_CODENAME=focal

@Eonfge
Copy link
Collaborator

Eonfge commented Jan 26, 2022

I'm closing this until I have something to work with. If you can reproduce this issue

@Eonfge Eonfge closed this as completed Jan 26, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants