MantisBT - Community
View Issue Details
0031642Community[OCCT] OCCT:Visualizationpublic2020-06-30 15:232020-07-04 12:55
orgot 
bugmaster 
normalminor 
verifiedfixed 
WindowsVC++ 201364 bit
[OCCT] 7.4.0 
[OCCT] 7.5.0* 
Not required
0031642: Visualization - crash in Graphic3d_Structure::SetVisual() on redisplaying edge in AIS_Shape
Using this sample code in DRAW application result in a crash in OCCT 7.4.0
BRepBuilderAPI_MakeEdge edgeMaker(gp_Pnt(0.0,0.0,0.0), gp_Pnt(100.0, 100.0, 100.0));
Handle(AIS_InteractiveContext) ctx =
Handle(AIS_Shape) ais = new AIS_Shape(TopoDS_Shape());
ctx->Display(ais, false);
ais->Set(edgeMaker.Shape());
ctx->Redisplay(ais, false);
Here -> new AIS_Shape(TopoDS_Shape())
can be replaced with any valid shape and the problem still occurs.
No tags attached.
child of 0030675closed bugmaster Open CASCADE Visualization - remove redundant proxy classes in hierarchy of PrsMgr_Presentation 
Issue History
2020-06-30 15:23orgotNew Issue
2020-06-30 15:23orgotAssigned To => kgv
2020-06-30 17:11kgvProduct Version7.3.0 => 7.4.0
2020-06-30 17:11kgvTarget Version => 7.5.0*
2020-06-30 17:15kgvRelationship addedchild of 0030675
2020-06-30 18:45kgvSummary[OCCT 7.4.0] Crash when redisplaying edge in AIS_Shape => Visualization - crash in Graphic3d_Structure::SetVisual() on redisplaying edge in AIS_Shape
2020-06-30 18:46gitNote Added: 0092857
2020-06-30 19:25gitNote Added: 0092858
2020-06-30 21:21kgvNote Added: 0092863
2020-06-30 21:21kgvAssigned Tokgv => osa
2020-06-30 21:21kgvStatusnew => resolved
2020-06-30 21:22kgvSeveritycrash => minor
2020-06-30 21:25kgvNote Edited: 0092863bug_revision_view_page.php?bugnote_id=92863#r23082
2020-07-02 09:11osaNote Added: 0092873
2020-07-02 09:11osaAssigned Toosa => bugmaster
2020-07-02 09:11osaStatusresolved => reviewed
2020-07-04 12:13bugmasterNote Added: 0092946
2020-07-04 12:13bugmasterStatusreviewed => tested
2020-07-04 12:23bugmasterChangeset attached => occt master dad7fede
2020-07-04 12:23bugmasterStatustested => verified
2020-07-04 12:23bugmasterResolutionopen => fixed
2020-07-04 12:30bugmasterTest case number => Not required
2020-07-04 12:52gitNote Added: 0092965

Notes
(0092857)
git   
2020-06-30 18:46   
Branch CR31642 has been created by kgv.

SHA-1: deb64dde095e8f07f6ff0eb7839a49635d6fdf6d


Detailed log of new commits:

Author: kgv
Date: Tue Jun 30 18:48:36 2020 +0300

    0031642: Visualization - crash in Graphic3d_Structure::SetVisual() on redisplaying edge in AIS_Shape
    
    Fixed unexpected calling of PrsMgr_Presentation::Erase() from Graphic3d_Structure::SetVisual().
(0092858)
git   
2020-06-30 19:25   
Branch CR31642 has been updated forcibly by kgv.

SHA-1: d8b6ceb1f917be0ec5c02c391362e345d65cb4fd
(0092863)
kgv   
2020-06-30 21:21   
(edited on: 2020-06-30 21:25)
Patch is ready for review in OCCT + OCC Products branch CR31642.

http://jenkins-test-12.nnov.opencascade.com/view/CR31642-CR31642-KGV/ [^]

(0092873)
osa   
2020-07-02 09:11   
The patch was reviewed
(0092946)
bugmaster   
2020-07-04 12:13   
Combination -
OCCT branch : IR-2020-07-03
master SHA - 8f5760bc1679b45691fe8ac5fff1a4e978524009
a206de37fbfa0bf71bd534ae47192bbec23b8522
Products branch : IR-2020-07-03 SHA - 715997b86e7db13b7a7ddd1f26bab717621d84ec
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:
Debian80-64:
OCCT
Total CPU difference: 17174.900000000107 / 17168.64000000016 [+0.04%]
Products
Total CPU difference: 11226.760000000077 / 11202.250000000082 [+0.22%]
Windows-64-VC14:
OCCT
Total CPU difference: 18704.34375 / 18712.96875 [-0.05%]
Products
Total CPU difference: 13043.15625 / 13084.109375 [-0.31%]


Image differences :
No differences that require special attention

Memory differences :
No differences that require special attention
(0092965)
git   
2020-07-04 12:52   
Branch CR31642 has been deleted by inv.

SHA-1: d8b6ceb1f917be0ec5c02c391362e345d65cb4fd