ID 336782 - Archive specific crash when using the Clone Stamp Tool

Follow

Problem summary
Archive specific crash when using the Clone Stamp Tool

Customer reported version
3.3v1
Customer reported platform
windows10

Steps to reproduce
1) Try Reading into Mari, Mari will probably crash at 99/100%
2) Relaunch Mari, the archive will be there
3) Hover over, find the UUID and jot down the first few digits
4) Go to your Mari cache folder and close Mari
5) Find the file that has the same UUID
6) Inside that file there should be project.mri and project.mri.bake. You need to reverse these so that project.mri is project.mri.bak and vice versa
7) Launch Mari and open the file the changes we made for.
8) Select any layer (I chose layer 3)
9) Paint several brush strokes with different colors (I did 2-3 strokes of red, black and green for example)
10) Bake to the model (alt)
11) Click the clone stamp button
Result: Mari will display the loading symbol and eventually crash.

Workaround
n/a

Reproduced by support
Mari 4.0v2 - Windows 10 - CentOS7
Mari 4.0v1 - Windows 10 - CentOS7
Mari 3.3v1 - Windows 10 - OSX 10.12.6 - CentOS7
Mari 3.2v1 - Windows 10 - OSX 10.12.6 - CentOS7
Mari 3.1v3 - Windows 10 - OSX 10.12.6 - CentOS7
Mari 3.1v1 - Windows 10 - OSX 10.12.6 - CentOS7
Mari 3.0v4 - Windows 10 - OSX 10.12.6 - CentOS7
Mari 3.0v1 - Windows 10 - OSX 10.12.6 - CentOS7

Could not reproduce (File changes don't see to change anything. Mari simply crashes with archive):
Mari 2.6v5 - Windows 10 - OSX 10.12.6 - CentOS7

Earliest version tested
Mari 2.6v5

Expected behaviour
Open the archive and use the clone stamp tool

Actual behaviour
Archive either crashes when using the clone stamp tool or cannot be opened with background file edits

    We're sorry to hear that

    Please tell us why