ID 272311 - Mari crashes when you use Smart selection on a subdivided PTEX object

Follow

Problem summary

Mari crashes when you use Smart selection on a subdivided PTEX object.

Customer reported version
Mari 7.0v1

Customer reported platform
RHEL 9

Steps to reproduce

Create a Ptex project using the force Ptex option with a basic cube
- Go to Objects-->Subdivide
- Leave your options as default and subdivide
- With your mesh selection tool selected.
- Select the the Smart Selection option and select an area of your mesh
> Mari Crashes.

1) Create a Ptex project using the 'Force Ptex' option with a basic cube object.

2) Navigate to the Objects Palette and select Subdivision > Subdivide. Use  the default options and subdivide the mesh.

3) With the Selection tool active (Face Selection), toggle the Smart Selection on and select your mesh.  Mari will crash.

Expected behaviour
Mari should not crash, and you should be able to select the mesh.

Actual behaviour
Mari crashes.

Workaround
Subdivide the model, set the subdivision level to zero, then select the faces. With the faces selected, set the subdivision level to the desired level.

Reproduced by support
This bug has been reproduced in:
Mari 7.1v1 - Windows 11 / Rocky 9

Mari 3.0v2 - Windows 8.1 / OSX 10.11.6

Unable to reproduce bug in:

Mari 3.0v1

Earliest version tested
Mari 3.0v1 - This issue doesn't appear in this version and has regressed

    We're sorry to hear that

    Please tell us why