-
Notifications
You must be signed in to change notification settings - Fork 61
Open
Description
Version
pdftext==0.6.3
pypdfium2==4.30.0
Problem
The Python garbage collector is collecting TextPage objects while PDFium internally cleans up CPDF_TextPage resources, both accessing the same memory region and leading to a race condition.
Thought
https://github.com/datalab-to/pdftext/blob/master/pdftext/pdf/pages.py#L277-L289
Can we manually call textpage.close() to release resources after using the TextPage object?
Metadata
Metadata
Assignees
Labels
No labels