Hi,
First of all, sorry but english isn’t my first language.
I use A* for 5y now and I had no major issue. But recently, I sometimes have a NullRef on DeserializeAndRemoveOldNodeLinks.
The thing is, I do some 3D Bundle with prebake graph A 4.2.5 on Unity 2019.2.11f1* but I use the bundle on Unity 2022.3.53f1 with A* 5.2.5
I don’t always have the issue but when it happen, the only solution for that is to remove the graph, use the bundle without graph, then reload the bundle with the graph in. (I use NodeLink2)
So, I know there’s a difference between each version, but I can’t unpgrade my 3D scene’s Unity , should I downgrade my app ? Or can I have a solution for this ?
It seems like it’s something about node in cache or memory ?
Hi there, just want to make sure I’m fully understanding; you’re using graph caches made in 4.2.5/2019.2.11 and then opening that graph cache in 5.2.5/2022.3.53, is that correct? And you’re having issues with opening them in the newer version?
Also if you can let us know when you’re seeing the errors (during runtime, after a certain action) as well as what may have made these errors start (any updates or assets added) that would help a lot!
you’re using graph caches made in 4.2.5/2019.2.11 and then opening that graph cache in 5.2.5/2022.3.53, is that correct? And you’re having issues with opening them in the newer version?
Mostly yes, but i’m not sure about the graph cache (?). I mean, I make my graph file in 4.2.5/2019.2.11, and open it in 5.2.5/2022.3.53
And liked I said, I can resolve it If I reload my 3d asset without any graph and then reload it with the graph (even if it’s the same graph that had the “bug”)
I’m seeing the errors during runtime, when I open my 3D model and try to deserialize the graph. No other action needed.
If it can help you, I’v got this :
System.Exception: Caught exception while deserializing data. —> System.NullReferenceException: Object reference not set to an instance of an object
at Pathfinding.Serialization.AstarSerializer.DeserializeAndRemoveOldNodeLinks
(Pathfinding.Serialization.GraphSerializationContext ctx) [0x00053] in .\Packages\com.arongranberg.astar\Core\Serialization\JsonSerializer.cs:727
Blockquote