Search Issue Tracker
Fixed
Votes
0
Found in
6000.1.0a9
Issue ID
UUM-91149
Regression
Yes
GetActiveBuildProfile can only be called from the main thread crash and error when switching from Windows to Android
Steps to reproduce:
- Create a new project with URP Sample > com.unity.template.urp-sample.
- Once the project opens, open Build Profile window.
- Create a new Android Profile.
- Switch to the new Profile.
Actual results: We get a console error and unity may crash
{quote}UnityException: GetActiveBuildProfile can only be called from the main thread. Constructors and field initializers will be executed from the loading thread when loading a scene.{quote}
Expected results: Editor does not crash or throws errors after restart.
Reproducible with versions: 6000.1.0a9
Not reproducible with versions: 6000.0.26f1, 6000.0.29f1
Tested on (OS):
- macOS (Does not repro)
- Windows
Notes:
- Reports on discussions indicate that this issues occur on the following versions: 6000.0.28 and above. However, they do not seem consistent based on my testing on those versions. The issue is consistent on trunk.
Add comment
All about bugs
View bugs we have successfully reproduced, and vote for the bugs you want to see fixed most urgently.
Latest issues
- Unity CIL Linker fails on Player build when persistent listeners have "<" and ">" in their XML attribute names
- ”Lighting data asset ‘LightingData’ is incompatible with the current Unity version…” warnings are thrown when saving Indoors (URP) and Outdoors (URP) Scenes as Scene Templates
- [iOS] The screen blinks when transitioning from custom to Unity splash screen
- [macOS] ”Ignoring depth surface load action as it is memoryless” warnings are thrown when taking Game View Snapshot
- UI Builder Inspector scrolls back up when changes on an expanded but not fully displayed Inspector tab are saved
Resolution Note:
Fixed by https://issuetracker.unity3d.com/product/unity/issues/guid/UUM-91151