SYSTEM WARNING: 'date_default_timezone_get(): It is not safe to rely on the system's timezone settings. You are *required* to use the date.timezone setting or the date_default_timezone_set() function. In case you used any of those methods and you are still getting this warning, you most likely misspelled the timezone identifier. We selected the timezone 'UTC' for now, but please set date.timezone to select your timezone.' in '/home/freecadweb/public_html/tracker/core.php' line 274

0002717: Access Violation creating sweep - FreeCAD Tracker
FreeCAD Tracker

View Issue Details Jump to Notes ] Issue History ] Print ]
IDProjectCategoryView StatusDate SubmittedLast Update
0002717PartDesignBugpublic2016-09-30 21:342017-01-19 13:33
Reporterbitwise 
Assigned To 
PriorityhighSeveritymajorReproducibilityalways
StatusnewResolutionopen 
PlatformWindows 10OSWindows 10 64bit ProOS Version
Product Version0.16 
Target VersionFixed in Version 
Summary0002717: Access Violation creating sweep
DescriptionI get an Access Violation at address 0x00000010 during 'READ' operation when attempting to create a sweep.
Steps To ReproduceCreate a sweep by selecting the Profile sketch in the sweep dialog and click the lines in the Path sketch. Does not work with Create Solid check or not.
Tags#pending
Attached Files? file icon Bottom Of Tiller.FCStd [^] (5,637 bytes) 2016-09-30 21:34
? file icon Bottom Of Tiller_normandc2.FCStd [^] (24,235 bytes) 2016-10-15 20:23
? file icon sweep-error.FCStd [^] (72,780 bytes) 2016-10-15 21:29

- Relationships

-  Notes
(0007371)
normandc (manager)
2016-10-15 20:14

I confirm the crash on

OS: Ubuntu 14.04.5 LTS
Word size of OS: 64-bit
Word size of FreeCAD: 64-bit
Version: 0.16.6703 (Git)
Build type: None
Branch: releases/FreeCAD-0-16
Hash: 2ce5c8d2e3020d05005ed71f710e09e9aa561f40
Python version: 2.7.6
Qt version: 4.8.6
Coin version: 4.0.0a
OCC version: 6.8.0.oce-0.17

Oddly, if I run FreeCAD with gdb, I can't get a crash, and the Part Sweep partially succeeds: it sweeps one edge (left rounded corner of the profile).

That being said, The vertical and horizontal lines at the centre of the profile are unnecessary, and would actually prevent Sweep from creating a solid (deleting them does not prevent the crash). I also do not understand why you created your profile with so many straight segments. Please explain what's your intention here. Did you want the sweep to generate separate coplanar faces?
(0007372)
normandc (manager)
2016-10-15 20:24

With a properly constrained Profile sketch, FreeCAD does not crash and the Part Sweep works as expected. See Bottom of Tiller_normandc2.fcstd.
(0007373)
normandc (manager)
2016-10-15 20:30

I found the problem: the Profile sketch contains a line that is overlapping two other lines. This can be seen in the Elements list. 13-Line overlaps 1-Line and 2-Line. There is also a useless point added at the origin.

Granted FreeCAD should not crash, but this is an improper sketch to begin with. Therefore, it would have been more appropriate to talk about this in the forum first, as explained in the "Read this before reporting" link from the "ISSUES" menu.

@ wmayer: do you think this bug report should be closed?
(0007379)
tedbeer (reporter)
2016-10-15 21:34
edited on: 2016-10-15 21:35

I confirm the problem exists on my test case.
It's reproducible in both last release versions - v0.16 and v0.15
It uses a simple circle sketch to sweep and a simple BSpline generated from macro as a path.
Results are quite odd.

When BSpline is short it sweeps successfully.
When BSpline is longer - it fails with Input error: TCollection_IndexedDataMap::FindFromKey
When BSpline is even more longer - it fails with ACCESS VIOLATION at address 0x00000000 during 'READ' operation

I have attached my "sweep-error" test case. It contains all 3 cases.

OS: Windows 8.1
Word size of OS: 64-bit
Word size of FreeCAD: 64-bit
Version: 0.16.6706 (Git)
Build type: Release
Branch: releases/FreeCAD-0-16
Hash: f86a4e411ff7848dea98d7242f43b7774bee8fa0
Python version: 2.7.8
Qt version: 4.8.7
Coin version: 4.0.0a
OCC version: 6.8.0.oce-0.17


OS: Windows 8.1
Word size of OS: 64-bit
Word size of FreeCAD: 64-bit
Version: 0.15.4671 (Git)
Branch: releases/FreeCAD-0-15
Hash: 244b3aef360841646cbfe80a1b225c8b39c8380c
Python version: 2.7.8
Qt version: 4.8.6
Coin version: 4.0.0a
OCC version: 6.8.0.oce-0.17

(0007380)
normandc (manager)
2016-10-15 21:37

tedbeer, using a BSpline as path sweep is a totally different issue. Please create a new bug report for it (maybe check if one already exists first). BTW it's been discussed lately on the forum.
(0007643)
Kunda1 (manager)
2017-01-11 19:30

@tedbeer as per normandc please open a new bug (since I can't seem to find a relevant one)

@wmayer as per normandc in 0002717:0007373 can this ticket be closed?

- Issue History
Date Modified Username Field Change
2016-09-30 21:34 bitwise New Issue
2016-09-30 21:34 bitwise File Added: Bottom Of Tiller.FCStd
2016-10-15 20:14 normandc Note Added: 0007371
2016-10-15 20:23 normandc File Added: Bottom Of Tiller_normandc2.FCStd
2016-10-15 20:24 normandc Note Added: 0007372
2016-10-15 20:30 normandc Note Added: 0007373
2016-10-15 21:29 tedbeer File Added: sweep-error.FCStd
2016-10-15 21:34 tedbeer Note Added: 0007379
2016-10-15 21:35 tedbeer Note Edited: 0007379 View Revisions
2016-10-15 21:37 normandc Note Added: 0007380
2017-01-11 19:30 Kunda1 Note Added: 0007643
2017-01-19 13:13 Kunda1 Tag Attached: #pending


Copyright © 2000 - 2017 MantisBT Team
Powered by Mantis Bugtracker