View Issue Details

IDProjectCategoryView StatusLast Update
0001318FreeCADBugpublic2014-03-02 17:39
ReporterNormD Assigned Towmayer  
PrioritynormalSeveritycrashReproducibilityalways
Status closedResolutionfixed 
PlatformWindowsOSXP ProOS VersionSP3
Product Version0.13 
Summary0001318: Crash when exporting .step file
DescriptionI use Edit -> Select All, then export, choose .step and FreeCad crashes.
Additional InformationVisual Studio debugger shows the crash is in free.c, Line 110. The crash is:

Unhandled exception at 0x07f73684 in FreeCAD.exe: 0xC0000005: Access violation reading location 0xfefd0000.

The part I made was a little strange, I was having problems making a part with an edge. I made a pad, then another pad on top of it then a pocket and another pocket (the first pocket did not go through the original pad.
TagsNo tags attached.
FreeCAD Information

Activities

NormD

2013-11-29 11:31

reporter  

Top.FCStd (Attachment missing)

wmayer

2013-11-29 17:19

administrator   ~0003910

> Access violation reading location 0xfefd0000.
The address indicates invalid part objects. So, it's probably not checked if a shape is null when exporting it.

Nevertheless, do NOT select all objects unless you are sure that they don't overlap. Otherwise when importing the STEP file it might give you a broken part object.

quick61

2013-11-29 22:45

reporter   ~0003913

The file Top.FCStd exports just fine in both STEP and STEP with colors format using the latest development version of FreeCAD. (0.14 - 2791 (Git) / OCC 6.6.0). I experienced trouble with STEP files in version 0.13 and earlier versions of 0.14 dev. The workaround for me was to use Part Workbench > Part > Export CAD and pick the STEP format, NOT the STEP with colors. NormD might want to try this approach along with the recommendations given by wmayer. If I am remembering correctly, there were some issues with older OCC in dealing with STEP with colors format.

wmayer

2013-11-30 12:54

administrator   ~0003914

I don't get a crash either with:

OS: Ubuntu 12.04.3 LTS
Platform: 32-bit
Version: 0.14.2781 (Git)
Branch: master
Hash: feeb053e18bb2d6a2b5364bb16c97467dcda9e58
Python version: 2.7.3
Qt version: 4.8.1
Coin version: 3.1.3
SoQt version: 1.5.0
OCC version: 6.5.0

wmayer

2014-03-02 17:18

administrator   ~0004357

Crash caused inside ExportOCAF::saveShape(Part::Feature* part, const std::vector<App::Color>& colors) due to null shape. Newer versions of OCC handle this also.

Related Changesets

FreeCAD: master 629d5cc1

2014-03-02 18:16:16

wmayer

Details Diff
+ fixes 0001318: Crash when exporting .step file Affected Issues
0001318
mod - src/Mod/Import/App/ImportOCAF.cpp Diff File

Issue History

Date Modified Username Field Change
2013-11-29 11:31 NormD New Issue
2013-11-29 11:31 NormD File Added: Top.FCStd
2013-11-29 17:19 wmayer Note Added: 0003910
2013-11-29 22:45 quick61 Note Added: 0003913
2013-11-30 12:54 wmayer Note Added: 0003914
2013-11-30 12:54 wmayer Resolution open => unable to reproduce
2014-03-02 17:17 wmayer Status new => confirmed
2014-03-02 17:17 wmayer Resolution unable to reproduce => open
2014-03-02 17:18 wmayer Note Added: 0004357
2014-03-02 17:39 wmayer Changeset attached => FreeCAD Master master 629d5cc1
2014-03-02 17:39 wmayer Assigned To => wmayer
2014-03-02 17:39 wmayer Status confirmed => closed
2014-03-02 17:39 wmayer Resolution open => fixed