MantisBT
Mantis Bug Tracker Workflow

View Issue Details Jump to Notes ] Issue History ] Print ]
IDProjectCategoryView StatusDate SubmittedLast Update
0023343Community[OCCT] OCCT:Modeling Algorithmspublic2012-07-23 15:392017-07-27 18:21
ReporterAlexander Schneller 
Assigned Tojgv 
PrioritynormalSeveritycrash 
StatusnewResolutionopen 
PlatformWindowsOSVC++ 2010OS Version32 bit
Product Version[OCCT] 6.5.2 
Target VersionFixed in Version 
Summary0023343: Crash (ACCESS VIOLATION) in GeomPlate_BuildPlateSurface / MakeApprox if init Surface is set
DescriptionIf GeomPlate_BuildPlateSurface is used with an initial surface and a curve constraint, it is possible to get an ACCESS VIOLATION by an internal call of GeomPlate_MakeApprox. If the curve constraint can not be completely projected onto the surface.
--------------------------------------------------------
GeomPlate_MakeApprox App(myGeomPlateSurface, myTol3d,
                   1, 3,
                   15*myTol3d,
                   -1, GeomAbs_C0,
                   1.3);
--------------------------------------------------------
Because the parameter "myGeomPlateSurface" is Null.
This was found at Line 525-529 at file GeomPlate_BuildPlateSurface.cxx

The Exaption will raised on Line 329 at file GeomPlate_MakeApprox.cxx, by getting the UV-bounds of the surface.
--------------------------------------------------------
myPlate->RealBounds(U0, U1, V0, V1);
--------------------------------------------------------

Perhaps the variable must be initialized as in line 1689 at file GeomPlate_BuildPlateSurface.cxx ?
--------------------------------------------------------
myGeomPlateSurface = new GeomPlate_Surface( mySurfInit, myPlate );
--------------------------------------------------------
Steps To ReproduceThe Crash can reproduced with Draw (gplate).

1) unzip "gplateCrash.zip"
2) start the script "source gplateCrash"

or copy & paste:

restore initFace.brep initFace
restore edge_constraint.brep edge_constraint

point p1 30 -33.4729635533385 49.7661550602442
point p2 30 -49.6961550602442 33.3929635533386
point p3 23.3333333333333 -50 30.07
point p4 -30 -33.4729635533386 49.6161550602442

gplate r1 1 4 initFace edge_constraint1 0 p1 p2 p3 p4
TagsNo tags attached.
Test case numberbugs modalg_7 bug23343
Attached Fileszip file icon gplateCrash.zip (18,002 bytes) 2012-07-23 15:39

- Relationships

-  Notes
(0068515)
git (administrator)
2017-07-20 18:58

Branch CR23343 has been created by mkv.

SHA-1: 01da7955fba9e656e8c1c657e064b73e09c02ae6


Detailed log of new commits:

Author: mkv
Date: Thu Jul 20 18:58:33 2017 +0300

    Test for 0023343: Crash (ACCESS VIOLATION) in GeomPlate_BuildPlateSurface / MakeApprox if init Surface is set
(0068816)
mkv (tester)
2017-07-27 18:21

Dear BugMaster,
problem described in issue is reproduced on current state of OCCT.

- Issue History
Date Modified Username Field Change
2012-07-23 15:39 Alexander Schneller New Issue
2012-07-23 15:39 Alexander Schneller Assigned To => jgv
2012-07-23 15:39 Alexander Schneller File Added: gplateCrash.zip
2017-07-20 18:58 git Note Added: 0068515
2017-07-20 19:01 mkv Test case number => bugs modalg_7 bug23343
2017-07-27 18:21 mkv Note Added: 0068816


Copyright © 2000 - 2019 MantisBT Team
Powered by Mantis Bugtracker