Error message on Job deletion

Here's the place for discussion related to CAM/CNC and the development of the Path module.
Forum rules
Be nice to others! Respect the FreeCAD code of conduct!
Post Reply
chrisb
Veteran
Posts: 54166
Joined: Tue Mar 17, 2015 9:14 am

Error message on Job deletion

Post by chrisb »

I have loaded the model from this post. When I try to delete the Job I get an error popup saying 'NoneType' object has no attribute 'Stock'.

I confirm with Ok and get in report view:

Code: Select all

Traceback (most recent call last):
  File "/Users/cb/Desktop/FreeCAD.app/Contents/Resources/Mod/Path/PathScripts/PathOp.py", line 291, in onChanged
    self.opOnChanged(obj, prop)
  File "/Users/cb/Desktop/FreeCAD.app/Contents/Resources/Mod/Path/PathScripts/PathAreaOp.py", line 156, in opOnChanged
    self.areaOpOnChanged(obj, prop)
  File "/Users/cb/Desktop/FreeCAD.app/Contents/Resources/Mod/Path/PathScripts/PathMillFace.py", line 83, in areaOpOnChanged
    obj.OpStartDepth = job.Stock.Shape.BoundBox.ZMax
<class 'AttributeError'>: 'NoneType' object has no attribute 'Stock'
If I try to delete the job again it is removed and I get another line in Report view

Code: Select all

PathOp.ERROR: No parent job found for operation.
After that Path workbench seems to be broken, I cannot select a body to create a new job

If I create a simple cube with a contour path everything works as expected.

Is my FreeCAD too old?

OS: macOS High Sierra (10.13)
Word size of OS: 64-bit
Word size of FreeCAD: 64-bit
Version: 0.19.17798 (Git)
Build type: Release
Branch: master
Hash: 7e60631239109c632a8f6cca83f6e7e5502e43a1
Python version: 3.7.3
Qt version: 5.9.7
Coin version: 4.0.0a
OCC version: 7.3.0
Locale: English/Germany (en_DE)
A Sketcher Lecture with in-depth information is available in English, auf Deutsch, en français, en español.
Post Reply