# Problem with й (\cyrishrt) in LuaLaTeX [closed]

Initially I've asked a different question, but digging up I've found a true reason.

The problem occurs when Cyrillic letter й is used with maths in another font in the same paragraph. Here is the minimal example:

\documentclass{minimal}
\usepackage{fontspec}
\setmainfont{Cambria}
\begin{document}
й $xy$
\end{document}


The compilation stops and the error is following:

error: ...s/MiKTeX 2.9
/tex/luatex/luaotfload/otfl-node-inj.lua:225: attempt to index local 'tm' (a nil
value)
.
\newpage ...k \@nobreakfalse \everypar {}\fi \par
\vfil \penalty -\@M
l.6 \end{document}


When they are in different paragraphs e.g. the document body is

\begin{document}
й

$xy$
\end{document}


then there is no problem. Also there is no problem as well if I use the same math font e.g. with

\usepackage{unicode-math}
\setmathfont{Cambria Math}


But still the compilation stops if I use a symbol from a different font (e.g. \Box from amssymb).

UPD: I get the same problem with other accented letters, not only Cyrillic: à, ѓ, ё, ї, ќ, ў etc, except i.

UPD2: Happens only with Cambria.

-

## closed as too localized by egreg, Joseph Wright♦Jan 20 '12 at 13:18

This question is unlikely to help any future visitors; it is only relevant to a small geographic area, a specific moment in time, or an extraordinarily narrow situation that is not generally applicable to the worldwide audience of the internet. For help making this question more broadly applicable, visit the help center.If this question can be reworded to fit the rules in the help center, please edit the question.

It doesn't happen to me, but I don't have Cambria and so I've used a different font. Does it happen with another font than Cambria to you? –  egreg Jan 14 '12 at 12:06
Thanks for pointing. It happens only with Cambria indeed. –  Georgiy Jan 14 '12 at 12:27
luaotfload bug, report it. –  Khaled Hosny Jan 14 '12 at 12:48
Thanks Khaled, reported. –  Georgiy Jan 14 '12 at 13:21
I have the Cambria font, and I don't experience the problem you're reporting. My setup: MacOSX Lion 10.7.2, MacTeX2011 with all the latest patches, Microsoft's Cambria .ttf files with file date 1 June 2010. –  Mico Jan 14 '12 at 17:24