Search Issue Tracker

In Progress

Fixed in 6000.2.0a9

In Progress in 6000.0.X, 6000.1.X

Votes

2

Found in

6000.0.0b1

6000.1.0a1

6000.2.0a1

7000.0.0a1

Issue ID

UUM-101193

Regression

No

UnityException: get_disableApplyMaterialPropertyDrawers can only be called from the main thread

-

See [https://discussions.unity.com/t/unityengine-get-disableapplymaterialpropertydrawers-can-only-be-called-from-the-main-thread/1618450]

 

Looks like ClassifyMaterialsJob.Run() calls Material::GetActualRenderQueue() in C++ down the line, which can throw (EnsurePropertiesExistForVariants) if not called from the main thread. ClassifyMaterialsJob needs to run truly on the main thread to avoid the exception.

  1. Resolution Note (fix version 6000.2.0a9):

    Fixed the "get_disableApplyMaterialPropertyDrawers can only be called from the main thread" exception that occurred occasionally with GPU Resident Drawer after a domain reload

Add comment

Log in to post comment

All about bugs

View bugs we have successfully reproduced, and vote for the bugs you want to see fixed most urgently.