Repository navigation
deps: raise the PyMuPDF floor to 1.28.2 - #206
Merged
Merged
Conversation
Deploying pdfapps with
|
| Latest commit: |
87649cb
|
| Status: | ✅ Deploy successful! |
| Preview URL: | https://3a5be20a.pdfapps.pages.dev |
| Branch Preview URL: | https://deps-pymupdf-1-28-2.pdfapps.pages.dev |
Contributor
Python dependencies security checkpip-audit:
|
| Package | Pin | Latest on PyPI | Status |
|---|---|---|---|
| PySide6 | PySide6>=6.11.1,<6.12 |
6.12.0 |
outdated |
| pypdf | pypdf>=6.19.0 |
6.21.0 |
outdated |
| cryptography | cryptography>=50.0.1 |
50.0.2 |
outdated |
| qtawesome | qtawesome>=1.4.2 |
1.4.2 |
up-to-date |
| pillow | pillow>=12.3.0 |
12.3.0 |
up-to-date |
| pymupdf | pymupdf>=1.28.2 |
1.28.2 |
up-to-date |
| pytesseract | pytesseract>=0.3.13 |
0.3.13 |
up-to-date |
| python-docx | python-docx>=1.2.0 |
1.2.0 |
up-to-date |
| python-pptx | python-pptx>=1.0.2 |
1.0.2 |
up-to-date |
| openpyxl | openpyxl>=3.1.5 |
3.1.5 |
up-to-date |
| beautifulsoup4 | beautifulsoup4>=4.15.0 |
4.15.0 |
up-to-date |
| ebooklib | ebooklib>=0.20 |
0.20 |
up-to-date |
| lxml | lxml>=6.1.3 |
6.1.3 |
up-to-date |
| urllib3 | urllib3>=2.8.0 |
2.8.0 |
up-to-date |
| idna | idna>=3.18 |
3.20 |
outdated |
| pyinstaller | pyinstaller>=6.22.3 |
6.22.3 |
up-to-date |
Auto-generated by security-deps workflow. Merge is blocked only when pip-audit --strict reports vulnerabilities.
nelsonduarte
force-pushed
the
deps/pymupdf-1.28.2
branch
from
October 16, 2026 15:50
541aed8 to
3e5b095
Compare
The PyMuPDF 1.28.2 changelog includes "Fixed 5049: font subsetting segfaults in 1.28.0". PDFApps calls Document.subset_fonts() in pass B of Compress (app/utils.py) and in a text edit that re-embeds the original font (app/editor/apply_edits.py). Measured on Linux with 1.28.0, each run in a fresh process, in two batches per path: - Compress: a crash batch of 200 runs had 6 crashes (exit 139); a corruption-check batch of 200 runs had 8 crashes, and all 192 runs that finished had corrupted glyph positions; - editor: a crash batch of 200 runs had 8 crashes (exit 139); a corruption-check batch of 50 runs had 1 crash, and all 49 runs that finished had corrupted glyph positions. With 1.28.2, in batches of the same sizes: 0 crashes and 0 corrupted outputs. On Windows with 1.28.0: - Compress: 400 runs (200 + 200), 0 crashes; 0 of 200 checked outputs were corrupted; - editor: 650 runs (200 + 400 + 50), 1 crash (exit 139); 0 of 50 checked outputs were corrupted. What changes: - the floor in requirements.txt; - the Flatpak pin and wheel, with the sha256 confirmed against PyPI; - the README; - a docstring; - a new guard test that fails if the floor admits a version below 1.28.2. Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
nelsonduarte
force-pushed
the
deps/pymupdf-1.28.2
branch
from
October 16, 2026 16:21
3e5b095 to
87649cb
Compare
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Why
The PyMuPDF 1.28.2 changelog includes "Fixed 5049: font subsetting segfaults in 1.28.0". PDFApps calls
Document.subset_fonts()in pass B of Compress (app/utils.py) and in a text edit that re-embeds the original font (app/editor/apply_edits.py). A segfault cannot be caught by thetry/exceptaround those calls, so the app just dies. The current floor,pymupdf>=1.28.0, still admits the affected release.Measurements
Each run in a fresh process. On Linux each path ran in two batches: a crash batch, whose outputs were not checked, and a corruption-check batch.
What changes
requirements.txt(pymupdf>=1.28.2, with a comment explaining why);flatpak/requirements-pinned.txt) and wheel (flatpak/python-modules.yml), with the sha256 confirmed against PyPI;tests/test_no_legacy_fitz_import.py;tests/test_pymupdf_floor.py, that fails if the floor admits a version below 1.28.2.No file under
app/or.github/is touched.Supersedes #162 (Dependabot), which bumps the same two lines but leaves the Flatpak wheel at 1.28.0 and would fail test_wheel_versions_match_the_pinned_versions.
Verification
>=1.28.0,>1.28.0and>=1.28.2rc1.pip-audit --strictpasses on both requirements files on Linux.🤖 Generated with Claude Code