DiscussionsIssue archiveOCCT:Visualization

Archived issue #0028306

Visualization - viewer crashes if style for shaded display is set to HATCH

Open CASCADEOCCT:Visualizationclosed5 public notes

Search issues

Description

3D Viewer crashes if style for shaded display is set to HATCH. This is regression vs. 7.1.0.

Use the DRAW script in Steps to Reproduce to see the problem. Note that even if exception seem to be handled by DRAW interpretor, any action in 3d Viewer after it crashes DRAW.

Steps to reproduce

pload MODELING VISUALIZATION
box b 10 10 10
vdisplay b
vfit
vsetdispmode 1
vsetinteriorstyle b 2

Public activity

5 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: Tue Jan 3 16:58:41 2017 +0300

    0028306: Visualization - viewer crashes if style for shaded display is set to HATCH
    
    Fixed NULL-dereference in OpenGl_Context::SetPolygonHatchStyle().
02Commenter 3
Patch is ready for review.
03Commenter 3
Branch CR28306 reviewed without remarks, ready for testing.
04Commenter 4
Dear BugMaster,

Branch CR28306 from occt git-repository (and master from products git-repository) was compiled on Linux, MacOS and Windows platforms and tested.
[revision removed]

Number of compiler warnings:
occt component:
   Linux: 0 (0 on master)
   Windows: 0 (0 on master)
   MasOS: 0 (0 on master)
products component:
   Linux: 63
   Windows: 0
   MacOS: 1132

Regressions/Differences:
Not detected

Testing cases:
bugs vis bug28306 - OK
http://occt-tests/CR28306-master-OCCT/Debian70-64/bugs/vis/bug28306.html
http://occt-tests/CR28306-master-OCCT/Windows-64-VC10/bugs/vis/bug28306.html

Testing on Linux:
Total MEMORY difference: 93044570 / 92909533 [+0.15%]
Total CPU difference: 21387.490000000154 / 21505.9800000003 [-0.55%]

Testing on Windows:
Total MEMORY difference: 58642783 / 58649007 [-0.01%]
Total CPU difference: 19528.361180998596 / 19749.742200098677 [-1.12%]
05Commenter 2
Branch [archived branch] has been deleted by Commenter 3.

[revision removed]