MantisBT - Community
View Issue Details
0030477Community[OCCT] OCCT:Visualizationpublic2019-02-05 18:142019-03-05 13:46
martinc 
apn 
normalminor 
verifiedfixed 
WindowsVC++ 201532 bit
[OCCT] 7.3.0 
[OCCT] 7.4.0* 
Not needed
0030477: Visualization - crash in AIS_Manipulator::ObjectTransformation after using V3d_View::SetProj(V3d_Zpos)
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.
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)'

No tags attached.
related to 0030004verified bugmaster Open CASCADE Visualization, AIS_Manipulator - disable detection of Rotating circle when picking ray lies on its plane 
Issue History
2019-02-05 18:14martincNew Issue
2019-02-05 18:14martincAssigned To => kgv
2019-02-05 18:35martincNote Added: 0082039
2019-02-05 19:13martincNote Added: 0082040
2019-02-11 12:05kgvRelationship addedrelated to 0030004
2019-02-11 12:05kgvSeveritycrash => minor
2019-02-11 12:05kgvTarget Version => 7.4.0*
2019-02-11 12:05kgvSummaryCrash in AIS_Manipulator::ObjectTransformation after using V3d_View::SetProj(V3d_Zpos) => Visualization - crash in AIS_Manipulator::ObjectTransformation after using V3d_View::SetProj(V3d_Zpos)
2019-02-11 12:07gitNote Added: 0082116
2019-02-11 12:08kgvNote Added: 0082117
2019-02-11 12:08kgvAssigned Tokgv => martinc
2019-02-11 12:08kgvStatusnew => feedback
2019-02-11 12:09kgvResolutionopen => unable to reproduce
2019-02-12 13:32martincNote Added: 0082154
2019-02-12 14:35kgvNote Added: 0082156
2019-02-12 14:35kgvAssigned Tomartinc => san
2019-02-12 14:35kgvStatusfeedback => resolved
2019-02-12 14:36kgvNote Edited: 0082156bug_revision_view_page.php?bugnote_id=82156#r20667
2019-02-13 10:00kgvAssigned Tosan => osa
2019-02-13 11:12osaNote Added: 0082166
2019-02-13 11:12osaAssigned Toosa => bugmaster
2019-02-13 11:12osaStatusresolved => reviewed
2019-02-14 13:32apnTest case number => Not needed
2019-02-14 13:32apnNote Added: 0082179
2019-02-14 13:32apnStatusreviewed => tested
2019-02-16 11:48apnChangeset attached => occt master 5ac0f989
2019-02-16 11:48apnAssigned Tobugmaster => apn
2019-02-16 11:48apnStatustested => verified
2019-02-16 11:48apnResolutionunable to reproduce => fixed
2019-03-05 13:46gitNote Added: 0082636

Notes
(0082039)
martinc   
2019-02-05 18:35   
Only appears to be a problem when V3d_Viewer::SetDefaultTypeOfView(V3d_ORTHOGRAPHIC) is used and not if V3d_PERSPECTIVE is used.
(0082040)
martinc   
2019-02-05 19:13   
Similar problem with the case for AIS_MM_Translation and Extrema_ExtElC::NbExt() which throws StdFail_InfiniteSolutions.
(0082116)
git   
2019-02-11 12:07   
Branch CR30477 has been created by kgv.

SHA-1: ff7664d7b58a0b4b5c5d9b4b5cf0105fa2a1d676


Detailed log of new commits:

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

    0030477: Visualization - crash in AIS_Manipulator::ObjectTransformation after using V3d_View::SetProj(V3d_Zpos)
(0082117)
kgv   
2019-02-11 12:08   
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
(0082154)
martinc   
2019-02-12 13:32   
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.
(0082156)
kgv   
2019-02-12 14:35   
(edited on: 2019-02-12 14:36)
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.

(0082166)
osa   
2019-02-13 11:12   
Branch CR30477 is reviewed without remarks.
(0082179)
apn   
2019-02-14 13:32   
Combination -
OCCT branch : CR30477
master SHA - ff7664d7b58a0b4b5c5d9b4b5cf0105fa2a1d676
7ed8668e4e52fbba7c47e571bf59f3e92b405869
Products branch : master SHA - 958a4e5e4b816adb6dba1a223ae557d1649e52b6
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
(0082636)
git   
2019-03-05 13:46   
Branch CR30477 has been deleted by kgv.

SHA-1: ff7664d7b58a0b4b5c5d9b4b5cf0105fa2a1d676