View Issue Details

IDProjectCategoryView StatusLast Update
0004119FreeCADBugpublic2019-09-09 13:40
Reportercbruner Assigned To 
PrioritynormalSeveritymajorReproducibilityalways
Status newResolutionopen 
Platformlinux-mintOSlinuxOS Version19.2
Product Version0.18 
Target VersionFixed in Version 
Summary0004119: spaces in names cause fail to parse expressions.
DescriptionForum discussion. https://forum.freecadweb.org/viewtopic.php?f=3&t=39153
OS: Linux Mint 19.2
Word size of OS: 64-bit
Word size of FreeCAD: 64-bit
Version: 0.18.16131 (Git) AppImage
Build type: Release
Branch: (HEAD detached at 0.18.3)
Hash: 3129ae4296e40ed20e7b3d460b86e6969acbe1c3
Python version: 3.6.7
Qt version: 5.6.2
Coin version: 4.0.0a
OCC version: 7.3.0
Locale: English/Canada (en_CA)
Steps To ReproduceFollow the Freecad tutorial video.
https://www.youtube.com/watch?v=C1JG6l1uIJw&t=773s at 18:06 he has created a master sketch with a rectangle and a line, which is called "HeightOfBlock".
I typed "Height of Block", which led to subsequent errors of "fail to parse expressions" Later in the tutorial
Figuring out the root cause was difficult and wasted many hours I had dedicated to learning freecad.

It can be resolved by several ways.
1. Give an error when spaces are used in names. (Either use them or don't, but don't accept them and then complain about it!)
2. Substitute "_" for " " whenever a name is added. This resolves the problem pretty simply and allows for names that look like they have spaces without actually having spaces.
3. Change the parser to handle names with spaces. (I think this is the worst solution).
Additional InformationThe Failure to parse expressions error occurred when trying to use the part, but it seemed to be referring to a cyclic redundancy problem, not the actual root cause.
Tagsexpressions
FreeCAD Information

Activities

cbruner

2019-09-09 13:40

reporter   ~0013561

I forgot to mention a crash which occurred due to this bug. I believe this to be a separate issue, but possibly related so I'm mentioning it here.

From the forum notes:
I started deleting the CC and noticed that the master was grey now, with a new sketch001 under it. Deleted that and got a segfault.

Show.TempoVis.isIn3DView error: Object has been removed from documentViewProviderSketch::setEdit: visibility automation failed with an error:
Traceback (most recent call last):
File "<string>", line 7, in <module>
File "/tmp/.mount_freecatHpNXG/usr/Mod/Show/TempoVis.py", line 118, in hide
self.modifyVPProperty(doc_obj_or_list, 'Visibility', False)
File "/tmp/.mount_freecatHpNXG/usr/Mod/Show/TempoVis.py", line 99, in modifyVPProperty
if not hasattr(doc_obj.ViewObject, prop_name):
<class 'RuntimeError'>: Object has been removed from document
App::Document::recompute(): cyclic dependency detected
Exception (Sat Sep 7 13:15:07 2019): Invalid constraint
App::Document::recompute(): cyclic dependency detected
App::Document::recompute(): cyclic dependency detected
Exception (Sat Sep 7 13:15:28 2019): Invalid constraint
App::Document::recompute(): cyclic dependency detected
Program received signal SIGSEGV, Segmentation fault.
/tmp/.mount_freecatHpNXG/AppRun: line 12: 12528 Segmentation fault (core dumped) ${HERE}/usr/bin/FreeCAD "$@"

Issue History

Date Modified Username Field Change
2019-09-09 04:41 cbruner New Issue
2019-09-09 10:57 openBrain Tag Attached: expressions
2019-09-09 13:40 cbruner Note Added: 0013561