Comments (4)
This looks like a failure to build MuPDF, caused by a failure to compile MuPDF's thirdparty/leptonica/src/numafunc1.c
.
So it's not a PyMuPDF problem, and i can't reproduce it here.
Some things you could look at or try:
- What does
cc --version
show? - Are you running with a small data limit - what does
ulimit -a
say? - Follow the instructions in the error output to submit a compiler bug - run the original command along with an additional option
-freport-bug
.
from pymupdf.
The build happens within a Jenkins container. The issue is intermittent so it's probably got to do with my build environment - I updated Pymupdf to latest yesterday and thought that caused the build failures.
Thanks for the quick assistance, I'll close this issue for now.
cc --version
cc (Ubuntu 11.4.0-1ubuntu1~22.04) 11.4.0
ulimit -a
real-time non-blocking time (microseconds, -R) unlimited
core file size (blocks, -c) 0
data seg size (kbytes, -d) unlimited
scheduling priority (-e) 0
file size (blocks, -f) unlimited
pending signals (-i) 513967
max locked memory (kbytes, -l) 16457064
max memory size (kbytes, -m) unlimited
open files (-n) 1024
pipe size (512 bytes, -p) 8
POSIX message queues (bytes, -q) 819200
real-time priority (-r) 0
stack size (kbytes, -s) 8192
cpu time (seconds, -t) unlimited
max user processes (-u) 513967
virtual memory (kbytes, -v) unlimited
file locks (-x) unlimited
from pymupdf.
The issue arose from max locked memory being to low. The ulimits I sent above were from the host but the docker container running Jenkins capped memlock at +-3mb. This caused segmentation faults on random lines so searching for the issue gets no hits.
ulimit -l 4068916
from pymupdf.
Thanks for this extra information, it's good to know the problem is now understood.
from pymupdf.
Related Issues (20)
- The rotation of the annot is obtained, but if you add it according to that rotation, the angle is just opposite, could it be caused by the inconsistency of the starting coordinate reference. HOT 9
- When converting pdf to html img tag get strange position, space on top HOT 2
- Memory leak when opening an invalid PDF with no %%EOF in tail HOT 5
- Inconsistency in Image-to-PDF Coordinate Alignment HOT 2
- Incorrect links to points on pages having different heights HOT 2
- Incorrect handling of the link zoom parameter in link insertions HOT 3
- LINK_NAMED is not working with annotations created by fitz HOT 3
- Unexpected new line in the parsed text since v1.24.0 HOT 1
- `PyMuPDF==1.24.1`: AttributeError: property 'metadata' of 'Document' object has no setter HOT 2
- PyMuPDF==1.24.0 will hanging when using page.get_text("text") HOT 11
- Request: adding type hints HOT 2
- Missing letters in saved pdf document. HOT 2
- Broken pages in saved pdf document. HOT 2
- Broken pages in saved pdf document, second example. HOT 2
- When calling subset_fonts from multiple threads, an error occurs : No such file or directory: '/tmp/newfont.ttf' HOT 2
- insert_text insert_textbox and annotation's insert_free_text both hit a space, and the next word goes out of the area and breaks the line, but Chinese has no spaces, which leads to a single space, and then a sentence following it is treated as a word. HOT 2
- Tesseract Initialization Error with `get_textpage_ocr` HOT 3
- Missing details while redacting HOT 1
- Redacting results are not as expected in 1.24.x. HOT 8
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from pymupdf.