0
Unity Bug

text mesh generation is limited to 64k vertices!

Lucid 2 weeks ago • updated by Lazlo Bonin (Lead Developer) 2 days ago 5

When I select the game object that has all my bolt graph work i get "text mesh generation is limited to 64k vertices!" error on debug. My editor goes over 2000ms on profiler. Can someone help me understand this?

Bolt Version:
1.4.1
Unity Version:
2018.3.of2
.NET Version:
Under Review

Hi Lucid,

Can you post the full stack trace of the error?

Text mesh generation is limited to 64K vertices!

0x00000001414122F8 (Unity) StackWalker::GetCurrentCallstack

0x00000001414187A6 (Unity) StackWalker::ShowCallstack

0x00000001412FC02B (Unity) GetStacktrace

0x00000001401432FE (Unity) DebugStringToFile

0x0000000141CEED4A (Unity) TextRendering::TextMeshGenerator::GenerateTriangleIndices

0x00000001412B7D01 (Unity) OptimizedGUIBlock::TextDrawCall::AddText

0x00000001412C4B62 (Unity) OptimizedGUIBlock::QueueText

0x0000000141B6E101 (Unity) GUIStyle::DrawContent

0x0000000141B6D1E4 (Unity) GUIStyle::Draw

0x000000014164DFB2 (Unity) GUIStyle_CUSTOM_Internal_DrawPrefixLabel_Injected

0x000000005EC271CD (Mono JIT Code) (wrapper managed-to-native) UnityEngine.GUIStyle:Internal_DrawPrefixLabel_Injected (UnityEngine.GUIStyle,UnityEngine.Rect&,UnityEngine.GUIContent,int,bool)

0x000000005EC27023 (Mono JIT Code) UnityEngine.GUIStyle:Internal_DrawPrefixLabel (UnityEngine.Rect,UnityEngine.GUIContent,int,bool)

0x000000005EC26EF3 (Mono JIT Code) [GUIStyle.cs:283] UnityEngine.GUIStyle:DrawPrefixLabel (UnityEngine.Rect,UnityEngine.GUIContent,int)

0x000000005E82DDF3 (Mono JIT Code) [EditorGUI.cs:5345] UnityEditor.EditorGUI:HandlePrefixLabelInternal (UnityEngine.Rect,UnityEngine.Rect,UnityEngine.GUIContent,int,UnityEngine.GUIStyle)

0x000000005E82CF83 (Mono JIT Code) [EditorGUI.cs:7246] UnityEditor.EditorGUI:HandlePrefixLabel (UnityEngine.Rect,UnityEngine.Rect,UnityEngine.GUIContent,int,UnityEngine.GUIStyle)

0x000000005E825DD3 (Mono JIT Code) [EditorGUI.cs:5387] UnityEditor.EditorGUI:PrefixLabel (UnityEngine.Rect,int,UnityEngine.GUIContent,UnityEngine.GUIStyle)

0x000000005E825513 (Mono JIT Code) [EditorGUI.cs:5374] UnityEditor.EditorGUI:PrefixLabel (UnityEngine.Rect,int,UnityEngine.GUIContent)

0x000000005EBD7C5B (Mono JIT Code) [EditorGUI.cs:3368] UnityEditor.EditorGUI:ObjectFieldInternal (UnityEngine.Rect,UnityEditor.SerializedProperty,System.Type,UnityEngine.GUIContent,UnityEngine.GUIStyle)

0x000000005E81D013 (Mono JIT Code) [EditorGUI.cs:6053] UnityEditor.EditorGUI:DefaultPropertyField (UnityEngine.Rect,UnityEditor.SerializedProperty,UnityEngine.GUIContent)

0x000000005E81A82B (Mono JIT Code) [PropertyHandler.cs:149] UnityEditor.PropertyHandler:OnGUI (UnityEngine.Rect,UnityEditor.SerializedProperty,UnityEngine.GUIContent,bool,UnityEngine.Rect)

0x000000005EC2A703 (Mono JIT Code) [GenericInspector.cs:112] UnityEditor.GenericInspector:OnOptimizedInspectorGUI (UnityEngine.Rect)

0x000000005EB4402F (Mono JIT Code) [InspectorWindow.cs:1602] UnityEditor.InspectorWindow:DoOnInspectorGUI (bool,UnityEditor.Editor,bool,UnityEngine.Rect&)

