Archived issue #0030469
Visualization - Draw crashes when 3D view is minimized
Description
Draw Test Harness crashes when 3D view is minimized. The crash happens in OpenGl_BVHTreeSelector::SetViewportSize method. The pixel size is computed as
but when the 3D view is minimized the input parameters theViewportWidth and theViewportHeight are both zero.
myPixelSize = Max (theResolutionRatio / theViewportHeight,
theResolutionRatio / theViewportWidth);
but when the 3D view is minimized the input parameters theViewportWidth and theViewportHeight are both zero.
Steps to reproduce
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
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
Public activity
6 archived notes
Participants are labeled by their role within this record.
Branch [archived branch] has been created by Commenter 3.
[revision removed]
Detailed log of new commits:
Author: Commenter 3
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.
[revision removed]
Detailed log of new commits:
Author: Commenter 3
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.
Branch [archived branch] has been updated forcibly by Commenter 3.
[revision removed]
[revision removed]
Patch is ready for review.
Branch CR30469 reviewed without remarks.
tested in framework WEEK-6 branch
Combination -
OCCT branch : [archived branch] SHA - [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: 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
Combination -
OCCT branch : [archived branch] SHA - [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: 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
Branch [archived branch] has been deleted by Commenter 3.
[revision removed]
[revision removed]