GithubHelp home page GithubHelp logo

Comments (4)

julian-smith-artifex-com avatar julian-smith-artifex-com commented on June 10, 2024

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.

C-monC avatar C-monC commented on June 10, 2024

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.

C-monC avatar C-monC commented on June 10, 2024

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.

julian-smith-artifex-com avatar julian-smith-artifex-com commented on June 10, 2024

Thanks for this extra information, it's good to know the problem is now understood.

from pymupdf.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.