Net class colors lost on crash (not backed up either; serialization issue?)
Description
If a netclass is assigned a color in PCBNew and KiCad crashes, the colors are reset to default.
Possibly related (not sure if it's related to recovery): it also appears that $project-backup
(zip) values of .kicad_pro
->net_settings
->classes
->pcb_color
are not correctly backed up automatically. pcb_color
s configured in the original .kicad_pro
appear to be set in rgb(int, int, int)
, but the values in the automatic backups are rgba(int, int, int, float)
.
Steps to reproduce
- Create netclass.
- Set custom color in PCBNew.
- Have KiCad crash.
- Reopen project.
- Net class colors are reset to default.
or
- Create netclass.
- Set custom color in PCBNew.
- Wait for an automatic backup to occur.
- Unzip backup to new location.
- Open new/backed up project.
- Net class colors are reset to default.
KiCad Version
Application: KiCad PCB Editor x64 on x64
Version: 8.0.1, release build
Libraries:
wxWidgets 3.2.4
FreeType 2.12.1
HarfBuzz 8.3.0
FontConfig 2.14.2
libcurl/8.5.0-DEV Schannel zlib/1.3
Platform: Windows 11 (build 22631), 64-bit edition, 64 bit, Little endian, wxMSW
Build Info:
Date: Mar 15 2024 01:52:47
wxWidgets: 3.2.4 (wchar_t,wx containers)
Boost: 1.83.0
OCC: 7.7.1
Curl: 8.5.0-DEV
ngspice: 42
Compiler: Visual C++ 1936 without C++ ABI
Build settings: