View Issue Details

IDProjectCategoryView StatusLast Update
0028886CommunityOCCT:Modeling Algorithmspublic2018-06-29 21:19
ReporterSeMiR Assigned Tonbv 
PrioritynormalSeverityblock 
Status closedResolutionfixed 
PlatformWindowsOSVC++ 2015 
Product Version7.1.0 
Target Version7.3.0Fixed in Version7.3.0 
Summary0028886: infinite loop at intersecting two faces / surfaces
DescriptionWhile using IntTools_FaceFace to calculate the intersecting curve of two faces, we found out, that the program stays forever in the do-while-loop of method
  void IntWalk_PWalking::Perform(const TColStd_Array1OfReal& ParDep,
                                 const Standard_Real u1min,
                                 const Standard_Real v1min, ... )

The situation can also be reproduced by using Draw and the intersect-command for two surfaces, which will then hang in the same loop.

The attached file contains the affected two faces.
Steps To Reproducepload ALL
restore Faces_InfiniteLoop.brep myFaces
explode myFaces f
mksurface mySurface_1 myFaces_1
mksurface mySurface_2 myFaces_2
intersect myCurve mySurface_1 mySurface_2
TagsNo tags attached.
Test case numberperf modalg bug28886

Attached Files

  • Faces_InfiniteLoop.brep (4,133,781 bytes)

Activities

SeMiR

2017-07-03 16:59

reporter  

Faces_InfiniteLoop.brep (4,133,781 bytes)

git

2018-01-29 14:02

administrator   ~0073654

Branch CR28886 has been created by nbv.

SHA-1: 8cdb1fa2fc87458b648178e8c5173a0997e52d78


Detailed log of new commits:

Author: nbv
Date: Mon Dec 11 17:04:01 2017 +0300

    0028886: infinite loop at intersecting two faces / surfaces
    
    Algorithm of step re-computation has been amended.

git

2018-02-01 18:43

administrator   ~0073715

Branch CR28886 has been updated forcibly by nbv.

SHA-1: 1ced3dbb9521faae89ecbacd3c5a64ab30bb840e

git

2018-02-02 10:32

administrator   ~0073717

Branch CR28886 has been updated forcibly by nbv.

SHA-1: c7f91872bff889469c1862d3a7f604fc180f6e07

git

2018-02-02 13:48

administrator   ~0073729

Branch CR28886 has been updated forcibly by nbv.

SHA-1: 5de799520721241f8c09a8db601df209b57a00ec

git

2018-02-05 09:38

administrator   ~0073747

Branch CR28886 has been updated forcibly by nbv.

SHA-1: fd04b5da07fc7b0b1c73ad9fb25129d1d9034375

nbv

2018-02-05 12:51

developer   ~0073803

Dear Mikhail,

Please review branch CR28886.

Test results are here: http://jenkins-test-10.nnov.opencascade.com:8080/view/CR28886-master_NBV/view/COMPARE/

msv

2018-02-05 18:10

developer   ~0073826

src/IntWalk/IntWalk_PWalking.cxx
- 1281: it's cycle invariant. Please avoid for-loop, make flat assigning if the condition is true.

tests/perf/modalg/bug28886
- 9: is 20 s enough for every (even debug mode on a slow PC) platform?
- 21: how many curves are in the result? Is this number stable? May be it is worth to compute the curvilinear length of the result?

git

2018-02-06 09:53

administrator   ~0073837

Branch CR28886 has been updated forcibly by nbv.

SHA-1: ee2382a62f94fea4d73c7c58fe87086fdde0fd4a

git

2018-02-06 10:50

administrator   ~0073838

Branch CR28886 has been updated forcibly by nbv.

SHA-1: 03a3ba9ebe3613569fc7fe1432ff9029bad3d129

nbv

2018-02-06 11:25

developer   ~0073840

Done!

Please review CR28886 branch again.

