Dependency graph fails when using formula in attachment offset?

Post here for help on using FreeCAD's graphical user interface (GUI).
Forum rules
and Helpful information
IMPORTANT: Please click here and read this first, before asking for help

Also, be nice to others! Read the FreeCAD code of conduct!
Roy_043
Posts: 504
Joined: Thu Dec 27, 2018 12:28 pm

Dependency graph fails when using formula in attachment offset?

Postby Roy_043 » Fri Oct 11, 2019 10:55 am

I have come across a situation where using a formula in the attachment offset of a sketch results in a dependency graph failure.
I wonder if I am doing something wrong or if this is perhaps a bug or a known issue.

Test:
  1. Open the attached file.
  2. Create a dependency graph: OK.
  3. Change the Attachment Offset X value of Sketch004 (Label=WindowOutline). Use this formula: Sketch001.AttachmentOffset.Base.x
  4. Create a dependency graph: Fail.

Code: Select all

OS: Windows 8.1 (6.3)
Word size of OS: 64-bit
Word size of FreeCAD: 64-bit
Version: 0.19.18504 (Git)
Build type: Release
Branch: master
Hash: f66023a646db4b2502bb3637897443b3525ca3c7
Python version: 3.6.8
Qt version: 5.12.1
Coin version: 4.0.0a
OCC version: 7.3.0
Locale: Dutch/Netherlands (nl_NL)
Attachments
WindowSill.FCStd
(30.98 KiB) Downloaded 6 times
kisolre
Posts: 1360
Joined: Wed Nov 21, 2018 1:13 pm

Re: Dependency graph fails when using formula in attachment offset?

Postby kisolre » Fri Oct 11, 2019 11:38 am

No problem here:

OS: Windows 8.1 (6.3)
Word size of OS: 64-bit
Word size of FreeCAD: 64-bit
Version: 0.19.18504 (Git)
Build type: Release
Branch: master
Hash: f66023a646db4b2502bb3637897443b3525ca3c7
Python version: 3.6.8
Qt version: 5.12.1
Coin version: 4.0.0a
OCC version: 7.3.0
Locale: Bulgarian/Bulgaria (bg_BG)

What is your Graphviz version? I think I am using graphviz-windows_2.41.81.
chrisb
Posts: 18991
Joined: Tue Mar 17, 2015 9:14 am

Re: Dependency graph fails when using formula in attachment offset?

Postby chrisb » Fri Oct 11, 2019 1:12 pm

kisolre wrote:
Fri Oct 11, 2019 11:38 am
What is your Graphviz version? I think I am using graphviz-windows_2.41.81.
To find out call the program "dot" from the graphviz package with the parameter "-v".
Roy_043
Posts: 504
Joined: Thu Dec 27, 2018 12:28 pm

Re: Dependency graph fails when using formula in attachment offset?

Postby Roy_043 » Fri Oct 11, 2019 2:10 pm

Thanks for your answers. On the download page I find that I am using the current stable Windows version: 2.38. Maybe @kisolre is using a dev version?

It is a strange problem anyway, because after continuing to work with the file the problem mysteriously seems to go away. See the attached file.
Attachments
WindowSill_001.FCStd
(34.8 KiB) Downloaded 2 times
vocx
Posts: 1687
Joined: Thu Oct 18, 2018 9:18 pm

Re: Dependency graph fails when using formula in attachment offset?

Postby vocx » Fri Oct 11, 2019 3:39 pm

Roy_043 wrote:
Fri Oct 11, 2019 2:10 pm
Thanks for your answers. On the download page I find that I am using the current stable Windows version: 2.38. Maybe @kisolre is using a dev version?...
In Ubuntu 18.04

Code: Select all

dot -v
dot - graphviz version 2.40.1 (20161225.0304)
This tells me that version 2.40 was released back in 2016. And Ubuntu is known for having old packages. Probably there is an even newer version right now. If I may guess, I'd say the version 2.38 that you reference is quite old.
chrisb
Posts: 18991
Joined: Tue Mar 17, 2015 9:14 am

Re: Dependency graph fails when using formula in attachment offset?

Postby chrisb » Fri Oct 11, 2019 4:44 pm

2.38 was known to show problems. If you cannot upgrade, you should downgrade to 2.36.
Roy_043
Posts: 504
Joined: Thu Dec 27, 2018 12:28 pm

Re: Dependency graph fails when using formula in attachment offset?

Postby Roy_043 » Fri Oct 11, 2019 5:47 pm

Apparently development is at 2.43, But the official Windows version is stuck at 2.38. I am unable to find 2.36.
UR_
Posts: 991
Joined: Tue Jan 03, 2017 8:42 pm

Re: Dependency graph fails when using formula in attachment offset?

Postby UR_ » Fri Oct 11, 2019 6:00 pm

Roy_043 wrote:
Fri Oct 11, 2019 5:47 pm
ut the official Windows version is stuck at 2.38.
latest windows build: https://ci.appveyor.com/api/buildjobs/k ... indows.zip
Roy_043
Posts: 504
Joined: Thu Dec 27, 2018 12:28 pm

Re: Dependency graph fails when using formula in attachment offset?

Postby Roy_043 » Fri Oct 11, 2019 6:53 pm

Thanks. But I still get the error.
Note: Where I said "Sketch004 (Label=WindowOutline)" in the OP, I should have said "Sketch002 (Label=WindowOutline)". This may have confused the issue.