FlatCAM crashes when enabling or disabling corner marke - fixed for next versionrs.

Issue #500 new
Steve Lilley created an issue

FlatCAM 8.994 Beta; After creating the corner markers, when disabling or enabling the corner markers in the Gerber folder FlatCAM will crash.

Comments (6)

  1. Marius Stanciu

    Hi Steve,
    Can you describe step by step the process you followed to get the crash?

    Thanks,
    Marius

  2. Steve Lilley reporter

    I created corner markers by clicking on the Corner Marker Tool, selected locations then clicked Add Marker. Opened Project Menu and right clicked on the .gtl_corner file and selected Disable Plot, CRASH.

    Disable All also crashed it.

    I thought I had it disabled once by Disabling All and then crashed when enabling in the Project Menu but could not recreated it.

    FlatCAM_beta_8.994_x64_installer, Windows 10

    Steve

    EDIT: Triple Bug; Open the copperTop.gbl in FlatCam, then open the copperBottom.gbl. In the Project Menu select and Disable Plot on the CopperBottom.gbl. Select copperTop.gbl and click Corner Marker Tool then Add Markers. “The Corner Markers .gbl will be added in the Project Menu but in the Disabled mode (bug No. 2) and no markers will appear in the Plot Area.” The Corner Marker .gbl will read “…copperBottom.gbl_corners” instead of “…copperTop.gbl_corners” (bug No. 3). Right click on the Corner Marker .gbl and select Enable Plot, CRASH.

    EDIT: The same thing happens with the Copper Thieving Tool and the Fiducials Tool.

    The Etch Compensation Tool will crash when creating it; Select Edge Compensation Tool in the Menu then click Compensate, CRASH

  3. Marius Stanciu

    Hi Steve,

    I confirm all the reported issues.
    Until the fixes will be made available (I fixed them all in my working copy, plus some extra that I’ve seen) in a new release (unknown release time at the moment) the issue with Disable Plots can be avoided by not using the Project menu actions and use instead the Spacebar shortcut key for Disable/Enable of the selected plots.
    That should work since it uses a different mechanism.

    Thank you for your reports!

    Best regards,
    Marius

  4. Reskalla Bretz

    It happened to me every time, but I tried to fix it with Windows itself on compatibility troubleshooter and worked. Try it.

  5. Marius Stanciu

    Hello Reskalla,

    The reported issues by Steve are valid and confirmed. They happen due of trying to access a method for a subclassed type of the ‘dict’ Python type while I did forgot to use that subclass and simply used the dict type for some attributes used in the mentioned Tools (Plugins): Copper Thieving, Fiducials and Corner Markings. The fix was to simply use the needed type.

    As for the Edge Compensation, it was a simple issue with divide by None because it tried to do the compensation with no value in the factor field.

    All of those issues are now fixed in my working copy and will be made available when I finish working on the issues that I attempt to solve.

    Best regards,
    Marius

  6. Log in to comment