View Issue Details

IDProjectCategoryView StatusLast Update
0002820FreeCADBugpublic2016-12-26 08:37
Reporterlanciaux Assigned To 
PrioritynormalSeveritycrashReproducibilityalways
Status closedResolutionno change required 
PlatformLinuxOSSuseOS Version42.1 / 42.2
Product Version0.17 
Fixed in Version0.17 
Summary0002820: Expressions in every properties crash
DescriptionExpressions evaluation are crashing even on setting simplest object properties. Whatever you change by using an expression it fails ... crash with segfault.
 
Steps To Reproduce1. Open FreeCAD (latest DEV as GIT 9281)
2. Open Part WB
3. Draw a cube
4. go to edit property length : it is written 10 mm
4a. Click on fx() button
4b. over expressions edit line supplied : type simply 10+1
4c. hit enter
5. It should have crashed
Additional InformationIt has been a while (~ 3 months) I had noticed several issues. Before, it was arriving mostly after lot of work (hours) and/or several parts open, etc. I thought to myself it was memory corruption/error (or garbage collector issue). Before it was annoying if you save your work on a regular way ... now this is critical because Fx() is useless.

In past months, WB locations where it was crashing more often were those when you use expressions to calculate offsets in tools like PartDesign 'Create A Linear Pattern feature'

It is similar in sketch constrainst expressions.
TagsNo tags attached.
FreeCAD Information

Relationships

related to 0002819 closed Sketcher Using expressions in a constraint results in segfault 

Activities

wmayer

2016-12-19 18:57

administrator   ~0007532

> 5. It should have crashed
No crash, neither under Ubuntu nor under Windows. Can you provide the stack trace of your crash?

lanciaux

2016-12-19 20:48

reporter   ~0007533

Here i my log (on another PC / Linux) :

lanciaux@linux:~/FreeCAD/_Build> FreeCAD -l
FreeCAD 0.17, Libs: 0.17R8907 (Git)
© Juergen Riegel, Werner Mayer, Yorik van Havre 2001-2016
  ##### #### ### ####
  # # # # # #
  # ## #### #### # # # # #
  #### # # # # # # # ##### # #
  # # #### #### # # # # #
  # # # # # # # # # ## ## ##
  # # #### #### ### # # #### ## ## ##

Fasteners workbench Loaded
Sheet Metal workbench loaded
Erreur de segmentation
lanciaux@linux:~/FreeCAD/_Build>

lanciaux

2016-12-19 20:49

reporter  

FreeCAD.log (Attachment missing)

wmayer

2016-12-20 17:01

administrator   ~0007535

Sorry, but the FreeCAD.log file is useless to find the reason. What I need is the stack trace that you can get with a debugger.

gdb ./FreeCAD
run
# reproduce the crash and then enter:
bt

lanciaux

2016-12-20 18:32

reporter  

freecad_gcb_crash_test (Attachment missing)

lanciaux

2016-12-20 18:37

reporter   ~0007536

From GDB output it look it could be related to Boost - I will investigate (all my Linux are Suse based)

wmayer

2016-12-22 11:42

administrator   ~0007546

Check if you are using boost 1.54. There is a known bug in this version and you should switch to a newer version e.g. 1.55 or later.

lanciaux

2016-12-25 21:07

reporter   ~0007549

Hello - I have checked 2 installs I was using : they were linked over boost 1.54 - I switch both to boost 1.61 devel and have not yet reproduced bug. Sorry for issue ... I try to close issue.

wmayer

2016-12-26 08:37

administrator   ~0007550

I'll close the ticket.

Issue History

Date Modified Username Field Change
2016-12-19 11:13 lanciaux New Issue
2016-12-19 18:57 wmayer Note Added: 0007532
2016-12-19 18:59 wmayer Relationship added related to 0002819
2016-12-19 20:48 lanciaux Note Added: 0007533
2016-12-19 20:49 lanciaux File Added: FreeCAD.log
2016-12-20 17:01 wmayer Note Added: 0007535
2016-12-20 18:32 lanciaux File Added: freecad_gcb_crash_test
2016-12-20 18:37 lanciaux Note Added: 0007536
2016-12-22 11:42 wmayer Note Added: 0007546
2016-12-25 21:07 lanciaux Note Added: 0007549
2016-12-26 08:37 wmayer Note Added: 0007550
2016-12-26 08:37 wmayer Status new => closed
2016-12-26 08:37 wmayer Resolution open => no change required
2016-12-26 08:37 wmayer Fixed in Version => 0.17