PDF export fails with pdflatex and LuaTeX

Paul A. Rubin parubin73 at gmail.com
Tue Feb 11 19:33:23 UTC 2020


On 2/10/20 3:07 PM, Martin Weise wrote:
> On 10.02.20 19:50, Paul A. Rubin wrote:
>> On 2/10/20 10:54 AM, Martin Weise wrote:
>>> On 10.02.20 16:14, Paul A. Rubin wrote:
>>>> On 2/9/20 1:56 PM, Martin Weise wrote:
>>>>> Dear all,
>>>>>
>>>>> I am using LyX 2.3.3 on Ubuntu 18.04 (and i have been doing so
>>>>> (successfully) for almost two years). However, I recently switched
>>>>> laptops and therefore needed to reinstall ubuntu.
>>>>>
>>>>> On the new machine, LyX fails to export pdf files via pdflatex and
>>>>> LuaTeX. There is no pdf file after running export. The only thing that
>>>>> does work is using ps2pdf.
>>>>>
>>>>> Here's the message output from Lyx:
>>>>>
>>>>> ***
>>>>> 05:44:25.151: Previewing ...
>>>>> 05:44:25.154: (buffer-view: Ctrl+R)
>>>>> 05:44:25.158: pdflatex  "Document.tex"
>>>>> 05:44:25.232: This is pdfTeX, Version 3.14159265-2.6-1.40.18 (TeX Live
>>>>> 2017/Debian) (preloaded format=pdflatex)
>>>>> 05:44:25.233:  restricted \write18 enabled.
>>>>> 05:44:25.243: entering extended mode
>>>>> 05:44:25.244: (./Document.tex
>>>>> 05:44:25.253: LaTeX2e <2017-04-15>
>>>>> 05:44:25.254: Babel <3.18> and hyphenation patterns for 84 language(s)
>>>>> loaded.
>>>>> 05:44:25.254:
>>>>> 05:44:25.380: pdflatex  "Bauordnungsamt.tex"
>>>>> 05:44:25.452: This is pdfTeX, Version 3.14159265-2.6-1.40.18 (TeX Live
>>>>> 2017/Debian) (preloaded format=pdflatex)
>>>>> 05:44:25.453:  restricted \write18 enabled.
>>>>> 05:44:25.462: entering extended mode
>>>>> 05:44:25.463: (./Document.tex
>>>>> 05:44:25.464: LaTeX2e <2017-04-15>
>>>>> 05:44:25.465: Babel <3.18> and hyphenation patterns for 84 language(s)
>>>>> loaded.
>>>>> 05:44:25.466:
>>>>> 05:44:25.593: Successful export to format: PDF
>>>>> (pdflatex)support/lassert.cpp (51): ASSERTION status != ExportSuccess
>>>>> VIOLATED IN ../../src/Buffer.cpp:4382
>>>>> ***
>>>>>
>>>>> Any idea what might be wrong?
>>>>>
>>>>> Oh yeah... running pdflatex (manually) on LaTeX code produced by LyX
>>>>> does work.
>>>>>
>>>> Does Document > View work (produce a viewable PDF document) with the
>>>> pdflatex or LuaTeX formats? If so, when export fails, does it leave a
>>>> PDF file in the LyX temp directory?
>>>>
>>>> I'm wondering whether LyX successfully compiles the PDF file in the
>>>> temp directory but then fails to copy or move it to the target
>>>> directory.
>>>>
>>>> Paul
>>>>
>>> No, Document -> View (pdflatex) produces nothing either. Nor does the
>>> LuaTeX way. LyX leaves no pdf file in the temp dir. It just leaves .aux,
>>> .dvi,. log, .tex and .dep-pdf files.
>>>
>>> Martin
>>>
>> If you open a terminal in the temp directory and run pdflatex against
>> the .tex file, does it compile? If not, is there a meaningful error
>> message in the terminal?
>>
>> Paul
>>
> Yes, it does. There is no error.
>
> Martin
>
>
Okay, what follows is definitely grasping at straws. From a clean start 
of LyX, load the HelloWord.lyx file and try to either view or export a 
PDF. Presumably this will fail. Copy the LaTeX .log file in the LyX temp 
directory to someplace safe. Leave LyX open (so that the temp directory 
remains).

Now, in a terminal, run pdflatex on the .tex file in the LyX temp 
directory. Presumably this succeeds in generating a PDF file. Copy the 
new LaTeX .log file someplace safe. Then compare the two (using either 
'diff' if you are command-line oriented or 'meld' if you like graphical 
output) and see if you can find a clue in the differences between the 
log files. Alternatively, you can post both log files here.

Paul



More information about the lyx-users mailing list