holzschu / holzschu/lib-tex

Can't compile twice

Open
#1 4 comments 0 reactions 0 assignees View on GitHub
Dominant language
C
Stars
74
Forks
8
PR merge metrics
No merged PRs in 30d

Description

It can compile a tex file once, but when I try to compile a tex file after that, the app I'm using it in crashes and I get the following error

```
!pdfTeX error: pdflatex: zlib: deflateReset() failed (error code -2)
```

The minimal TeX file this happens with is

```
\documentclass{article}
\begin{document}
Any text
\end{document}
```

I also can't get lualatex to work.

```
private/var/mobile/Containers/Data/Application/550319A1-DF62-4773-BBCE-FB24AD
A1D234/Library/texlive/2019/texmf-dist/tex/latex/base/size10.clo
! Font \TU/lmr/m/n/10=[lmroman10-regular]:+tlig; at 10pt not loadable: metric d
ata not found or bad.

relax
l.54 \normalsize

?
! Emergency stop.

relax
l.54 \normalsize

276 words of node memory still in use:
1 dir, 3 kern, 1 glyph, 1 attribute, 35 glue_spec, 1 attribute_list, 2 if_st
ack nodes
avail lists: 2:8,3:1,4:1,5:1
! ==> Fatal error occurred, no output PDF file produced!
```

Contributor guide

No contributing guide indexed for this repository

Research direction

Start by reproducing the minimal TeX file with pdflatex twice, then try the reported lualatex case in the iOS app environment. Compare the first and second compilation results, including the deflateReset and lmroman10-regular errors. Done means repeated compilation no longer crashes and the minimal document produces a PDF.

Written by the indexing model from the issue text.

Assessment

Tech stack
c, ios, latex, tex
Domain
compilers, mobile-dev
Issue type
Bug
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
28/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.