How to reproduce:
1. Create a new project
2. Change the External Script Editor to Visual Studio Code (Edit > Preferences > External Tools)
3. Open the Package Manager
4. Update the Visual Studio Editor package to 2.0.28
5. Observe the crash
Reproducible with: 6000.6.0b3, 6000.6.0b9, 6000.7.0a2, 6000.7.0a5
Not reproducible with: 6000.0.82f1, 6000.3.23f1, 6000.5.10f1, 6000.6.0b2 (de66c00feac7), 6000.7.0a1
Fixed in: 6000.6.0b10, 6000.7.0a6
Reproduced on: Windows 11, macOS 26.5.2 (M1) (users)
Not reproduced on: No other environment tested
Notes:
- The project will crash upon opening after following the steps above
- In 6000.7.0a5, the crash can also occur when reloading domain
Workaround: If unable to open the project, change the Visual Studio package to version 2.0.27 in the manifest.json before opening
First few lines of the stack trace:
6000.7.0a4 and above:
0x00007FFBA4DE82BB (Unity) ManagedCommandQueueBuild::BuildSerializationCommandQueueForBaseRecursive
0x00007FFBA4DE82B3 (Unity) ManagedCommandQueueBuild::BuildSerializationCommandQueueForBaseRecursive
0x00007FFBA4DE81A7 (Unity) BuildSerializationCommandQueueFor
0x00007FFBA4DF33BF (Unity) SerializationCache::BuildTransferSignatureForCacheWithTraits
0x00007FFBA4DF1678 (Unity) SerializationCache::Data::FindOrInsert<<lambda_9dbfa4341ef82559967524736f3674a2> >
6000.7.0a3 and below:
0x00007FF850644192 (Unity) TypeCacheProvider::FindTypesDerivedFromType
0x00007FF84E5C0DCB (Unity) TypeCache_CUSTOM_Internal_GetTypesDerivedFromType
0x0000018F0407B7C2 (UnityEditor.CoreModule) (wrapper managed-to-native) UnityEditor.TypeCache:Internal_GetTypesDerivedFromType (System.Type)
0x0000018F0407B4CB (UnityEditor.CoreModule) UnityEditor.TypeCache:GetTypesDerivedFrom (System.Type)
0x0000018F0407B343 (UnityEditor.CoreModule) UnityEditor.TypeCache:GetTypesDerivedFrom<T_REF> ()