Exception when building and running standalone project

Hi,

When building and running standalone project I’m getting following ArgumentNullException. Before that I’m getting errors that uss files cannot be found.

Is it a known issue, or am I doing something wrong?

Thanks.

Style sheet not found for path "Assets/DLT/UI (UI Toolkit)/Uxml/USS/MT-ToolsUSS.uss"
UnityEngine.DebugLogHandler:Internal_Log(LogType, LogOption, String, Object)
UnityEngine.DebugLogHandler:LogFormat(LogType, Object, String, Object[])
UnityEngine.Logger:Log(LogType, Object)
UnityEngine.Debug:LogWarning(Object)
UnityEngine.UIElements.VisualElement:AddStyleSheetPath(String) (at D:\Workspace\Moon Trader\client\Library\PackageCache\com.unity.ui@1.0.0-preview.13\Core\VisualElementStyleAccess.cs:56)
UnityEngine.UIElements.VisualTreeAsset:AssignStyleSheetFromAssetToElement(VisualElementAsset, VisualElement) (at D:\Workspace\Moon Trader\client\Library\PackageCache\com.unity.ui@1.0.0-preview.13\Core\UXML\VisualTreeAsset.cs:604)
UnityEngine.UIElements.VisualTreeAsset:CloneTree(VisualElement, Dictionary`2, List`1) (at D:\Workspace\Moon Trader\client\Library\PackageCache\com.unity.ui@1.0.0-preview.13\Core\UXML\VisualTreeAsset.cs:314)
UnityEngine.UIElements.UxmlTraits:Init(VisualElement, IUxmlAttributes, CreationContext) (at D:\Workspace\Moon Trader\client\Library\PackageCache\com.unity.ui@1.0.0-preview.13\Core\TemplateContainer.cs:72)
UnityEngine.UIElements.UxmlFactory`2:Create(IUxmlAttributes, CreationContext) (at D:\Workspace\Moon Trader\client\Library\PackageCache\com.unity.ui@1.0.0-preview.13\Core\UXML\UxmlFactory.cs:306)
UnityEngine.UIElements.VisualTreeAsset:Create(VisualElementAsset, CreationContext) (at D:\Workspace\Moon Trader\client\Library\PackageCache\com.unity.ui@1.0.0-preview.13\Core\UXML\VisualTreeAsset.cs:580)
UnityEngine.UIElements.VisualTreeAsset:CloneSetupRecursively(VisualElementAsset, Dictionary`2, CreationContext) (at D:\Workspace\Moon Trader\client\Library\PackageCache\com.unity.ui@1.0.0-preview.13\Core\UXML\VisualTreeAsset.cs:354)
UnityEngine.UIElements.VisualTreeAsset:CloneSetupRecursively(VisualElementAsset, Dictionary`2, CreationContext) (at D:\Workspace\Moon Trader\client\Library\PackageCache\com.unity.ui@1.0.0-preview.13\Core\UXML\VisualTreeAsset.cs:397)
UnityEngine.UIElements.VisualTreeAsset:CloneSetupRecursively(VisualElementAsset, Dictionary`2, CreationContext) (at D:\Workspace\Moon Trader\client\Library\PackageCache\com.unity.ui@1.0.0-preview.13\Core\UXML\VisualTreeAsset.cs:397)
UnityEngine.UIElements.VisualTreeAsset:CloneTree(VisualElement, Dictionary`2, List`1) (at D:\Workspace\Moon Trader\client\Library\PackageCache\com.unity.ui@1.0.0-preview.13\Core\UXML\VisualTreeAsset.cs:329)
UnityEngine.UIElements.VisualTreeAsset:Instantiate() (at D:\Workspace\Moon Trader\client\Library\PackageCache\com.unity.ui@1.0.0-preview.13\Core\UXML\VisualTreeAsset.cs:197)
UnityEngine.UIElements.UIDocument:RecreateUI() (at D:\Workspace\Moon Trader\client\Library\PackageCache\com.unity.ui@1.0.0-preview.13\GameObjects\UIDocument.cs:416)
UnityEngine.UIElements.UIDocument:OnEnable() (at D:\Workspace\Moon Trader\client\Library\PackageCache\com.unity.ui@1.0.0-preview.13\GameObjects\UIDocument.cs:315)
ArgumentNullException: Value cannot be null.
Parameter name: shader
  at (wrapper managed-to-native) UnityEngine.Material.CreateWithShader(UnityEngine.Material,UnityEngine.Shader)
  at UnityEngine.Material..ctor (UnityEngine.Shader shader) [0x00008] in <1bcd79d45cd74590b726c010430e0a7b>:0
  at UnityEngine.UIElements.UIR.UIRenderDevice.get_shaderModelIs35 () [0x0001e] in D:\Workspace\Moon Trader\client\Library\PackageCache\com.unity.ui@1.0.0-preview.13\Core\Renderer\UIRenderer\UIRenderDevice.cs:268
  at UnityEngine.UIElements.UIR.TextureSlotManager..cctor () [0x00010] in D:\Workspace\Moon Trader\client\Library\PackageCache\com.unity.ui@1.0.0-preview.13\Core\Renderer\UIRTextureSlotManager.cs:9
