Ticket #4817 - CAM Simulator fails

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
anka
Posts: 23
Joined: Wed Oct 14, 2020 9:28 am

Ticket #4817 - CAM Simulator fails

Post by anka »

Hi all,

trying to run cam simulation gets following error :

Code: Select all

Running the Python command 'Path_Simulator' failed:
Traceback (most recent call last):
  File "/Applications/FreeCAD.app/Contents/Resources/Mod/Path/PathScripts/PathSimulatorGui.py", line 588, in Activated
    pathSimulation.Activate()
  File "/Applications/FreeCAD.app/Contents/Resources/Mod/Path/PathScripts/PathSimulatorGui.py", line 103, in Activate
    self.onJobChange()
  File "/Applications/FreeCAD.app/Contents/Resources/Mod/Path/PathScripts/PathSimulatorGui.py", line 459, in onJobChange
    for op in j.Operations.OutList:

Cannot access attribute 'Operations' of deleted object

Up to version 0.20 FreeCAD_weekly-builds-26554-OSX-x86_64-conda, cam simulation worked ok.


Anyone an idea ?
Tnx, AK


OS: macOS 10.16
Word size of FreeCAD: 64-bit
Version: 0.20.26720 (Git)
Build type: Release
Python version: 3.9.9
Qt version: 5.12.9
Coin version: 4.0.0
OCC version: 7.5.3
Locale: C/Default (C)
Last edited by Kunda1 on Wed Jan 19, 2022 6:06 pm, edited 1 time in total.
Reason: Added ticket number to thread title
chrisb
Veteran
Posts: 53933
Joined: Tue Mar 17, 2015 9:14 am

Re: CAM Simulator fails

Post by chrisb »

It looks as if you have somehow scrambled your Job, but it's hard to say without the file. The crystal ball is still out for service to be in perfect condition for the next year's predictions.
A Sketcher Lecture with in-depth information is available in English, auf Deutsch, en français, en español.
bmsaus4ax
Posts: 255
Joined: Sat Nov 14, 2020 9:16 pm
Location: Bargara, Queensland, Australia UTC+10

Re: CAM Simulator fails

Post by bmsaus4ax »

anka wrote: Fri Dec 31, 2021 4:45 am Hi all,

Anyone an idea ?
Tnx, AK

This happens for me if I close a file and then reopen it, or any other file, without closing completely out of FreeCAD.
Once a file has been closed no further attempts at simulation run.
If you completely close the program and open a new copy , simulation will then work without error.

Although the attached version info is the latest this has been happening for a few versions.
.
OS: Ubuntu 20.04.3 LTS (ubuntu:GNOME/ubuntu)
Word size of FreeCAD: 64-bit
Version: 0.20.26720 (Git) AppImage
Build type: Release
Branch: (HEAD detached at 7bca26e)
Hash: 7bca26e7c14d4d43374ff7e0c8582735b249cbfd
Python version: 3.9.9
Qt version: 5.12.9
Coin version: 4.0.0
OCC version: 7.5.3
Locale: English/Australia (en_AU)
User avatar
sliptonic
Veteran
Posts: 3457
Joined: Tue Oct 25, 2011 10:46 pm
Location: Columbia, Missouri
Contact:

Re: CAM Simulator fails

Post by sliptonic »

bmsaus4ax wrote: Fri Dec 31, 2021 9:25 pm
This happens for me if I close a file and then reopen it, or any other file, without closing completely out of FreeCAD.
Once a file has been closed no further attempts at simulation run.
If you completely close the program and open a new copy , simulation will then work without error.
Neat. If this is reproducible, please open a ticket.
bmsaus4ax
Posts: 255
Joined: Sat Nov 14, 2020 9:16 pm
Location: Bargara, Queensland, Australia UTC+10

Re: CAM Simulator fails

Post by bmsaus4ax »

sliptonic wrote: Tue Jan 04, 2022 3:15 pm
bmsaus4ax wrote: Fri Dec 31, 2021 9:25 pm

Neat. If this is reproducible, please open a ticket.
Still working on how to do the create ticket.

Tested back through saved AppImages and find it starts with 25541 (Conda )

OS: Ubuntu 20.04.3 LTS (ubuntu:GNOME/ubuntu)
Word size of FreeCAD: 64-bit
Version: 0.20.25541 (Git) AppImage
Build type: Release
Branch: master
Hash: ca043dcb6d20d70b8e24d75e810683214eecc5d4
Python version: 3.9.6
Qt version: 5.12.9
Coin version: 4.0.0
OCC version: 7.5.2
Locale: English/Australia (en_AU)

This appears to be aligned with the commit on August 14, 2021. Russ4262

Change involves : jobList = FreeCAD.ActiveDocument.findObjects("Path::FeaturePython", "Job.*")
is taken out of "def Activate(self)"
and " def _populateJobSelection(self, form):" is created

https://github.com/FreeCAD/FreeCAD/comm ... ba2ae4debd

The error points to the lines numbers involved in this.
Russ4262
Posts: 941
Joined: Sat Jun 30, 2018 3:22 pm
Location: Oklahoma
Contact:

Re: CAM Simulator fails

Post by Russ4262 »

Thanks for finding.

Thanks for reporting.

Thanks for fixing.

Russell
bmsaus4ax
Posts: 255
Joined: Sat Nov 14, 2020 9:16 pm
Location: Bargara, Queensland, Australia UTC+10

Re: CAM Simulator fails

Post by bmsaus4ax »

Russ4262 wrote: Fri Jan 07, 2022 6:02 pm Thanks for finding.

Thanks for reporting.

Thanks for fixing.

Russell
Fix tested and confirmed as of AppImage update: Version: 0.20.27078 (Git) AppImage

Thank you.

OS: Ubuntu 20.04.3 LTS (ubuntu:GNOME/ubuntu)
Word size of FreeCAD: 64-bit
Version: 0.20.27078 (Git) AppImage
Build type: Release
Branch: (HEAD detached at bcdd926)
Hash: bcdd926686f2245fe60baface1cce1ab3dff7a5b
Python version: 3.9.9
Qt version: 5.12.9
Coin version: 4.0.0
OCC version: 7.5.3
Locale: English/Australia (en_AU)
User avatar
Kunda1
Veteran
Posts: 13434
Joined: Thu Jan 05, 2017 9:03 pm

Re: Ticket #4817 - CAM Simulator fails

Post by Kunda1 »

Closing issue #4817 in that case
Alone you go faster. Together we go farther
Please mark thread [Solved]
Want to contribute back to FC? Checkout:
'good first issues' | Open TODOs and FIXMEs | How to Help FreeCAD | How to report Bugs
Post Reply