About official bug

Hi, Aron!

I’ve been struggling with a bug that (apparently) relates to the A* Pathfinding Project and 4.6. At least, according to Unity.

I haven’t been able to get any more info out of Unity about exactly what’s going on, but it looks like something A* is doing triggered a bug in Unity’s experimental runtime. What I’m wondering is if you know anything about what was going on, and if there’s a temporary workaround I can implement.

Hi

Well, it looks like they have fixed the bug in a future release.
I haven’t heard of this bug before though, so I am not sure which workarounds you could implement.
Try to use the latest beta version (from https://www.arongranberg.com/astar/download) maybe it doesn’t show up there?
Also try to disable multithreading for both pathfinding and RVO.

The bug is specifically a crash bug, and from the few details I’ve heard from Unity, it seems like it’s got to do with the compiler, Specifically, I got this from Unity’s QA:

“We have found out that Mono fails to compile AStarPath.Update() method”

So it seems like it’s a major issue in Mono, that just happens to be triggered by your project. The reason I’m asking about it here is because I also got this in an email from Unity’s QA a while back:

"Since it looks like the error is triggered inside the plugin we will try contacting the author of the plugin.

Is it okay if we share your project with him? It should help us both reproduce and fix the issue."

“The plugin” here is the A* project. I answered yes, so I assumed they had sent you the project. If they had, it might be that you’d discovered something. If they didn’t get in touch, then I guess I’ll just have to wait for the fix to hit a public version of Unity.

Ah. That bug. I did receive an email about that. Unfortunately given the information it’s pretty much impossible for me to figure out anything more than the Unity guys can… I have never heard anyone else report a similar bug, and for me to debug the JIT… well, I don’t even have the source code for it.