Skip to content

Segmentation fault (core dumped) #512

@gvnramu

Description

@gvnramu

Describe the bug (mandatory)

When applying page.apply_redactions() memory error occured

To Reproduce (mandatory)

>>>import fitz
>>> doc=fitz.open('fail.pdf')
>>> imglist = doc.getPageImageList(0, True)
>>> page = doc[0]
>>> rect = page.getImageBbox(imglist[0])
>>> page.addRedactAnnot(rect)
'Redact' annotation on page 0 of fail.pdf
>>> page.apply_redactions()

Expected behavior (optional)

Apply redactions successfully

Screenshots (optional)

core_dumped

Your configuration (mandatory)

Ubuntu 18.04 LTS - Architecture: x86-64

Python 3.7.4 (default, Aug 13 2019, 20:35:49)
[GCC 7.3.0]
linux

PyMuPDF 1.17.0
Installed via .whl file

Metadata

Metadata

Assignees

Labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions