DiscussionsIssue archiveOCCT:Modeling Algorithms

Archived issue #0029973

Modeling Algorithms - access violation within BRepAlgoAPI_Cut on empty input shape

Open CASCADEOCCT:Modeling Algorithmsclosed9 public notes

Search issues

Description

BRepAlgoAPI_Cut crashes with access violation when input shape is an empty compound.

Steps to reproduce

pload MODELING QAcommands
compound c
box b 1 2 3
OCC25446 r b c 2

Result is KO:
** Exception ** [revision removed] : OSD_Exception_ACCESS_VIOLATION: ACCESS VIOLATION at address 0x0000000000000060 during 'READ' operatio


The same input for bcut:
pload MODELING
compound c
box b 1 2 3
bcut r c b

Result is OK:
> Warning: Some of the arguments are empty shapes

Public activity

9 archived notes

Participants are labeled by their role within this record.

01Commenter 2
Branch [archived branch] has been created by Participant.

[revision removed]


Detailed log of new commits:

Author: emv
Date: Fri Jul 20 15:16:50 2018 +0300

    0029973: Modeling Algorithms - access violation within BRepAlgoAPI_Cut on empty input shape
    
    Boolean Operations algorithm has been improved to handle the cases with empty shapes arguments correctly.
    Test cases for the issue.
02Commenter 2
Branch [archived branch] has been updated forcibly by Participant.

[revision removed]
03Commenter 3
Dear Mikhail, could you please review the git branch CR29973?

Test results - http://jenkins-test-11.nnov.opencascade.com:8080/view/CR29973-master-emv/view/COMPARE/
04Commenter 4
src/BOPAlgo/BOPAlgo_BOP.cxx
- 221: possibly uninitialized value is assigned.
- 276: misprint 'dependiing'
05Commenter 2
Branch [archived branch] has been updated by Participant.

[revision removed]


Detailed log of new commits:

Author: emv
Date: Mon Jul 23 16:20:19 2018 +0300

    # Corrections according to remarks.

06Commenter 6
Please review again.
07Commenter 7
Reviewed.
08Commenter 1
Combination -
OCCT branch : [archived branch] SHA - [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:
Debian70-64:
OCCT
Total CPU difference: 16920.210000000014 / 17220.20999999982 [-1.74%]
Products
Total CPU difference: 7430.5400000000445 / 7395.360000000046 [+0.48%]
Windows-64-VC10:
OCCT
Total CPU difference: 16861.05608299857 / 17014.420666098493 [-0.90%]
Products
Total CPU difference: 8251.345292899883 / 8218.070279599868 [+0.40%]


Image differences :
No differences that require special attention

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

[revision removed]