View Issue Details

IDProjectCategoryView StatusLast Update
0000887DraftBugpublic2012-11-23 19:45
Reporterdarthfrodo Assigned Toyorik  
PrioritynormalSeveritycrashReproducibilityalways
Status closedResolutionfixed 
PlatformArch LinuxOSGnu/LinuxOS Versionupdated 11/22/12
Fixed in Version0.13 
Summary0000887: Clicking to close b-spline causes seg-fault
DescriptionWhen closing a b-spline in the drafting module by clicking on the first point, the program seg-faults. The error doesn't occur if the spline is closed with the button in the draft command bar, or by pressing 'c'.

This bug also appears in 0.12 Revision 5382
Steps To Reproduce-Create a new document
-Click the 'multipoint b-spline' button in the drafting bar
-Click out two or more points and close it by clicking on the initial point.
Additional InformationOutput to command line:
$ freecad-git
FreeCAD 0.13, Libs: 0.13R1665 (Git)
© Juergen Riegel, Werner Mayer, Yorik van Havre 2001-2011
  ##### #### ### ####
  # # # # # #
  # ## #### #### # # # # #
  #### # # # # # # # ##### # #
  # # #### #### # # # # #
  # # # # # # # # # ## ## ##
  # # #### #### ### # # #### ## ## ##

matplotlib not found, Plot module will be disabled
pycollada not found, collada support will be disabled.
Pick first point:
Pick next point:
Pick next point, or (F)inish or (C)lose:
Pick next point, or (F)inish or (C)lose:
Pick next point, or (F)inish or (C)lose:
Last point has been removed
Spline has been closed
Segmentation fault
$

I've attached a gdb backtrace. Let me know if anything else could be useful.
TagsNo tags attached.
FreeCAD Information

Activities

2012-11-23 06:03

 

backtrace.txt (Attachment missing)

yorik

2012-11-23 11:18

administrator   ~0002577

Ok, I'll look into it...

wmayer

2012-11-23 16:40

administrator   ~0002580

When finish creating the b-spline with a double click in debug mode this message comes up:
Coin warning in SoChildList::traverse(): Detected modification of scene graph layout during action traversal. This is considered to be hazardous and error prone, and we strongly advice you to change your code and/or reorganize your scene graph so that this is not necessary.

I guess that's why it crashes in release mode.

yorik

2012-11-23 19:45

administrator   ~0002582

Ok I committed a fix in a2a7f41 that removes the unwanted scene traversal. That should indeed solve the problem (the scene traversal error message appears in the same conditions as when the OP says the crash occurs). I'll close this bug report, don't hesitate to reopen if the crash still occurs.

Issue History

Date Modified Username Field Change
2012-11-23 06:03 darthfrodo New Issue
2012-11-23 06:03 darthfrodo File Added: backtrace.txt
2012-11-23 11:18 yorik Status new => assigned
2012-11-23 11:18 yorik Assigned To => yorik
2012-11-23 11:18 yorik Note Added: 0002577
2012-11-23 16:40 wmayer Note Added: 0002580
2012-11-23 19:45 yorik Note Added: 0002582
2012-11-23 19:45 yorik Status assigned => closed
2012-11-23 19:45 yorik Resolution open => fixed
2012-11-23 19:45 yorik Fixed in Version => 0.13