Another ERROR when exporting the G-Code

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!
Giulio Buccini
Posts: 541
Joined: Fri Aug 26, 2016 9:07 pm
Location: Munich - Gemany

Another ERROR when exporting the G-Code

Post by Giulio Buccini »

Hello,

even if updated to one of the latest 0.19 appimages available, I get another error after pushing the export button. It is similar to the (solved) one I posted few days ago:

Code: Select all

post: linuxcnc(/home/giulio/cadbook/handy-gas/magnets/Kinsey Magnet/cad/kinsey-tridisc-01-updown.ngc, )
linuxcnc_post gcode postprocessor loaded.
Show editor = 1
postprocessing...
Running the Python command 'Path_Post' failed:
Traceback (most recent call last):
  File "/tmp/.mount_FreeCAKc1WMx/usr/Mod/Path/PathScripts/PathPost.py", line 397, in Activated
    (fail, rc) = self.exportObjectsWith(finalpostlist, job)
  File "/tmp/.mount_FreeCAKc1WMx/usr/Mod/Path/PathScripts/PathPost.py", line 212, in exportObjectsWith
    gcode = processor.export(objs, filename, postArgs)
  File "/tmp/.mount_FreeCAKc1WMx/usr/Mod/Path/PathScripts/PathPostProcessor.py", line 102, in export
    return self.script.export(obj, filename, args)
  File "/tmp/.mount_FreeCAKc1WMx/usr/Mod/Path/PathScripts/post/linuxcnc_post.py", line 196, in export
    job = PathUtils.findParentJob(obj)
  File "/tmp/.mount_FreeCAKc1WMx/usr/Mod/Path/PathScripts/PathUtils.py", line 400, in findParentJob
    if hasattr(i, 'Proxy') and isinstance(i.Proxy, PathScripts.PathJob.ObjectJob):

Cannot access attribute 'Proxy' of deleted object
It is another bug?
I attach the Freecad file.
-------------------------------------------------------------
OS: Ubuntu 16.04.6 LTS (XFCE/xfce)
Word size of OS: 64-bit
Word size of FreeCAD: 64-bit
Version: 0.19.21280 (Git) AppImage
Build type: Release
Branch: master
Hash: 6f3160db3e88733536c7eaf97ad7d6ebd21baccd
Python version: 3.8.2
Qt version: 5.12.5
Coin version: 4.0.0
OCC version: 7.4.0
Locale: English/United States (en_US)
Attachments
kinsey-tridisc-01-updown.FCStd
(122.43 KiB) Downloaded 22 times
GeneFC
Veteran
Posts: 5373
Joined: Sat Mar 19, 2016 3:36 pm
Location: Punta Gorda, FL

Re: Another ERROR when exporting the G-Code

Post by GeneFC »

May not be helpful, but the g-code generation worked fine for me.

OS: Windows 7 SP 1 (6.1)
Word size of OS: 64-bit
Word size of FreeCAD: 64-bit
Version: 0.19.21280 (Git)
Build type: Release
Branch: master
Hash: 6f3160db3e88733536c7eaf97ad7d6ebd21baccd
Python version: 3.6.8
Qt version: 5.12.1
Coin version: 4.0.0a
OCC version: 7.3.0
Locale: English/United States (en_US)

It is probably some sort of packaging problem rather than a FreeCAD Path problem.

Gene
Giulio Buccini
Posts: 541
Joined: Fri Aug 26, 2016 9:07 pm
Location: Munich - Gemany

Re: Another ERROR when exporting the G-Code

Post by Giulio Buccini »

TRUE! :o
I've got the .ngc file with no error messages this time.

What is going on? I tried to export the g-code several times with no success....
I also tried to delete all of the milling operation but the first one (axis hole). Again the same error.

Why restarting Freecad solved the issue? Memory problems?
Giulio Buccini
Posts: 541
Joined: Fri Aug 26, 2016 9:07 pm
Location: Munich - Gemany

Re: Another ERROR when exporting the G-Code

Post by Giulio Buccini »

Uh!
It has happened again with another Freecad model obtained with some modifications from the model above.

1. I've created the model
2. I've added the Path job
3. I've added the Operations
4. I made the simulation
5. I've pushed the g-code export button... boom! The same error.

If I close and restart Freecad then the export procedure works like a charm...
User avatar
Wsk8
Posts: 182
Joined: Fri Dec 07, 2018 6:24 pm

Re: Another ERROR when exporting the G-Code

Post by Wsk8 »

Which operation? Could you be a bit more specific how to reproduce the problem? It seems something is not cleared correctly.

mfg
herbk
Veteran
Posts: 2657
Joined: Mon Nov 03, 2014 3:45 pm
Location: Windsbach, Bavarya (Germany)

Re: Another ERROR when exporting the G-Code

Post by herbk »

Hi Giulio,
Giulio Buccini wrote: Mon Jun 01, 2020 8:15 pm 4. I made the simulation
is the simulation selected instead the Job if you try to export?
Gruß Herbert
Giulio Buccini
Posts: 541
Joined: Fri Aug 26, 2016 9:07 pm
Location: Munich - Gemany

Re: Another ERROR when exporting the G-Code

Post by Giulio Buccini »

Wsk8 wrote: Mon Jun 01, 2020 8:37 pm Which operation? Could you be a bit more specific how to reproduce the problem? It seems something is not cleared correctly.
I meant the milling operations
Giulio Buccini
Posts: 541
Joined: Fri Aug 26, 2016 9:07 pm
Location: Munich - Gemany

Re: Another ERROR when exporting the G-Code

Post by Giulio Buccini »

herbk wrote: Mon Jun 01, 2020 8:52 pm is the simulation selected instead the Job if you try to export?
No. Is the job.
Giulio Buccini
Posts: 541
Joined: Fri Aug 26, 2016 9:07 pm
Location: Munich - Gemany

Re: Another ERROR when exporting the G-Code

Post by Giulio Buccini »

Now I cannot reproduce the error. It is quite frustrating...

After restarting Freecad from the scratch everything seems working fine. :?
GeneFC
Veteran
Posts: 5373
Joined: Sat Mar 19, 2016 3:36 pm
Location: Punta Gorda, FL

Re: Another ERROR when exporting the G-Code

Post by GeneFC »

I occasionally see some sort of problems that can only be solved by restarting FreeCAD. Typically this occurs after some some of error and an attempt at correction. A recompute usually works, but not always.

There is probably some parameter somewhere that does not reset correctly after an undo. Difficult to repeat and difficult to identify.

Gene
Post Reply