Steps to reproduce:
1. Open the attached project “spmAssetCrash“
2. Select the “Assets/Needle_Maker_Desktop_Narrow_Modeler_Use_Only.spm“ asset
3. In the Inspector window click the Materials tab
4. In the Materials tab click Apply & Generate Materials
Expected result: The material is regenerated
Actual result: Unity crashes
Reproducible with: 2020.3.45f1, 2021.3.18f1, 2022.2.7f1, 2023.1.0b2
Fixed in: 2023.1.0b3, 2023.2.0a1
Reproducible on: Windows 10
Note: Repeat the 3-4 steps on different .spm assets If Unity does not crash with the asset presented in the 2nd step
Stacktrace:
SpeedTreeImporter::WriteDeferredAlphaCorrectionPaths
SpeedTreeImporter::`vector deleting destructor'
GUIDPersistentManagerV2::UnloadImportedAssetObjectsAndUnregisterAssetInternal
UnloadImportedAssetsThatAreNotUpToDate