Closed vchelaru closed 1 month ago
After thinking about this I have a few ideas on how to solve this. This is ultimately happening because 2 tasks are both awaiting their completion:
I believe this is the case. To solve this, only index [0] should be able to await its completion. However, how can we tell that is the case... Actually why would task 2 ever even get put on the task list?
Not sure exactly how to repro it but I got it by running in edit mode and creating a collision relationship between PlayerList and CoinList. This feels like a nasty bug. The deadlock is on 2 threads both wanting to perform primary thread calls.
To reproduce this, just try creating tons of relationships between player and entity. Note that Coin and CoinList are both dynamic (created while game was running) if it matters...