Project SAVE fails, I must delete Geometry File, then Project SAVEs just fine

Issue #692 open
Robert H created an issue

FlatCAM Evo Unstable BETA - 64 bit
Windows 10 Home 64-bit, Version 22H2, OS Build 19045-3570
Python 3.9.10

I added a drill file for 2 slots under a potentiometer, then:

  • Properties
  • Utilities
  • Entered Slot Diameter (0.8mm Endmill, 1.1mm Slot, Cut Z=-2mm,Multi-Depth=-0.1mm)
  • Clicked Mill Slots
  • entered Milling data as usual for Milling

I generate the Geometry File, I can SAVE the Project properly.

I generate the CNC job; I cannot SAVE the Project. I get a red message FAILED in bottom left of the FlatCAM window and this in Powershell; “Failed to serialize file before compression ,… because out of range float values are not JSON compliant

If I delete that new CNC job, the Project SAVEs properly.

Robert

EDIT:
Yellow : Top layer

Green : Bottom layer, mirrored vertically

Red : Holes, mirrored vertically

Comments (12)

  1. Marius Stanciu

    Hi Robert,
    I need to replicate this behavior. Can you simplify the whole process enough and provide the minimum files so that I can reproduce it?
    BR,
    Marius

  2. Robert H reporter

    (alignment and tabs seriously messed up in this reply, deleting, and posting a 2nd time)

    Here you go. :)

    I was able to reproduce by importing this excelon file from KiCAD into a blank project.

    M48
    ; DRILL file {KiCad 7.0.8} date Wed Oct 25 19:57:07 2023
    ; FORMAT={3:3/ absolute / metric / keep zeros}
    ; #@! TF.CreationDate,2023-10-25T19:57:07-04:00
    ; #@! TF.GenerationSoftware,Kicad,Pcbnew,7.0.8
    ; #@! TF.FileFunction,Plated,1,2,PTH
    METRIC
    ; #@! TA.AperFunction,Plated,PTH,ComponentDrill
    ; #@! TA.AperFunction,Plated,PTH,ComponentDrill
    T01C1.100F050S15
    %
    G05
    T01
    G00X011900Y010425
    G01X012600Y010425
    G00X021400Y010425
    G01X022100Y010425
    M30
    

    • Properties, Utilities, click on Tool in Tool Table, Milling Diameter=0.8, Mill Slots.
    • Milling, C2, Cut Z=-2, Multi-Depth=.1, Preprocessor=GRBL_11_no_M6, Generate CNCjob.
    • SAVE project, fails.

    (contd)

  3. Robert H reporter

    Updates to original post:

    • added a ZIP of the generated CNCjob,
    • added Python version,
    • cleaned up alignment a bit (I didn’t know it would generate a message each time I’d clean that up)..

  4. Log in to comment