MantisBT - Open CASCADE
View Issue Details
0028033Open CASCADE[OCCT] OCCT:Visualizationpublic2016-11-01 11:482019-08-12 14:34
kgv 
 
normalminor 
newopen 
[OCCT] 7.0.0 
[OCCT] 7.5.0 
0028033: Visualization - Graphic3d_Camera::ZFitAll() throws exception on camera rotation
ZRange computed by Graphic3d_Camera::ZFitAll() throws exception "ZFar should be greater than ZNear" within Graphic3d_Camera::SetZRange() in some cases during camera rotation leading to application crash:

09 pc 00677d5b /data/app/org.opencascade.cadassistant-1/lib/arm/libCADAssistant.so (_ZNK21Standard_ProgramError5ThrowEv+42)

10 pc 0067801b /data/app/org.opencascade.cadassistant-1/lib/arm/libCADAssistant.so (_ZN21Standard_ProgramError5RaiseEPKc+38)

11 pc 00ae4b37 /data/app/org.opencascade.cadassistant-1/lib/arm/libCADAssistant.so (_ZN16Graphic3d_Camera9SetZRangeEdd+110)

12 pc 00ad44fb /data/app/org.opencascade.cadassistant-1/lib/arm/libCADAssistant.so (_ZNK8V3d_View7ZFitAllEd+110)

13 pc 00ad7573 /data/app/org.opencascade.cadassistant-1/lib/arm/libCADAssistant.so (_ZN8V3d_View6RotateEddddddj+898)

14 pc 00ad77ef /data/app/org.opencascade.cadassistant-1/lib/arm/libCADAssistant.so (_ZN8V3d_View8RotationEii+158)

This is not the same test case as call stack in bug description (which is unknown), but having the same effect:
pload MODELING VISUALIZATION
vclear
vinit View1
vaxo
circle c 0 0 0 0.001
mkedge e c
wire   w e
plane  s
mkface f1000 s w
ttranslate f1000 1000 0 0
vpoint v1000 1000 0 0.001
vdisplay -dispMode 1 f1000
vstereo anaglyph
vfit

vpoint v0 0 0 0
No tags attached.
related to 0029837verified bugmaster Visualization, Graphic3d_Camera - Fit All operation works incorrectly on flat object 
related to 0029388verified bugmaster Visualization - Setting camera eye position to (0,0,0) kills the application 
Issue History
2016-11-01 11:48kgvNew Issue
2016-11-01 11:48kgvAssigned To => kgv
2016-11-01 11:49kgvAssigned Tokgv => apl
2016-11-01 11:49kgvDescription Updatedbug_revision_view_page.php?rev_id=15146#r15146
2016-11-01 11:53kgvSteps to Reproduce Updatedbug_revision_view_page.php?rev_id=15148#r15148
2017-07-20 10:55kgvTarget Version7.2.0 => 7.3.0
2017-12-15 11:37kgvRelationship addedrelated to 0029388
2018-03-13 14:52kgvTarget Version7.3.0 => 7.4.0*
2019-07-30 19:27kgvRelationship addedrelated to 0029837
2019-08-12 14:34kgvNote Added: 0086190
2019-08-12 14:34kgvAssigned Toapl =>
2019-08-12 14:34kgvTarget Version7.4.0* => 7.5.0

Notes
(0086190)
kgv   
2019-08-12 14:34   
Patch for 0029837 adds protection that should eliminate this sudden assertion, although the logic in the method should be checked to understand if this is expected or invalid behavior.