LyXpdfTeX error

Information and discussion about LyX, a WYSIWYM editor, available for Linux, Windows and Mac OS X systems.
Post Reply
chpopin
Posts: 1
Joined: Wed Mar 11, 2020 11:10 am

pdfTeX error

Post by chpopin »

Hello everyone,

I am new to LyX and I have encountered a problem. None of the example files are viewable in pdf format, and the builder returns the following error:

!pdfTeX error: pdflatex (file ./0_usr_share_lyx_images_buffer-view.pdf): reading image file failed

I am using LyX for Ubuntu 19.10 and tried running it as root. The only thing I see is that the ./0_usr_share_lyx_images_buffer-view.pdf file is always empty. Below I provide the full error log (however I can't work out how to have it displayed in LaTeX format). How can fix my issue?

Thanks.

This is pdfTeX, Version 3.14159265-2.6-1.40.20 (TeX Live 2019/Debian) (preloaded format=pdflatex 2020.3.11) 11 MAR 2020 12:14
entering extended mode
restricted \write18 enabled.
%&-line parsing enabled.
**Tutorial.tex
(./Tutorial.tex
LaTeX2e <2018-12-01>

(/usr/share/texlive/texmf-dist/tex/latex/base/book.cls
Document Class: book 2018/09/03 v1.4i Standard LaTeX document class
(/usr/share/texlive/texmf-dist/tex/latex/base/bk12.clo
File: bk12.clo 2018/09/03 v1.4i Standard LaTeX file (size option)
)
\c@part=\count80
\c@chapter=\count81
\c@section=\count82
\c@subsection=\count83
\c@subsubsection=\count84
\c@paragraph=\count85
\c@subparagraph=\count86
\c@figure=\count87
\c@table=\count88
\abovecaptionskip=\skip41
\belowcaptionskip=\skip42
\bibindent=\dimen102
) (/usr/share/texlive/texmf-dist/tex/latex/psnfss/mathpazo.sty
Package: mathpazo 2005/04/12 PSNFSS-v9.2a Palatino w/ Pazo Math (D.Puga, WaS)
\symupright=\mathgroup4
) (/usr/share/texlive/texmf-dist/tex/latex/psnfss/helvet.sty
Package: helvet 2005/04/12 PSNFSS-v9.2a (WaS)
(/usr/share/texlive/texmf-dist/tex/latex/graphics/keyval.sty
Package: keyval 2014/10/28 v1.15 key=value parser (DPC)
\KV@toks@=\toks14
)) (/usr/share/texlive/texmf-dist/tex/latex/psnfss/courier.sty
Package: courier 2005/04/12 PSNFSS-v9.2a (WaS)
) (/usr/share/texlive/texmf-dist/tex/latex/base/fontenc.sty
Package: fontenc 2018/08/11 v2.0j Standard LaTeX package
(/usr/share/texlive/texmf-dist/tex/latex/base/t1enc.def
File: t1enc.def 2018/08/11 v2.0j Standard LaTeX file
LaTeX Font Info: Redeclaring font encoding T1 on input line 48.
)) (/usr/share/texlive/texmf-dist/tex/latex/base/inputenc.sty
Package: inputenc 2018/08/11 v1.3c Input encoding file
\inpenc@prehook=\toks15
\inpenc@posthook=\toks16
(/usr/share/texlive/texmf-dist/tex/latex/base/latin9.def
File: latin9.def 2018/08/11 v1.3c Input encoding file
)) (/usr/share/texlive/texmf-dist/tex/latex/graphics/color.sty
Package: color 2016/07/10 v1.1e Standard LaTeX Color (DPC)
(/usr/share/texlive/texmf-dist/tex/latex/graphics-cfg/color.cfg
File: color.cfg 2016/01/02 v1.6 sample color configuration
)
Package color Info: Driver file: pdftex.def on input line 147.
(/usr/share/texlive/texmf-dist/tex/latex/graphics-def/pdftex.def
File: pdftex.def 2018/01/08 v1.0l Graphics/color driver for pdftex
)) (/usr/share/texlive/texmf-dist/tex/generic/babel/babel.sty
Package: babel 2019/06/03 3.32 The Babel package
(/usr/share/texlive/texmf-dist/tex/generic/babel/switch.def
File: switch.def 2019/06/03 3.32 Babel switching mechanism
) (/usr/share/texlive/texmf-dist/tex/generic/babel-english/english.ldf
Language: english 2017/06/06 v3.3r English support from the babel system
(/usr/share/texlive/texmf-dist/tex/generic/babel/babel.def
File: babel.def 2019/06/03 3.32 Babel common definitions
\babel@savecnt=\count89
\U@D=\dimen103
(/usr/share/texlive/texmf-dist/tex/generic/babel/txtbabel.def)
\bbl@dirlevel=\count90
)
\l@british = a dialect from \language\l@english
\l@UKenglish = a dialect from \language\l@english
\l@canadian = a dialect from \language\l@american
\l@australian = a dialect from \language\l@british
\l@newzealand = a dialect from \language\l@british
)) (/usr/share/texlive/texmf-dist/tex/latex/graphics/graphicx.sty
Package: graphicx 2017/06/01 v1.1a Enhanced LaTeX Graphics (DPC,SPQR)
(/usr/share/texlive/texmf-dist/tex/latex/graphics/graphics.sty
Package: graphics 2017/06/25 v1.2c Standard LaTeX Graphics (DPC,SPQR)
(/usr/share/texlive/texmf-dist/tex/latex/graphics/trig.sty
Package: trig 2016/01/03 v1.10 sin cos tan (DPC)
) (/usr/share/texlive/texmf-dist/tex/latex/graphics-cfg/graphics.cfg
File: graphics.cfg 2016/06/04 v1.11 sample graphics configuration
)
Package graphics Info: Driver file: pdftex.def on input line 99.
)
\Gin@req@height=\dimen104
\Gin@req@width=\dimen105
) (/usr/share/texlive/texmf-dist/tex/latex/esint/esint.sty
Package: esint
\symlargesymbolsA=\mathgroup5
) (/usr/share/texlive/texmf-dist/tex/latex/hyperref/hyperref.sty
Package: hyperref 2018/11/30 v6.88e Hypertext links for LaTeX
(/usr/share/texlive/texmf-dist/tex/generic/oberdiek/hobsub-hyperref.sty
Package: hobsub-hyperref 2016/05/16 v1.14 Bundle oberdiek, subset hyperref (HO)

(/usr/share/texlive/texmf-dist/tex/generic/oberdiek/hobsub-generic.sty
Package: hobsub-generic 2016/05/16 v1.14 Bundle oberdiek, subset generic (HO)
Package: hobsub 2016/05/16 v1.14 Construct package bundles (HO)
Package: infwarerr 2016/05/16 v1.4 Providing info/warning/error messages (HO)
Package: ltxcmds 2016/05/16 v1.23 LaTeX kernel commands for general use (HO)
Package: ifluatex 2016/05/16 v1.4 Provides the ifluatex switch (HO)
Package ifluatex Info: LuaTeX not detected.
Package: ifvtex 2016/05/16 v1.6 Detect VTeX and its facilities (HO)
Package ifvtex Info: VTeX not detected.
Package: intcalc 2016/05/16 v1.2 Expandable calculations with integers (HO)
Package: ifpdf 2018/09/07 v3.3 Provides the ifpdf switch
Package: etexcmds 2016/05/16 v1.6 Avoid name clashes with e-TeX commands (HO)
Package: kvsetkeys 2016/05/16 v1.17 Key value parser (HO)
Package: kvdefinekeys 2016/05/16 v1.4 Define keys (HO)
Package: pdftexcmds 2018/09/10 v0.29 Utility functions of pdfTeX for LuaTeX (HO
)
Package pdftexcmds Info: LuaTeX not detected.
Package pdftexcmds Info: \pdf@primitive is available.
Package pdftexcmds Info: \pdf@ifprimitive is available.
Package pdftexcmds Info: \pdfdraftmode found.
Package: pdfescape 2016/05/16 v1.14 Implements pdfTeX's escape features (HO)
Package: bigintcalc 2016/05/16 v1.4 Expandable calculations on big integers (HO
)
Package: bitset 2016/05/16 v1.2 Handle bit-vector datatype (HO)
Package: uniquecounter 2016/05/16 v1.3 Provide unlimited unique counter (HO)
)
Package hobsub Info: Skipping package `hobsub' (already loaded).
Package: letltxmacro 2016/05/16 v1.5 Let assignment for LaTeX macros (HO)
Package: hopatch 2016/05/16 v1.3 Wrapper for package hooks (HO)
Package: xcolor-patch 2016/05/16 xcolor patch
Package: atveryend 2016/05/16 v1.9 Hooks at the very end of document (HO)
Package atveryend Info: \enddocument detected (standard20110627).
Package: atbegshi 2016/06/09 v1.18 At begin shipout hook (HO)
Package: refcount 2016/05/16 v3.5 Data extraction from label references (HO)
Package: hycolor 2016/05/16 v1.8 Color options for hyperref/bookmark (HO)
) (/usr/share/texlive/texmf-dist/tex/generic/ifxetex/ifxetex.sty
Package: ifxetex 2010/09/12 v0.6 Provides ifxetex conditional
) (/usr/share/texlive/texmf-dist/tex/latex/oberdiek/auxhook.sty
Package: auxhook 2016/05/16 v1.4 Hooks for auxiliary files (HO)
) (/usr/share/texlive/texmf-dist/tex/latex/oberdiek/kvoptions.sty
Package: kvoptions 2016/05/16 v3.12 Key value format for package options (HO)
)
\@linkdim=\dimen106
\Hy@linkcounter=\count91
\Hy@pagecounter=\count92
(/usr/share/texlive/texmf-dist/tex/latex/hyperref/pd1enc.def
File: pd1enc.def 2018/11/30 v6.88e Hyperref: PDFDocEncoding definition (HO)
Now handling font encoding PD1 ...
... no UTF-8 mapping file for font encoding PD1
)
\Hy@SavedSpaceFactor=\count93
(/usr/share/texlive/texmf-dist/tex/latex/latexconfig/hyperref.cfg
File: hyperref.cfg 2002/06/06 v1.2 hyperref configuration of TeXLive
)
Package hyperref Info: Option `unicode' set `true' on input line 4393.
(/usr/share/texlive/texmf-dist/tex/latex/hyperref/puenc.def
File: puenc.def 2018/11/30 v6.88e Hyperref: PDF Unicode definition (HO)
Now handling font encoding PU ...
... no UTF-8 mapping file for font encoding PU
)
Package hyperref Info: Option `bookmarks' set `true' on input line 4393.
Package hyperref Info: Option `bookmarksnumbered' set `true' on input line 4393
.
Package hyperref Info: Option `bookmarksopen' set `true' on input line 4393.
Package hyperref Info: Option `breaklinks' set `true' on input line 4393.
Package hyperref Info: Option `colorlinks' set `true' on input line 4393.
Package hyperref Info: Hyper figures OFF on input line 4519.
Package hyperref Info: Link nesting OFF on input line 4524.
Package hyperref Info: Hyper index ON on input line 4527.
Package hyperref Info: Plain pages OFF on input line 4534.
Package hyperref Info: Backreferencing OFF on input line 4539.
Package hyperref Info: Implicit mode ON; LaTeX internals redefined.
Package hyperref Info: Bookmarks ON on input line 4772.
\c@Hy@tempcnt=\count94
(/usr/share/texlive/texmf-dist/tex/latex/url/url.sty
\Urlmuskip=\muskip10
Package: url 2013/09/16 ver 3.4 Verb mode for urls, etc.
)
LaTeX Info: Redefining \url on input line 5125.
\XeTeXLinkMargin=\dimen107
\Fld@menulength=\count95
\Field@Width=\dimen108
\Fld@charsize=\dimen109
Package hyperref Info: Hyper figures OFF on input line 6380.
Package hyperref Info: Link nesting OFF on input line 6385.
Package hyperref Info: Hyper index ON on input line 6388.
Package hyperref Info: backreferencing OFF on input line 6395.
Package hyperref Info: Link coloring ON on input line 6398.
Package hyperref Info: Link coloring with OCG OFF on input line 6405.
Package hyperref Info: PDF/A mode OFF on input line 6410.
LaTeX Info: Redefining \ref on input line 6450.
LaTeX Info: Redefining \pageref on input line 6454.
\Hy@abspage=\count96
\c@Item=\count97
\c@Hfootnote=\count98
)
Package hyperref Info: Driver: hpdftex.
(/usr/share/texlive/texmf-dist/tex/latex/hyperref/hpdftex.def
File: hpdftex.def 2018/11/30 v6.88e Hyperref driver for pdfTeX
\Fld@listcount=\count99
\c@bookmark@seq@number=\count100
(/usr/share/texlive/texmf-dist/tex/latex/oberdiek/rerunfilecheck.sty
Package: rerunfilecheck 2016/05/16 v1.8 Rerun checks for auxiliary files (HO)
Package uniquecounter Info: New unique counter `rerunfilecheck' on input line 2
82.
)
\Hy@SectionHShift=\skip43
)
Package hyperref Info: Option `pdfnewwindow' set `true' on input line 25.
Package hyperref Info: Option `plainpages' set `false' on input line 25.
(./Tutorial.aux)
\openout1 = `Tutorial.aux'.

LaTeX Font Info: Checking defaults for OML/cmm/m/it on input line 63.
LaTeX Font Info: ... okay on input line 63.
LaTeX Font Info: Checking defaults for T1/cmr/m/n on input line 63.
LaTeX Font Info: ... okay on input line 63.
LaTeX Font Info: Checking defaults for OT1/cmr/m/n on input line 63.
LaTeX Font Info: ... okay on input line 63.
LaTeX Font Info: Checking defaults for OMS/cmsy/m/n on input line 63.
LaTeX Font Info: ... okay on input line 63.
LaTeX Font Info: Checking defaults for OMX/cmex/m/n on input line 63.
LaTeX Font Info: ... okay on input line 63.
LaTeX Font Info: Checking defaults for U/cmr/m/n on input line 63.
LaTeX Font Info: ... okay on input line 63.
LaTeX Font Info: Checking defaults for PD1/pdf/m/n on input line 63.
LaTeX Font Info: ... okay on input line 63.
LaTeX Font Info: Checking defaults for PU/pdf/m/n on input line 63.
LaTeX Font Info: ... okay on input line 63.
LaTeX Font Info: Try loading font information for T1+ppl on input line 63.
(/usr/share/texlive/texmf-dist/tex/latex/psnfss/t1ppl.fd
File: t1ppl.fd 2001/06/04 font definitions for T1/ppl.
)
\big@size=\dimen110
(/usr/share/texlive/texmf-dist/tex/context/base/mkii/supp-pdf.mkii
[Loading MPS to PDF converter (version 2006.09.02).]
\scratchcounter=\count101
\scratchdimen=\dimen111
\scratchbox=\box27
\nofMPsegments=\count102
\nofMParguments=\count103
\everyMPshowfont=\toks17
\MPscratchCnt=\count104
\MPscratchDim=\dimen112
\MPnumerator=\count105
\makeMPintoPDFobject=\count106
\everyMPtoPDFconversion=\toks18
) (/usr/share/texlive/texmf-dist/tex/latex/oberdiek/epstopdf-base.sty
Package: epstopdf-base 2016/05/15 v2.6 Base part for package epstopdf
(/usr/share/texlive/texmf-dist/tex/latex/oberdiek/grfext.sty
Package: grfext 2016/05/16 v1.2 Manage graphics extensions (HO)
)
Package epstopdf-base Info: Redefining graphics rule for `.eps' on input line 4
38.
Package grfext Info: Graphics extension search list:
(grfext) [.pdf,.png,.jpg,.mps,.jpeg,.jbig2,.jb2,.PDF,.PNG,.JPG,.JPE
G,.JBIG2,.JB2,.eps]
(grfext) \AppendGraphicsExtensions on input line 456.
(/usr/share/texlive/texmf-dist/tex/latex/latexconfig/epstopdf-sys.cfg
File: epstopdf-sys.cfg 2010/07/13 v1.3 Configuration of (r)epstopdf for TeX Liv
e
))
\AtBeginShipoutBox=\box28
Package hyperref Info: Link coloring ON on input line 63.
(/usr/share/texlive/texmf-dist/tex/latex/hyperref/nameref.sty
Package: nameref 2016/05/21 v2.44 Cross-referencing by name of section
(/usr/share/texlive/texmf-dist/tex/generic/oberdiek/gettitlestring.sty
Package: gettitlestring 2016/05/16 v1.5 Cleanup title references (HO)
)
\c@section@level=\count107
)
LaTeX Info: Redefining \ref on input line 63.
LaTeX Info: Redefining \pageref on input line 63.
LaTeX Info: Redefining \nameref on input line 63.
(./Tutorial.out) (./Tutorial.out)
\@outlinefile=\write3
\openout3 = `Tutorial.out'.

LaTeX Font Info: Try loading font information for OT1+ppl on input line 69.
(/usr/share/texlive/texmf-dist/tex/latex/psnfss/ot1ppl.fd
File: ot1ppl.fd 2001/06/04 font definitions for OT1/ppl.
)
LaTeX Font Info: Try loading font information for OML+zplm on input line 69.

(/usr/share/texlive/texmf-dist/tex/latex/psnfss/omlzplm.fd
File: omlzplm.fd 2002/09/08 Fontinst v1.914 font definitions for OML/zplm.
)
LaTeX Font Info: Try loading font information for OMS+zplm on input line 69.

(/usr/share/texlive/texmf-dist/tex/latex/psnfss/omszplm.fd
File: omszplm.fd 2002/09/08 Fontinst v1.914 font definitions for OMS/zplm.
)
LaTeX Font Info: Try loading font information for OMX+zplm on input line 69.

(/usr/share/texlive/texmf-dist/tex/latex/psnfss/omxzplm.fd
File: omxzplm.fd 2002/09/08 Fontinst v1.914 font definitions for OMX/zplm.
)
LaTeX Font Info: Try loading font information for OT1+zplm on input line 69.

(/usr/share/texlive/texmf-dist/tex/latex/psnfss/ot1zplm.fd
File: ot1zplm.fd 2002/09/08 Fontinst v1.914 font definitions for OT1/zplm.
)
LaTeX Font Info: Try loading font information for U+esint on input line 69.
(/usr/share/texlive/texmf-dist/tex/latex/esint/uesint.fd
File: uesint.fd
) [1


{/var/lib/texmf/fonts/map/pdftex/updmap/pdftex.map}] [2

]
LaTeX Font Info: Font shape `T1/ppl/bx/n' in size <24.88> not available
(Font) Font shape `T1/ppl/b/n' tried instead on input line 69.
(./Tutorial.toc)
\tf@toc=\write4
\openout4 = `Tutorial.toc'.

[3] [4

]
Chapter 1.
LaTeX Font Info: Font shape `T1/ppl/bx/n' in size <17.28> not available
(Font) Font shape `T1/ppl/b/n' tried instead on input line 73.
LaTeX Font Info: Font shape `T1/ppl/bx/it' in size <17.28> not available
(Font) Font shape `T1/ppl/b/it' tried instead on input line 96.
[5]
LaTeX Font Info: Font shape `T1/ppl/bx/n' in size <14.4> not available
(Font) Font shape `T1/ppl/b/n' tried instead on input line 106.
LaTeX Font Info: Font shape `T1/ppl/bx/n' in size <12> not available
(Font) Font shape `T1/ppl/b/n' tried instead on input line 118.

LaTeX Warning: Reference `sec:latexusers' on page 6 undefined on input line 118
.

LaTeX Font Info: Font shape `T1/ppl/bx/it' in size <14.4> not available
(Font) Font shape `T1/ppl/b/it' tried instead on input line 121.
LaTeX Font Info: Try loading font information for OMS+ppl on input line 123.

(/usr/share/texlive/texmf-dist/tex/latex/psnfss/omsppl.fd
File: omsppl.fd
)
LaTeX Font Info: Font shape `OMS/ppl/m/n' in size <12> not available
(Font) Font shape `OMS/cmsy/m/n' tried instead on input line 123.
[6]
Chapter 2.
LaTeX Font Info: Try loading font information for T1+phv on input line 145.
(/usr/share/texlive/texmf-dist/tex/latex/psnfss/t1phv.fd
File: t1phv.fd 2001/06/04 scalable font definitions for T1/phv.
)
LaTeX Font Info: Try loading font information for T1+pcr on input line 157.
(/usr/share/texlive/texmf-dist/tex/latex/psnfss/t1pcr.fd
File: t1pcr.fd 2001/06/04 font definitions for T1/pcr.
) [7

]
!pdfTeX error: pdflatex (file ./0_usr_share_lyx_images_buffer-view.pdf): readin
g image file failed
==> Fatal error occurred, no output PDF file produced!

Recommended reading 2024:

LaTeXguide.org • LaTeX-Cookbook.net • TikZ.org
LaTeX Beginner's Guide LaTeX Cookbook LaTeX TikZ graphics TikZによるLaTeXグラフィックス
scottkosty
Site Moderator
Posts: 542
Joined: Sat Sep 01, 2012 6:38 am

pdfTeX error

Post by scottkosty »

Can you compile a file without images? For example, if you start a new file and type "hello world", can you compile that to PDF? Also, there should be no need to run LyX with root (although I understand you were probably just testing to see if that solved a permissions problem).
joquendoa
Posts: 1
Joined: Mon May 03, 2021 4:13 pm

pdfTeX error

Post by joquendoa »

Hi, I am having the same issue:
chpopin wrote:
!pdfTeX error: pdflatex (file ./0_usr_share_lyx_images_buffer-view.pdf): reading image file failed
The error appears only when i am inserting pdf images,

did you discover any solution? How can I fix it?
I would appreciate any help
wyskoj
Posts: 2
Joined: Sun May 23, 2021 10:33 pm

pdfTeX error

Post by wyskoj »

Not really a fix, but rather a workaround that worked for me was to run it in sudo ("sudo lyx").
User avatar
Ijon Tichy
Posts: 640
Joined: Mon Dec 24, 2018 10:12 am

pdfTeX error

Post by Ijon Tichy »

Never ever use root for anything else than administrating your computer, i.e., not for running user applications!
Sorry, but I can no longer participate here as the administrator is trampling on my wishes on one of his other platforms. :cry:
wyskoj
Posts: 2
Joined: Sun May 23, 2021 10:33 pm

pdfTeX error

Post by wyskoj »

Then what's the non-superuser solution?
User avatar
Ijon Tichy
Posts: 640
Joined: Mon Dec 24, 2018 10:12 am

pdfTeX error

Post by Ijon Tichy »

If running as root helped, the file permissions (note also ACL) are the problem and can be changed. Features like SELinux could also be involved. Maybe the configuration of the temporary directory, that is used for the LaTeX runs of LyX, is not correct. Without access to the computer and much more information, it is hard to determine.
Sorry, but I can no longer participate here as the administrator is trampling on my wishes on one of his other platforms. :cry:
johansmi
Posts: 1
Joined: Tue Jun 06, 2023 11:59 am

pdfTeX error

Post by johansmi »

You should find Tools->Preferences->File Handling-> Convertors and remove Enabled tick from Converter File Cache
and it should work. In my case it works
koji
Posts: 5
Joined: Tue Sep 12, 2023 9:03 pm

pdfTeX error

Post by koji »

I think simply installing ImageMagick solves (the default image file -> pdf converter). After installation, you need to do Tools -> Reconfigure from the LyX menu).
Post Reply