Rethrow as TypeInitializationException: The type initializer for 'UnityEngine.UIElements.UIR.TextureSlotManager' threw an exception.
  at (wrapper managed-to-native) System.Object.__icall_wrapper_mono_generic_class_init(intptr)
  at UnityEngine.UIElements.UIR.UIRenderDevice..ctor (System.UInt32 initialVertexCapacity, System.UInt32 initialIndexCapacity, System.Boolean mockDevice) [0x00060] in D:\Workspace\Moon Trader\client\Library\PackageCache\com.unity.ui@1.0.0-preview.13\Core\Renderer\UIRenderer\UIRenderDevice.cs:92
  at UnityEngine.UIElements.UIR.UIRenderDevice..ctor (System.UInt32 initialVertexCapacity, System.UInt32 initialIndexCapacity) [0x00000] in D:\Workspace\Moon Trader\client\Library\PackageCache\com.unity.ui@1.0.0-preview.13\Core\Renderer\UIRenderer\UIRenderDevice.cs:143
  at UnityEngine.UIElements.UIR.RenderChain..ctor (UnityEngine.UIElements.BaseVisualElementPanel panel) [0x00097] in D:\Workspace\Moon Trader\client\Library\PackageCache\com.unity.ui@1.0.0-preview.13\Core\Renderer\UIRRenderChain.cs:186
  at UnityEngine.UIElements.UIRRepaintUpdater.CreateRenderChain () [0x00001] in D:\Workspace\Moon Trader\client\Library\PackageCache\com.unity.ui@1.0.0-preview.13\Core\Renderer\UIRRepaintUpdater.cs:77
  at UnityEngine.UIElements.UIRRepaintUpdater.InitRenderChain () [0x00001] in D:\Workspace\Moon Trader\client\Library\PackageCache\com.unity.ui@1.0.0-preview.13\Core\Renderer\UIRRepaintUpdater.cs:137
  at UnityEngine.UIElements.UIRRepaintUpdater.Update () [0x0000e] in D:\Workspace\Moon Trader\client\Library\PackageCache\com.unity.ui@1.0.0-preview.13\Core\Renderer\UIRRepaintUpdater.cs:50
  at UnityEngine.UIElements.VisualTreeUpdater.UpdateVisualTreePhase (UnityEngine.UIElements.VisualTreeUpdatePhase phase) [0x0001e] in D:\Workspace\Moon Trader\client\Library\PackageCache\com.unity.ui@1.0.0-preview.13\Core\VisualTreeUpdater.cs:155
  at UnityEngine.UIElements.Panel.UpdateForRepaint () [0x00035] in D:\Workspace\Moon Trader\client\Library\PackageCache\com.unity.ui@1.0.0-preview.13\Core\Panel.cs:958
  at UnityEngine.UIElements.Panel.Repaint (UnityEngine.Event e) [0x00098] in D:\Workspace\Moon Trader\client\Library\PackageCache\com.unity.ui@1.0.0-preview.13\Core\Panel.cs:999
  at UnityEngine.UIElements.BaseRuntimePanel.Repaint (UnityEngine.Event e) [0x00061] in D:\Workspace\Moon Trader\client\Library\PackageCache\com.unity.ui@1.0.0-preview.13\Core\Panel.cs:1087
  at UnityEngine.UIElements.UIElementsRuntimeUtility.RepaintOverlayPanels () [0x0003a] in D:\Workspace\Moon Trader\client\Library\PackageCache\com.unity.ui@1.0.0-preview.13\Core\UIElementsRuntimeUtility.cs:116
  at UnityEngine.UIElements.UIElementsRuntimeUtilityNative.RepaintOverlayPanels () [0x0000a] in <afe54ac2824b489d9042f7875119fca7>:0
