DiscussionsIssue archiveOCCT:Visualization

Archived issue #0031642

Visualization - crash in Graphic3d_Structure::SetVisual() on redisplaying edge in AIS_Shape

CommunityOCCT:Visualizationclosed6 public notes

Search issues

Description

Using this sample code in DRAW application result in a crash in OCCT 7.4.0

Steps to reproduce

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);

Additional information

Here -> new AIS_Shape(TopoDS_Shape())
can be replaced with any valid shape and the problem still occurs.

Public activity

6 archived notes

Participants are labeled by their role within this record.

01Commenter 2
Branch [archived branch] has been created by Commenter 3.

[revision removed]


Detailed log of new commits:

Author: Commenter 3
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().
02Commenter 2
Branch [archived branch] has been updated forcibly by Commenter 3.

[revision removed]
03Commenter 3
Patch is ready for review in OCCT + OCC Products branch CR31642.

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

04Commenter 4
The patch was reviewed
05Commenter 1
Combination -
OCCT branch : [archived branch]
master SHA - [revision removed]
[revision removed]
Products branch : [archived branch] SHA - [revision removed]
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
06Commenter 2
Branch [archived branch] has been deleted by Participant.

[revision removed]

Related records