Menu

#94 Dxf2GCode crashes with small DXF and cutter compensation

Fixed
chrisko
Medium
Patch
2017-11-21
2017-11-03
Egon456
No

Hi.
I got an issue while loading a simple dxf file (exported from CorelDraw 11).
The program is loading the file and showing up the elements but when I enable the Options->AutomatedCutterCompensation the program crashes.

If the option is set before loading the file then Program is crashing directly by load.

See config and Problem-dxf attached.

Thanks Egon

3 Attachments

Related

Tickets: #94

Discussion

  • Chris Bird

    Chris Bird - 2017-11-19

    I too have a similar issue. With mine it crashes whenever I choose left compensation. Checking your dxf file on my PC you have the same issue. If you turn off auto compensation and manually choose left compensation (logical if your cutting that object out) then it will crash too. Auto is just choosing left by default for that object.

    I can provide my dxf if required but if they fix the issue for the original file it should fix my issue. My file was created using qcad community edition if that helps.

    I'm dead in the water on milling stuff till this works again. Im using the Sept 25th release.

     
    • chrisko

      chrisko - 2017-11-21

      Chris, you can provide your dxf, so I can check the root cause ...
      Regards Christian

      Am 19.11.2017 12:40 nachm. schrieb "Chris Bird" chrisbird@users.sf.net:

      I too have a similar issue. With mine it crashes whenever I choose left
      compensation. Checking your dxf file on my PC you have the same issue. If
      you turn off auto compensation and manually choose left compensation
      (logical if your cutting that object out) then it will crash too. Auto is
      just choosing left by default for that object.

      I can provide my dxf if required but if they fix the issue for the
      original file it should fix my issue. My file was created using qcad
      community edition if that helps.

      I'm dead in the water on milling stuff till this works again. Im using the
      Sept 25th release.


      • [tickets:#94] Dxf2GCode crashes with small DXF and cutter compensation*

      Status: New
      Labels: DXF2GCODE-2017.09.25-win32
      Created: Fri Nov 03, 2017 08:49 PM UTC by Egon456
      Last Updated: Fri Nov 03, 2017 08:49 PM UTC
      Owner: nobody
      Attachments:

      Hi.
      I got an issue while loading a simple dxf file (exported from CorelDraw
      11).
      The program is loading the file and showing up the elements but when I
      enable the Options->AutomatedCutterCompensation the program crashes.

      If the option is set before loading the file then Program is crashing
      directly by load.

      See config and Problem-dxf attached.

      Thanks Egon

      Sent from sourceforge.net because you indicated interest in
      https://sourceforge.net/p/dxf2gcode/tickets/94/

      To unsubscribe from further messages, please visit
      https://sourceforge.net/auth/subscriptions/

       

      Related

      Tickets: #94

  • chrisko

    chrisko - 2017-11-19

    I tried to dig into this and i am very sure that this is coming from tolerance issued which are linked to the way you draw the dxf file. For the attached Bug01.dxf i figured out that the geometrie is created using splines. Please take care that the start and end points of the line, arcs or splines have exactly matching start and end points, if they don't have them, the tool will crash.
    So please dont wait for a fix, as this wont be fixed by DXF2GCODE, you need to fix aour drawing please.
    regards
    Christian

     
  • chrisko

    chrisko - 2017-11-19

    Just added some more failure correction and debug information for the bug you had. Now this one should work, however, this is some kind of hack and didn't resolv the problem but finally it works. You can use the develop or master branch to test it.
    regards
    Christian

     
  • chrisko

    chrisko - 2017-11-19
    • status: New --> Started
    • assigned_to: chrisko
     

    Last edit: chrisko 2017-11-19
  • Chris Bird

    Chris Bird - 2017-11-21

    Thanks for suggestion above, I'll have a look at the dxf tonight and see if thats what caused it for me.

     
  • Chris Bird

    Chris Bird - 2017-11-21

    That was it, with the patched version I could see where it wasnt matching (I'll use it to spot those issues in the future). I then just moved it to then match the arc line I had and now it works in both the 25th Sept release and the patched one.

    My suggestion is dont try to automatically fix the issue, I'd just have it report that theres not a closed object and maybe highlight the two ends that you cant match. That would be better than the current release that crashes. The fix you did will highlight where it is but if a person get lazy they may not notice where the issue is. At the end of the day its a quality issue with the dxf it might be down to this item or it could be something else, better to fix the object than let through bad practices.

     
  • chrisko

    chrisko - 2017-11-21

    So i will close this issue with the updated version. Somewhen in the next future i will update the files for download.

     

Log in to post a comment.