(Filename: <1bcd79d45cd74590b726c010430e0a7b> Line: 0)

Have you tried putting your xuml file in a resource folder?

No, I haven’t. Doing that will break all paths to uss files.

Everything works fine in editor, but not in a build. I’ve checked demo project and unless I missed something, their uxml are not in any resource folder as well.

Hello, in your UXML, can you switch from using to and see if it fixes it?

Went through all UXMLs and none had path=“”. All were using src=“”. Please note, all UXML were done in UIBuilder, none manually.

Managed to isolate it in a separate project. My guess it fails when it uses relative and full paths/src same time and using inserted UXML templates.

Filed a bug report Case 1299464, @antoine-unity

Any update on this issue? @antoine-unity

We managed to get rid of style sheet error (by adding styles only to root UXML), but still our builds are not working throwing second error.

That case is still waiting for processing by our QA team.

Sorry, I missed that there was a second error, can you have a look at the following posts?

Both methods worked.
Finally I’ve recreated PanelSettings and used the new one.

Thanks.

Hello!
There is almost the same error in my case. UI Toolkit v13, Unity 2020.1.17f1
Exception

WindowsPlayer(DESKTOP-K6SFUR6) ArgumentNullException: Value cannot be null.
Parameter name: shader
at (wrapper managed-to-native) UnityEngine.Material.CreateWithShader(UnityEngine.Material,UnityEngine.Shader)
at UnityEngine.Material…ctor (UnityEngine.Shader shader) [0x00008] in :0
at UnityEngine.TextCore.Text.FontAsset.CreateFontAsset (UnityEngine.Font font, System.Int32 samplingPointSize, System.Int32 atlasPadding, UnityEngine.TextCore.LowLevel.GlyphRenderMode renderMode, System.Int32 atlasWidth, System.Int32 atlasHeight, UnityEngine.TextCore.Text.AtlasPopulationMode atlasPopulationMode, System.Boolean enableMultiAtlasSupport) [0x0013c] in D:\Projects\Unity\Tanks\Library\PackageCache\com.unity.textcore@1.0.0-preview.2\Scripts\Runtime\FontAsset.cs:573
at UnityEngine.TextCore.Text.TextSettings.GetCachedFontAssetInternal (UnityEngine.Font font) [0x00027] in D:\Projects\Unity\Tanks\Library\PackageCache\com.unity.textcore@1.0.0-preview.2\Scripts\Runtime\TextSettings.cs:267
at UnityEngine.UIElements.Text.PanelTextSettings.GetCachedFontAsset (UnityEngine.Font font) [0x00001] in D:\Projects\Unity\Tanks\Library\PackageCache\com.unity.ui@1.0.0-preview.13\Text\PanelTextSettings.cs:42
at UnityEngine.UIElements.Text.TextUtilities.GetFontAsset (UnityEngine.UIElements.MeshGenerationContextUtils+TextParams textParam) [0x0005d] in D:\Projects\Unity\Tanks\Library\PackageCache\com.unity.ui@1.0.0-preview.13\Text\TextUtilities.cs:32
at UnityEngine.UIElements.Text.TextCoreHandle.UpdateGenerationSettingsCommon (UnityEngine.UIElements.MeshGenerationContextUtils+TextParams painterParams, UnityEngine.TextCore.Text.TextGenerationSettings settings) [0x00034] in D:\Projects\Unity\Tanks\Library\PackageCache\com.unity.ui@1.0.0-preview.13\Text\TextCoreHandle.cs:205
at UnityEngine.UIElements.Text.TextCoreHandle.Update (UnityEngine.UIElements.MeshGenerationContextUtils+TextParams parms, System.Single pixelsPerPoint) [0x00042] in D:\Projects\Unity\Tanks\Library\PackageCache\com.unity.ui@1.0.0-preview.13\Text\TextCoreHandle.cs:127
at UnityEngine.UIElements.UIR.Implementation.UIRStylePainter.DrawTextCore (UnityEngine.UIElements.MeshGenerationContextUtils+TextParams textParams, UnityEngine.UIElements.ITextHandle handle, System.Single pixelsPerPoint) [0x00001] in D:\Projects\Unity\Tanks\Library\PackageCache\com.unity.ui@1.0.0-preview.13\Core\Renderer\UIRStylePainter.cs:389
at UnityEngine.UIElements.Text.TextCoreHandle.DrawText (UnityEngine.UIElements.UIR.Implementation.UIRStylePainter painter, UnityEngine.UIElements.MeshGenerationContextUtils+TextParams textParams, System.Single pixelsPerPoint) [0x00001] in D:\Projects\Unity\Tanks\Library\PackageCache\com.unity.ui@1.0.0-preview.13\Text\TextCoreHandle.cs:116
at UnityEngine.UIElements.UIR.Implementation.UIRStylePainter.DrawText (UnityEngine.UIElements.MeshGenerationContextUtils+TextParams textParams, UnityEngine.UIElements.ITextHandle handle, System.Single pixelsPerPoint) [0x00024] in D:\Projects\Unity\Tanks\Library\PackageCache\com.unity.ui@1.0.0-preview.13\Core\Renderer\UIRStylePainter.cs:359
at UnityEngine.UIElements.MeshGenerationContextUtils.Text (UnityEngine.UIElements.MeshGenerationContext mgc, UnityEngine.UIElements.MeshGenerationContextUtils+TextParams textParams, UnityEngine.UIElements.ITextHandle handle, System.Single pixelsPerPoint) [0x00025] in D:\Projects\Unity\Tanks\Library\PackageCache\com.unity.ui@1.0.0-preview.13\Core\Renderer\UIRMeshGenerationContext.cs:721
at UnityEngine.UIElements.TextElement.OnGenerateVisualContent (UnityEngine.UIElements.MeshGenerationContext mgc) [0x00008] in D:\Projects\Unity\Tanks\Library\PackageCache\com.unity.ui@1.0.0-preview.13\Core\TextElement.cs:176
at UnityEngine.UIElements.VisualElement.InvokeGenerateVisualContent (UnityEngine.UIElements.MeshGenerationContext mgc) [0x00010] in D:\Projects\Unity\Tanks\Library\PackageCache\com.unity.ui@1.0.0-preview.13\Core\VisualElement.cs:1317
UnityEngine.DebugLogHandler:Internal_LogException(Exception, Object)
UnityEngine.DebugLogHandler:LogException(Exception, Object)
UnityEngine.Logger:LogException(Exception, Object)
UnityEngine.Debug:LogException(Exception)
UnityEngine.UIElements.VisualElement:InvokeGenerateVisualContent(MeshGenerationContext) (at D:\Projects\Unity\Tanks\Library\PackageCache\com.unity.ui@1.0.0-preview.13\Core\VisualElement.cs:1321)
UnityEngine.UIElements.UIR.Implementation.RenderEvents:PaintElement(RenderChain, VisualElement, ChainBuilderStats&) (at D:\Projects\Unity\Tanks\Library\PackageCache\com.unity.ui@1.0.0-preview.13\Core\Renderer\UIRRenderEvents.cs:729)
UnityEngine.UIElements.UIR.Implementation.RenderEvents:smile:epthFirstOnVisualsChanged(RenderChain, VisualElement, UInt32, Boolean, Boolean, ChainBuilderStats&) (at D:\Projects\Unity\Tanks\Library\PackageCache\com.unity.ui@1.0.0-preview.13\Core\Renderer\UIRRenderEvents.cs:554)
UnityEngine.UIElements.UIR.Implementation.RenderEvents:ProcessOnVisualsChanged(RenderChain, VisualElement, UInt32, ChainBuilderStats&) (at D:\Projects\Unity\Tanks\Library\PackageCache\com.unity.ui@1.0.0-preview.13\Core\Renderer\UIRRenderEvents.cs:51)
UnityEngine.UIElements.UIR.RenderChain:ProcessChanges() (at D:\Projects\Unity\Tanks\Library\PackageCache\com.unity.ui@1.0.0-preview.13\Core\Renderer\UIRRenderChain.cs:394)
UnityEngine.UIElements.UIRRepaintUpdater:Update() (at D:\Projects\Unity\Tanks\Library\PackageCache\com.unity.ui@1.0.0-preview.13\Core\Renderer\UIRRepaintUpdater.cs:57)
UnityEngine.UIElements.VisualTreeUpdater:UpdateVisualTreePhase(VisualTreeUpdatePhase) (at D:\Projects\Unity\Tanks\Library\PackageCache\com.unity.ui@1.0.0-preview.13\Core\VisualTreeUpdater.cs:155)
UnityEngine.UIElements.Panel:UpdateForRepaint() (at D:\Projects\Unity\Tanks\Library\PackageCache\com.unity.ui@1.0.0-preview.13\Core\Panel.cs:958)
UnityEngine.UIElements.Panel:Repaint(Event) (at D:\Projects\Unity\Tanks\Library\PackageCache\com.unity.ui@1.0.0-preview.13\Core\Panel.cs:999)
UnityEngine.UIElements.BaseRuntimePanel:Repaint(Event) (at D:\Projects\Unity\Tanks\Library\PackageCache\com.unity.ui@1.0.0-preview.13\Core\Panel.cs:1087)
UnityEngine.UIElements.UIElementsRuntimeUtility:RepaintOverlayPanels() (at D:\Projects\Unity\Tanks\Library\PackageCache\com.unity.ui@1.0.0-preview.13\Core\UIElementsRuntimeUtility.cs:116)
UnityEngine.UIElements.UIElementsRuntimeUtilityNative:RepaintOverlayPanels()

