How to reproduce:
1. Make sure the Web module is installed and create a new project
2. Open the Build Profiles and switch to the Web
3. In the Web settings, choose a not default browser
4. Browse the path to the browser and select the random executable
5. Click "Browse" again and select the right browser executable
6. Click "Open" and observe the Console
Expected results: No errors are thrown
Actual results: "EndLayoutGroup: BeginLayoutGroup must be called first." error is thrown
Reproducible with: 6000.0.40f1, 6000.1.0b8, 6000.2.0a5
Reproducible on: Windows 11, macOS Sequoia 15.3 (M1)
Notes:
- Reproducible in the empty project
- Bug is not reproducible when switching to the default browser and back to any other with the previously selected .exe
- Sometimes the bug is reproducible by selecting the right executable
- Canceling the selection might trigger an error
Full error:
EndLayoutGroup: BeginLayoutGroup must be called first.
UnityEngine.GUIUtility:ProcessEvent (int,intptr,bool&) (at /Users/bokken/build/output/unity/unity/Modules/IMGUI/GUIUtility.cs:219)