MantisBT - Open CASCADE
View Issue Details
0030469Open CASCADE[OCCT] OCCT:Visualizationpublic2019-02-01 14:522019-03-05 13:46
emv 
bugmaster 
normalminor 
verifiedfixed 
[OCCT] 7.1.0 
[OCCT] 7.4.0* 
Not needed
0030469: Visualization - Draw crashes when 3D view is minimized
Draw Test Harness crashes when 3D view is minimized. The crash happens in OpenGl_BVHTreeSelector::SetViewportSize method. The pixel size is computed as
myPixelSize = Max (theResolutionRatio / theViewportHeight,
                     theResolutionRatio / theViewportWidth);

but when the 3D view is minimized the input parameters theViewportWidth and theViewportHeight are both zero.
1. load DRAW
2. create model and display it
box b 1 1 1
vdisplay b
3. minimize the 3D view
4. try opening the view again

pload MODELING VISUALIZATION
dsetsignal 1
box b 1 1 1
vdisplay -dispMode 1 b
vrenderparams -msaa 9
vfit
vzbufftrihedron
vmoveto 200 200
# minimize
No tags attached.
Issue History
2019-02-01 14:52emvNew Issue
2019-02-01 14:52emvAssigned To => kgv
2019-02-01 15:07kgvSteps to Reproduce Updatedbug_revision_view_page.php?rev_id=20621#r20621
2019-02-01 16:25gitNote Added: 0081989
2019-02-01 16:34kgvSteps to Reproduce Updatedbug_revision_view_page.php?rev_id=20622#r20622
2019-02-01 16:39gitNote Added: 0081990
2019-02-01 16:40kgvNote Added: 0081991
2019-02-01 16:40kgvAssigned Tokgv => san
2019-02-01 16:40kgvStatusnew => resolved
2019-02-01 16:44kgvProduct Version7.3.0 => 7.1.0
2019-02-04 16:01sanNote Added: 0082026
2019-02-04 16:01sanAssigned Tosan => bugmaster
2019-02-04 16:01sanStatusresolved => reviewed
2019-02-04 16:34bugmasterTest case number => Not needed
2019-02-05 14:05bugmasterNote Added: 0082035
2019-02-05 14:05bugmasterStatusreviewed => tested
2019-02-10 19:36bugmasterChangeset attached => occt master d918208a
2019-02-10 19:36bugmasterStatustested => verified
2019-02-10 19:36bugmasterResolutionopen => fixed
2019-03-05 13:46gitNote Added: 0082629

Notes
(0081989)
git   
2019-02-01 16:25   
Branch CR30469 has been created by kgv.

SHA-1: 49de354c8882e4e0da701c44e183c64d461a9aa7


Detailed log of new commits:

Author: kgv
Date: Fri Feb 1 16:20:24 2019 +0300

    0030469: Visualization - Draw crashes when 3D view is minimized
    
    OpenGl_BVHTreeSelector::SetViewportSize() - added protection from FPE.
(0081990)
git   
2019-02-01 16:39   
Branch CR30469 has been updated forcibly by kgv.

SHA-1: fc8059fdad6b78a4155b049ed0c41b3a29484336
(0081991)
kgv   
2019-02-01 16:40   
Patch is ready for review.
(0082026)
san   
2019-02-04 16:01   
Branch CR30469 reviewed without remarks.
(0082035)
bugmaster   
2019-02-05 14:05   
tested in framework WEEK-6 branch


Combination -
OCCT branch : WEEK-6 SHA - 95c882e9d45466a9e296f33fb6a10289cf40332f
Products branch : WEEK-6 SHA - 72707298a0e5543f74709bf9d0186c8b8960ca25
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: 16368.269999999928 / 16363.790000000015 [+0.03%]
Products
Total CPU difference: 7176.410000000036 / 7177.480000000016 [-0.01%]
Windows-64-VC14:
OCCT
Total CPU difference: 17772.359375 / 17773.921875 [-0.01%]
Products
Total CPU difference: 8601.046875 / 8604.828125 [-0.04%]


Image differences :
No differences that require special attention

Memory differences :
No differences that require special attention
(0082629)
git   
2019-03-05 13:46   
Branch CR30469 has been deleted by kgv.

SHA-1: fc8059fdad6b78a4155b049ed0c41b3a29484336