Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Assertion _cairo_status_is_error (status) failed. #277

Open
7mioda opened this issue Oct 10, 2023 · 2 comments
Open

Assertion _cairo_status_is_error (status) failed. #277

7mioda opened this issue Oct 10, 2023 · 2 comments

Comments

@7mioda
Copy link

7mioda commented Oct 10, 2023

ImageMagick version

6.9.10-97

Operating system

Linux

Operating system, version and so on

amazon/aws-lambda-nodejs:18

Description

Error: node: cairo-error.c:68: _cairo_error: Assertion `_cairo_status_is_error (status)' failed.

I have included ImageMagick as one of the dependencies in my Lambda Docker container to convert PDF pages into images.
This error occurs randomly, meaning that the same PDF may generate an error, but not consistently.

Steps to Reproduce

  • Docker container
FROM amazon/aws-lambda-nodejs:18

RUN yum -y update && \
    yum install -y \
        python3 \
        glib2-devel \
        libpng-devel \
        libjpeg-turbo-devel \
        giflib-devel \
        librsvg2-devel \
        libtiff-devel \
        libexif-devel \
        lcms2-devel \
        ImageMagick-devel \
        OpenEXR-devel \
        libgsf-devel \
        libxml2-devel \
        poppler-glib-devel \
        make \
        gcc \
        gcc-c++ \
        tar \
        curl

RUN cd /var/task && \
    curl -L https://github.com/libvips/libvips/releases/download/v8.13.3/vips-8.13.3.tar.gz | tar xz && \
    cd vips-8.13.3 && \
    ./configure --prefix=/var/task --with-pdfium --without-python && \
    make && \
    make install
  • For the pdf you can use any pdf of your choice.

Images

No response

@dlemstra
Copy link
Member

This looks like a libvips issue? And you are not explaining what we should do to reproduce this issue?

@7mioda
Copy link
Author

7mioda commented May 23, 2024

This looks like a libvips issue? And you are not explaining what we should do to reproduce this issue?

Thanks for your reply @dlemstra . The error occurs randomly the same PDF may generate an error, but not all the time

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

No branches or pull requests

2 participants