Re: LibreCad crashes when deleting an unused layer
Posted by Gary S on Apr 16, 2021; 9:40pm
URL: https://forum.librecad.org/LibreCad-crashes-following-layer-remove-and-then-file-save-dxf-file-is-corrupted-tp5720548p5720572.html
I opened the posted file on another PC (w/ Linux, LC2.2.0rc2+) and there was little I can do to stop LC crashing after deleting the 'sideview' layer. I was successful a couple of times, but generally it crashes when trying to save the file and leaves a file that is much smaller (29.2 kB in my case). I opened the dxf with a text editor and found the file was truncated in a section related to the layer "Carport2.dimension". After several attempts I found the file was always truncated at the same place.
Once again, opening the original file and comparing it to the truncated file in a text editor I found the layer label had changed. From "Carport2.deminsions" in the original to "diminsions" in the truncated file. Back in LC with the original file, I renamed the layers containing a ".", replacing it with a "-"; "Carport2.deminsions" becomes "Carport2-deminsions", etc. I was able to delete "sideview', save the file and continue to work with the drawing.
Moral of the story - don't use periods / dots / "." in a layer name (maybe?)
Edit - Never mind. I tried it again with the same problem...