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!
Post Reply
User avatar
Roy_043
Veteran
Posts: 8552
Joined: Thu Dec 27, 2018 12:28 pm

Dependency graph fails when using formula in attachment offset?

Post by Roy_043 »

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 20 times
kisolre
Veteran
Posts: 4166
Joined: Wed Nov 21, 2018 1:13 pm

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

Post by kisolre »

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
Veteran
Posts: 54201
Joined: Tue Mar 17, 2015 9:14 am

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

Post by chrisb »

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".
A Sketcher Lecture with in-depth information is available in English, auf Deutsch, en français, en español.
User avatar
Roy_043
Veteran
Posts: 8552
Joined: Thu Dec 27, 2018 12:28 pm

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

Post by Roy_043 »

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 17 times
vocx
Veteran
Posts: 5197
Joined: Thu Oct 18, 2018 9:18 pm

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

Post by vocx »

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.
Always add the important information to your posts if you need help. Also see Tutorials and Video tutorials.
To support the documentation effort, and code development, your donation is appreciated: liberapay.com/FreeCAD.
chrisb
Veteran
Posts: 54201
Joined: Tue Mar 17, 2015 9:14 am

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

Post by chrisb »

2.38 was known to show problems. If you cannot upgrade, you should downgrade to 2.36.
A Sketcher Lecture with in-depth information is available in English, auf Deutsch, en français, en español.
User avatar
Roy_043
Veteran
Posts: 8552
Joined: Thu Dec 27, 2018 12:28 pm

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

Post by Roy_043 »

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

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

Post by UR_ »

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
User avatar
Roy_043
Veteran
Posts: 8552
Joined: Thu Dec 27, 2018 12:28 pm

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

Post by Roy_043 »

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.
Post Reply