Search Unity

  1. Welcome to the Unity Forums! Please take the time to read our Code of Conduct to familiarize yourself with the forum rules and how to post constructively.
  2. Dismiss Notice

Bug Crash in UnityEngine.UIElements.UIPainter2D:Stroke_Injected

Discussion in 'UI Toolkit' started by tamas-b, Jun 8, 2023.

  1. tamas-b

    tamas-b

    Joined:
    Aug 29, 2022
    Posts:
    3
    We are sometimes seeing native crashes when using the Painter2D API and hitting the 65535 vertex limit. Is this a known issue? We also have crash & exception reporting enabled in our project, but these crashes are not being reported :(

    We have already done some work to simplify the shapes we're drawing in this case, but since there is no way to detect when we are approaching the 65535 limit I'm not sure what else we should be doing to avoid this issue.

    The crash below occurred in a standalone build on an M1 Mac.

    Code (CSharp):
    1. A VisualElement must not allocate more than 65535 vertices.
    2. A VisualElement must not allocate more than 65535 vertices.
    3.  
    4. =================================================================
    5.     Native Crash Reporting
    6. =================================================================
    7. Got a segv while executing native code. This usually indicates
    8. a fatal error in the mono runtime or one of the native libraries
    9. used by your application.
    10. =================================================================
    11.  
    12. =================================================================
    13.     Native stacktrace:
    14. =================================================================
    15.     0x112b233c0 - /private/var/folders/r9/510t91q16qd1blqxwyvdp0380000gn/T/AppTranslocation/0A76EFB3-C77C-4102-9219-8543964CBE63/d/massage-vis 0.18.4 copy.app/Contents/Frameworks/libmonobdwgc-2.0.dylib : monovm_shutdown
    16.     0x112ae5940 - /private/var/folders/r9/510t91q16qd1blqxwyvdp0380000gn/T/AppTranslocation/0A76EFB3-C77C-4102-9219-8543964CBE63/d/massage-vis 0.18.4 copy.app/Contents/Frameworks/libmonobdwgc-2.0.dylib : mono_unity_backtrace_from_context
    17.     0x112a6e230 - /private/var/folders/r9/510t91q16qd1blqxwyvdp0380000gn/T/AppTranslocation/0A76EFB3-C77C-4102-9219-8543964CBE63/d/massage-vis 0.18.4 copy.app/Contents/Frameworks/libmonobdwgc-2.0.dylib : mono_jit_set_domain
    18.     0x1c0e2b4a4 - /usr/lib/system/libsystem_platform.dylib : _sigtramp
    19.     0x106c1757c - /private/var/folders/r9/510t91q16qd1blqxwyvdp0380000gn/T/AppTranslocation/0A76EFB3-C77C-4102-9219-8543964CBE63/d/massage-vis 0.18.4 copy.app/Contents/Frameworks/UnityPlayer.dylib : _ZdaPvRKSt9nothrow_t
    20.     0x106c12314 - /private/var/folders/r9/510t91q16qd1blqxwyvdp0380000gn/T/AppTranslocation/0A76EFB3-C77C-4102-9219-8543964CBE63/d/massage-vis 0.18.4 copy.app/Contents/Frameworks/UnityPlayer.dylib : _ZdaPvRKSt9nothrow_t
    21.     0x106263428 - /private/var/folders/r9/510t91q16qd1blqxwyvdp0380000gn/T/AppTranslocation/0A76EFB3-C77C-4102-9219-8543964CBE63/d/massage-vis 0.18.4 copy.app/Contents/Frameworks/UnityPlayer.dylib :
    22.     0x1568b8734 - Unknown
    23.     0x1568b862c - Unknown
    24.     0x1568b82c8 - Unknown
    25.     0x1568ba858 - Unknown
    26.     0x1568b5b80 - Unknown
    27.     0x1435b1a38 - Unknown
    28.     0x1435b17ac - Unknown
    29.     0x1435a9c34 - Unknown
    30.     0x1435a9178 - Unknown
    31.     0x1435a8d38 - Unknown
    32.     0x14359bcec - Unknown
    33.     0x1428acab8 - Unknown
    34.     0x14251999c - Unknown
    35.     0x1428abb24 - Unknown
    36.     0x1428ab7c0 - Unknown
    37.     0x1428ab048 - Unknown
    38.     0x1428aa6e0 - Unknown
    39.     0x1428aa540 - Unknown
    40.     0x1428aa3a8 - Unknown
    41.     0x1428aa370 - Unknown
    42.     0x1428aa214 - Unknown
    43.     0x112a714f0 - /private/var/folders/r9/510t91q16qd1blqxwyvdp0380000gn/T/AppTranslocation/0A76EFB3-C77C-4102-9219-8543964CBE63/d/massage-vis 0.18.4 copy.app/Contents/Frameworks/libmonobdwgc-2.0.dylib : mono_get_runtime_build_info
    44.     0x112bf7594 - /private/var/folders/r9/510t91q16qd1blqxwyvdp0380000gn/T/AppTranslocation/0A76EFB3-C77C-4102-9219-8543964CBE63/d/massage-vis 0.18.4 copy.app/Contents/Frameworks/libmonobdwgc-2.0.dylib : mono_runtime_invoke
    45.     0x112bf74b4 - /private/var/folders/r9/510t91q16qd1blqxwyvdp0380000gn/T/AppTranslocation/0A76EFB3-C77C-4102-9219-8543964CBE63/d/massage-vis 0.18.4 copy.app/Contents/Frameworks/libmonobdwgc-2.0.dylib : mono_runtime_invoke
    46.     0x1066f0ba4 - /private/var/folders/r9/510t91q16qd1blqxwyvdp0380000gn/T/AppTranslocation/0A76EFB3-C77C-4102-9219-8543964CBE63/d/massage-vis 0.18.4 copy.app/Contents/Frameworks/UnityPlayer.dylib : _ZdaPvRKSt9nothrow_t
    47.     0x1066df798 - /private/var/folders/r9/510t91q16qd1blqxwyvdp0380000gn/T/AppTranslocation/0A76EFB3-C77C-4102-9219-8543964CBE63/d/massage-vis 0.18.4 copy.app/Contents/Frameworks/UnityPlayer.dylib : _ZdaPvRKSt9nothrow_t
    48.     0x106761900 - /private/var/folders/r9/510t91q16qd1blqxwyvdp0380000gn/T/AppTranslocation/0A76EFB3-C77C-4102-9219-8543964CBE63/d/massage-vis 0.18.4 copy.app/Contents/Frameworks/UnityPlayer.dylib : _ZdaPvRKSt9nothrow_t
    49.     0x106bf07cc - /private/var/folders/r9/510t91q16qd1blqxwyvdp0380000gn/T/AppTranslocation/0A76EFB3-C77C-4102-9219-8543964CBE63/d/massage-vis 0.18.4 copy.app/Contents/Frameworks/UnityPlayer.dylib : _ZdaPvRKSt9nothrow_t
    50.     0x1065215a0 - /private/var/folders/r9/510t91q16qd1blqxwyvdp0380000gn/T/AppTranslocation/0A76EFB3-C77C-4102-9219-8543964CBE63/d/massage-vis 0.18.4 copy.app/Contents/Frameworks/UnityPlayer.dylib : _ZdaPvRKSt9nothrow_t
    51.     0x106512ea0 - /private/var/folders/r9/510t91q16qd1blqxwyvdp0380000gn/T/AppTranslocation/0A76EFB3-C77C-4102-9219-8543964CBE63/d/massage-vis 0.18.4 copy.app/Contents/Frameworks/UnityPlayer.dylib : _ZdaPvRKSt9nothrow_t
    52.     0x106512eec - /private/var/folders/r9/510t91q16qd1blqxwyvdp0380000gn/T/AppTranslocation/0A76EFB3-C77C-4102-9219-8543964CBE63/d/massage-vis 0.18.4 copy.app/Contents/Frameworks/UnityPlayer.dylib : _ZdaPvRKSt9nothrow_t
    53.     0x106513180 - /private/var/folders/r9/510t91q16qd1blqxwyvdp0380000gn/T/AppTranslocation/0A76EFB3-C77C-4102-9219-8543964CBE63/d/massage-vis 0.18.4 copy.app/Contents/Frameworks/UnityPlayer.dylib : _ZdaPvRKSt9nothrow_t
    54.     0x106f42d98 - /private/var/folders/r9/510t91q16qd1blqxwyvdp0380000gn/T/AppTranslocation/0A76EFB3-C77C-4102-9219-8543964CBE63/d/massage-vis 0.18.4 copy.app/Contents/Frameworks/UnityPlayer.dylib : _Z10PlayerMainiPPKc
    55.     0x1c1e068f0 - /System/Library/Frameworks/Foundation.framework/Versions/C/Foundation : __NSFireTimer
    56.     0x1c0efb8cc - /System/Library/Frameworks/CoreFoundation.framework/Versions/A/CoreFoundation : __CFRUNLOOP_IS_CALLING_OUT_TO_A_TIMER_CALLBACK_FUNCTION__
    57.     0x1c0efb4b4 - /System/Library/Frameworks/CoreFoundation.framework/Versions/A/CoreFoundation : __CFRunLoopDoTimer
    58.     0x1c0efaf3c - /System/Library/Frameworks/CoreFoundation.framework/Versions/A/CoreFoundation : __CFRunLoopDoTimers
    59.     0x1c0edf9b4 - /System/Library/Frameworks/CoreFoundation.framework/Versions/A/CoreFoundation : __CFRunLoopRun
    60.     0x1c0edea84 - /System/Library/Frameworks/CoreFoundation.framework/Versions/A/CoreFoundation : CFRunLoopRunSpecific
    61.     0x1c9b1e338 - /System/Library/Frameworks/Carbon.framework/Versions/A/Frameworks/HIToolbox.framework/Versions/A/HIToolbox : RunCurrentEventLoopInMode
    62.     0x1c9b1dfc4 - /System/Library/Frameworks/Carbon.framework/Versions/A/Frameworks/HIToolbox.framework/Versions/A/HIToolbox : ReceiveNextEventCommon
    63.     0x1c9b1de68 - /System/Library/Frameworks/Carbon.framework/Versions/A/Frameworks/HIToolbox.framework/Versions/A/HIToolbox : _BlockUntilNextEventMatchingListInModeWithFilter
    64.     0x1c3a4651c - /System/Library/Frameworks/AppKit.framework/Versions/C/AppKit : _DPSNextEvent
    65.     0x1c3a44e14 - /System/Library/Frameworks/AppKit.framework/Versions/C/AppKit : -[NSApplication(NSEvent) _nextEventMatchingEventMask:untilDate:inMode:dequeue:]
    66.     0x1c3a36fe0 - /System/Library/Frameworks/AppKit.framework/Versions/C/AppKit : -[NSApplication run]
    67.     0x1c3a086fc - /System/Library/Frameworks/AppKit.framework/Versions/C/AppKit : NSApplicationMain
    68.     0x106f42868 - /private/var/folders/r9/510t91q16qd1blqxwyvdp0380000gn/T/AppTranslocation/0A76EFB3-C77C-4102-9219-8543964CBE63/d/massage-vis 0.18.4 copy.app/Contents/Frameworks/UnityPlayer.dylib : _Z10PlayerMainiPPKc
    69.     0x102a7d08c - Unknown
    70.  
    71. =================================================================
    72.     Telemetry Dumper:
    73. =================================================================
    74. Pkilling 0x10764185600x from 0x4339991936x
    75. Pkilling 0x12143833088x from 0x4339991936x
    76. Pkilling 0x6164836352x from 0x4339991936x
    77. Pkilling 0x6169128960x from 0x4339991936x
    78. Pkilling 0x10875908096x from 0x4339991936x
    79. Pkilling 0x6173421568x from 0x4339991936x
    80. Pkilling 0x10880200704x from 0x4339991936x
    81. Pkilling 0x10884493312x from 0x4339991936x
    82. Pkilling 0x6225948672x from 0x4339991936x
    83. Pkilling 0x6156103680x from 0x4339991936x
    84. Pkilling 0x6138015744x from 0x4339991936x
    85. Pkilling 0x6138589184x from 0x4339991936x
    86. Pkilling 0x6139162624x from 0x4339991936x
    87. Pkilling 0x12202602496x from 0x4339991936x
    88. Pkilling 0x6162690048x from 0x4339991936x
    89. Pkilling 0x12206895104x from 0x4339991936x
    90. Pkilling 0x6139736064x from 0x4339991936x
    91. Pkilling 0x6166982656x from 0x4339991936x
    92. Pkilling 0x10873761792x from 0x4339991936x
    93. Pkilling 0x6171275264x from 0x4339991936x
    94. Pkilling 0x10878054400x from 0x4339991936x
    95. Pkilling 0x6140309504x from 0x4339991936x
    96. Pkilling 0x10882347008x from 0x4339991936x
    97. Pkilling 0x12126842880x from 0x4339991936x
    98. Pkilling 0x6140882944x from 0x4339991936x
    99. Pkilling 0x6141456384x from 0x4339991936x
    100. Pkilling 0x6142029824x from 0x4339991936x
    101. Pkilling 0x12178763776x from 0x4339991936x
    102. Could not exec mono-hang-watchdog, expected on path '/private/var/folders/r9/510t91q16qd1blqxwyvdp0380000gn/T/AppTranslocation/0A76EFB3-C77C-4102-9219-8543964CBE63/d/massage-vis 0.18.4 copy.app/Contents/MonoBleedingEdge/etc/../bin/mono-hang-watchdog' (errno 2)
    103. Entering thread summarizer pause from 0x4339991936x
    104. Finished thread summarizer pause from 0x4339991936x.
    105. Failed to create breadcrumb file (null)/crash_hash_0x1a234e5fdd
    106. Obtained 61 stack frames.
    107. #0  0x000001c0e2e2b4 in _os_semaphore_dispose.cold.1
    108. #1  0x3c1b0001c0c4ef94 in _dispatch_dispose
    109. #2  0x417600010644ba00 in operator delete[](void*, std::nothrow_t const&)
    110. #3  0x000001c0cffdd0 in __cxa_finalize_ranges
    111. #4  0x381d8001c0cffb74 in exit
    112. #5  0x1742000112c19140 in mono_threads_detach_coop
    113. #6  0x00000112b23608 in monovm_shutdown
    114. #7  0x00000112ae5940 in mono_unity_backtrace_from_context
    115. #8  0x00000112a6e230 in mono_jit_set_domain
    116. #9  0x000001c0e2b4a4 in _sigtramp
    117. #10 0xf049800106c1757c in operator delete[](void*, std::nothrow_t const&)
    118. #11 0x00000106c12314 in operator delete[](void*, std::nothrow_t const&)
    119. #12 0x00000106263428 in (Unknown)
    120. #13 0x000001568b8734 in  (wrapper managed-to-native) UnityEngine.UIElements.UIPainter2D:Stroke_Injected (intptr,UnityEngine.UIElements.MeshWriteDataInterface&) [{0x147edbde8} + 0x74]  (0x1568b86c0 0x1568b8798) [0x1123e6d20 - Unity Root Domain]
    121. #14 0x000001568b862c in  UnityEngine.UIElements.UIPainter2D:Stroke (intptr) [{0x147edbcc0} + 0x2c]  (0x1568b8600 0x1568b866c) [0x1123e6d20 - Unity Root Domain]
    122. #15 0x000001568b82c8 in  UnityEngine.UIElements.Painter2D:Stroke () [{0x147ebca18} + 0xe8]  (0x1568b81e0 0x1568b83e0) [0x1123e6d20 - Unity Root Domain]
    123. #16 0x000001568ba858 in  NB.Charts.LineChart:DrawChart (UnityEngine.UIElements.Painter2D,UnityEngine.UIElements.MeshGenerationContext,UnityEngine.Vector2,UnityEngine.Vector2,UnityEngine.Vector2,UnityEngine.Vector2) [{0x159765118} + 0x8f0]  (0x1568b9f68 0x1568ba8c4) [0x1123e6d20 - Unity Root Domain]
    124. #17 0x000001568b5b80 in  NB.Charts.TimeSeriesChartBase:GenerateVisualContent (UnityEngine.UIElements.MeshGenerationContext) [{0x15939a7d0} + 0xbd0]  (0x1568b4fb0 0x1568b5b98) [0x1123e6d20 - Unity Root Domain]
    125. #18 0x000001435b1a38 in  UnityEngine.UIElements.VisualElement:InvokeGenerateVisualContent (UnityEngine.UIElements.MeshGenerationContext) [{0x15066b390} + 0xb8]  (0x1435b1980 0x1435b1adc) [0x1123e6d20 - Unity Root Domain]
    126. #19 0x000001435b17ac in  UnityEngine.UIElements.UIR.Implementation.CommandGenerator:InvokeGenerateVisualContent (UnityEngine.UIElements.VisualElement,UnityEngine.UIElements.MeshGenerationContext) [{0x1504f9bb0} + 0x2c]  (0x1435b1780 0x1435b17c4) [0x1123e6d20 - Unity Root Domain]
    127. #20 0x000001435a9c34 in  UnityEngine.UIElements.UIR.Implementation.CommandGenerator:PaintElement (UnityEngine.UIElements.UIR.RenderChain,UnityEngine.UIElements.VisualElement,UnityEngine.UIElements.UIR.ChainBuilderStats&) [{0x1504f9958} + 0x60c]  (0x1435a9628 0x1435ab168) [0x1123e6d20 - Unity Root Domain]
    128. #21 0x000001435a9178 in  UnityEngine.UIElements.UIR.Implementation.RenderEvents:DepthFirstOnVisualsChanged (UnityEngine.UIElements.UIR.RenderChain,UnityEngine.UIElements.VisualElement,uint,bool,bool,UnityEngine.UIElements.UIR.ChainBuilderStats&) [{0x1504f9858} + 0x368]  (0x1435a8e10 0x1435a92cc) [0x1123e6d20 - Unity Root Domain]
    129. #22 0x000001435a8d38 in  UnityEngine.UIElements.UIR.Implementation.RenderEvents:ProcessOnVisualsChanged (UnityEngine.UIElements.UIR.RenderChain,UnityEngine.UIElements.VisualElement,uint,UnityEngine.UIElements.UIR.ChainBuilderStats&) [{0x1504f8d20} + 0x100]  (0x1435a8c38 0x1435a8d60) [0x1123e6d20 - Unity Root Domain]
    130. #23 0x0000014359bcec in  UnityEngine.UIElements.UIR.RenderChain:ProcessChanges () [{0x137b58f10} + 0xb8c]  (0x14359b160 0x14359bebc) [0x1123e6d20 - Unity Root Domain]
    131. #24 0x000001428acab8 in  UnityEngine.UIElements.UIRRepaintUpdater:Update () [{0x14040bf18} + 0x98]  (0x1428aca20 0x1428acc30) [0x1123e6d20 - Unity Root Domain]
    132. #25 0x0000014251999c in  UnityEngine.UIElements.VisualTreeUpdater:UpdateVisualTreePhase (UnityEngine.UIElements.VisualTreeUpdatePhase) [{0x1417f9640} + 0xec]  (0x1425198b0 0x142519a10) [0x1123e6d20 - Unity Root Domain]
    133. #26 0x000001428abb24 in  UnityEngine.UIElements.Panel:UpdateForRepaint () [{0x137b58b38} + 0x74]  (0x1428abab0 0x1428abb34) [0x1123e6d20 - Unity Root Domain]
    134. #27 0x000001428ab7c0 in  UnityEngine.UIElements.Panel:Repaint (UnityEngine.Event) [{0x1504008f0} + 0x1d0]  (0x1428ab5f0 0x1428ab838) [0x1123e6d20 - Unity Root Domain]
    135. #28 0x000001428ab048 in  UnityEngine.UIElements.BaseRuntimePanel:Repaint (UnityEngine.Event) [{0x1403456d8} + 0x1b0]  (0x1428aae98 0x1428ab1d0) [0x1123e6d20 - Unity Root Domain]
    136. #29 0x000001428aa6e0 in  UnityEngine.UIElements.UIElementsRuntimeUtility:RepaintOverlayPanel (UnityEngine.UIElements.BaseRuntimePanel) [{0x137b589a8} + 0xc0]  (0x1428aa620 0x1428aa75c) [0x1123e6d20 - Unity Root Domain]
    137. #30 0x000001428aa540 in  UnityEngine.UIElements.UIElementsRuntimeUtility:RenderOverlaysBeforePriority (int,single) [{0x137b58910} + 0x120]  (0x1428aa420 0x1428aa5ac) [0x1123e6d20 - Unity Root Domain]
    138. #31 0x000001428aa3a8 in  UnityEngine.UIElements.UIElementsRuntimeUtility:EndRenderOverlays (int) [{0x140369170} + 0x28]  (0x1428aa380 0x1428aa3cc) [0x1123e6d20 - Unity Root Domain]
    139. #32 0x000001428aa370 in  UnityEngine.Canvas:EndRenderExtraOverlays (int) [{0x1379e6bb0} + 0x40]  (0x1428aa330 0x1428aa380) [0x1123e6d20 - Unity Root Domain]
    140. #33 0x000001428aa214 in  (wrapper runtime-invoke) <Module>:runtime_invoke_void_int (object,intptr,intptr,intptr) [{0x1379e7288} + 0x74]  (0x1428aa1a0 0x1428aa2b4) [0x1123e6d20 - Unity Root Domain]
    141. #34 0x00000112a714f0 in mono_get_runtime_build_info
    142. #35 0x00000112bf7594 in mono_runtime_invoke
    143. #36 0x00000112bf74b4 in mono_runtime_invoke
    144. #37 0x000001066f0ba4 in operator delete[](void*, std::nothrow_t const&)
    145. #38 0x000001066df798 in operator delete[](void*, std::nothrow_t const&)
    146. #39 0x00000106761900 in operator delete[](void*, std::nothrow_t const&)
    147. #40 0x00000106bf07cc in operator delete[](void*, std::nothrow_t const&)
    148. #41 0x000001065215a0 in operator delete[](void*, std::nothrow_t const&)
    149. #42 0x00000106512ea0 in operator delete[](void*, std::nothrow_t const&)
    150. #43 0x00000106512eec in operator delete[](void*, std::nothrow_t const&)
    151. #44 0x00000106513180 in operator delete[](void*, std::nothrow_t const&)
    152. #45 0x00000106f42d98 in PlayerMain(int, char const**)
    153. #46 0x000001c1e068f0 in __NSFireTimer
    154. #47 0x8f568001c0efb8cc in __CFRUNLOOP_IS_CALLING_OUT_TO_A_TIMER_CALLBACK_FUNCTION__
    155. #48 0x3b030001c0efb4b4 in __CFRunLoopDoTimer
    156. #49 0xb73d8001c0efaf3c in __CFRunLoopDoTimers
    157. #50 0xab1b8001c0edf9b4 in __CFRunLoopRun
    158. #51 0xc82b0001c0edea84 in CFRunLoopRunSpecific
    159. #52 0x87e0001c9b1e338 in RunCurrentEventLoopInMode
    160. #53 0xb04f0001c9b1dfc4 in ReceiveNextEventCommon
    161. #54 0xe4548001c9b1de68 in _BlockUntilNextEventMatchingListInModeWithFilter
    162. #55 0xa3148001c3a4651c in _DPSNextEvent
    163. #56 0xe87b8001c3a44e14 in -[NSApplication(NSEvent) _nextEventMatchingEventMask:untilDate:inMode:dequeue:]
    164. #57 0x68060001c3a36fe0 in -[NSApplication run]
    165. #58 0x4a4b0001c3a086fc in NSApplicationMain
    166. #59 0x92f000106f42868 in PlayerMain(int, char const**)
    167. #60 0x00000102a7d08c in (Unknown)
    168. Could not open the crashlog output file. Error = 30: Read-only file system
    169.  
    170. Waiting for dumping threads to resume
    171.  
    172. =================================================================
    173.     External Debugger Dump:
    174. =================================================================
    175.  
    176. =================================================================
    177.     Basic Fault Address Reporting
    178. =================================================================
    179. Memory around native instruction pointer (0x106c19828):0x106c19818  8c a1 8d 9a 8c 01 40 b9 0f 8c 40 f9 ed 19 0a 8b  ......@...@.....
    180. 0x106c19828  a2 0d 40 2d ed 19 0b 8b a0 01 40 bd ee 03 0d aa  ..@-......@.....
    181. 0x106c19838  c1 4d 40 bc f1 19 08 8b 34 56 40 2d f1 19 09 8b  .M@.....4V@-....
    182. 0x106c19848  24 16 40 2d 92 38 34 1e b3 38 35 1e 04 38 22 1e  $.@-.84..85..8".
    183.  
    184. =================================================================
    185.    Managed Stacktrace:
    186. =================================================================
    187.      at <unknown> <0xffffffff>
    188.      at UnityEngine.UIElements.UIPainter2D:Stroke_Injected <0x00007>
    189.      at UnityEngine.UIElements.UIPainter2D:Stroke <0x0002b>
    190.      at UnityEngine.UIElements.Painter2D:Stroke <0x000e7>
    191.      at NB.Charts.LineChart:DrawChart <0x008ef>
    192.      at NB.Charts.TimeSeriesChartBase:GenerateVisualContent <0x00bcf>
    193.      at UnityEngine.UIElements.VisualElement:InvokeGenerateVisualContent <0x000b7>
    194.      at UnityEngine.UIElements.UIR.Implementation.CommandGenerator:InvokeGenerateVisualContent <0x0002b>
    195.      at UnityEngine.UIElements.UIR.Implementation.CommandGenerator:PaintElement <0x0060b>
    196.      at UnityEngine.UIElements.UIR.Implementation.RenderEvents:DepthFirstOnVisualsChanged <0x00367>
    197.      at UnityEngine.UIElements.UIR.Implementation.RenderEvents:ProcessOnVisualsChanged <0x000ff>
    198.      at UnityEngine.UIElements.UIR.RenderChain:ProcessChanges <0x00b8b>
    199.      at UnityEngine.UIElements.UIRRepaintUpdater:Update <0x00097>
    200.      at UnityEngine.UIElements.VisualTreeUpdater:UpdateVisualTreePhase <0x000eb>
    201.      at UnityEngine.UIElements.Panel:UpdateForRepaint <0x00073>
    202.      at UnityEngine.UIElements.Panel:Repaint <0x001cf>
    203.      at UnityEngine.UIElements.BaseRuntimePanel:Repaint <0x001af>
    204.      at UnityEngine.UIElements.UIElementsRuntimeUtility:RepaintOverlayPanel <0x000bf>
    205.      at UnityEngine.UIElements.UIElementsRuntimeUtility:RenderOverlaysBeforePriority <0x0011f>
    206.      at UnityEngine.UIElements.UIElementsRuntimeUtility:EndRenderOverlays <0x00027>
    207.      at UnityEngine.Canvas:EndRenderExtraOverlays <0x0003f>
    208.      at <Module>:runtime_invoke_void_int <0x00073>
    209. =================================================================
    210. Obtained 51 stack frames.
    211. #0  0x00000106c19828 in operator delete[](void*, std::nothrow_t const&)
    212. #1  0x00000106c12314 in operator delete[](void*, std::nothrow_t const&)
    213. #2  0x00000106263428 in (Unknown)
    214. #3  0x000001568b8734 in  (wrapper managed-to-native) UnityEngine.UIElements.UIPainter2D:Stroke_Injected (intptr,UnityEngine.UIElements.MeshWriteDataInterface&) [{0x147edbde8} + 0x74]  (0x1568b86c0 0x1568b8798) [0x1123e6d20 - Unity Root Domain]
    215. #4  0x000001568b862c in  UnityEngine.UIElements.UIPainter2D:Stroke (intptr) [{0x147edbcc0} + 0x2c]  (0x1568b8600 0x1568b866c) [0x1123e6d20 - Unity Root Domain]
    216. #5  0x000001568b82c8 in  UnityEngine.UIElements.Painter2D:Stroke () [{0x147ebca18} + 0xe8]  (0x1568b81e0 0x1568b83e0) [0x1123e6d20 - Unity Root Domain]
    217. #6  0x000001568ba858 in  NB.Charts.LineChart:DrawChart (UnityEngine.UIElements.Painter2D,UnityEngine.UIElements.MeshGenerationContext,UnityEngine.Vector2,UnityEngine.Vector2,UnityEngine.Vector2,UnityEngine.Vector2) [{0x159765118} + 0x8f0]  (0x1568b9f68 0x1568ba8c4) [0x1123e6d20 - Unity Root Domain]
    218. #7  0x000001568b5b80 in  NB.Charts.TimeSeriesChartBase:GenerateVisualContent (UnityEngine.UIElements.MeshGenerationContext) [{0x15939a7d0} + 0xbd0]  (0x1568b4fb0 0x1568b5b98) [0x1123e6d20 - Unity Root Domain]
    219. #8  0x000001435b1a38 in  UnityEngine.UIElements.VisualElement:InvokeGenerateVisualContent (UnityEngine.UIElements.MeshGenerationContext) [{0x15066b390} + 0xb8]  (0x1435b1980 0x1435b1adc) [0x1123e6d20 - Unity Root Domain]
    220. #9  0x000001435b17ac in  UnityEngine.UIElements.UIR.Implementation.CommandGenerator:InvokeGenerateVisualContent (UnityEngine.UIElements.VisualElement,UnityEngine.UIElements.MeshGenerationContext) [{0x1504f9bb0} + 0x2c]  (0x1435b1780 0x1435b17c4) [0x1123e6d20 - Unity Root Domain]
    221. #10 0x000001435a9c34 in  UnityEngine.UIElements.UIR.Implementation.CommandGenerator:PaintElement (UnityEngine.UIElements.UIR.RenderChain,UnityEngine.UIElements.VisualElement,UnityEngine.UIElements.UIR.ChainBuilderStats&) [{0x1504f9958} + 0x60c]  (0x1435a9628 0x1435ab168) [0x1123e6d20 - Unity Root Domain]
    222. #11 0x000001435a9178 in  UnityEngine.UIElements.UIR.Implementation.RenderEvents:DepthFirstOnVisualsChanged (UnityEngine.UIElements.UIR.RenderChain,UnityEngine.UIElements.VisualElement,uint,bool,bool,UnityEngine.UIElements.UIR.ChainBuilderStats&) [{0x1504f9858} + 0x368]  (0x1435a8e10 0x1435a92cc) [0x1123e6d20 - Unity Root Domain]
    223. #12 0x000001435a8d38 in  UnityEngine.UIElements.UIR.Implementation.RenderEvents:ProcessOnVisualsChanged (UnityEngine.UIElements.UIR.RenderChain,UnityEngine.UIElements.VisualElement,uint,UnityEngine.UIElements.UIR.ChainBuilderStats&) [{0x1504f8d20} + 0x100]  (0x1435a8c38 0x1435a8d60) [0x1123e6d20 - Unity Root Domain]
    224. #13 0x0000014359bcec in  UnityEngine.UIElements.UIR.RenderChain:ProcessChanges () [{0x137b58f10} + 0xb8c]  (0x14359b160 0x14359bebc) [0x1123e6d20 - Unity Root Domain]
    225. #14 0x000001428acab8 in  UnityEngine.UIElements.UIRRepaintUpdater:Update () [{0x14040bf18} + 0x98]  (0x1428aca20 0x1428acc30) [0x1123e6d20 - Unity Root Domain]
    226. #15 0x0000014251999c in  UnityEngine.UIElements.VisualTreeUpdater:UpdateVisualTreePhase (UnityEngine.UIElements.VisualTreeUpdatePhase) [{0x1417f9640} + 0xec]  (0x1425198b0 0x142519a10) [0x1123e6d20 - Unity Root Domain]
    227. #16 0x000001428abb24 in  UnityEngine.UIElements.Panel:UpdateForRepaint () [{0x137b58b38} + 0x74]  (0x1428abab0 0x1428abb34) [0x1123e6d20 - Unity Root Domain]
    228. #17 0x000001428ab7c0 in  UnityEngine.UIElements.Panel:Repaint (UnityEngine.Event) [{0x1504008f0} + 0x1d0]  (0x1428ab5f0 0x1428ab838) [0x1123e6d20 - Unity Root Domain]
    229. #18 0x000001428ab048 in  UnityEngine.UIElements.BaseRuntimePanel:Repaint (UnityEngine.Event) [{0x1403456d8} + 0x1b0]  (0x1428aae98 0x1428ab1d0) [0x1123e6d20 - Unity Root Domain]
    230. #19 0x000001428aa6e0 in  UnityEngine.UIElements.UIElementsRuntimeUtility:RepaintOverlayPanel (UnityEngine.UIElements.BaseRuntimePanel) [{0x137b589a8} + 0xc0]  (0x1428aa620 0x1428aa75c) [0x1123e6d20 - Unity Root Domain]
    231. #20 0x000001428aa540 in  UnityEngine.UIElements.UIElementsRuntimeUtility:RenderOverlaysBeforePriority (int,single) [{0x137b58910} + 0x120]  (0x1428aa420 0x1428aa5ac) [0x1123e6d20 - Unity Root Domain]
    232. #21 0x000001428aa3a8 in  UnityEngine.UIElements.UIElementsRuntimeUtility:EndRenderOverlays (int) [{0x140369170} + 0x28]  (0x1428aa380 0x1428aa3cc) [0x1123e6d20 - Unity Root Domain]
    233. #22 0x000001428aa370 in  UnityEngine.Canvas:EndRenderExtraOverlays (int) [{0x1379e6bb0} + 0x40]  (0x1428aa330 0x1428aa380) [0x1123e6d20 - Unity Root Domain]
    234. #23 0x000001428aa214 in  (wrapper runtime-invoke) <Module>:runtime_invoke_void_int (object,intptr,intptr,intptr) [{0x1379e7288} + 0x74]  (0x1428aa1a0 0x1428aa2b4) [0x1123e6d20 - Unity Root Domain]
    235. #24 0x00000112a714f0 in mono_get_runtime_build_info
    236. #25 0x00000112bf7594 in mono_runtime_invoke
    237. #26 0x00000112bf74b4 in mono_runtime_invoke
    238. #27 0x000001066f0ba4 in operator delete[](void*, std::nothrow_t const&)
    239. #28 0x000001066df798 in operator delete[](void*, std::nothrow_t const&)
    240. #29 0x00000106761900 in operator delete[](void*, std::nothrow_t const&)
    241. #30 0x00000106bf07cc in operator delete[](void*, std::nothrow_t const&)
    242. #31 0x000001065215a0 in operator delete[](void*, std::nothrow_t const&)
    243. #32 0x00000106512ea0 in operator delete[](void*, std::nothrow_t const&)
    244. #33 0x00000106512eec in operator delete[](void*, std::nothrow_t const&)
    245. #34 0x00000106513180 in operator delete[](void*, std::nothrow_t const&)
    246. #35 0x00000106f42d98 in PlayerMain(int, char const**)
    247. #36 0x000001c1e068f0 in __NSFireTimer
    248. #37 0x8f568001c0efb8cc in __CFRUNLOOP_IS_CALLING_OUT_TO_A_TIMER_CALLBACK_FUNCTION__
    249. #38 0x3b030001c0efb4b4 in __CFRunLoopDoTimer
    250. #39 0xb73d8001c0efaf3c in __CFRunLoopDoTimers
    251. #40 0xab1b8001c0edf9b4 in __CFRunLoopRun
    252. #41 0xc82b0001c0edea84 in CFRunLoopRunSpecific
    253. #42 0x87e0001c9b1e338 in RunCurrentEventLoopInMode
    254. #43 0xb04f0001c9b1dfc4 in ReceiveNextEventCommon
    255. #44 0xe4548001c9b1de68 in _BlockUntilNextEventMatchingListInModeWithFilter
    256. #45 0xa3148001c3a4651c in _DPSNextEvent
    257. #46 0xe87b8001c3a44e14 in -[NSApplication(NSEvent) _nextEventMatchingEventMask:untilDate:inMode:dequeue:]
    258. #47 0x68060001c3a36fe0 in -[NSApplication run]
    259. #48 0x4a4b0001c3a086fc in NSApplicationMain
    260. #49 0x92f000106f42868 in PlayerMain(int, char const**)
    261. #50 0x00000102a7d08c in (Unknown)
    262. Could not open the crashlog output file. Error = 2: No such file or directory
     
  2. mcoted3d

    mcoted3d

    Unity Technologies

    Joined:
    Feb 3, 2016
    Posts:
    969
    This is not a known issue. Can you please report the bug with the bug reporter tool (Help > Report a Bug...) from your project, and we'll have a look.

    Yes, it can be difficult to know when the limit will be reached. Don't forget that the limit is per-VisualElement, so one way to increase your limit is to split the shapes into multiple VisualElements.
     
  3. tamas-b

    tamas-b

    Joined:
    Aug 29, 2022
    Posts:
    3
    Submitted

    This is something we considered, but we'd still just be guessing when to split into a new element. We are trying to produce real-time data plots from time series data. We thought he had a decent workaround until now by limiting how close adjacent points could be (e.g. never appending points less than 2 pixels apart), which seemed to keep us under the vertex limit in testing, but a user seems to have found a way to get over the limit after all, haha. In the past this just resulted in an empty VE, though, rather than a crash.
     
  4. mcoted3d

    mcoted3d

    Unity Technologies

    Joined:
    Feb 3, 2016
    Posts:
    969
    That's definitely what is expected to happen.

    We may be able to relax the vertex limit in the future, but probably only in Unity 2023.2+.