(Filename: Line: 0)

I tryed to reload PannelSettings, added “Distance Field SSD” and “Distance Field” shaders to the Graphics settings section and ran Reimport all assets. Nothing changed. What do you think it might be?

Same problem here, with different stack. Tried reimport/library remove and recreated PanelSettings. No luck.
Not sure how to try the shader trick, as UI Toolkit is in packages (non-editable).

The errors are constantly being spammed even if none of my panel display method are triggered. There are different variants.

First there is this error:

ArgumentNullException: Value cannot be null.
Parameter name: shader
at UnityEngine.UIElements.UIR.UIRenderDevice.get_shaderModelIs35 () [0x00000] in <00000000000000000000000000000000>:0
at UnityEngine.UIElements.UIR.TextureSlotManager..cctor () [0x00000] in <00000000000000000000000000000000>:0
at UnityEngine.UIElements.UIR.UIRenderDevice..ctor (System.UInt32 initialVertexCapacity, System.UInt32 initialIndexCapacity, System.Boolean mockDevice) [0x00000] in <00000000000000000000000000000000>:0
at UnityEngine.UIElements.UIR.UIRenderDevice..ctor (System.UInt32 initialVertexCapacity, System.UInt32 initialIndexCapacity) [0x00000] in <00000000000000000000000000000000>:0
at UnityEngine.UIElements.UIR.RenderChain..ctor (UnityEngine.UIElements.BaseVisualElementPanel panel) [0x00000] in <00000000000000000000000000000000>:0
at UnityEngine.UIElements.UIRRepaintUpdater.CreateRenderChain () [0x00000] in <00000000000000000000000000000000>:0
at UnityEngine.UIElements.UIRRepaintUpdater.InitRenderChain () [0x00000] in <00000000000000000000000000000000>:0
at UnityEngine.UIElements.UIRRepaintUpdater.Update () [0x00000] in <00000000000000000000000000000000>:0
at UnityEngine.UIElements.VisualTreeUpdater.UpdateVisualTreePhase (UnityEngine.UIElements.VisualTreeUpdatePhase phase) [0x00000] in <00000000000000000000000000000000>:0
at UnityEngine.UIElements.Panel.Repaint (UnityEngine.Event e) [0x00000] in <00000000000000000000000000000000>:0
at UnityEngine.UIElements.BaseRuntimePanel.Repaint (UnityEngine.Event e) [0x00000] in <00000000000000000000000000000000>:0
at UnityEngine.UIElements.UIElementsRuntimeUtility.RepaintOverlayPanel (UnityEngine.UIElements.BaseRuntimePanel panel) [0x00000] in <00000000000000000000000000000000>:0
at UnityEngine.UIElements.UIElementsRuntimeUtility.EndRenderOverlays (System.Int32 displayIndex) [0x00000] in <00000000000000000000000000000000>:0
at UnityEngine.Events.UnityAction`1[T0].Invoke (T0 arg0) [0x00000] in <00000000000000000000000000000000>:0
Rethrow as TypeInitializationException: The type initializer for 'UnityEngine.UIElements.UIR.TextureSlotManager' threw an exception.
at UnityEngine.UIElements.UIR.UIRenderDevice..ctor (System.UInt32 initialVertexCapacity, System.UInt32 initialIndexCapacity, System.Boolean mockDevice) [0x00000] in <00000000000000000000000000000000>:0
at UnityEngine.UIElements.UIR.UIRenderDevice..ctor (System.UInt32 initialVertexCapacity, System.UInt32 initialIndexCapacity) [0x00000] in <00000000000000000000000000000000>:0
at UnityEngine.UIElements.UIR.RenderChain..ctor (UnityEngine.UIElements.BaseVisualElementPanel panel) [0x00000] in <00000000000000000000000000000000>:0
at UnityEngine.UIElements.UIRRepaintUpdater.CreateRenderChain () [0x00000] in <00000000000000000000000000000000>:0
at UnityEngine.UIElements.UIRRepaintUpdater.InitRenderChain () [0x00000] in <00000000000000000000000000000000>:0
at UnityEngine.UIElements.UIRRepaintUpdater.Update () [0x00000] in <00000000000000000000000000000000>:0
at UnityEngine.UIElements.VisualTreeUpdater.UpdateVisualTreePhase (UnityEngine.UIElements.VisualTreeUpdatePhase phase) [0x00000] in <00000000000000000000000000000000>:0
at UnityEngine.UIElements.Panel.Repaint (UnityEngine.Event e) [0x00000] in <00000000000000000000000000000000>:0
at UnityEngine.UIElements.BaseRuntimePanel.Repaint (UnityEngine.Event e) [0x00000] in <00000000000000000000000000000000>:0
at UnityEngine.UIElements.UIElementsRuntimeUtility.RepaintOverlayPanel (UnityEngine.UIElements.BaseRuntimePanel panel) [0x00000] in <00000000000000000000000000000000>:0
at UnityEngine.UIElements.UIElementsRuntimeUtility.EndRenderOverlays (System.Int32 displayIndex) [0x00000] in <00000000000000000000000000000000>:0
at UnityEngine.Events.UnityAction`1[T0].Invoke (T0 arg0) [0x00000] in <00000000000000000000000000000000>:0

