[BUG] Getting contours on layered grid graph causes inifinte loop

Hi there @aron_granberg ,

I saw another post in the past that was similar to my issue ([Bug] Infinite loop while getting contours) but I am still having this issue even though it looked like it was solved?

Anyways, my issue is using GraphUtilities.GetContours on a layered grid graph in a very basic scene and whenever I run it unity just runs forever and looks like it is going through an infinite loop. I have an example unity project I prepared to reproduce the issue, what might be the best way to get it to you?

Thanks!

@aron_granberg I sent you an email containing the google drive link to my project file since I haven’t heard back from you. All you need to do is scan the terrain and that will cause the infinite loop. I tracked the infinite loop cause down to TestGetContours.cs line 23 when I call GraphUtilities.GetContours(graph). Every time I call GetContours I get an infinite loop and I don’t know why. Any help you be greatly appreciated!

Thanks!

@Oblivionized hey sorry for the late response. Would you mind sending it to me da-man-ray@outlook.com and i’ll take a look at it tomorrow. Also are you using the latest version of the package? What unity version are you using?

@manryan, that’s alright. Thanks for taking a look at this!

I have sent the email with the google drive file link to you. Yes, I updated the project with the latest version of the package (5.1.6) and the issue still persists. The unity version I’m using is: 2022.3.21f1

I’m not able to send an email to that address for some reason?

hmm try ryantalih@gmail.com
Weird tho that email should work @Oblivionized

Sent, not seeing any errors so it should be in your inbox.

Hey i requested access to the link from my email @Oblivionized

You should have access now @manryan

Thanks! I’ve managed to reproduce this and implemented a fix. It will be included in the next update.

Great! Thanks so much!