Altium Designer footprint libraries with a polygon pour cutout on a plane layer crash KiCad
<!-- --------Before Creating a New Issue-----------
* Limit report to a single issue.
* Search the issue tracker to verify the issue has not already been reported.
* Complete all instructions between `template comment markers <>.
* Keep report contents limited to the necessary information required to fix the issue.
* When creating an issue against the stable version of KiCad, make sure the latest available stable version is installed as issues may have already been resolved in later stable versions. -->
# Description
<!-- What is the current behavior and what is the expected behavior? -->
<!-- If the issue is visual/graphical, please attach screenshots of the problem. -->
<!-- Add the issue details below this line and before the "Steps to reproduce" heading. -->
KiCad crashes if an Altium Designer .pcblib file that contains a polygon pour cutout on a plane layer is added to KiCad's footprint libraries. KiCad will crash any time it tries to load the footprint libraries, until the .pcblib file is renamed so that it doesn't load.
The behavior doesn't occur if the polygon pour cutout is on a signal layer.
Altium Designer doesn't actually allow polygon pour cutouts to be created on plane layers, but they can be created on a signal layer and then moved to a plane layer.
# Steps to reproduce
<!-- If there are multiple steps to reproduce it or it is a visual issue, then providing a screen recording as an attachment to this report is recommended. -->
<!-- If this issue is specific to a project, please attach the necessary files to this issue. -->
<!-- Add the steps to reproduce using the numbers below -->
<!-- Add new step numbers before the "KiCad Version" heading. -->
1. Open the footprint editor
2. Select Preferences > Manage footprint libraries
3. Click the folder icon, select "Altium Designer files", and choose the attached .pcblib file (which contains one footprint whose only feature is a polygon pour cutout).
4. KiCad crashes.
5. KiCad crashes any time it tries to load the footprint libraries. The only way to stop it from crashing is to rename the .pcblib file.
# KiCad Version
Application: KiCad x64 on x64
Version: 9.0.1, release build
Libraries:
wxWidgets 3.2.6
FreeType 2.13.3
HarfBuzz 10.2.0
FontConfig 2.15.0
libcurl/8.11.1-DEV Schannel zlib/1.3.1
Platform: Windows 10 (build 19045), 64-bit edition, 64 bit, Little endian, wxMSW
OpenGL: Intel, Intel(R) HD Graphics 530, 4.6.0 - Build 31.0.101.2111
Build Info:
Date: Mar 30 2025 01:11:30
wxWidgets: 3.2.6 (wchar_t,wx containers)
Boost: 1.86.0
OCC: 7.8.1
Curl: 8.11.1-DEV
ngspice: 44
Compiler: Visual C++ 1942 without C++ ABI
KICAD_IPC_API=ON
Locale:
Lang: en_US
Enc: UTF-8
Num: 1,234.5
Encoded кΩ丈: D0BACEA9E4B888 (sys), D0BACEA9E4B888 (utf8)
[SR860A.PcbLib](/uploads/749ecc7289305324f79e409d017ac43a/SR860A.PcbLib)
issue