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

[BUG] Noto font missing, unicode chars displayed as garbage #52

Closed
1 task done
James4Ever0 opened this issue May 27, 2024 · 9 comments
Closed
1 task done

[BUG] Noto font missing, unicode chars displayed as garbage #52

James4Ever0 opened this issue May 27, 2024 · 9 comments

Comments

@James4Ever0
Copy link

Is there an existing issue for this?

  • I have searched the existing issues

Current Behavior

Cannot view any website with unicode chacters. Only ASCII chars are displayed.

Expected Behavior

All unicode characters shall be displayed.

Steps To Reproduce

Just spin up the environment and visit Baidu

Environment

- OS: macOS 12.5
- How docker service was installed: through Docker.app

CPU architecture

arm64

Docker creation

docker pull linuxserver/firefox
docker run -d --name firefox_browser --rm --expose 3000:3000 linuxserver/firefox

Container logs

[migrations] started
[migrations] no migrations found
usermod: no changes
───────────────────────────────────────

      ██╗     ███████╗██╗ ██████╗
      ██║     ██╔════╝██║██╔═══██╗
      ██║     ███████╗██║██║   ██║
      ██║     ╚════██║██║██║   ██║
      ███████╗███████║██║╚██████╔╝
      ╚══════╝╚══════╝╚═╝ ╚═════╝

   Brought to you by linuxserver.io
───────────────────────────────────────

To support LSIO projects visit:
https://www.linuxserver.io/donate/

───────────────────────────────────────
GID/UID
───────────────────────────────────────

User UID:    911
User GID:    911
───────────────────────────────────────
.+..+...+....+...+..+++++++++++++++++++++++++++++++++++++++*.......+++++++++++++++++++++++++++++++++++++++*................+...+....+...+...........+.+.........+......+..................+...+..+..........+..+....+...........+.+..+...............+.+.................+.......+.....+......+.+........+.+..+....+.....+.+..+...+..........+...+.........+.....+.......+.........+......+...+......+.....+....+.....++++++
.......+............+.........+.+++++++++++++++++++++++++++++++++++++++*..+.+........+.+.........+..+...+.......+........+...+....+........+.......+...+........+.........+....+....................+.+......+...+...........+.+..+.......+..................+..+...+.......+...+...+...+..+...+++++++++++++++++++++++++++++++++++++++*...+.....+...+.............+.....+.......+...+.....+.......++++++
-----
[custom-init] No custom files found, skipping...
[ls.io-init] done.
_XSERVTransmkdir: ERROR: euid != 0,directory /tmp/.X11-unix will not be created.

Xvnc KasmVNC 1.2.0 - built May 23 2024 12:36:07
Copyright (C) 1999-2018 KasmVNC Team and many others (see README.me)
See http://kasmweb.com for information on KasmVNC.
Underlying X server release 12014000, The X.Org Foundation

Obt-Message: Xinerama extension is not present on the server
MESA: error: ZINK: vkCreateInstance failed (VK_ERROR_INCOMPATIBLE_DRIVER)
glx: failed to create drisw screen
 2024-05-27 05:50:21,163 [INFO] websocket 0: got client connection from 127.0.0.1
 2024-05-27 05:50:21,186 [PRIO] Connections: accepted: @192.168.65.1_1716789021.166932::websocket
MESA: error: ZINK: vkCreateInstance failed (VK_ERROR_INCOMPATIBLE_DRIVER)
libEGL warning: egl: failed to create dri2 screen
[Parent 277, Main Thread] WARNING: Failed to create DBus proxy for org.freedesktop.UPower: Could not connect: No such file or directory
: 'glib warning', file /home/buildozer/aports/community/firefox/src/firefox-126.0/toolkit/xre/nsSigHandlers.cpp:187

** (firefox:277): WARNING **: 05:51:10.532: Failed to create DBus proxy for org.freedesktop.UPower: Could not connect: No such file or directory

Killed
Exiting due to channel error.
Exiting due to channel error.
Exiting due to channel error.
X connection to :1 broken (explicit kill or server shutdown).
Failure: Module initialization failed
_XSERVTransmkdir: Owner of /tmp/.X11-unix should be set to root

Xvnc KasmVNC 1.2.0 - built May 23 2024 12:36:07
Copyright (C) 1999-2018 KasmVNC Team and many others (see README.me)
See http://kasmweb.com for information on KasmVNC.
Underlying X server release 12014000, The X.Org Foundation

Obt-Message: Xinerama extension is not present on the server
MESA: error: ZINK: vkCreateInstance failed (VK_ERROR_INCOMPATIBLE_DRIVER)
glx: failed to create drisw screen
 2024-05-27 06:04:18,963 [INFO] websocket 0: got client connection from 127.0.0.1
 2024-05-27 06:04:19,013 [PRIO] Connections: accepted: @192.168.65.1_1716789858.979553::websocket
Copy link

Thanks for opening your first issue here! Be sure to follow the relevant issue templates, or risk having this issue marked as invalid.

@James4Ever0
Copy link
Author

James4Ever0 commented May 27, 2024

I believe there are more packages to install in the base image, to ensure basic multilingual accessibility, since this image is for running multiple daily GUI apps.

To illustrate this issue:

image

Issues related to this one: #14 #13 #17

@Roxedus
Copy link
Member

Roxedus commented May 27, 2024

https://github.com/linuxserver/docker-firefox#language-support---internationalization

@James4Ever0
Copy link
Author

James4Ever0 commented May 27, 2024

https://github.com/linuxserver/docker-firefox#language-support---internationalization

Looks promising. I will try these and see if the problem resolved.

@James4Ever0
Copy link
Author

James4Ever0 commented May 27, 2024

The log shows it failed to download the package from the default source. Is it possible to override the source URL with just environment variables?

[mod-init] Running Docker Modification Logic
[mod-init] Adding linuxserver/mods:universal-package-install to container
[mod-init] Downloading linuxserver/mods:universal-package-install from lscr.io
[mod-init] Installing linuxserver/mods:universal-package-install
[mod-init] linuxserver/mods:universal-package-install applied to container
[migrations] started
[migrations] no migrations found
usermod: no changes
───────────────────────────────────────

      ██╗     ███████╗██╗ ██████╗
      ██║     ██╔════╝██║██╔═══██╗
      ██║     ███████╗██║██║   ██║
      ██║     ╚════██║██║██║   ██║
      ███████╗███████║██║╚██████╔╝
      ╚══════╝╚══════╝╚═╝ ╚═════╝

   Brought to you by linuxserver.io
───────────────────────────────────────

To support LSIO projects visit:
https://www.linuxserver.io/donate/

───────────────────────────────────────
GID/UID
───────────────────────────────────────

User UID:    911
User GID:    911
───────────────────────────────────────
.....+..+++++++++++++++++++++++++++++++++++++++*.........+.........+...+++++++++++++++++++++++++++++++++++++++*..+........+.+...........+...+...+...+....+..+...............+.+..+.++++++
...............+..+...+++++++++++++++++++++++++++++++++++++++*..+......+.....+....+........+....+.....+...+......+++++++++++++++++++++++++++++++++++++++*...+.....+.........+.+...+......+..+.........+......+....+.....+......+.......+.....+.+.........+..+...+.......+......+.....+..........+..+...+....+...+...+...+..+...+..........+.....................+........+.......+...+......+...............+...........+.........+......+....+..+.......+..+...+.+...............+.....+.+...............+...+.....+............+...+...+....+........+...+....+...........++++++
-----
**** Adding font-noto-cjk to OS package install list ****
[pkg-install-init] **** Installing all mod packages ****
fetch http://dl-cdn.alpinelinux.org/alpine/v3.20/main/aarch64/APKINDEX.tar.gz
fetch http://dl-cdn.alpinelinux.org/alpine/v3.20/community/aarch64/APKINDEX.tar.gz
(1/1) Installing font-noto-cjk (0_git20220127-r1)
ERROR: font-noto-cjk-0_git20220127-r1: operation timed out
1 error; 1133 MiB in 363 packages
[custom-init] No custom files found, skipping...
[ls.io-init] done.
_XSERVTransmkdir: ERROR: euid != 0,directory /tmp/.X11-unix will not be created.

Xvnc KasmVNC 1.2.0 - built May 23 2024 12:36:07
Copyright (C) 1999-2018 KasmVNC Team and many others (see README.me)
See http://kasmweb.com for information on KasmVNC.
Underlying X server release 12014000, The X.Org Foundation

Obt-Message: Xinerama extension is not present on the server
MESA: error: ZINK: vkCreateInstance failed (VK_ERROR_INCOMPATIBLE_DRIVER)
glx: failed to create drisw screen

@James4Ever0
Copy link
Author

James4Ever0 commented May 27, 2024

Additionally I found several quick alternatives:

# configure `/System/Library/Fonts` to be available in Docker.app first then run this command
docker run -v /System/Library/Fonts:/usr/share/fonts:ro --name firefox_browser -d --rm -p 3000:3000 linuxserver/firefox
 
# Ubuntu and other Linux
docker run -v /usr/share/fonts:/usr/share/fonts:ro --name firefox_browser -d --rm -p 3000:3000 linuxserver/firefox
image

@LinuxServer-CI
Copy link
Contributor

This issue has been automatically marked as stale because it has not had recent activity. This might be due to missing feedback from OP. It will be closed if no further activity occurs. Thank you for your contributions.

@thelamer
Copy link
Member

thelamer commented Jul 7, 2024

Closing this is clearly laid out in the readme and we will not be including a font package larger than the whole container layer by default.
If you cannot install packages in the container you have dns/network issues.

@thelamer thelamer closed this as completed Jul 7, 2024
@LinuxServer-CI LinuxServer-CI moved this from Issues to Done in Issue & PR Tracker Jul 7, 2024
Copy link

github-actions bot commented Aug 7, 2024

This issue is locked due to inactivity

@github-actions github-actions bot locked as resolved and limited conversation to collaborators Aug 7, 2024
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
Development

No branches or pull requests

4 participants