If I compile a TikZpicture with a Stealth arrow in LyX I receive some errors of this kind:
Missing character: There is no ... in font nullfont!
(which are considered only informational in TeXstudio).
Searching for the reason of the problem, I've added the code line suggested here by David Carisle and some strange "ptptptptptptpt" appear, but I can't understand where these chars come from.
The problem can be easily worked around with externalization but, since I'm becoming addicted to TEX.SE, I'd like to know if my code has an error.
\documentclass{book}
\usepackage[utf8]{inputenc}
\usepackage[british]{babel}
\pagenumbering{gobble}
% just for showing the error
\font\nullfont=cmr10
% tikz
\usepackage{tikz}
\usepackage{pgfplots}
\usetikzlibrary{shapes}
\usetikzlibrary{arrows}
\usetikzlibrary{arrows.meta}
\usetikzlibrary{calc, intersections}
\usetikzlibrary{positioning}
\pgfplotsset{compat=newest}
\usetikzlibrary{external}
\begin{document}
\begin{tikzpicture}
\begin{axis}[
axis lines=middle,
no markers,
ticks=none,
xmin=-4, xmax=7, ymin=0, ymax=4,
samples=300,
clip=false]
\node (coda) at (axis cs: 3, 2) {Why this?};
\node (punta) at (axis cs: 1, 1) {};
\draw [-{Stealth[scale=0.7]}] (coda) -- (punta);
\end{axis}
\end{tikzpicture}
\end{document}
I'm using LyX 2.2.1 and TeXstudio 2.11.0 with MiKTeX 2.9 distribution.
As requested by egreg, here is the file list:
*File List*
book.cls 2014/09/29 v1.4h Standard LaTeX document class
bk10.clo 2014/09/29 v1.4h Standard LaTeX file (size option)
inputenc.sty 2015/03/17 v1.2c Input encoding file
utf8.def 2016/02/28 v1.1s UTF-8 support for inputenc
t1enc.dfu 2016/02/28 v1.1s UTF-8 support for inputenc
ot1enc.dfu 2016/02/28 v1.1s UTF-8 support for inputenc
omsenc.dfu 2016/02/28 v1.1s UTF-8 support for inputenc
babel.sty 2016/04/23 3.9r The Babel package
bblopts.cfg 2005/09/08 v0.1 add Arabic and Farsi to "declared" options of b
abel
english.ldf 2012/08/20 v3.3p English support from the babel system
tikz.sty 2013/12/13 v3.0.0 (rcs-revision 1.142)
pgf.sty 2013/12/18 v3.0.0 (rcs-revision 1.14)
pgfrcs.sty 2013/12/20 v3.0.0 (rcs-revision 1.28)
everyshi.sty 2001/05/15 v3.00 EveryShipout Package (MS)
pgfrcs.code.tex
pgfcore.sty 2010/04/11 v3.0.0 (rcs-revision 1.7)
graphicx.sty 2014/10/28 v1.0g Enhanced LaTeX Graphics (DPC,SPQR)
keyval.sty 2014/10/28 v1.15 key=value parser (DPC)
graphics.sty 2016/07/10 v1.0t Standard LaTeX Graphics (DPC,SPQR)
trig.sty 2016/01/03 v1.10 sin cos tan (DPC)
graphics.cfg 2016/06/04 v1.11 sample graphics configuration
pdftex.def 2016/07/10 v0.06j Graphics/color for pdfTeX
infwarerr.sty 2016/05/16 v1.4 Providing info/warning/error messages (HO)
ltxcmds.sty 2016/05/16 v1.23 LaTeX kernel commands for general use (HO)
pgfsys.sty 2013/11/30 v3.0.0 (rcs-revision 1.47)
pgfsys.code.tex
pgfsyssoftpath.code.tex 2013/09/09 (rcs-revision 1.9)
pgfsysprotocol.code.tex 2006/10/16 (rcs-revision 1.4)
xcolor.sty 2016/05/11 v2.12 LaTeX color extensions (UK)
color.cfg 2016/01/02 v1.6 sample color configuration
pgfcore.code.tex
pgfcomp-version-0-65.sty 2007/07/03 v3.0.0 (rcs-revision 1.7)
pgfcomp-version-1-18.sty 2007/07/23 v3.0.0 (rcs-revision 1.1)
pgffor.sty 2013/12/13 v3.0.0 (rcs-revision 1.25)
pgfkeys.sty
pgfkeys.code.tex
pgfmath.sty
pgfmath.code.tex
pgffor.code.tex
tikz.code.tex
pgfplots.sty 2016/08/10 v1.14 Data Visualization (1.14)
pdftexcmds.sty 2016/05/21 v0.22 Utility functions of pdfTeX for LuaTeX (HO)
ifluatex.sty 2016/05/16 v1.4 Provides the ifluatex switch (HO)
ifpdf.sty 2016/05/14 v3.1 Provides the ifpdf switch
supp-pdf.mkii
epstopdf-base.sty 2016/05/15 v2.6 Base part for package epstopdf
grfext.sty 2016/05/16 v1.2 Manage graphics extensions (HO)
kvdefinekeys.sty 2016/05/16 v1.4 Define keys (HO)
kvoptions.sty 2016/05/16 v3.12 Key value format for package options (HO)
kvsetkeys.sty 2016/05/16 v1.17 Key value parser (HO)
etexcmds.sty 2016/05/16 v1.6 Avoid name clashes with e-TeX commands (HO)
***********

\font\nullfont=cmr10to see them. I've already updated MikTeX. LyX shows the first error in a pop-up, TeXstudio doesn't highlight these messages as errors or warnings but they are present in the log. Thank you! – CarLaTeX Sep 02 '16 at 07:05\nullfontin order to avoid spurious typesetting. If LyX makes those warnings into errors, you have two choices: either trying to see if this behavior can be turned off or giving up with LyX. The latter is the choice I recommend. – egreg Sep 02 '16 at 07:48\listfilesat the top of your document and show the output you get after compiling (what you find in the log file between*File list*and*******). – egreg Sep 02 '16 at 08:06