0x000000005E80A8CB (Mono JIT Code) [InspectorWindow.cs:1473] UnityEditor.InspectorWindow:DrawEditor (UnityEditor.Editor[],int,bool,bool&,UnityEngine.Rect&)

0x000000005E806DB3 (Mono JIT Code) [InspectorWindow.cs:1310] UnityEditor.InspectorWindow:DrawEditors (UnityEditor.Editor[])

0x000000005E7F69AB (Mono JIT Code) [InspectorWindow.cs:653] UnityEditor.InspectorWindow:OnGUI ()

0x00000000008EC730 (Mono JIT Code) (wrapper runtime-invoke) object:runtime_invoke_void__this__ (object,intptr,intptr,intptr)

0x00007FFC76BFBE4B (mono-2.0-bdwgc) [mini-runtime.c:2809] mono_jit_runtime_invoke

0x00007FFC76B81E32 (mono-2.0-bdwgc) [object.c:2919] do_runtime_invoke

0x00007FFC76B8B012 (mono-2.0-bdwgc) [object.c:3071] mono_runtime_invoke_checked

0x00007FFC76B8B7A9 (mono-2.0-bdwgc) [object.c:5262] mono_runtime_try_invoke_array

0x00007FFC76B8AFA6 (mono-2.0-bdwgc) [object.c:5140] mono_runtime_invoke_array_checked

0x00007FFC76B2FED4 (mono-2.0-bdwgc) [icall.c:3358] ves_icall_InternalInvoke

0x0000000020C538B6 (Mono JIT Code) (wrapper managed-to-native) System.Reflection.MonoMethod:InternalInvoke (System.Reflection.MonoMethod,object,object[],System.Exception&)

0x0000000020C5302B (Mono JIT Code) System.Reflection.MonoMethod:Invoke (object,System.Reflection.BindingFlags,System.Reflection.Binder,object[],System.Globalization.CultureInfo)

0x0000000020C52CEF (Mono JIT Code) System.Reflection.MethodBase:Invoke (object,object[])

0x0000000033D4CB83 (Mono JIT Code) [HostView.cs:342] UnityEditor.HostView:Invoke (string,object)

0x0000000033D4C9E3 (Mono JIT Code) [HostView.cs:337] UnityEditor.HostView:Invoke (string)

0x000000005D0DD203 (Mono JIT Code) [HostView.cs:303] UnityEditor.HostView:InvokeOnGUI (UnityEngine.Rect,UnityEngine.Rect)

0x000000005D0DC673 (Mono JIT Code) [DockArea.cs:364] UnityEditor.DockArea:DrawView (UnityEngine.Rect,UnityEngine.Rect,bool,bool,bool)

0x000000005D0C850B (Mono JIT Code) [DockArea.cs:323] UnityEditor.DockArea:OldOnGUI ()

0x000000005D0B13DC (Mono JIT Code) [IMGUIContainer.cs:244] UnityEngine.Experimental.UIElements.IMGUIContainer:DoOnGUI (UnityEngine.Event,UnityEngine.Matrix4x4,UnityEngine.Rect,bool)

0x000000005D09EAAB (Mono JIT Code) [IMGUIContainer.cs:440] UnityEngine.Experimental.UIElements.IMGUIContainer:HandleIMGUIEvent (UnityEngine.Event,UnityEngine.Matrix4x4,UnityEngine.Rect)

0x000000005E2BEFC3 (Mono JIT Code) [IMGUIContainer.cs:412] UnityEngine.Experimental.UIElements.IMGUIContainer:HandleIMGUIEvent ()

0x000000005E2BE94D (Mono JIT Code) [ImmediateStylePainter.cs:113] UnityEngine.Experimental.UIElements.ImmediateStylePainter:DrawImmediate (System.Action)

0x000000005E2BE5B3 (Mono JIT Code) [IMGUIContainer.cs:99] UnityEngine.Experimental.UIElements.IMGUIContainer:DoRepaint (UnityEngine.Experimental.UIElements.IStylePainter)

0x000000005E2B88AA (Mono JIT Code) [VisualElement.cs:846] UnityEngine.Experimental.UIElements.VisualElement:Repaint (UnityEngine.Experimental.UIElements.IStylePainter)

