MantisBT
Mantis Bug Tracker Workflow

View Issue Details Jump to Notes ] Issue History ] Print ]
IDProjectCategoryView StatusDate SubmittedLast Update
0031685Community[OCCT] OCCT:Data Exchangepublic2020-07-23 18:412020-07-24 12:34
Reporterrobertlipman 
Assigned Togka 
PrioritynormalSeveritycrash 
StatusnewResolutionopen 
PlatformOSOS Version
Product Version[OCCT] 7.0.0 
Target Version[OCCT] 7.5.0*Fixed in Version 
Summary0031685: Data Exchange, STEPCAFControl_Reader - NULL dereference on translating PLACED_DATUM_TARGET_FEATURE
DescriptionCAD Assistant crashes when importing the attached SolidWorks STEP files. There is nothing unusual about the STEP files. Other viewers correctly import the files. This issue might have already been resolved in 7.5.0. I have reported other problems with STEP file import.
Steps To ReproduceImport the STEP files into CAD Assistant.

pload XDE OCAF VISUALIZATION
# reading STEP is OK
#teatreadstep NIST_FTC_10_ASME1_RB_SW1802.STP s
# translation into XCAF document crashes with NULL dereference
ReadStep D NIST_FTC_10_ASME1_RB_SW1802.STP
TagsNo tags attached.
Test case number
Attached Fileszip file icon SolidWorks-OCCT.zip (2,241,792 bytes) 2020-07-23 18:41

- Relationships

-  Notes
(0093282)
kgv (developer)
2020-07-24 12:23
edited on: 2020-07-24 12:34

STEPCAFControl_Reader crashes on trying to translate the PLACED_DATUM_TARGET_FEATURE referring to PRODUCT_DEFINITION_SHAPE:
0000025=PRODUCT_DEFINITION('design','',#11580,#11578);
0000023=PRODUCT_DEFINITION_SHAPE('','',0000025);
#12714=PLACED_DATUM_TARGET_FEATURE('DetailItem65','area',0000023,.T.,'1');


as code expects only StepAP242_GeometricItemSpecificUsage and not StepRepr_ProductDefinitionShape here (regression after 0031685 in OCCT 7.0.0):
    if (aType == XCAFDimTolObjects_DatumTargetType_Area) {
      // Area datum target
      Interface_EntityIterator anIterDTF = aGraph.Shareds(aDT);
      Handle(StepAP242_GeometricItemSpecificUsage) aGISU;
      for (; anIterDTF.More() && aGISU.IsNull(); anIterDTF.Next()) {
        aGISU = Handle(StepAP242_GeometricItemSpecificUsage)::DownCast(anIterDTF.Value());
      }
      Handle(StepRepr_RepresentationItem) anItem;
      if (aGISU->NbIdentifiedItem() > 0)
        anItem = aGISU->IdentifiedItemValue(1);


(0093283)
git (administrator)
2020-07-24 12:32

Branch CR31685 has been created by kgv.

SHA-1: 76f901bac02f2bf48a6f112388196121f35c7e62


Detailed log of new commits:

Author: kgv
Date: Fri Jul 24 12:34:37 2020 +0300

    0031685: Data Exchange, STEPCAFControl_Reader - NULL dereference on translating PLACED_DATUM_TARGET_FEATURE
    
    Added missing NULL check.

- Issue History
Date Modified Username Field Change
2020-07-23 18:41 robertlipman New Issue
2020-07-23 18:41 robertlipman Assigned To => gka
2020-07-23 18:41 robertlipman File Added: SolidWorks-OCCT.zip
2020-07-24 12:08 kgv Relationship added child of 0026689
2020-07-24 12:08 kgv Product Version 7.3.0 => 7.0.0
2020-07-24 12:08 kgv Target Version => 7.5.0*
2020-07-24 12:11 kgv Steps to Reproduce Updated View Revisions
2020-07-24 12:23 kgv Note Added: 0093282
2020-07-24 12:24 kgv Summary CAD Assistant crash with SolidWorks STEP file => Data Exchange, STEPCAFControl_Reader - NULL dereference while translating PLACED_DATUM_TARGET_FEATURE
2020-07-24 12:24 kgv Summary Data Exchange, STEPCAFControl_Reader - NULL dereference while translating PLACED_DATUM_TARGET_FEATURE => Data Exchange, STEPCAFControl_Reader - NULL dereference on translating PLACED_DATUM_TARGET_FEATURE
2020-07-24 12:32 git Note Added: 0093283
2020-07-24 12:34 kgv Note Edited: 0093282 View Revisions


Copyright © 2000 - 2020 MantisBT Team
Powered by Mantis Bugtracker