Search Issue Tracker

Not Reproducible

Votes

0

Found in

6000.1.0b2

Issue ID

UUM-92609

Regression

Yes

Crash on RaiseException when entering Play Mode with a Material that has been upgraded from Built-In to URP when the Web Platform is enabled

-

Steps to reproduce:

  1. Open the attached Project
  2. Open Scene "SampleScene"
  3. Navigate to File > Build Profiles > Web and select "Switch Platform"
  4. Select "Housefly Nom" in the Project Browser
  5. Navigateand to Edit > Rendering > Materials > Convert Selected Built-In Materials to URP and observe the Console
  6. Enter Play Mode

Actual results: *

Errors logged when converting Material:
"UnityException: GetActiveBuildProfile can only be called from the main thread."
"Could not add platformSupportModule UnityEditor.Android.TargetExtension, try rebuilding the module: Exception has been thrown by the target of an invocation."
Errors like the second one are also present mentioning other installed platforms

When entering Play Mode the Editor crashes on:
RaiseException
CleanupAfterLoad
LoadSceneOperation::CompletePreloadManagerLoadSceneEditor
LoadSceneOperation::IntegrateMainThread
PreloadManager::UpdatePreloadingSingleStep

Expected results:* No crash occurs

Reproducible with versions: 6000.1.0a9, 6000.1.0b2

Not reproducible with versions: 2022.3.56f1, 6000.0.34f1, 6000.1.0a8

Tested on (OS): Windows 11

  1. Resolution Note:

    Tested on the latest trunk 6000.1.0b4. And it doesn't reproduce anymore. There is probably something that fixed it between 6000.1.0b2 and 6000.1.0b4.

Add comment

Log in to post comment