How do I resolve the "lualatex.exe assertion failed" popups? (I can on the Ignore tab to get out of it)
This beautiful solution, provided by Heiko Oberdiek, to the question How to typeset an isomorphism symbol ($\simeq$) with a long bar works perfectly under pdflatex, xelatex and previous release of lualatex. But under the latest release of lualatex (texlive 2016) it causes a popup message of assertion failure. The popup seems to occur at the statement
\sbox0{\lower1.9\dimen@\hbox{$\m@th#1\relbar\isomorphism@joinrel\relbar$}}%
MWE:%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
\documentclass{article}
\makeatletter
\newcommand*{\isomorphism}{%
\mathrel{%
\mathpalette\@isomorphism{}%
}%
}
\newcommand*{\@isomorphism}[2]{%
% Calculate the amount of moving \sim up as in \simeq
\sbox0{$#1\simeq$}%
\sbox2{$#1\sim$}%
\dimen@=\ht0 %
\advance\dimen@ by -\ht2 %
%----------------------------
% Compose the two symbols
%----------------------------
\sbox0{%
\lower1.9\dimen@\hbox{%
$\m@th#1\relbar\isomorphism@joinrel\relbar$%
}%
}%
\rlap{%
\hbox to \wd0{%
\hfill\raise\dimen@\hbox{$\m@th#1\sim$}\hfill
}%
}%
\copy0 %
}
\newcommand*{\isomorphism@joinrel}{%
\mathrel{%
\mkern-3.4mu %
\mkern-1mu %
\nonscript\mkern1mu %
}%
}
\makeatother
\begin{document}
\[ A \isomorphism B^{C \isomorphism D^{E \isomorphism F}} \]
\end{document}

\noscript+ kern in\mathrel{}without something else. So giving it something else fixes the problem. Or, rather, works around the problem. This should probably be reported if it looks like a bug i.e. if the original code is kosher. (Which it should be given its author ;).) – cfr Dec 12 '16 at 04:15