[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Bug#930292: texlive-luatex: lualatex uses huge memory for Noto CJK fonts



Package: texlive-luatex
Version: 2019.20190605-1
Severity: minor
Tags: upstream l10n

Dear Maintainer,

This report contains UTF-8 encoded text in the latex example.

lualatex uses 6 GB of real memory with a small input (see below)
when the Noto CJK fonts used in the first time.

This is an upstream issue, but I file it here by a suggestion
at https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=929128#61

A procedure to reproduce this is as follows:

1. Install the Noto CJK fonts, e.g. by apt-get install fonts-noto-cjk fonts-noto-cjk-extra

2. If one has already used the Noto CJK fonts by luatex, clear the cache by rm -rf $HOME/.texlive201?

3. Process the following file by lualatex

\documentclass{minimal}
\usepackage{fontspec}
\setmainfont{Noto Serif CJK JP}
\setsansfont{Noto Sans CJK JP}
\setmonofont{Noto Sans Mono CJK JP}
\begin{document}
\noindent
{日本語test \bfseries 日本語test}\\
{\sffamily 日本語test \bfseries 日本語test}\\
{\ttfamily 日本語test \bfseries 日本語test}
\end{document}

I believe that the same issue should arise with the Chinese and
the Korean texts, but have not verified it.

Noto CJK Super OTC font (everything is included in the single file)
does not increase the memory usage (= 6GB). Debian Noto CJK package
does not employ super OTC.

Best regards,
Ryutaroh Matsumoto

-- Package-specific info:
IMPORTANT INFORMATION: We will only consider bug reports concerning
the packaging of TeX Live as relevant. If you have problems with
combination of packages in a LaTeX document, please consult your
local TeX User Group, the comp.text.tex user group, the author of
the original .sty file, or any other help resource. 

In particular, bugs that are related to up-upstream, i.e., neither
Debian nor TeX Live (upstream), but the original package authors,
will be closed immediately.

   *** The Debian TeX Team is *not* a LaTeX Help Desk ***

If you report an error when running one of the TeX-related binaries 
(latex, pdftex, metafont,...), or if the bug is related to bad or wrong
output, please include a MINIMAL example input file that produces the
error in your report.

Please run your example with
	(pdf)latex -recorder ...
(or any other program that supports -recorder) and send us the generated
file with the extension .fls, it lists all the files loaded during
the run and can easily explain problems induced by outdated files in
your home directory.

Don't forget to also include minimal examples of other files that are 
needed, e.g. bibtex databases. Often it also helps
to include the logfile. Please, never send included pictures!

If your example file isn't short or produces more than one page of
output (except when multiple pages are needed to show the problem),
you can probably minimize it further. Instructions on how to do that
can be found at

http://www.minimalbeispiel.de/mini-en.html (english)

or 

http://www.minimalbeispiel.de/mini.html (german)

##################################
minimal input file


##################################
other files

######################################
 List of ls-R files

-rw-r--r-- 1 root root 2887 Jun 10 12:23 /var/lib/texmf/ls-R
lrwxrwxrwx 1 root root 29 Feb 28 23:28 /usr/share/texmf/ls-R -> /var/lib/texmf/ls-R-TEXMFMAIN
lrwxrwxrwx 1 root root 31 Jun  5 12:18 /usr/share/texlive/texmf-dist/ls-R -> /var/lib/texmf/ls-R-TEXLIVEDIST
lrwxrwxrwx 1 root root 31 Jun  5 12:18 /usr/share/texlive/texmf-dist/ls-R -> /var/lib/texmf/ls-R-TEXLIVEDIST
######################################
 Config files
-rw-r--r-- 1 root root 475 Apr 15 12:58 /etc/texmf/web2c/texmf.cnf
lrwxrwxrwx 1 root root 33 Jun  5 12:18 /usr/share/texmf/web2c/fmtutil.cnf -> /var/lib/texmf/fmtutil.cnf-DEBIAN
lrwxrwxrwx 1 root root 32 Jun  5 12:18 /usr/share/texmf/web2c/updmap.cfg -> /var/lib/texmf/updmap.cfg-DEBIAN
-rw-r--r-- 1 root root 5089 Jun 10 12:22 /var/lib/texmf/tex/generic/config/language.dat
######################################
 Files in /etc/texmf/web2c/
total 8
-rw-r--r-- 1 root root 283 Jan 17  2017 mktex.cnf
-rw-r--r-- 1 root root 475 Apr 15 12:58 texmf.cnf
######################################
 md5sums of texmf.d
ca40c66f144b4bafc3e59a2dd32ecb9c  /etc/texmf/texmf.d/00debian.cnf

-- System Information:
Debian Release: 10.0
  APT prefers testing
  APT policy: (990, 'testing'), (500, 'unstable'), (1, 'experimental')
Architecture: amd64 (x86_64)

Kernel: Linux 4.19.0-5-amd64 (SMP w/4 CPU cores)
Locale: LANG=ja_JP.UTF-8, LC_CTYPE=ja_JP.UTF-8 (charmap=UTF-8), LANGUAGE=ja_JP.UTF-8 (charmap=UTF-8)
Shell: /bin/sh linked to /bin/dash
Init: systemd (via /run/systemd/system)
LSM: AppArmor: enabled

Versions of packages texlive-luatex depends on:
ii  libjs-jquery      3.3.1~dfsg-3
ii  tex-common        6.11
ii  texlive-base      2019.20190605-1
ii  texlive-binaries  2019.20190605.51237-1

texlive-luatex recommends no packages.

texlive-luatex suggests no packages.

Versions of packages tex-common depends on:
ii  dpkg  1.19.7
ii  ucf   3.0038+nmu1

Versions of packages tex-common suggests:
pn  debhelper  <none>

Versions of packages texlive-luatex is related to:
ii  tex-common        6.11
ii  texlive-binaries  2019.20190605.51237-1

-- no debconf information


Reply to: