MantisBT - Open CASCADE
View Issue Details
0025341Open CASCADE[OCCT] OCCT:Visualizationpublic2014-10-08 17:322019-10-23 11:51
dbp 
apn 
lowminor 
verifiedfixed 
[OCCT] 6.8.0 
[OCCT] 7.5.0 
Not needed
0025341: Visualization - disallow displaying object as part of connected one and as a free one at the same time
When using some connection fucntionality objects may dissapear after enabling the texture.
Minimal test case:
pload MODELING VISUALIZATION
vinit
box b 1.0 1.0 1.0
psphere s 0.5
vdisplay b s

vconnect bs    2 0 0 b s
vconnect bsc   6 0 0 bs
vconnect bscc 10 0 0 bsc
vfit

vremove b

Erasing of original interactive object results to low-level structures to point dead pointers.

Original test case:
pload ALL
vinit
box b 1 1 1
psphere s 0.5
vdisplay b s
vsetlocation s 0 2.5 0
box d 0.5 0.5 3
box d2 0.5 3 0.5
vdisplay d d2

vfit
vconnectto b1 -2 0 0 b
vconnect z 2 0 0 b s
vconnect z2 4 0 0 d d2
vconnect z3 6 0 0 z z2
vconnect z4 10 0 0 z3 z2
vfit
vaddc z4 0 4 0 s
vsetdispmode 1
vtexture b 5
No tags attached.
related to 0027957closed apn Open CASCADE Visualization, AIS_InteractiveContext - protect from displaying the same AIS_InteractiveObject within multiple contexts 
has duplicate 0030989new kgv Open CASCADE Visualization - heap-use-after-free reported by Clang address sanitizer in OpenGl_Structure::IsRaytracable() 
related to 0030675closed bugmaster Open CASCADE Visualization - remove redundant proxy classes in hierarchy of PrsMgr_Presentation 
Issue History
2014-10-08 17:32dbpNew Issue
2014-10-08 17:32dbpAssigned To => duv
2014-10-20 18:29kgvSteps to Reproduce Updatedbug_revision_view_page.php?rev_id=8444#r8444
2014-10-21 16:23kgvSeveritymajor => minor
2014-10-21 16:23kgvTarget Version6.8.0 => 7.1.0
2016-07-15 19:46kgvNote Added: 0055972
2016-07-15 19:46kgvPrioritynormal => low
2016-10-13 16:20kgvRelationship addedrelated to 0027957
2016-10-13 16:20kgvAssigned Toduv => kgv
2016-10-13 16:21kgvSummaryVisualization: Objects dissapear after setting the texture => Visualization - disallow displaying object as part of connected one and as a free one at the same time
2016-11-22 11:00kgvTarget Version7.1.0 => 7.2.0
2017-07-20 10:59kgvTarget Version7.2.0 => 7.4.0
2017-08-01 18:26mkvTest case number => bugs vis bug25341_1, bug25341_2
2017-08-01 18:26mkvNote Added: 0069037
2017-08-04 11:47mkvTest case numberbugs vis bug25341_1, bug25341_2 => Not needed
2019-04-26 12:23kgvRelationship addedrelated to 0030675
2019-06-06 14:28kgvRelationship addedrelated to 0030725
2019-09-04 15:43abvTarget Version7.4.0 => 7.5.0
2019-09-28 12:02kgvRelationship addedrelated to 0030989
2019-09-28 12:03kgvRelationship replacedhas duplicate 0030989
2019-09-28 13:36gitNote Added: 0087590
2019-09-28 17:33gitNote Added: 0087591
2019-09-28 17:37gitNote Added: 0087592
2019-09-28 20:12kgvNote Added: 0087594
2019-09-28 20:12kgvAssigned Tokgv => san
2019-09-28 20:12kgvStatusnew => resolved
2019-09-30 16:59sanNote Added: 0087640
2019-09-30 16:59sanAssigned Tosan => bugmaster
2019-09-30 16:59sanStatusresolved => reviewed
2019-10-04 19:54apnNote Added: 0087842
2019-10-04 19:54apnStatusreviewed => tested
2019-10-23 01:07apnChangeset attached => occt master cc99be36
2019-10-23 01:07apnAssigned Tobugmaster => apn
2019-10-23 01:07apnStatustested => verified
2019-10-23 01:07apnResolutionopen => fixed
2019-10-23 11:51gitNote Added: 0088444

Notes
(0055972)
kgv   
2016-07-15 19:46   
Technically this is not allowed combination displaying object as connected and as not connected at the same time. But it would be good to have some protection against this situation.
(0069037)
mkv   
2017-08-01 18:26   
Problem described in issue is reproduced on current state of OCCT.
(0087590)
git   
2019-09-28 13:36   
Branch CR25341 has been created by kgv.

SHA-1: b42d52be3d950d3224f3de048f1c1b5e05dcf281


Detailed log of new commits:

Author: kgv
Date: Sat Sep 28 13:36:24 2019 +0300

    0025341: Visualization - disallow displaying object as part of connected one and as a free one at the same time
    
    AIS_ConnectedInteractive::connect() now throws exception on connecting already displayed object.
    
    Commands vconnect, vconnectto and vaddconnected have been corrected to
    replace dispalyed AIS_Shape with AIS_ConnectedInteractive in context.
(0087591)
git   
2019-09-28 17:33   
Branch CR25341 has been updated forcibly by kgv.

SHA-1: e7ef20af3933f899cd9eda3096cf0d513aa981d7
(0087592)
git   
2019-09-28 17:37   
Branch CR25341 has been updated forcibly by kgv.

SHA-1: 6c70e025309f7189dd6c22b5f5b423c819704a77
(0087594)
kgv   
2019-09-28 20:12   
Patch is ready for review.

http://jenkins-test-12.nnov.opencascade.com:8080/view/CR25341-master-KGV/ [^]
(0087640)
san   
2019-09-30 16:59   
Branch CR25341 reviewed without remarks.
(0087842)
apn   
2019-10-04 19:54   
Combination -
OCCT branch : CR25341
master SHA - 6c70e025309f7189dd6c22b5f5b423c819704a77
5f5b1aed1c6e139bbd34314eca77ae7abcd8895c
Products branch : master SHA - cede13b0d79b1c3448ecd68f0db85c2a087762ad
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: 16720.70000000006 / 16808.79000000008 [-0.52%]
Products
Total CPU difference: 10565.860000000032 / 10573.91000000004 [-0.08%]
Windows-64-VC14:
OCCT
Total CPU difference: 18248.828125 / 18298.78125 [-0.27%]
Products
Total CPU difference: 12479.015625 / 12507.671875 [-0.23%]

Image differences :
No differences that require special attention

Memory differences :
No differences that require special attention
(0088444)
git   
2019-10-23 11:51   
Branch CR25341 has been deleted by kgv.

SHA-1: 6c70e025309f7189dd6c22b5f5b423c819704a77