View Issue Details

IDProjectCategoryView StatusLast Update
0002548FreeCADBugpublic2016-05-13 16:12
ReporterDeepSOIC Assigned Totanderson69  
PrioritynormalSeveritymajorReproducibilityalways
Status closedResolutionfixed 
OSWindowsOS Version10 
Fixed in Version0.17 
Summary0002548: Overflow exception in DAGView
DescriptionWhen creating a document dependency graph of a certain structure at once in a script, FreeCAD vanishes (closes with no error message or crash report)
Steps To Reproduce1. Ensure DAGView is enabled.
hint: to enable DAGView, go to Tools->Edit Parameters. Locate folder BaseApp->Preferences->DAGView, set boolean parameter named 'Enabled' to true. Restart FreeCAD. Then, you can find the DAGView window in View->Panels->DAG View (but it's not necessary to have the DAG view displayed for this test)
2. copy-paste this script to Py console:

import FreeCAD as App
import Part
if not App.ActiveDocument:
    App.newDocument()

def killer():
    vertex = App.ActiveDocument.addObject("Part::Vertex","Vertex")
    objs = []
    for i in range(60):
        o=App.ActiveDocument.addObject("Part::Extrusion","Extrude")
        o.Base = vertex
        o.Dir = App.Rotation(i,0,0).multVec(App.Vector(1,0,0))
        objs.append(o)
    grp = App.ActiveDocument.addObject("App::DocumentObjectGroup", "Group")
    grp.Group = objs

killer()

After this script finishes running, FreeCAD almost immediately closes.
Additional InformationOS: Windows 10
Word size of OS: 64-bit
Word size of FreeCAD: 64-bit
Version: 0.17.7453 (Git)
Build type: Release
Branch: master
Hash: af72ae09c143d9bb086a762b8cb9f1fb48ca3e5f
Python version: 2.7.8
Qt version: 4.8.7
Coin version: 4.0.0a
OCC version: 6.8.0.oce-0.17

The exception causing this was traced in discussion:
"Vanish (crash) probably in DAGView"
http://forum.freecadweb.org/viewtopic.php?f=3&t=15705

Werner has made some changes to exception handling, so the bug probably behaves differently now:
commit dd3f85d1a1b4d043fa7e86ab83508c6fa1a61345
https://github.com/FreeCAD/FreeCAD/commit/dd3f85d1a1b4d043fa7e86ab83508c6fa1a61345
TagsNo tags attached.
FreeCAD Information

Activities

tanderson69

2016-05-13 13:06

developer   ~0007088

https://github.com/blobfish/FreeCAD_sf_master/tree/dagviewBug

DON'T MERGE. just cherry-pick HEAD.

Related Changesets

FreeCAD: master 81ee548f

2016-05-13 14:42:29

blobfish


Committer: wmayer Details Diff
use bitset to_string for column retrieval Affected Issues
0002548
mod - src/Gui/DAGView/DAGModel.cpp Diff File
mod - src/Gui/DAGView/DAGModel.h Diff File

Issue History

Date Modified Username Field Change
2016-05-13 11:50 DeepSOIC New Issue
2016-05-13 12:57 tanderson69 Assigned To => tanderson69
2016-05-13 12:57 tanderson69 Status new => assigned
2016-05-13 13:06 tanderson69 Note Added: 0007088
2016-05-13 16:11 wmayer Changeset attached => FreeCAD Master master 81ee548f
2016-05-13 16:12 wmayer Status assigned => closed
2016-05-13 16:12 wmayer Resolution open => fixed
2016-05-13 16:12 wmayer Fixed in Version => 0.17