View Issue Details

IDProjectCategoryView StatusLast Update
0003261PathBugpublic2017-11-18 03:37
Reporterllamas Assigned Tomlampert  
PrioritylowSeveritymajorReproducibilitysometimes
Status closedResolutionduplicate 
Platformx64OSWindows 10OS Version1703.15063.674
Product Version0.17 
Summary0003261: Path Job Operations cannot be edited after save and reload
DescriptionOS: Windows 10
Word size of OS: 64-bit
Word size of FreeCAD: 64-bit
Version: 0.17.Unknown
Build type: Release
Python version: 2.7.8
Qt version: 4.8.7
Coin version: 4.0.0a
OCC version: 7.0.0
Locale: English/UnitedStates (en_US)
commit 04ea29528040ec1e85c04d1be1db27a94f29a472 (HEAD -> master, origin/master, origin/HEAD)

Steps To ReproduceCreate a Path Job based on a Part created with PartDesign
Create an Operation for the new Job
Save
Close
Load the previously saved file
Double-click the previously created Operation
expected: The same Operation edit mode that opens prior to save
actual: The object translation mode that would be expected from double-clicking a Part
Additional InformationThis is not a clean repro. I've included a simple file in which the issue is not reproduced, and my actual work files where the problem is reproduced (and can continue to be reproduced).

In the files where the problem occurs, there were previous Path Jobs exhibiting the same issue. In the previous state (CNC0.FCStd), there was a Job with a Base-Part that was in the file's root Body (not inside a part container) and another Job with a Base-Part that was in a Body with a Part container. None of the Operations in either Job was editable after a save. In fact, the Job for the part in the root Body did not retain its structure during the save and reload. All elements of that Job now show up flat under the project/file root. I deleted the jobs, created a Part container, copied the root Body into the new Part, and saved the file containing the two Parts (and no Path Jobs) as CNC.FCStd. I then added a Path Job for one of the parts, and a couple of Operations within that Job. I saved the file as CNC2.FCStd, closed it, and reopened it. The issue persisted.

So, I think the issue lies in something that occurred within the project prior to any of the save files, and I can probably fix it by recreating everything in a new project, but I'm logging this bug because something happened, and can happen again. I set the priority low since it doesn't repro in a clean project (so there's a workaround, if nothing else).

The "bad" files are CNC0 (Parts and Jobs, with structure lost after save), CNC (Just parts from CNC0, previously corrupted Jobs deleted) and CNC2 (new Jobs created after saving CNC). New operations created in these files become corrupted upon save.

The "good" file is Example. Brand new file, Part, and Job. No repro.
TagsPath
FreeCAD Information

Relationships

duplicate of 0003260 closedwmayer Double Quote in tool name is not escaped in FCStd file 

Activities

llamas

2017-11-16 02:01

reporter  

CNC.FCStd (58,086 bytes)
CNC2.FCStd (74,739 bytes)
Example.FCStd (24,153 bytes)
CNC0.FCStd (106,625 bytes)

Kunda1

2017-11-16 19:34

administrator   ~0010418

please open a forum thread on the Path subforum to discuss this issue with the Path community. Then link said forum to this thread and vice-a-versa.

llamas

2017-11-17 22:39

reporter   ~0010422

Forum thread

llamas

2017-11-17 22:41

reporter   ~0010423

Recreation of problem project in new clean file. Loads with following output:

Thread size out of range
Fatal Error at file C:/Users/mike/Google Drive/Models/CoreXY/ZAxisPlates.FCStd, line 2354, char 45
Invalid Document.xml: equal sign expected
Traceback (most recent call last):
  File "C:\Program Files\FreeCAD_trunk\Mod\Path\PathScripts\PathJobGui.py", line 153, in claimChildren
    children = self.obj.ToolController
<type 'exceptions.AttributeError'>: 'FeaturePython' object has no attribute 'ToolController'
Traceback (most recent call last):
  File "C:\Program Files\FreeCAD_trunk\Mod\Path\PathScripts\PathJobGui.py", line 153, in claimChildren
    children = self.obj.ToolController
<type 'exceptions.AttributeError'>: 'FeaturePython' object has no attribute 'ToolController'
Traceback (most recent call last):
  File "C:\Program Files\FreeCAD_trunk\Mod\Path\PathScripts\PathJobGui.py", line 153, in claimChildren
    children = self.obj.ToolController
<type 'exceptions.AttributeError'>: 'FeaturePython' object has no attribute 'ToolController'
Traceback (most recent call last):
  File "C:\Program Files\FreeCAD_trunk\Mod\Path\PathScripts\PathJobGui.py", line 153, in claimChildren
    children = self.obj.ToolController
<type 'exceptions.AttributeError'>: 'FeaturePython' object has no attribute 'ToolController'
Traceback (most recent call last):
  File "C:\Program Files\FreeCAD_trunk\Mod\Path\PathScripts\PathJobGui.py", line 153, in claimChildren
    children = self.obj.ToolController
<type 'exceptions.AttributeError'>: 'FeaturePython' object has no attribute 'ToolController'
Traceback (most recent call last):
  File "C:\Program Files\FreeCAD_trunk\Mod\Path\PathScripts\PathJobGui.py", line 153, in claimChildren
    children = self.obj.ToolController
<type 'exceptions.AttributeError'>: 'FeaturePython' object has no attribute 'ToolController'
Traceback (most recent call last):
  File "C:\Program Files\FreeCAD_trunk\Mod\Path\PathScripts\PathJobGui.py", line 153, in claimChildren
    children = self.obj.ToolController
<type 'exceptions.AttributeError'>: 'FeaturePython' object has no attribute 'ToolController'
Traceback (most recent call last):
  File "C:\Program Files\FreeCAD_trunk\Mod\Path\PathScripts\PathJobGui.py", line 153, in claimChildren
    children = self.obj.ToolController
<type 'exceptions.AttributeError'>: 'FeaturePython' object has no attribute 'ToolController'
Traceback (most recent call last):
  File "C:\Program Files\FreeCAD_trunk\Mod\Path\PathScripts\PathJobGui.py", line 153, in claimChildren
    children = self.obj.ToolController
<type 'exceptions.AttributeError'>: 'FeaturePython' object has no attribute 'ToolController'
Traceback (most recent call last):
  File "C:\Program Files\FreeCAD_trunk\Mod\Path\PathScripts\PathJobGui.py", line 153, in claimChildren
    children = self.obj.ToolController
<type 'exceptions.AttributeError'>: 'FeaturePython' object has no attribute 'ToolController'
Traceback (most recent call last):
  File "C:\Program Files\FreeCAD_trunk\Mod\Path\PathScripts\PathJobGui.py", line 153, in claimChildren
    children = self.obj.ToolController
<type 'exceptions.AttributeError'>: 'FeaturePython' object has no attribute 'ToolController'
Traceback (most recent call last):
  File "C:\Program Files\FreeCAD_trunk\Mod\Path\PathScripts\PathJobGui.py", line 153, in claimChildren
    children = self.obj.ToolController
<type 'exceptions.AttributeError'>: 'FeaturePython' object has no attribute 'ToolController'
Error in T1: 1/8" EndMill: Property not found
ZAxisPlates.FCStd (155,524 bytes)

Issue History

Date Modified Username Field Change
2017-11-16 02:01 llamas New Issue
2017-11-16 02:01 llamas File Added: CNC.FCStd
2017-11-16 02:01 llamas File Added: CNC2.FCStd
2017-11-16 02:01 llamas File Added: Example.FCStd
2017-11-16 02:01 llamas File Added: CNC0.FCStd
2017-11-16 02:01 llamas Tag Attached: Path
2017-11-16 19:34 Kunda1 Status new => feedback
2017-11-16 19:34 Kunda1 Note Added: 0010418
2017-11-17 22:39 llamas Note Added: 0010422
2017-11-17 22:39 llamas Status feedback => new
2017-11-17 22:41 llamas File Added: ZAxisPlates.FCStd
2017-11-17 22:41 llamas Note Added: 0010423
2017-11-18 03:36 mlampert Relationship added duplicate of 0003260
2017-11-18 03:37 mlampert Assigned To => mlampert
2017-11-18 03:37 mlampert Status new => closed
2017-11-18 03:37 mlampert Resolution open => duplicate