DiscussionsIssue archiveOCCT:Visualization

Archived issue #0030477

Visualization - crash in AIS_Manipulator::ObjectTransformation after using V3d_View::SetProj(V3d_Zpos)

CommunityOCCT:Visualizationclosed9 public notes

Search issues

Description

In AIS_Manipulator::ObjectTransformation, for case AIS_MM_Rotation, it declares 'IntAna_IntConicQuad aIntersector(...' then uses 'aIntersector.NbPoints() < 1' without first checking !IsParallel() which throws Standard_DomainError() which is not handled by a catch.

Steps to reproduce

Use V3d_View::SetProj(V3d_Zpos)

Create CPsxManipulator, allowing AIS_MM_Rotation

Attach an AIS_InteractiveObject to CPsxManipulator

On a mouse move call 'm_Manipulator->StartTransform(m_Xmin, m_Ymin, m_View)'

Public activity

9 archived notes

Participants are labeled by their role within this record.

01Author
Only appears to be a problem when V3d_Viewer::SetDefaultTypeOfView(V3d_ORTHOGRAPHIC) is used and not if V3d_PERSPECTIVE is used.
02Author
Similar problem with the case for AIS_MM_Translation and Extrema_ExtElC::NbExt() which throws StdFail_InfiniteSolutions.
03Commenter 3
Branch [archived branch] has been created by Commenter 4.

[revision removed]


Detailed log of new commits:

Author: Commenter 4
Date: Mon Feb 11 12:01:40 2019 +0300

    0030477: Visualization - crash in AIS_Manipulator::ObjectTransformation after using V3d_View::SetProj(V3d_Zpos)
04Commenter 4
Could you please provide a reproducer for Draw Harness?
I don't experience any crash within the following script:
pload MODELING VISUALIZATION
box b 1 2 3
vclear; vinit View1; vtop
vdisplay -dispMode 1 b;vfit
vmanipulator m -attach b
05Author
The script you describe reproduces the problem every time on my 7.3.0 installation. Once the view is displayed, I position the cursor somewhere over the center of the red or green arrow. The arrow does not highlight as it is the rotational circle, that can not be seen, that is actually selected. When I press the left mouse button down and drag the mouse the DRAW harness immediately exits without warning.
06Commenter 4
It is strange, that this doesn't happen in my environment, but OK.
It would be nice, if you will be able checking patch in branch CR30477.

Note that on current master behavior is also affected by patch #0030004, which disables detection of invisible disks altogether.

07Commenter 7
Branch CR30477 is reviewed without remarks.
08Commenter 1
Combination -
OCCT branch : [archived branch]
master SHA - [revision removed]
[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: 16511.529999999966 / 16545.53999999999 [-0.21%]
Products
Total CPU difference: 9063.240000000036 / 9056.420000000013 [+0.08%]
Windows-64-VC14:
OCCT
Total CPU difference: 17957.25 / 17918.46875 [+0.22%]
Products
Total CPU difference: 10437.34375 / 10465.109375 [-0.27%]

Image differences :
No differences that require special attention

Memory differences :
No differences that require special attention
09Commenter 3
Branch [archived branch] has been deleted by Commenter 4.

[revision removed]

Related records