Test results are here: http://jenkins-test-10.nnov.opencascade.com/view/CR28886-master_NBV/

msv

2018-02-06 12:17

developer   ~0073846

Reviewed.

apn

2018-02-06 12:24

administrator   ~0073847

Combination -
OCCT branch : CR28886 SHA - ee2382a62f94fea4d73c7c58fe87086fdde0fd4a
Products branch : master SHA - a8f3ddb817485da4a83285b039a03044dfa7f6c0
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

Test cases:
perf modalg bug28886 - OK

CPU differences:
Debian70-64:
OCCT
Total CPU difference: 18354.089999999578 / 18606.899999999736 [-1.36%]
Products
Total CPU difference: 7472.239999999998 / 7496.790000000002 [-0.33%]
Windows-64-VC10:
OCCT
Total CPU difference: 17717.485972898587 / 17649.12633469849 [+0.39%]
Products
Total CPU difference: 8005.3161157999775 / 8001.213289499973 [+0.05%]

Image differences :
No differences that require special attention

Memory differences :
No differences that require special attention

git

2018-02-11 09:55

administrator   ~0073912

Branch CR28886 has been deleted by kgv.

SHA-1: 03a3ba9ebe3613569fc7fe1432ff9029bad3d129

Related Changesets

occt: master 03a3ba9e

2017-12-11 14:04:01

nbv

Details Diff
0028886: infinite loop at intersecting two faces / surfaces

The reason of constantly increasing/decreasing steps has been eliminated for the problem case.
Affected Issues
0028886
mod - src/IntWalk/IntWalk_PWalking.cxx Diff File
add - tests/perf/modalg/bug28886 Diff File

Issue History

Date Modified Username Field Change
2017-07-03 16:59 SeMiR New Issue
2017-07-03 16:59 SeMiR Assigned To => msv
2017-07-03 16:59 SeMiR File Added: Faces_InfiniteLoop.brep
2017-12-07 15:14 msv Assigned To msv => nbv
2017-12-07 15:14 msv Status new => assigned
2017-12-07 15:15 msv Target Version => 7.4.0
2018-01-29 14:02 git Note Added: 0073654
2018-02-01 18:43 git Note Added: 0073715
2018-02-02 10:32 git Note Added: 0073717
2018-02-02 13:48 git Note Added: 0073729
2018-02-05 09:38 git Note Added: 0073747
2018-02-05 12:51 nbv Note Added: 0073803
2018-02-05 12:51 nbv Assigned To nbv => msv
2018-02-05 12:51 nbv Status assigned => resolved
2018-02-05 18:10 msv Note Added: 0073826
2018-02-05 18:10 msv Assigned To msv => nbv
2018-02-05 18:10 msv Status resolved => assigned
2018-02-06 09:53 git Note Added: 0073837
2018-02-06 10:50 git Note Added: 0073838
2018-02-06 11:25 nbv Note Added: 0073840
2018-02-06 11:25 nbv Assigned To nbv => msv
2018-02-06 11:25 nbv Status assigned => resolved
2018-02-06 12:17 msv Note Added: 0073846
2018-02-06 12:17 msv Assigned To msv => bugmaster
2018-02-06 12:17 msv Status resolved => reviewed
2018-02-06 12:24 apn Test case number => perf modalg bug28886
2018-02-06 12:24 apn Note Added: 0073847
2018-02-06 12:24 apn Status reviewed => tested
2018-02-10 17:14 nbv Changeset attached => occt master 03a3ba9e
2018-02-10 17:14 nbv Assigned To bugmaster => nbv
2018-02-10 17:14 nbv Status tested => verified
2018-02-10 17:14 nbv Resolution open => fixed
2018-02-11 09:55 git Note Added: 0073912
2018-02-20 12:58 aiv Target Version 7.4.0 => 7.3.0
2018-06-29 21:15 aiv Fixed in Version => 7.3.0
2018-06-29 21:19 aiv Status verified => closed