Skip to content

Seg Fault with page.firstWidget #411

Closed
@mpalazz

Description

@mpalazz

Bug

I iterate through widgets on a regular basis. I often use the firstWidget attribute to start a loop with each page. I updated to 1.16.8 recently and all my code started failing on page.firstwidget. I've tried this on many different forms, and it seems to universally fail on versions > 1.16.5.

To Reproduce

random form link for testing

mudoc = fitz.open('cms1490s-english.pdf')
page = mudoc[0]
f = page.firstWidget

Output:

Segmentation fault: 11

Configuration

  • Reproduced on MacOS and Windows 10
  • Python version 3.7.5
  • PyMuPDF >=1.16.6, installed with pip install pymupdf

Additional

Perhaps fixing issue #390 (“Incomplete deletion of annotations”) in 1.16.6 created this bug?
Thanks for the help! Love the software, btw.

Metadata

Metadata

Assignees

Labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions