path hangs freeCAD 0.19

Here's the place for discussion related to CAM/CNC and the development of the Path module.
ramu
Posts: 4
Joined: Thu Nov 21, 2019 7:59 pm

path hangs freeCAD 0.19

Postby ramu » Thu Nov 21, 2019 8:15 pm

Hello,

as a newbe to freeCAD I'm learning each day. But right now I'm stragling with path module. I created a small 3d modell of an gps unit. I created several path processes for the first side in one job. For the backside I combined expanded text with the box via XOR and created a second job. For the backside of this 3D GPS I choose first a facing process in this second job without any problems. Next I tried to do a pocket process. After clicking the button freecad hangs for about 15 min!

Afterwards I get the following output
PathGeom.WARNING: <class 'Part.BezierCurve'> unterstützt keine Spiegelung
Traceback (most recent call last):
File "P:\freeCAD\FreeCAD_0.19.18686_x64_LP_12.1.2_PY3QT5-WinVS2015\Mod\Path\PathScripts\PathOpGui.py", line 177, in updateData
self.panel.updateData(obj, prop)
File "P:\freeCAD\FreeCAD_0.19.18686_x64_LP_12.1.2_PY3QT5-WinVS2015\Mod\Path\PathScripts\PathOpGui.py", line 1032, in updateData
page.pageUpdateData(obj, prop)
File "P:\freeCAD\FreeCAD_0.19.18686_x64_LP_12.1.2_PY3QT5-WinVS2015\Mod\Path\PathScripts\PathOpGui.py", line 252, in pageUpdateData
self.updateData(obj, prop)
File "P:\freeCAD\FreeCAD_0.19.18686_x64_LP_12.1.2_PY3QT5-WinVS2015\Mod\Path\PathScripts\PathPocketShapeGui.py", line 346, in updateData
self.setExtensions(obj.Proxy.getExtensions(obj))
File "P:\freeCAD\FreeCAD_0.19.18686_x64_LP_12.1.2_PY3QT5-WinVS2015\Mod\Path\PathScripts\PathPocketShapeGui.py", line 319, in setExtensions
baseItem.appendRow(self.createItemForBaseModel(base[0], sub, edges, extensions))
File "P:\freeCAD\FreeCAD_0.19.18686_x64_LP_12.1.2_PY3QT5-WinVS2015\Mod\Path\PathScripts\PathPocketShapeGui.py", line 277, in createItemForBaseModel
label = "Wire(%s)" % ','.join(sorted([extensionEdges[keyEdge] for e in edgeList for keyEdge in extensionEdges.keys() if edgesMatchShape(e, keyEdge)], key=lambda s: int(s))) # pylint: disable=unnecessary-lambda
File "P:\freeCAD\FreeCAD_0.19.18686_x64_LP_12.1.2_PY3QT5-WinVS2015\Mod\Path\PathScripts\PathPocketShapeGui.py", line 277, in <listcomp>
label = "Wire(%s)" % ','.join(sorted([extensionEdges[keyEdge] for e in edgeList for keyEdge in extensionEdges.keys() if edgesMatchShape(e, keyEdge)], key=lambda s: int(s))) # pylint: disable=unnecessary-lambda
File "P:\freeCAD\FreeCAD_0.19.18686_x64_LP_12.1.2_PY3QT5-WinVS2015\Mod\Path\PathScripts\PathPocketShapeGui.py", line 269, in edgesMatchShape
return PathGeom.edgesMatch(e0, e1) or PathGeom.edgesMatch(e0, PathGeom.flipEdge(e1))
File "P:\freeCAD\FreeCAD_0.19.18686_x64_LP_12.1.2_PY3QT5-WinVS2015\Mod\Path\PathScripts\PathGeom.py", line 105, in edgesMatch
<class 'AttributeError'>: 'NoneType' object has no attribute 'Curve'
PathGeom.WARNING: <class 'Part.BezierCurve'> unterstützt keine Spiegelung
Traceback (most recent call last):
File "P:\freeCAD\FreeCAD_0.19.18686_x64_LP_12.1.2_PY3QT5-WinVS2015\Mod\Path\PathScripts\PathOpGui.py", line 104, in setEdit
self.setupTaskPanel(TaskPanel(vobj.Object, self.deleteObjectsOnReject(), page, selection))
File "P:\freeCAD\FreeCAD_0.19.18686_x64_LP_12.1.2_PY3QT5-WinVS2015\Mod\Path\PathScripts\PathOpGui.py", line 115, in setupTaskPanel
panel.setupUi()
File "P:\freeCAD\FreeCAD_0.19.18686_x64_LP_12.1.2_PY3QT5-WinVS2015\Mod\Path\PathScripts\PathOpGui.py", line 1024, in setupUi
self.panelSetFields()
File "P:\freeCAD\FreeCAD_0.19.18686_x64_LP_12.1.2_PY3QT5-WinVS2015\Mod\Path\PathScripts\PathOpGui.py", line 996, in panelSetFields
page.pageSetFields()
File "P:\freeCAD\FreeCAD_0.19.18686_x64_LP_12.1.2_PY3QT5-WinVS2015\Mod\Path\PathScripts\PathOpGui.py", line 234, in pageSetFields
self.setFields(self.obj)
File "P:\freeCAD\FreeCAD_0.19.18686_x64_LP_12.1.2_PY3QT5-WinVS2015\Mod\Path\PathScripts\PathPocketShapeGui.py", line 231, in setFields
self.setExtensions(self.extensions)
File "P:\freeCAD\FreeCAD_0.19.18686_x64_LP_12.1.2_PY3QT5-WinVS2015\Mod\Path\PathScripts\PathPocketShapeGui.py", line 319, in setExtensions
baseItem.appendRow(self.createItemForBaseModel(base[0], sub, edges, extensions))
File "P:\freeCAD\FreeCAD_0.19.18686_x64_LP_12.1.2_PY3QT5-WinVS2015\Mod\Path\PathScripts\PathPocketShapeGui.py", line 277, in createItemForBaseModel
label = "Wire(%s)" % ','.join(sorted([extensionEdges[keyEdge] for e in edgeList for keyEdge in extensionEdges.keys() if edgesMatchShape(e, keyEdge)], key=lambda s: int(s))) # pylint: disable=unnecessary-lambda
File "P:\freeCAD\FreeCAD_0.19.18686_x64_LP_12.1.2_PY3QT5-WinVS2015\Mod\Path\PathScripts\PathPocketShapeGui.py", line 277, in <listcomp>
label = "Wire(%s)" % ','.join(sorted([extensionEdges[keyEdge] for e in edgeList for keyEdge in extensionEdges.keys() if edgesMatchShape(e, keyEdge)], key=lambda s: int(s))) # pylint: disable=unnecessary-lambda
File "P:\freeCAD\Free<class 'AttributeError'>: 'NoneType' object has no attribute 'Curve'

Can somebody help me , please. Thx
chrisb
Posts: 20557
Joined: Tue Mar 17, 2015 9:14 am

Re: path hangs freeCAD 0.19

Postby chrisb » Thu Nov 21, 2019 8:37 pm

Hi and welcome to the forum!

Please attach your full FreeCAD info as described in the forum rules. And please edit your first post and enclose the output with code tags </> for improved readability.
ramu wrote:
Thu Nov 21, 2019 8:15 pm
For the backside I combined expanded text with the box via XOR .
I don't understand what you mean with that, you can add your file here for further investigation.

You should have a look at the wiki to get the wording right, e.g. we speak about "operations" instead of "processes". This helps avoiding misunderstandings.
mlampert
Posts: 1436
Joined: Fri Sep 16, 2016 9:28 pm

Re: path hangs freeCAD 0.19

Postby mlampert » Thu Nov 21, 2019 8:50 pm

chrisb wrote:
Thu Nov 21, 2019 8:37 pm
... the forum rules. ...
3. Search the forum first
Chances are other users had the same problem as you before...
Literally the thread before this post :?
ramu
Posts: 4
Joined: Thu Nov 21, 2019 7:59 pm

Re: path hangs freeCAD 0.19

Postby ramu » Thu Nov 21, 2019 11:48 pm

Hello again,

@mlampert: Are you referring to my own post in german? I first wrote this engilsh post but didn't saw it in the forum because of some delay?? So I gave it a second try in german ...Sorry.

@chrisb: You are right I'm not used to the right wording - but I'm learning ;-)

Back to my problem!
Version: freeCAD 0.19 18686

Topics:
1) what I wanted to do is to define two jobs in my freecad file to seperate the operations for the front and the back of the material

2) the problem is that the program freezes for about 10-15 min after clicking the pocket operation in my second job. Afterwards the menu on the left hand side appears but there are no tools aviablie and I get the mentioned error list

3) I also get some disarray in the modell treeview. After reopening this file the job node donot have any child nodes anymore as known by version 0.18. Instead of the former childnodes (operations, tools, etc) are on the same level as my job...

Find attacht my freecad file
Attachments
RuebeGPS4.FCStd
(967.16 KiB) Downloaded 7 times
chrisb
Posts: 20557
Joined: Tue Mar 17, 2015 9:14 am

Re: path hangs freeCAD 0.19

Postby chrisb » Fri Nov 22, 2019 5:44 am

ramu wrote:
Thu Nov 21, 2019 11:48 pm
I first wrote this engilsh post but didn't saw it in the forum because of some delay?? So I gave it a second try in german ...Sorry.
When you registered you had been told that your first post had to be confirmed by a moderator. I did so 22 minutes later, which I assume to be rather fast :) .
Version: freeCAD 0.19 18686
Please reread the first two sentences (after the welcome) in my previous post. The full FreeCAD info may not be too relevant here, but to get the whole picture it may be interesting which OS and libraries you use.
Find attacht my freecad file
In the uploaded file the job did already go out of whack. It may be interesting to have the file just before that. Please clean your file from all job stuff and rebuild the job while saving after each step. Then upload the last working state.
ramu
Posts: 4
Joined: Thu Nov 21, 2019 7:59 pm

Re: path hangs freeCAD 0.19

Postby ramu » Fri Nov 22, 2019 9:05 pm

Hi,

find attached he file with the last working state. Next I tried to do a pocket operation on the backside, the pocket with the text on.
Freecad freece for several minutes later toolcontroller is empty...

But after reopening this file the job tree isn't disrupted. I believe this problem was cause by FreeCAD_0.19.18760_x64_LP_12.1.2_PY3QT5-WinVS2015.7z which i use at the start of this project. Now I use FreeCAD_0.19.18686_x64_LP_12.1.2_PY3QT5-WinVS2015.7z.

That's the only one I use. There are no exctra libs. OS is Win7.

https://drive.google.com/file/d/1o_Xfel ... sp=sharing
chrisb
Posts: 20557
Joined: Tue Mar 17, 2015 9:14 am

Re: path hangs freeCAD 0.19

Postby chrisb » Fri Nov 22, 2019 10:42 pm

What's so difficult about reading and following point 4 of the forum rules?
chrisb
Posts: 20557
Joined: Tue Mar 17, 2015 9:14 am

Re: path hangs freeCAD 0.19

Postby chrisb » Fri Nov 22, 2019 10:54 pm

Had a look at your file: You mean you mill the backside without a second job from the front?

Question about the model: Is there a good reason to use XOR instead of Union? I ask, because the latter has been used in many models using Path, while I haven't seen the former.
ramu
Posts: 4
Joined: Thu Nov 21, 2019 7:59 pm

Re: path hangs freeCAD 0.19

Postby ramu » Fri Nov 22, 2019 11:46 pm

The english language..

OS: Windows 7 SP 1 (6.1)
Word size of OS: 64-bit
Word size of FreeCAD: 64-bit
Version: 0.19.18686 (Git)
Build type: Release
Branch: master
Hash: f0cdad7f708c0185961cd7185e366df22e041d02
Python version: 3.6.7
Qt version: 5.12.1
Coin version: 4.0.0a
OCC version: 7.3.0
Locale: German/Germany (de_DE)

1. For test reasons I went directly to the problematic operation without a second job..
2. I choose XOR to cut the text out of the back side. Other options didn't work to my idea to have a text to engrave... Perhaps a newbie topic!?
3. On front side of my module I tested the pocket operation, too. I choose the surface where the two buttons are on. There is the same behavior, it took 30-60 sec and the toolcontroller is empty, too. Is there a problem with the pocket operation in this version?
chrisb
Posts: 20557
Joined: Tue Mar 17, 2015 9:14 am

Re: path hangs freeCAD 0.19

Postby chrisb » Mon Nov 25, 2019 12:24 am

I had a look at your file and would ask you to prepare a better test case. You say the issue occurs already on the front side, my guess is that it comes from the stair like pocket where it goes up on one side and down on the other.
So please
- use the latest 0.19 version
- remove the unneeded ShapeStrings MadeBy, dramu, Tag, Goecache
- remove everything from the backside
- simplify the top side as far as possible so that the issue still occurs
- upload the test file here.

For yourself you can repare/improve your model:
- remove the unneeded ShapeStrings MadeBy, dramu, Tag, Goecache
- for only one body in the whole model a Part container is overkill, remove it.
- don't use internal features from a body in Part operations, use the whole body instead
- Recommendation: use cut operations instead of XOR, because that's what you actually do.
- Try to mill with adaptive operation.
- Consider that with a 3mm mill you will only be able to mill a very rough outline of the ShapeStrings.