Update: this also affects Reimport All, much simpler steps to reproduce:
1 Create new 3D project
2 In Project Browser do RightMouse -> Reimport All
Actual results: Editor closes and a Windows pop up error appear (see attachments) for less than a second, Editor will not reopen
How to reproduce:
1. Create a new Unity project
2. Go to Edit > Project Settings >Player
3. In the Player section expand the Other Settings tab
4. Uncheck the checkbox on Auto Graphics API for Windows
5. Press the "+" button in the "Graphics APIs for Windows" reorderable list
6. Select the Direct3D12 Graphics API from the submenu
7. Press and drag & drop the newly added Graphics API to the top of the reorder-able list
8. Press the "Restart Editor" button
Expected result: Editor restarts and opens up again
Actual result: Editor closes without any warnings/errors and does not open up
Reproduced in: 2023.1.0a8
Not reproduced in: 2020.3.39f1, 2021.3.8f1, 2022.2.0a6, 2023.1.0a6
Reproduced on: Windows 10, Windows 11
Not reproduced on: Mac OS 12.3.1 (M1 Max)
Notes:
- Reproducible when changing Auto Graphics API to Vulkan, OpenGLCore, OpenGLES2, OpenGLES3
- When re-opening the project via Unity Hub, Project Settings shows that the Auto Graphics API has been changed
- When Editor restarts error window is thrown for the split second
- After changing Auto Graphics APIs multiple times, an error window was thrown stating: "This file does not have an app associated with it for performing this action. Please install an app or, if one is already installed, create an association in the Default Apps Settings page"