We’ve been using this pathfinding solution for quite a while now and it has always worked well. Now however I’ve run into an issue with A* pathfinding crashing the project in build. As we’ve also been in contact with unity about the crashes, as we’ve had some problems with unity bugs, they helped us dig up some more about the error. It seems to have to do with a memcpy happening on the pathing thread. We haven’t been able to generate a crash dump from it. But we’ve been able to get a call stack. Anyone know wha this could be, and how to solve it?
The version of Unity being used, 2018.4.3f1.
Version of A* pathfinding project: 4.2.5
That conclusion was reached by the Unity engineer working on my support ticket. I’ve submitted an image of what he said, the log at the bottom of the image is just the one i pasted in the previous post.
The crash seems to specifically trigger when there are a lot of paths that can’t be reached. In our game, the units default to simply walking straight towards their destination, the bird route, without pathfinding if a path couldnt be found. But when it happens over and over again, the crash happens with that stack trace. But the more i look into it, I understand why you’re sounding hesitant that the pathing is to blame here. As the stack trace quite clearly points to a unity debug.log.
We’d love to upgrade Unity but we have a different problem preventing us from doing so. This is Unity’s problem as well, but I figure at least google can index this in a couple places: upgrading from Unity 2019.2.21 to the current 2020 LTS version causes a unique error to show up for us that can prevent the game from being built at all, and is a constant source of log file entries even when we can: Do not use ReadObjectThreaded on scene objects!