MantisBT - Open CASCADE
View Issue Details
0029633Open CASCADE[OCCT] OCCT:Data Exchangepublic2018-03-23 12:302018-10-08 09:15
kgv 
bugmaster 
normalminor 
closedfixed 
[OCCT] 7.0.0 
[OCCT] 7.3.0[OCCT] 7.3.0 
gdt export C3
0029633: Data Exchange - access violation in StepVisual_PresentationStyleAssignment while translating STEP file
The following issue occurs while translating STEP file nist_ctc_05_asme1_ap242-1.stp (attached to #0027644):
0xC0000005: Access violation reading location 0x0000000000000014.
>    TKSTEPAttr.dll!StepVisual_PresentationStyleAssignment::NbStyles()  Line 48 + 0x4 bytes    C++
     
TKSTEP.dll!STEPConstruct_Styles::GetColors(const opencascade::handle<StepVisual_StyledItem> & 
style, opencascade::handle<StepVisual_Colour> & SurfCol, opencascade::handle<StepVisual_Colour> 
& BoundCol, opencascade::handle<StepVisual_Colour> & CurveCol, bool & IsComponent)  
Line 565 + 0xb bytes    C++
     TKXDESTEP.dll!STEPCAFControl_Reader::ReadColors(const opencascade::handle<XSControl_WorkSession> 
& WS,
 opencascade::handle<TDocStd_Document> & Doc,
 const NCollection_DataMap<opencascade::handle<StepBasic_ProductDefinition>,
opencascade::handle<STEPCAFControl_ExternFile>,
NCollection_DefaultHasher<opencascade::handle<Standard_Transient> > > & PDFileMap, 
const NCollection_DataMap<TopoDS_Shape,TDF_Label,TopTools_ShapeMapHasher> & ShapeLabelMap)  
Line 926 + 0x2c bytes    C++
     TKXDESTEP.dll!STEPCAFControl_Reader::Transfer(STEPControl_Reader & reader, const int nroot, 
opencascade::handle<TDocStd_Document> & doc, NCollection_Sequence<TDF_Label> & Lseq, 
const bool asOne)  Line 661 + 0x2e bytes    C++
     TKXDESTEP.dll!STEPCAFControl_Reader::Transfer(opencascade::handle<TDocStd_Document> & 
doc)  Line 406 + 0x1f bytes    C++
pload XDE
ReadStep D [locate_data_file nist_ctc_05_asme1_ap242-1.stp]


test case: gdt export C3
No tags attached.
? bug29633_nist_ctc_05_asme1_ap242-1.stp (878,598) 2018-03-26 13:00
https://tracker.dev.opencascade.org/
Issue History
2018-03-23 12:30kgvNew Issue
2018-03-23 12:30kgvAssigned To => gka
2018-03-23 12:30kgvRelationship addedrelated to 0027645
2018-03-23 12:30kgvRelationship addedchild of 0027644
2018-03-23 12:31kgvDescription Updatedbug_revision_view_page.php?rev_id=18825#r18825
2018-03-23 12:33kgvSteps to Reproduce Updatedbug_revision_view_page.php?rev_id=18827#r18827
2018-03-23 14:03gkaAssigned Togka => ika
2018-03-23 14:07kgvDescription Updatedbug_revision_view_page.php?rev_id=18830#r18830
2018-03-23 14:07kgvStatusnew => assigned
2018-03-26 13:00gitNote Added: 0074913
2018-03-26 13:00ikaFile Added: bug29633_nist_ctc_05_asme1_ap242-1.stp
2018-03-26 16:52ikaNote Added: 0074934
2018-03-26 16:52ikaAssigned Toika => gka
2018-03-26 16:52ikaStatusassigned => resolved
2018-03-26 16:52ikaSteps to Reproduce Updatedbug_revision_view_page.php?rev_id=18857#r18857
2018-03-27 11:04gkaNote Added: 0074947
2018-03-27 11:04gkaAssigned Togka => bugmaster
2018-03-27 11:04gkaStatusresolved => reviewed
2018-03-27 17:08bugmasterTest case number => gdt export C3
2018-03-27 17:25bugmasterNote Added: 0074973
2018-03-27 17:25bugmasterStatusreviewed => tested
2018-04-11 07:49bugmasterChangeset attached => occt master f0bef121
2018-04-11 07:49bugmasterStatustested => verified
2018-04-11 07:49bugmasterResolutionopen => fixed
2018-04-11 11:00gitNote Added: 0075336
2018-06-29 21:14aivFixed in Version => 7.3.0
2018-06-29 21:19aivStatusverified => closed
2018-10-08 09:15kgvRelationship addedrelated to 0030212

Notes
(0074913)
git   
2018-03-26 13:00   
Branch CR29633 has been created by ika.

SHA-1: d41c2c27937d56042fc06b6632f7f255f22fa06b


Detailed log of new commits:

Author: ika
Date: Fri Mar 23 18:12:00 2018 +0300

    0029633: Data Exchange - access violation in StepVisual_PresentationStyleAssignment while translating STEP file
    
    Add several checks for null.
(0074934)
ika   
2018-03-26 16:52   
Several checks for null was added.

Dear GKA,

could you please review branch CR29633?
test results:
http://occt-tests/CR29633-master-ika-OCCT/Debian70-64/diff_summary.html [^]
http://occt-tests/CR29633-master-ika-OCCT/Windows-64-VC10/diff_summary.html [^]
http://occt-tests/CR29633-master-ika-Products/Debian70-64/diff_summary.html [^]
http://occt-tests/CR29633-master-ika-Products/Windows-64-VC10/diff_summary.html [^]

Note:
Now STEP reader throws error:
*** ERR StepReaderData *** Pour Entite #-4
    Type:/* (SUB) */ Param.n0 1: #14001 Non trouve
the problem is in invalid entity
#14000=COMPOUND_REPRESENTATION_ITEM('',SET_REPRESENTATION_ITEM((#14001));
(wrong number of braces)
this error do not affect file import.
(0074947)
gka   
2018-03-27 11:04   
Branch CR29633 was reviewed
(0074973)
bugmaster   
2018-03-27 17:25   
Combination -
OCCT branch : CR29633 SHA - d41c2c27937d56042fc06b6632f7f255f22fa06b
Products branch : master SHA - d1433da51be7aa6ea5f04a20d332d5b18f879d1f
was compiled on Linux, MacOS and Windows platforms and tested in optimize mode.

Number of compiler warnings:
No new/fixed warnings

Regressions/Differences/Improvements:
No regressions/differences

CPU differences:
Debian70-64:
OCCT
Total CPU difference: 18348.599999999864 / 18135.489999999976 [+1.18%]
Products
Total CPU difference: 7440.99 / 7435.139999999992 [+0.08%]
Windows-64-VC10:
OCCT
Total CPU difference: 17906.995987698487 / 17864.39211459853 [+0.24%]
Products
Total CPU difference: 8112.941205700006 / 8129.77371359997 [-0.21%]


Image differences :
No differences that require special attention

Memory differences :
No differences that require special attention
(0075336)
git   
2018-04-11 11:00   
Branch CR29633 has been deleted by kgv.

SHA-1: d41c2c27937d56042fc06b6632f7f255f22fa06b