Layer setup can be changed leading to data loss
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
KiCad |
Fix Released
|
High
|
Seth Hillbrand |
Bug Description
It's possible to change the layer setup, the used layers, so that a layer which has items is removed. It could be OK but it's potential data loss because it's done silently without warning. I did it, although I can't imagine how it happened without me noticing it before several changes and git commits to a board. Apparently I was trying to remove Adhesive layers but accidentally clicked F.Paste. Why it didn't give errors before now is a mystery.
Doing it with F.Paste layer leads to paste-only pads to loose their layer in the file, for example
(pad "" smd rect (at 0 1 270) (size 1 0.75) (layers F.Paste)
becomes
(pad "" smd rect (at 0 1 270) (size 1 0.75) (layers)
When opening such a board a Warning dialog is shown, for example:
16:27:52: footprint D14, pad (unnamed): could not find valid layer for pad
This data loss happened on Windows about a month ago with a then current nightly build.
Changed in kicad: | |
assignee: | nobody → hauptmech (hauptmech) |
Changed in kicad: | |
assignee: | nobody → Seth Hillbrand (sethh) |
Changed in kicad: | |
status: | Fix Committed → Fix Released |
There seems to be a check and warning when removing a layer but it works only for items which are directly on board, not for pads which are inside footprints.