Skip to content

Attempt to get a named shape for a shape leads to a crash #758

@vladislavvitalievichromashko-git

Description

Description

A shape or a sub-shape may be selected for an operation, but then the shape is deleted from the document. An attempt to get the named shape of the deleted shape leads to a crash. It happens on resolving of the selected shape.

Expected Behavior

A returned named shape could be nullptr instead of a crash.

Actual Behavior

Crash.

Sample Code or DRAW Tcl Script

Handle(TNaming_NamedShape) ns = TNaming_Tool::NamedShape(selShape, accessLabel);

Operating System

Windows

Compiler

MSVC

Bitness

32-bit

OCCT Version

latest

Additional Files

No response

Metadata

Metadata

Assignees

Labels

0. NewThe issue was created, but not updated by maintainer. Waiting for updates labels and categories1. Application FrameworkCAF/XCAF/OCAF and other cases related with OCCT document2. BugSomething isn't working

Type

No type

Projects

Status

Closed

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions