View Issue Details

IDProjectCategoryView StatusLast Update
0003024SketcherBugpublic2017-09-24 22:15
Reporterbarnacleduck Assigned To 
PrioritynormalSeveritymajorReproducibilityalways
Status closedResolutionno change required 
Product Version0.17 
Fixed in Version0.17 
Summary0003024: Sketcher crashes on expression referring to named constraint
DescriptionIf I try to set a constraint by reference to a named constraint FreeCAD crashes. The only output I get is:
Segmentation fault (core dumped)
Steps To ReproduceStart FreeCAD
New document
Select Part Design workbench
Task-> create a body
Task -> create sketch
Select -> XY plane -> ok

create a line (any two points)
fix a length of line -> 1-line
length = 10mm
name = my_dist

create a second line
fix a length of line -> 2-line
for length click expression icon
Either:
Type C
Use down arrow to choose Constraints.my_dist
= Segmentation fault (core dumped)
or
type Constraints.my_dist
= Segmentation fault (core dumped)
Additional InformationOS: "openSUSE Leap 42.2"
Word size of OS: 64-bit
Word size of FreeCAD: 64-bit
Version: 0.17.10236 (Git) (Packman)
Build type: Release
Branch: master
Hash: dd20ba3d068c4a0903417d93144f8ac7fed068e9
Python version: 2.7.12
Qt version: 4.8.6
Coin version: 4.0.0a
OCC version: 6.9.1.oce-0.18-dev
Tagsexpressions
FreeCAD Information

Activities

Kunda1

2017-05-07 13:57

administrator   ~0008899

Please open a forum thread and bidirectionally link ticket <=> thread

barnacleduck

2017-05-07 23:05

reporter   ~0008907

Sorry, this is my first report. Where do I open the thread and how do I link it? (just include https://freecadweb.org/tracker/view.php?id=3024 ?)

Kunda1

2017-05-08 01:25

administrator   ~0008908

Thanks, please open a thread in https://forum.freecadweb.org/viewforum.php?f=8
And paste the description of the bug and a link to the ticket. Then notate the URL of the forum thread to the ticket

barnacleduck

2017-05-08 05:46

reporter   ~0008912

Xref: https://forum.freecadweb.org/viewtopic.php?f=8&t=22322
NB: my (short) experience of FreeCAD is that it is not very stable generally. It may be something in my environment?

chrisb

2017-05-08 06:20

developer   ~0008914

No problem here. The crash reported might be due to an outdated version
OS: Ubuntu 14.04.5 LTS
Word size of OS: 64-bit
Word size of FreeCAD: 64-bit
Version: 0.17.10993 (Git)
Build type: None
Branch: master
Hash: bf5f3484f6f5506795b6e9b86288c75ab7357291
Python version: 2.7.6
Qt version: 4.8.6
Coin version: 4.0.0a
OCC version: 7.1.0

barnacleduck

2017-05-15 12:54

reporter   ~0009019

I have downloaded the latest appimage from here:
https://www.freecadweb.org/wiki/Download
That is:
https://github.com/FreeCAD/FreeCAD/releases/download/0.16/FreeCAD-0.16.6707.glibc2.17-x86_64.AppImage

It seems to be an older version:
OS: "openSUSE Leap 42.2"
Word size of OS: 64-bit
Word size of FreeCAD: 64-bit
Version: 0.16.6707 (Git)
Build type: None
Branch: releases/FreeCAD-0-16
Hash: 5465bc47c95db45e0be85dc0e2872419efadce0f
Python version: 2.7.6
Qt version: 4.8.6
Coin version: 4.0.0a
OCC version: 6.8.0.oce-0.17

However, it doesn't crash with these constraints, but doesn't update changed constraints. Also, contraints with an expression don't seem to work - eg =Constraints.my_dist+3

I have gone to github to get the development version:
OS: "openSUSE Leap 42.2"
Word size of OS: 64-bit
Word size of FreeCAD: 64-bit
Version: 0.17.10600 (Git)
Build type: None
Branch: master
Hash: 4d9169faf778e9716fc647fb3fcf46462b5d99a4
Python version: 2.7.6
Qt version: 4.8.6
Coin version: 4.0.0a
OCC version: 7.1.0

(apparently still not quite up to date?)
That does not crash. Constraint dependencies are updated when the parent constraint is updated. Does not parse =Constraint.my_dist+3
Am I supposed to use a spreadsheet for this (=Constraint.my_dist+3) instead?

Kunda1

2017-05-15 14:56

administrator   ~0009022

@eivindkvedalen do you mind weighing in on this?

eivindkvedalen

2017-06-09 20:17

developer   ~0009320

When you enter formulas in the Constraint dialog box, don't use the equal sign; write the expression directly. The equal sign is only used in the spreadsheet workbench to differentiate formulas from text/numbers.

Kunda1

2017-06-09 21:52

administrator   ~0009322

@eivindkvedalen isn't that how excel spreadsheet triggers the formula editor? If so, not to do that would be, in my mind, not very intuitive.

Issue History

Date Modified Username Field Change
2017-05-07 03:22 barnacleduck New Issue
2017-05-07 13:57 Kunda1 Note Added: 0008899
2017-05-07 15:01 Kunda1 Tag Attached: expressions
2017-05-07 23:05 barnacleduck Note Added: 0008907
2017-05-08 01:25 Kunda1 Note Added: 0008908
2017-05-08 05:46 barnacleduck Note Added: 0008912
2017-05-08 06:20 chrisb Note Added: 0008914
2017-05-15 12:54 barnacleduck Note Added: 0009019
2017-05-15 14:56 Kunda1 Note Added: 0009022
2017-06-09 20:17 eivindkvedalen Note Added: 0009320
2017-06-09 21:52 Kunda1 Note Added: 0009322
2017-09-24 22:15 wmayer Status new => closed
2017-09-24 22:15 wmayer Resolution open => no change required
2017-09-24 22:15 wmayer Fixed in Version => 0.17