View Issue Details

IDProjectCategoryView StatusLast Update
0024141Open CASCADEOCCT:DRAWpublic2023-08-01 15:08
Reporterkgv Assigned Tovpozdyayev 
PrioritynormalSeverityminor 
Status assignedResolutionopen 
PlatformAOSL 
Product Version6.6.0 
Target VersionUnscheduled 
Summary0024141: Draw Harness, ViewerTest - AIS_InteractiveContext should be explicitly cleared before removal
DescriptionAfter removing of viewer and interactive context (AIS_InteractiveContext), existing interactive objects still holds handle of Graphic3d_GraphicDriver which also leads to re-computation errors like this:
> AIS_TexturedShape::Compute() in ShadingMode failed

Or memory corruption inside OpenGl_GraphicDriver (which should be destroyed but has left in invalid state by back references).
Steps To ReproduceTest case for current master (using shared OpenGL resources to expose OpenGl_GraphicDriver internal issues):

pload MODELING
pload VISUALIZATION
box b 1 2 3
vinit drv1/v1/v1
vdisplay b
vfit
vtexture b 3
vinit drv2/v1/v1
vdisplay b
vtexture b 4
vfit

vclose drv1/v1/v1
vinit drv1/v1/v1
vdisplay b
vtexture b 5
vfit
TagsNo tags attached.
Test case number

Relationships

related to 0024047 closedgka Open CASCADE Exception in TPrsStd_AISPresentation during destruction of TDocStd_Document 
related to 0027957 closedapn Open CASCADE Visualization, AIS_InteractiveContext - protect from displaying the same AIS_InteractiveObject within multiple contexts 
related to 0032456 newvpozdyayev Open CASCADE Draw Harness, ViewerTest - map of interactive objects GetMapOfAIS() should be bound to active AIS_InteractiveContext 
child of 0023117 closedbugmaster Open CASCADE TKV3d and TKOpenGl code clean-up 

Activities

kgv

2014-03-29 10:31

developer   ~0028554

The code now has proper NULL-check protections, however OpenGl_GraphicDriver is still alive when closing the last view - the only way to destroy it is to create new driver and clear context.
vinit drv2/v1/v1
vclear

Issue History

Date Modified Username Field Change
2013-09-03 16:43 kgv New Issue
2013-09-03 16:43 kgv Assigned To => aba
2013-09-03 16:43 kgv Steps to Reproduce Updated
2013-09-03 16:45 kgv Relationship added related to 0024047
2013-09-06 19:07 san Status new => assigned
2013-10-18 07:32 kgv Target Version 6.7.0 => 6.7.1
2014-02-17 16:38 kgv Summary AIS_InteracriveObject holds presentation(s) for removed Graphic3d_GraphicDriver => Visualization - AIS_InteractiveObject holds presentation(s) for removed Graphic3d_GraphicDriver
2014-03-29 10:27 kgv Relationship added child of 0023117
2014-03-29 10:31 kgv Note Added: 0028554
2014-04-04 18:09 abv Target Version 6.7.1 => 6.8.0
2014-09-29 22:35 kgv Target Version 6.8.0 => 7.1.0
2016-10-13 12:41 kgv Category OCCT:Visualization => OCCT:DRAW
2016-10-13 12:41 kgv Summary Visualization - AIS_InteractiveObject holds presentation(s) for removed Graphic3d_GraphicDriver => Draw Harness, ViewerTet - AIS_InteractiveContext should be explicitly cleared before removal
2016-10-13 15:36 kgv Relationship added related to 0027957
2016-11-22 11:05 kgv Assigned To aba => kgv
2016-11-22 11:05 kgv Target Version 7.1.0 => 7.2.0
2016-11-22 11:05 kgv Summary Draw Harness, ViewerTet - AIS_InteractiveContext should be explicitly cleared before removal => Draw Harness, ViewerTest - AIS_InteractiveContext should be explicitly cleared before removal
2017-07-20 11:40 kgv Target Version 7.2.0 => 7.3.0
2018-03-25 12:16 kgv Target Version 7.3.0 => 7.4.0
2019-08-13 13:03 kgv Target Version 7.4.0 => 7.5.0
2020-08-28 16:31 kgv Target Version 7.5.0 => 7.6.0
2021-06-23 10:27 kgv Relationship added related to 0032456
2021-08-24 15:04 kgv Target Version 7.6.0 => 7.7.0
2022-10-19 15:55 smoskvin Assigned To kgv => vpozdyayev
2022-10-24 10:40 szy Target Version 7.7.0 => 7.8.0
2023-08-01 15:08 dpasukhi Target Version 7.8.0 => Unscheduled