xelatex crashes with Ubuntu Mono and listings

Bug #970797 reported by Benoit Guillon
18
This bug affects 4 people
Affects Status Importance Assigned to Milestone
Ubuntu Font Family
New
Undecided
Unassigned

Bug Description

Xelatex fails when compiling the following code:

\documentclass{article}
\usepackage{fontspec}
\usepackage{xltxtra}
\setmainfont{Gentium}
\setsansfont{Linux Biolinum O}
\setmonofont{Ubuntu Mono}

\usepackage{fancybox}
\usepackage{makeidx}
\usepackage{listings}
\lstset{inputencoding=utf8x,%
        extendedchars=true}

\lstset{basicstyle=\ttfamily\small}

\setcounter{tocdepth}{3}
\setcounter{secnumdepth}{5}
\title{}
\author{}

\begin{document}

Some listing:

\begin{lstlisting}[firstnumber=1,]
 This tool
\end{lstlisting}

\end{document}

xetex outputs the following:
"""
** WARNING ** Invalid glyph name index number: 1305 (>= 1305)
** WARNING ** Invalid version 2.0 'post' table
** ERROR ** Could not obtain necessary font info.

Output file removed.
 )
Error 256 (driver return code) generating output;
file testchars.pdf may not be valid.
Transcript written on testchars.log.
"""

And no PDF is generated. For a bigger file, xelatex crashes (return code = 141) with the same printed warnings/error.

The problem occurs when Ubuntu Mono font is used *and* when listings is set with the following:

\lstset{basicstyle=\ttfamily\small}

When this setup is removed, it compiles.

The versions used:
$ xelatex -v
XeTeX 3.1415926-2.2-0.9995.2 (TeX Live 2009/Debian)
kpathsea version 5.0.0
Copyright 2009 SIL International and Jonathan Kew.
There is NO warranty. Redistribution of this software is
covered by the terms of both the XeTeX copyright and
the Lesser GNU General Public License.
For more information about these matters, see the file
named COPYING and the XeTeX source.
Primary author of XeTeX: Jonathan Kew.
Compiled with ICU version 3.8.1 [with modifications for XeTeX]
Compiled with zlib version 1.2.6; using 1.2.6
Compiled with FreeType2 version 2.4.8; using 2.4.8
Compiled with fontconfig version 2.8.0; using 2.8.0
Compiled with libpng version 1.2.46; using 1.2.47
Compiled with poppler version 0.16.7

Ubuntu font family version : 0.80

Revision history for this message
Christian Hintze (hintze) wrote :
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.