Crash in unity 2023.1.0b7

Hello,

I’m preparing the migration of my project to latest unity version 2023 (but still in beta) but it seems the library is breaking the editor.

  • Create a new project
  • Add a terrain
  • Add a game object with Pathfinder component
  • Generate a graph
  • Leave and reclick on the game object => it should crash the unity editor
0x00007FFA8446703E (Unity) scripting_array_length
0x00007FFA84A6BCDF (Unity) TextRendering::TextCoreGeneratorGroup::Get
0x00007FFA84AB192A (Unity) GUIStyle::DrawContent
0x00007FFA84AB0B74 (Unity) GUIStyle::Draw
0x00007FFA8383F07A (Unity) GUIStyle_CUSTOM_Internal_Draw2_Injected
0x000001B8CB51F4F7 (Mono JIT Code) (wrapper managed-to-native) UnityEngine.GUIStyle:Internal_Draw2_Injected 
......
and before that
.....
0x000001B907FB4883 (Mono JIT Code) [.\Library\PackageCache\com.arongranberg.astar@4.3.61\Editor\AstarPathEditor.cs:515] Pathfinding.AstarPathEditor:DrawGraphHeader (Pathfinding.GraphEditor) 
0x000001B907FB2BAB (Mono JIT Code) [.\Library\PackageCache\com.arongranberg.astar@4.3.61\Editor\AstarPathEditor.cs:586] Pathfinding.AstarPathEditor:DrawGraph (Pathfinding.GraphEditor) 
0x000001B907F62B3B (Mono JIT Code) [.\Library\PackageCache\com.arongranberg.astar@4.3.61\Editor\AstarPathEditor.cs:281] Pathfinding.AstarPathEditor:DrawMainArea () 
0x000001B907F5EDFB (Mono JIT Code) [.\Library\PackageCache\com.arongranberg.astar@4.3.61\Editor\AstarPathEditor.cs:190] Pathfinding.AstarPathEditor:OnInspectorGUI () 
0x000001B8CBABB6E8 (Mono JIT Code) UnityEditor.UIElements.InspectorElement/<>c__DisplayClass71_0:<CreateIMGUIInspectorFromEditor>b__0 ()

Do you have an idea? Should I create a issue on unity side? Thanks.

Thanks.

That very much looks like a Unity bug to me.

Hello, yes thanks for the answer.

I reported the bug, it is fixed here: Unity Issue Tracker - Crash on scripting_array_length when selecting a GameObject from the Hierarchy (unity3d.com)

:slight_smile:

1 Like