Gerber viewer crashes when opening multiple zip files
<!-- --------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. --> Gerber viewer crashes when opening multiple zip files. If it does not crash during opening, it crashes after clicking Clear All Layers. # 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 Gerber viewer app. 2. Import two zipped Gerber files one by one. 3. Click Clear All Layers(if not crashed after step2). # KiCad Version <!-- Copy version information (from main menu Help->About KiCad ->Copy Version Info) and paste it between the triple backticks below to preserve the formatting. --> ``` Application: KiCad Gerber Viewer 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) Iris(R) Xe Graphics, 4.6.0 - Build 32.0.101.6078 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_IN Enc: UTF-8 Num: 1,234.5 Encoded кΩ丈: D0BACEA9E4B888 (sys), D0BACEA9E4B888 (utf8) ```
issue