And then spam of these until the app quit:

ArgumentNullException: Value cannot be null.
Parameter name: shader
at UnityEngine.UIElements.UIR.UIRenderDevice.get_vertexTexturingIsAvailable () [0x00000] in <00000000000000000000000000000000>:0
at UnityEngine.UIElements.UIR.UIRVEShaderInfoAllocator.Construct () [0x00000] in <00000000000000000000000000000000>:0
at UnityEngine.UIElements.UIR.RenderChain.Constructor (UnityEngine.UIElements.BaseVisualElementPanel panelObj, UnityEngine.UIElements.UIR.UIRenderDevice deviceObj, UnityEngine.UIElements.AtlasBase atlas, UnityEngine.UIElements.UIR.VectorImageManager vectorImageMan) [0x00000] in <00000000000000000000000000000000>:0
at UnityEngine.UIElements.UIR.RenderChain..ctor (UnityEngine.UIElements.BaseVisualElementPanel panel) [0x00000] in <00000000000000000000000000000000>:0
at UnityEngine.UIElements.UIRRepaintUpdater.CreateRenderChain () [0x00000] in <00000000000000000000000000000000>:0
at UnityEngine.UIElements.UIRRepaintUpdater.InitRenderChain () [0x00000] in <00000000000000000000000000000000>:0
at UnityEngine.UIElements.UIRRepaintUpdater.Update () [0x00000] in <00000000000000000000000000000000>:0
at UnityEngine.UIElements.VisualTreeUpdater.UpdateVisualTreePhase (UnityEngine.UIElements.VisualTreeUpdatePhase phase) [0x00000] in <00000000000000000000000000000000>:0
at UnityEngine.UIElements.Panel.Repaint (UnityEngine.Event e) [0x00000] in <00000000000000000000000000000000>:0
at UnityEngine.UIElements.BaseRuntimePanel.Repaint (UnityEngine.Event e) [0x00000] in <00000000000000000000000000000000>:0
at UnityEngine.UIElements.UIElementsRuntimeUtility.RepaintOverlayPanel (UnityEngine.UIElements.BaseRuntimePanel panel) [0x00000] in <00000000000000000000000000000000>:0
at UnityEngine.UIElements.UIElementsRuntimeUtility.EndRenderOverlays (System.Int32 displayIndex) [0x00000] in <00000000000000000000000000000000>:0
at UnityEngine.Events.UnityAction`1[T0].Invoke (T0 arg0) [0x00000] in <00000000000000000000000000000000>:0

Unity 2021.1.0b12
UI Toolkit preview.14
UI Builder preview.13
Both UI packages had to be installed manually (com.unity.ui, com.unity.ui.builder) despite being on 2021.1.

Other symptoms:

I get a lot of these when working with the Builder, or even when selecting ui document in project view.

[Assert] [07:30:06] [None] [Worker0] Assertion failed on expression: 'state.state == kUpToDate'
[Assert] [07:30:06] [None] [Worker0] Assertion failed on expression: 'state.artifactID == result'
[Assert] [07:30:06] [None] [Worker0] Assertion failed on expression: 'ins.second || ins.first->second == artifactID || (ins.first->second == CircularDependencyArtifactID() && !artifactID.IsValid()) || GetPathFromAssetGuidV2(key.GetGUID()).ends_with("".cs"")'
[Assert] [07:30:06] [None] [Worker0] Assertion failed on expression: 'ins.second || ins.first->second == artifactID || (ins.first->second == CircularDependencyArtifactID() && !artifactID.IsValid()) || GetPathFromAssetGuidV2(key.GetGUID()).ends_with("".cs"")'
[Assert] [07:30:06] [None] [Worker0] Assertion failed on expression: 'ins.second || ins.first->second == artifactID || (ins.first->second == CircularDependencyArtifactID() && !artifactID.IsValid()) || GetPathFromAssetGuidV2(key.GetGUID()).ends_with("".cs"")'
[Assert] [07:30:06] [None] [Worker0] Assertion failed on expression: 'ins.second || ins.first->second == artifactID || (ins.first->second == CircularDependencyArtifactID() && !artifactID.IsValid()) || GetPathFromAssetGuidV2(key.GetGUID()).ends_with("".cs"")'

I also have couple of older UI Documents I was working on couple of months ago but set them aside until the errors are fixed. I now consider these as somehow corrupt. I have a lot of errors when even selecting them in project view.
I keep them around hoping these errors are fixed because some work went to creating them. However I am not even able to fix font and sprite references in these and they are unusable. I outlined details of these errors in this thread: https://forum.unity.com/posts/6948083/

@antoine-unity
Thank you for any info.

Have solved my problem.
In my case there were no files: “UI Toolkit\Resources\Fonts & Materials\LiberationSans SDF.asset”, “UI Toolkit\Resources\Fonts & Materials\LiberationSans.ttf”. I don’t know how they gone. But I have taken the same files from the Royale project and my standalone build started working.

Ohhh, And I don’t know why “LiberationSans.ttf” font required for my project, and gave an error without it. But I use in my uxml files another font:

.button {
    background-image: url('/Assets/3rdParty/SimplePixelUI/artwork/halfcustomizible/square/Buttons/button_1.png');
    width: 100%;
    margin: 5px;
    font-size: 32px;
    -unity-font: url('/Assets/3rdParty/TextMesh Pro/Examples & Extras/Fonts/Roboto-Bold.ttf');
    white-space: normal;
    -unity-text-align: upper-center;
}

Mayby we have a bug in this case.