solved crash when bit is too big

grumpy

Aktiver Benutzer
Member
Landesflagge
using dxf2gcode-20220226_RC1
with "cutter compensation" not checked in configuration
if i select a cutter that is larger than the object and select "cutter compensation" g42 dxf2gode crashes
i tagged this unsolved even though i know the solution
don't do that :)

Traceback (most recent call last):
File "/usr/local/lib/python3.9/dist-packages/dxf2gcode-2022_02_26-py3.9.egg/dxf2gcode/gui/canvas.py", line 345, in setRightComp
File "/usr/local/lib/python3.9/dist-packages/dxf2gcode-2022_02_26-py3.9.egg/dxf2gcode/gui/canvas2d.py", line 312, in repaint_shape
File "/usr/local/lib/python3.9/dist-packages/dxf2gcode-2022_02_26-py3.9.egg/dxf2gcode/gui/canvas2d.py", line 332, in paint_shape
File "/usr/local/lib/python3.9/dist-packages/dxf2gcode-2022_02_26-py3.9.egg/dxf2gcode/gui/canvas2d.py", line 388, in createstmove
File "/usr/local/lib/python3.9/dist-packages/dxf2gcode-2022_02_26-py3.9.egg/dxf2gcode/gui/canvas2d.py", line 636, in __init__
File "/usr/local/lib/python3.9/dist-packages/dxf2gcode-2022_02_26-py3.9.egg/dxf2gcode/core/stmove.py", line 65, in __init__
File "/usr/local/lib/python3.9/dist-packages/dxf2gcode-2022_02_26-py3.9.egg/dxf2gcode/core/stmove.py", line 86, in updateShape
File "/usr/local/lib/python3.9/dist-packages/dxf2gcode-2022_02_26-py3.9.egg/dxf2gcode/core/stmove.py", line 151, in make_start_moves
File "/usr/local/lib/python3.9/dist-packages/dxf2gcode-2022_02_26-py3.9.egg/dxf2gcode/core/shapeoffset.py", line 91, in __init__
File "/usr/local/lib/python3.9/dist-packages/dxf2gcode-2022_02_26-py3.9.egg/dxf2gcode/core/shapeoffset.py", line 497, in PairWiseInterferenceDetection
AttributeError: 'ConvexPoint' object has no attribute 'Ps'
Aborted
 
However your right, this should work. Can you send the file and the parameters you used to reproduce the bug. Otherwise it will be difficult to find it ...

regards
Christian
 
not sure what all you need
open file
select circle
select cutter #2
right click on circle and select cutter compensation g42
 

Anhänge

  • test_circle.dxf
    98,2 KB · Aufrufe: 1
  • config.cfg.txt
    9 KB · Aufrufe: 1
Hi grumpy,
just checked that. You want to mill a diameter of 4mm with a tool diamter of 6.35. Thats the bug, right? this will just crash, your right, no failure message at all ...

I added a change in the code to detect the topic if no geometry left after compensation. Please check link:
dxf2gcode / SourceCode / Commit [569615]
 
that is a big improvement
it doesn't crash so i have the chance to fix my mistake
it does go ahead and set g42 cutter compensation
with your change after i set g42 with and oversized bit if i select "pocket mill" the program crashes
a novice like me can easily miss the error message and spend a lot time chasing this


when i was working i could write a nice little program in 100 lines
it would quickly turn in to 10000 lines trying to make it idiot proof :)
 

Benutzer welche diesen Thread betrachten (Mitglieder: 0, Gäste: 1)

Wer hat diesen Thread gelesen

Zurück
Oben