0x000000005E2B6BB3 (Mono JIT Code) [VisualTreeRepaintUpdater.cs:311] UnityEngine.Experimental.UIElements.VisualTreeRepaintUpdater:PaintSubTree (UnityEngine.Experimental.UIElements.VisualElement,UnityEngine.Matrix4x4,bool,bool,UnityEngine.Rect)

0x000000005E2BB35B (Mono JIT Code) [VisualTreeRepaintUpdater.cs:330] UnityEngine.Experimental.UIElements.VisualTreeRepaintUpdater:PaintSubTreeChildren (UnityEngine.Experimental.UIElements.VisualElement,UnityEngine.Matrix4x4,bool,bool,UnityEngine.Rect)

0x000000005E2B6D9B (Mono JIT Code) [VisualTreeRepaintUpdater.cs:315] UnityEngine.Experimental.UIElements.VisualTreeRepaintUpdater:PaintSubTree (UnityEngine.Experimental.UIElements.VisualElement,UnityEngine.Matrix4x4,bool,bool,UnityEngine.Rect)

0x000000005E2AEDA3 (Mono JIT Code) [VisualTreeRepaintUpdater.cs:37] UnityEngine.Experimental.UIElements.VisualTreeRepaintUpdater:Update ()

0x000000005E2AC643 (Mono JIT Code) [VisualTreeUpdater.cs:71] UnityEngine.Experimental.UIElements.VisualTreeUpdater:UpdateVisualTree ()

0x000000005E2AC12B (Mono JIT Code) [Panel.cs:509] UnityEngine.Experimental.UIElements.Panel:Repaint (UnityEngine.Event)

0x000000005D080C1E (Mono JIT Code) [UIElementsUtility.cs:236] UnityEngine.Experimental.UIElements.UIElementsUtility:DoDispatch (UnityEngine.Experimental.UIElements.BaseVisualElementPanel)

0x000000005D08077B (Mono JIT Code) [UIElementsUtility.cs:68] UnityEngine.Experimental.UIElements.UIElementsUtility:ProcessEvent (int,intptr)

0x000000005D0800E4 (Mono JIT Code) [GUIUtility.cs:179] UnityEngine.GUIUtility:ProcessEvent (int,intptr)

0x000000005D080303 (Mono JIT Code) (wrapper runtime-invoke) :runtime_invoke_bool_int_intptr (object,intptr,intptr,intptr)

0x00007FFC76BFBE4B (mono-2.0-bdwgc) [mini-runtime.c:2809] mono_jit_runtime_invoke

0x00007FFC76B81E32 (mono-2.0-bdwgc) [object.c:2919] do_runtime_invoke

0x00007FFC76B8AE3F (mono-2.0-bdwgc) [object.c:2966] mono_runtime_invoke

0x0000000140C00F2A (Unity) scripting_method_invoke

0x0000000140BF14FA (Unity) ScriptingInvocation::Invoke

0x0000000140BEB55A (Unity) ScriptingInvocation::Invoke

0x000000014042E6DC (Unity) Scripting::UnityEngine::GUIUtilityProxy::ProcessEvent

0x000000014128DC4C (Unity) GUIView::ProcessRetainedMode

0x000000014147A8F1 (Unity) GUIView::OnInputEvent

0x000000014128DB5C (Unity) GUIView::ProcessInputEvent

0x0000000141471E85 (Unity) GUIView::DoPaint

0x000000014147CE60 (Unity) GUIView::RepaintAll

0x000000014133A9E1 (Unity) PlayerLoopController::UpdateScene

0x0000000141338DD0 (Unity) Application::TickTimer

0x00000001414953AB (Unity) MainMessageLoop

0x0000000141497046 (Unity) WinMain

0x000000014247897A (Unity) __scrt_common_main_seh

0x00007FFCBDBE3DC4 (KERNEL32) BaseThreadInitThunk

0x00007FFCC0013691 (ntdll) RtlUserThreadStart

Here you go Lazlo

Hi Lucid,

Sorry for the delay, thanks for posting the log. By inspecting the log, it seems that this issue is not related to Bolt at all. It seems like a Unity inspector rendering bug. I recommend sending the bug report to Unity directly.