Reproduction steps:
1. Open the attached project "ReproProj"
2. Switch to Android or IOS Platform (File > Build Settings > Android / IOS > Switch Platform)
Expected result: The Editor continues to run with the Android or IOS Platform selected
Actual result: Editor crashes
Reproducible with: 2023.1.0a20, 2023.2.3f1, 2023.3.0a17
Not reproducible with: 2021.3.33f1, 2022.3.15f1, 2023.1.0a19
Testing environment: Windows 10 Enterprise 21H2, macOS 13.6.1
Not reproducible on: No other environment tested
First few lines of the Stacktrace:
0x00007FFFDD6B8306 (Unity) EditorOnlyPlayerSettings::GetDefaultTextureCompressionFormat
0x00007FFFDCFEBF19 (Unity) GetAssetImportParametersFromSettingsWithoutCustomDependencies
0x00007FFFDCFFDB5E (Unity) RefreshInternalV2
0x00007FFFDD006E97 (Unity) StopAssetImportingV2Internal
0x00007FFFDCFF60BD (Unity) InitialRefreshV2
Notes:
- Reproduces even when the project is empty and all packages are removed
- Reproduces with all Graphics APIs and Scripting Backends
- Does not reproduce with Windows Standalone Platform
- Reproduces when opening the project with -buildTarget iOS or -buildTarget Android command-line arguments
- Only reproduces with this specific project