MantisBT
Mantis Bug Tracker Workflow

View Issue Details Jump to Notes ] Issue History ] Print ]
IDProjectCategoryView StatusDate SubmittedLast Update
0024141Open CASCADE[OCCT] OCCT:DRAWpublic2013-09-03 16:432018-03-25 12:16
Reporterkgv 
Assigned Tokgv 
PrioritynormalSeverityminor 
StatusassignedResolutionopen 
PlatformAOSLOS VersionL
Product Version[OCCT] 6.6.0 
Target Version[OCCT] 7.4.0*Fixed in Version 
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
Attached Files

- Relationships
related to 0024047closedgka Open CASCADE Exception in TPrsStd_AISPresentation during destruction of TDocStd_Document 
related to 0027957closedapn Open CASCADE Visualization, AIS_InteractiveContext - protect from displaying the same AIS_InteractiveObject within multiple contexts 
child of 0023117closedbugmaster Open CASCADE TKV3d and TKOpenGl code clean-up 

-  Notes
(0028554)
kgv (developer)
2014-03-29 10:31

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 View Revisions
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
2013-12-20 09:05 kgv Relationship added related to 0024391
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*


Copyright © 2000 - 2018 MantisBT Team
Powered by Mantis Bugtracker