We have a particular project that is throwing an overflow error when trying to view the PCB file, other projects seem to handle this as expected (we can view the PCB file).
This project was previously looked at using v6.0 with no issues. The errors shown are:
Memory Exhausted loading PCB '<filename>'
10:32:27: Overflow converting value 2592216027.191822 to i.
10:32:27: Overflow converting value -2592216027.191822 to i.
This is also reflected in constant ramp usage of RAM whilst trying to load the PCB file:
Removed references to 3D models (search-replace on kicad_pcb file)
Removed large polygon pours (search-replace on kicad_pcb file)
Nothing seems to work, and I cant find a reference to 2592216027.191822 or -2592216027.191822 in the kicad_pcb file…
Has anyone encountered this before?
I removed these, and reinstated previously deleted zone (ensuring all had a net_name) - and the PCB loads as expected…
This board was imported using altium2kicad tool, sometime at around KiCAD v5…
Perhaps these zones were in there from the conversion and KiCAD v6 didnt care…
What is the time frame for that memory leak?
Are you interested in making a test case for this and creating an gitlab issue?
If you do not want to do this, then I can try to reproduce it and create the issue, but I don’t know how difficult it is to reproduce from the info you have given.
There are several options for making a test case. You can make the issue confidential as davidrsb mentioned. You can just upload the project as is if it’s not confidential, or you can remove all the proprietary stuff from the project and then upload it. This last is preferred, as smaller projects are easier to diagnose, and KiCad developers and their (free) time are a precious resources.
It was reported at 11:04u and a “fix committed” at 11:41u so it took 37 minutes to fix. Yet another example of the excellent work from the KiCad developers.
To get this version on your PC, you have to wait until V7.0.1 is released (Updates in the third digit are bug fixes, and upgrades should always be safe). Bug fix releases for KiCad have been made approximately once a month in 2022, and I expect this to continue at a similar rate.
I was slightly confused with the actual fix - as it seemed to be handled correctly on v5.0 and v6.0… But I dont have my head around the code, but Im glad I could help with bug reports…
For me, those zone definitions were unknown entries into the PCB file (probably from external import tooling), and removing made zero impact to my project.