Skip to content

Multiple swig test failures while building with SWIG 4.4.1 on Darwin #4988

@sarahec

Description

@sarahec

Description of the bug

While building 1.27.2.3 for nixpkgs, with mupdf 1.27.2 and SWIG 4.4.1, a large number of tests fail on Darwin with code generation warnings (AssertionError: wt="generic error: SWIG director type mismatch in output...").

See https://hydra.nixos.org/build/327115294

How to reproduce the bug

nix-build -A python3Packages.pymupdf --option sandbox false
...
ERROR tests/test_font.py::test_load_system_font - AssertionError: Warnings text not empty: wt="generic error: SWIG director t...
ERROR tests/test_general.py::test_add_ink_annot - AssertionError: Warnings text not empty: wt="generic error: SWIG director t...
ERROR tests/test_general.py::test_2533 - AssertionError: Warnings text not empty: wt="generic error: SWIG director t...
ERROR tests/test_general.py::test_2506 - AssertionError: Warnings text not empty: wt="generic error: SWIG director t...
ERROR tests/test_general.py::test_2093 - AssertionError: wt="generic error: SWIG director type mismatch in output va...
ERROR tests/test_general.py::test_2430 - AssertionError: wt="generic error: SWIG director type mismatch in output va...
ERROR tests/test_general.py::test_2553 - AssertionError: wt="generic error: SWIG director type mismatch in output va...
ERROR tests/test_general.py::test_2736 - AssertionError: wt="generic error: SWIG director type mismatch in output va...
ERROR tests/test_general.py::test_subset_fonts - AssertionError: Warnings text not empty: wt="generic error: SWIG director t...
ERROR tests/test_general.py::test_2957_2 - AssertionError: wt="generic error: SWIG director type mismatch in output va...
ERROR tests/test_general.py::test_707560 - AssertionError: Warnings text not empty: wt="generic error: SWIG director t...
ERROR tests/test_general.py::test_3140 - AssertionError: Warnings text not empty: wt="generic error: SWIG director t...
ERROR tests/test_general.py::test_3654 - AssertionError: Warnings text not empty: wt="generic error: SWIG director t...
ERROR tests/test_general.py::test_3624 - AssertionError: Warnings text not empty: wt="generic error: SWIG director t...
ERROR tests/test_general.py::test_4415 - AssertionError: Warnings text not empty: wt="generic error: SWIG director t...
ERROR tests/test_general.py::test_4496 - AssertionError: Warnings text not empty: wt="generic error: SWIG director t...
ERROR tests/test_general.py::test_4590 - AssertionError: Warnings text not empty: wt="generic error: SWIG director t...
ERROR tests/test_general.py::test_4712 - AssertionError: Warnings text not empty: wt="generic error: SWIG director t...
ERROR tests/test_general.py::test_4712m - AssertionError: Warnings text not empty: wt="generic error: SWIG director t...
ERROR tests/test_general.py::test_4902 - AssertionError: Warnings text not empty: wt="generic error: SWIG director t...
ERROR tests/test_imagebbox.py::test_bboxlog - AssertionError: wt='dropping unclosed PDF processor\n... repeated 2 times.....
ERROR tests/test_insertpdf.py::test_issue1417_insertpdf_in_loop - AssertionError: wt="generic error: SWIG director type mismatch in output va...
ERROR tests/test_mupdf_regressions.py::test_707673 - AssertionError: wt="generic error: SWIG director type mismatch in output va...
ERROR tests/test_mupdf_regressions.py::test_3376 - AssertionError: wt="generic error: SWIG director type mismatch in output va...
ERROR tests/test_nonpdf.py::test_pageids - AssertionError: Warnings text not empty: wt="generic error: SWIG director t...
ERROR tests/test_objectstreams.py::test_objectstream1 - AssertionError: Warnings text not empty: wt="generic error: SWIG director t...
ERROR tests/test_objectstreams.py::test_objectstream2 - AssertionError: Warnings text not empty: wt="generic error: SWIG director t...
ERROR tests/test_objectstreams.py::test_objectstream3 - AssertionError: Warnings text not empty: wt="generic error: SWIG director t...
ERROR tests/test_pagedelete.py::test_3094 - AssertionError: wt="generic error: SWIG director type mismatch in output va...
ERROR tests/test_pixmap.py::test_pdfpixmap - AssertionError: wt="generic error: SWIG director type mismatch in output va...
ERROR tests/test_pixmap.py::test_3854 - AssertionError: Warnings text not empty: wt="generic error: SWIG director t...
ERROR tests/test_pixmap.py::test_4155 - AssertionError: Warnings text not empty: wt="generic error: SWIG director t...
ERROR tests/test_pixmap.py::test_4699 - AssertionError: Warnings text not empty: wt="generic error: SWIG director t...
ERROR tests/test_remove-rotation.py::test_remove_rotation - AssertionError: Warnings text not empty: wt="generic error: SWIG director t...
ERROR tests/test_spikes.py::test_spikes - AssertionError: Warnings text not empty: wt="generic error: SWIG director t...
ERROR tests/test_story.py::test_story - AssertionError: Warnings text not empty: wt="generic error: SWIG director t...
ERROR tests/test_story.py::test_2753 - AssertionError: Warnings text not empty: wt="generic error: SWIG director t...
ERROR tests/test_story.py::test_fit_springer - AssertionError: Warnings text not empty: wt="generic error: SWIG director t...
ERROR tests/test_story.py::test_write_stabilized_with_links - AssertionError: Warnings text not empty: wt="generic error: SWIG director t...
ERROR tests/test_story.py::test_3813 - AssertionError: Warnings text not empty: wt="generic error: SWIG director t...
ERROR tests/test_tables.py::test_2979 - AssertionError: wt="generic error: SWIG director type mismatch in output va...
ERROR tests/test_tables.py::test_strict_lines - AssertionError: wt="generic error: SWIG director type mismatch in output va...
ERROR tests/test_tables.py::test_3148 - AssertionError: wt="generic error: SWIG director type mismatch in output va...
ERROR tests/test_tables.py::test_battery_file - AssertionError: wt="generic error: SWIG director type mismatch in output va...
ERROR tests/test_tables.py::test_dotted_grid - AssertionError: wt="generic error: SWIG director type mismatch in output va...
ERROR tests/test_textbox.py::test_textbox4 - AssertionError: wt="generic error: SWIG director type mismatch in output va...
ERROR tests/test_textbox.py::test_2637 - AssertionError: wt="generic error: SWIG director type mismatch in output va...
ERROR tests/test_textbox.py::test_htmlbox1 - AssertionError: Warnings text not empty: wt="generic error: SWIG director t...
ERROR tests/test_textbox.py::test_htmlbox2 - AssertionError: Warnings text not empty: wt="generic error: SWIG director t...
ERROR tests/test_textbox.py::test_htmlbox3 - AssertionError: Warnings text not empty: wt="generic error: SWIG director t...
ERROR tests/test_textbox.py::test_3559 - AssertionError: Warnings text not empty: wt="generic error: SWIG director t...
ERROR tests/test_textbox.py::test_3916 - AssertionError: Warnings text not empty: wt="generic error: SWIG director t...
ERROR tests/test_textbox.py::test_4613 - AssertionError: Warnings text not empty: wt="generic error: SWIG director t...
ERROR tests/test_textextract.py::test_extract4 - AssertionError: wt="generic error: SWIG director type mismatch in output va...
ERROR tests/test_textextract.py::test_3197 - AssertionError: wt="generic error: SWIG director type mismatch in output va...
ERROR tests/test_textextract.py::test_3705 - AssertionError: wt="unknown epub version: 3.0\ngeneric error: SWIG director...
ERROR tests/test_textextract.py::test_4147 - AssertionError: wt="generic error: SWIG director type mismatch in output va...
ERROR tests/test_textextract.py::test_4179 - AssertionError: wt="generic error: SWIG director type mismatch in output va...
ERROR tests/test_textextract.py::test_extendable_textpage - AssertionError: Warnings text not empty: wt="generic error: SWIG director t...
ERROR tests/test_textextract.py::test_4503 - AssertionError: wt="generic error: SWIG director type mismatch in output va...
ERROR tests/test_toc.py::test_simple_toc - AssertionError: wt="generic error: SWIG director type mismatch in output va...
ERROR tests/test_toc.py::test_3400 - AssertionError: Warnings text not empty: wt="generic error: SWIG director t...

PyMuPDF version

1.27.2.3

Operating system

No response

Python version

No response

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions