LyX 2.3 and 2.4 have troubles displaying EPS images
Thibaut Cuvelier
tcuvelier at lyx.org
Wed Feb 9 01:06:17 UTC 2022
Dear list,
A friend of mine noticed that LyX 2.3 has problems displaying the attached
EPS file. All other EPS images can be previewed within LyX without any
problem. All EPS files are displayed correctly in the PDF (produced by
pdflatex). I can reproduce this issue with LyX 2.3.6.1. Both of us are
using Windows x64 (Windows 8 for her, Windows 10 for me). LyX shows the
following error message (within the preview box):
Error converting to loadable format
This EPS is quite large (almost 40 MB). All the other EPS files for the LyX
documents are at most 2 MB (and they all display correctly). It was
generated with Photoshop (which certainly explains the size).
Here is the way paths are configured (my MikTeX installation is totally up
to date):
[image: image.png]
C:\Users\Thibaut\AppData\Local\Programs\MiKTeX\miktex\bin\x64;$LyXDir\bin;$LyXDir\Python;$LyXDir\Python\Lib;$LyXDir\imagemagick;$LyXDir\ghostscript\bin
Here is the relevant part of the LyX document (with text edited for
brevity):
\begin_layout Standard
\begin_inset Float figure
placement t!
wide false
sideways false
status open
\begin_layout Plain Layout
\align center
\begin_inset Graphics
filename graphics/undisplayable.eps
width 60line%
\end_inset
\begin_inset Caption Standard
\begin_layout Plain Layout
Caption
\end_layout
\end_inset
\end_layout
\end_inset
\end_layout
With the same document as hers, with the development version of LyX,
however, I get more problems with previewing any image: they all show "
Error converting to loadable format", be they EPS or PDF. I thought it
could be a problem of paths, but they are configured in the same way as my
LyX 2.3 installation (with the exception of LilyPond -- removing it does
change anything).
C:\Users\Thibaut\AppData\Local\Programs\MiKTeX\miktex\bin\x64;$LyXDir\bin;$LyXDir\Python;$LyXDir\Python\Lib;$LyXDir\imagemagick;$LyXDir\ghostscript\bin;C:\Program
Files (x86)\LilyPond\usr\bin
[image: image.png]
The console output doesn't say anything about the issue, it mostly
complains that it cannot find Git:
D:\LyX\lyx-unstable\cmake-build-debug\bin\LyX.exe
DirectWrite: CreateFontFaceFromHDC() failed (Indicates an error in an input
file such as a font file.) for QFontDef(Fami
ly="Times New Roman", pointsize=8, pixelsize=11, styleHint=1, weight=50,
stretch=100, hintingPreference=0) LOGFONT("seri
f", lfWidth=0, lfHeight=-11) dpi=144
DirectWrite: CreateFontFaceFromHDC() failed (Indicates an error in an input
file such as a font file.) for QFontDef(Fami
ly="Arial", pointsize=8, pixelsize=11, styleHint=0, weight=50, stretch=100,
hintingPreference=0) LOGFONT("sans", lfWidth
=0, lfHeight=-11) dpi=144
RunCommand: could not terminate child process: Invalid argument
RunCommand: could not terminate child process: Invalid argument
support\Systemcall.cpp (268): Systemcall: 'git ls-files
"undisplayable.lyx"' did not start!
support\Systemcall.cpp (269): error The process failed to start. Either the
invoked program is missing, or you may have
insufficient permissions to invoke the program.
DirectWrite: CreateFontFaceFromHDC() failed (Indicates an error in an input
file such as a font file.) for QFontDef(Fami
ly="8514oem", pointsize=15, pixelsize=20, styleHint=5, weight=50,
stretch=100, hintingPreference=0) LOGFONT("8514oem", l
fWidth=0, lfHeight=-20) dpi=144
DirectWrite: CreateFontFaceFromHDC() failed (A font file could not be
opened because the file, directory, network locati
on, drive, or other storage location does not exist or is unavailable.) for
QFontDef(Family="Adobe Devanagari", pointsiz
e=15, pixelsize=20, styleHint=5, weight=50, stretch=100,
hintingPreference=0) LOGFONT("Adobe Devanagari", lfWidth=0, lfH
eight=-20) dpi=144
DirectWrite: CreateFontFaceFromHDC() failed (A font file could not be
opened because the file, directory, network locati
on, drive, or other storage location does not exist or is unavailable.) for
QFontDef(Family="Adobe Devanagari", pointsiz
e=7.5, pixelsize=10, styleHint=5, weight=50, stretch=100,
hintingPreference=0) LOGFONT("Adobe Devanagari", lfWidth=0, lf
Height=-10) dpi=144
DirectWrite: CreateFontFaceFromHDC() failed (A font file could not be
opened because the file, directory, network locati
on, drive, or other storage location does not exist or is unavailable.) for
QFontDef(Family="Adobe Devanagari", pointsiz
e=13.5, pixelsize=18, styleHint=5, weight=50, stretch=100,
hintingPreference=0) LOGFONT("Adobe Devanagari", lfWidth=0, l
fHeight=-18) dpi=144
support\Systemcall.cpp (268): Systemcall: 'git ls-files
"undisplayable.lyx"' did not start!
support\Systemcall.cpp (269): error The process failed to start. Either the
invoked program is missing, or you may have
insufficient permissions to invoke the program.
ForkedProcess::kill(0)
support\kill.cpp (37): kill OpenProcess failed!
qt.qpa.mime: Retrying to obtain clipboard.
support\Systemcall.cpp (268): Systemcall: 'git ls-files
"undisplayable.lyx"' did not start!
support\Systemcall.cpp (269): error The process failed to start. Either the
invoked program is missing, or you may have
insufficient permissions to invoke the program.
qt.qpa.mime: Retrying to obtain clipboard.
Do you have any trick to debug this further? For the LyX 2.3 issue, it
might be a timeout for large EPS; for 2.4, I have no idea.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.lyx.org/pipermail/lyx-devel/attachments/20220209/54dcb607/attachment-0001.html>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: image.png
Type: image/png
Size: 89733 bytes
Desc: not available
URL: <http://lists.lyx.org/pipermail/lyx-devel/attachments/20220209/54dcb607/attachment-0002.png>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: image.png
Type: image/png
Size: 72706 bytes
Desc: not available
URL: <http://lists.lyx.org/pipermail/lyx-devel/attachments/20220209/54dcb607/attachment-0003.png>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: undisplayable.7z
Type: application/7z
Size: 199564 bytes
Desc: not available
URL: <http://lists.lyx.org/pipermail/lyx-devel/attachments/20220209/54dcb607/attachment-0001.bin>
More information about the lyx-devel
mailing list