Gerber viewer hangs when tasked with opening a large STEP model
<!-- --------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? --> Gerber viewer hangs when instructed to open a large STEP 3d model file. The expected behavior is for it to skip the file, and show a dialog mentioning that the file was skipped because it was not recognized. <!-- 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. --> [LRS-150-3D.zip](/uploads/f1a57ca2712ead235c51b918a671d293/LRS-150-3D.zip) # 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. Download an offending .stp file, such as the one attached to this issue. 2. Start Gerber Viewer 3. Click 'File', then 'Open autodetected file(s)...' 4. Select the offending file and click 'Open' 5. Gerber viewer will hang, consuming a single CPU thread Note that the behavior is the same if the STEP file is loaded indirectly through a zip archive, or directly. # 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 11 (build 26100), 64-bit edition, 64 bit, Little endian, wxMSW OpenGL: Intel, Intel(R) Iris(R) Xe Graphics, 4.6.0 - Build 32.0.101.6632 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) ```
issue