Skip to content

libpdfium.so GC error #47

@littlehorse417

Description

@littlehorse417

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

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions