Search Issue Tracker
Fixed in 6000.0.18f1
Fixed in 7000.0.0a7
Votes
0
Found in
6000.0.2f1
Issue ID
UUM-72243
Regression
Yes
EnsureRunningOnMainThread error in TessellationJob.ApplyInset
When tessellating the UI geometry, it is possible to get an error because a null check is performed on the job thread.
{noformat}
InvalidOperationException: EnsureRunningOnMainThread can only be called from the main thread
UnityEngine.Object.EnsureRunningOnMainThread () (at <347e9cb990044b19a415d80dc9c7be25>:0)
UnityEngine.Object.GetInstanceID () (at <347e9cb990044b19a415d80dc9c7be25>:0)
UnityEngine.Object.IsNativeObjectAlive (UnityEngine.Object o) (at <347e9cb990044b19a415d80dc9c7be25>:0)
UnityEngine.Object.CompareBaseObjects (UnityEngine.Object lhs, UnityEngine.Object rhs) (at <347e9cb990044b19a415d80dc9c7be25>:0)
UnityEngine.Object.op_Inequality (UnityEngine.Object x, UnityEngine.Object y) (at <347e9cb990044b19a415d80dc9c7be25>:0)
UnityEngine.UIElements.UIR.MeshGenerator+TessellationJob.ApplyInset (UnityEngine.UIElements.MeshBuilderNative+NativeRectParams& rectParams, UnityEngine.Texture tex) (at <6603732cfe894bf1a78f54f7a10a3710>:0)
UnityEngine.UIElements.UIR.MeshGenerator+TessellationJob.DrawRectangle (UnityEngine.UIElements.UnsafeMeshGenerationNode node, UnityEngine.UIElements.MeshBuilderNative+NativeRectParams& rectParams, UnityEngine.Texture tex) (at <6603732cfe894bf1a78f54f7a10a3710>:0)
UnityEngine.UIElements.UIR.MeshGenerator+TessellationJob.Execute (System.Int32 i) (at <6603732cfe894bf1a78f54f7a10a3710>:0)
Unity.Jobs.IJobParallelForExtensions+ParallelForJobStruct`1[T].Execute (T& jobData, System.IntPtr additionalPtr, System.IntPtr bufferRangePatchData, Unity.Jobs.LowLevel.Unsafe.JobRanges& ranges, System.Int32 jobIndex) (at <347e9cb990044b19a415d80dc9c7be25>:0){noformat}
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
- [iOS] Text Input field stops receiving changes when the "Cancel" button is used on the soft keyboard
- [WebGPU] URP RenderGraph RenderPass doesn't clear textures
- Query Builder items display raw code style names instead of human readable labels in search field
- “+” button does nothing and has no functionality when clicked in Human Template "Bone Template" list
- Solid gray or black areas are present when using ShaderGraph with Custom Function nodes without manual reimport
Resolution Note (fix version 6000.0.18f1):
Fixed by another internal issue: UUM-78828: ApplyInset error "EnsureRunningOnMainThread can only be called from the main thread" when exiting playmode
Resolution Note (fix version 7000.0.0a7):
Fixed by another internal issue: UUM-78828: ApplyInset error "EnsureRunningOnMainThread can only be called from the main thread" when exiting playmode