View Issue Details

IDProjectCategoryView StatusLast Update
0004645PathBugpublic2021-09-03 22:16
Reporterc4g Assigned Toruss4262  
PrioritynormalSeveritytweakReproducibilityalways
Status confirmedResolutionopen 
Product Version0.19 
Summary0004645: Add python exceptions to PathJob.py
Description23:12:10 Traceback (most recent call last):
  File "/snap/freecad/22/opt/local/FreeCAD-0.19/Mod/Path/PathScripts/PathJob.py", line 401, in execute
    obj.Path = obj.Operations.Path
<class 'AttributeError'>: 'NoneType' object has no attribute 'Path'
23:12:10 <Exception> ObjectIdentifier.cpp(1511): Document object 'SetupSheet' not found in 'SetupSheet.ClearanceHeightOffset'
in property binding 'ClearanceHeight'
23:12:17 Traceback (most recent call last):
  File "/snap/freecad/22/opt/local/FreeCAD-0.19/Mod/Path/PathScripts/PathJob.py", line 401, in execute
    obj.Path = obj.Operations.Path
<class 'AttributeError'>: 'NoneType' object has no attribute 'Path'
23:12:22 Traceback (most recent call last):
  File "/snap/freecad/22/opt/local/FreeCAD-0.19/Mod/Path/PathScripts/PathJobGui.py", line 232, in onDelete
    self.obj.Proxy.onDelete(self.obj, arg2)
  File "/snap/freecad/22/opt/local/FreeCAD-0.19/Mod/Path/PathScripts/PathJob.py", line 227, in onDelete
    PathLog.debug('taking down ops: %s' % [o.Name for o in self.allOperations()])
  File "/snap/freecad/22/opt/local/FreeCAD-0.19/Mod/Path/PathScripts/PathJob.py", line 470, in allOperations
    for op in self.obj.Operations.Group:
<class 'AttributeError'>: 'NoneType' object has no attribute 'Group'
Steps To ReproduceCreate a Path Job and add an operation. Then delete the child entries from the job. Try to edit or delete the empty job. This python exception then blocks PathJob.py from functioning.
TagsPath
FreeCAD InformationOS: Ubuntu 20.04 LTS snap Core 20 (Unity:Unity7:ubuntu/unity)
Word size of OS: 64-bit
Word size of FreeCAD: 64-bit
Version: 0.19.24276 (Git)
Build type: Unknown
Branch: releases/FreeCAD-0-19
Hash: a88db11e0a908f6e38f92bfc5187b13ebe470438
Python version: 3.8.5
Qt version: 5.12.8
Coin version: 4.0.0
OCC version: 7.5.0
Locale: English/United States (en_US)

Activities

c4g

2021-04-27 03:51

reporter  

camtest_bug.FCStd (19,783 bytes)

gift

2021-08-03 06:25

reporter   ~0015771

Hello c4g,

you choose the wrong project. It should Path and not Part.

Kunda1

2021-08-25 14:29

administrator   ~0015860

@c4g Please post to the forum first next time per our guidelines
I went ahead and opened a thread for you: https://forum.freecadweb.org/viewtopic.php?f=15&t=61563

russ4262

2021-09-03 22:15

developer   ~0015896

PR #5008 is active and addresses this bug.

russ4262

2021-09-03 22:16

developer   ~0015897

I can confirm an error is thrown if one or more children of a Job object are deleted.

yorik

2022-03-03 13:55

administrator   ~0017039

This ticket has been migrated to GitHub as issue 6207.

Issue History

Date Modified Username Field Change
2021-04-27 03:51 c4g New Issue
2021-04-27 03:51 c4g File Added: camtest_bug.FCStd
2021-04-27 03:52 c4g Tag Attached: Path
2021-08-03 06:25 gift Note Added: 0015771
2021-08-25 14:27 Kunda1 Project Part => Path
2021-08-25 14:29 Kunda1 Note Added: 0015860
2021-08-26 04:31 chrisb Severity block => tweak
2021-08-26 04:31 chrisb Description Updated
2021-08-26 04:31 chrisb FreeCAD Information OS: Ubuntu 20.04 LTS snap Core 20 (Unity:Unity7:ubuntu/unity) Word size of OS: 64-bit Word size of FreeCAD: 64-bit Version: 0.19.24276 (Git) Build type: Unknown Branch: releases/FreeCAD-0-19 Hash: a88db11e0a908f6e38f92bfc5187b13ebe470438 Python version... => OS: Ubuntu 20.04 LTS snap Core 20 (Unity:Unity7:ubuntu/unity) Word size of OS: 64-bit Word size of FreeCAD: 64-bit Version: 0.19.24276 (Git) Build type: Unknown Branch: releases/FreeCAD-0-19 Hash: a88db11e0a908f6e38f92bfc5187b13ebe470438 Python ...
2021-09-03 22:15 russ4262 Note Added: 0015896
2021-09-03 22:15 russ4262 Assigned To => russ4262
2021-09-03 22:15 russ4262 Status new => assigned
2021-09-03 22:16 russ4262 Status assigned => confirmed
2021-09-03 22:16 russ4262 Note Added: 0015897