DiscussionsIssue archiveOCCT:Visualization

Archived issue #0030469

Visualization - Draw crashes when 3D view is minimized

Open CASCADEOCCT:Visualizationclosed6 public notes

Search issues

Description

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.

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

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.

01Commenter 2
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.
02Commenter 2
Branch [archived branch] has been updated forcibly by Commenter 3.

[revision removed]
03Commenter 3
Patch is ready for review.
04Commenter 4
Branch CR30469 reviewed without remarks.
05Commenter 1
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
06Commenter 2
Branch [archived branch] has been deleted by Commenter 3.

[revision removed]