Unity freezes and i can't get a stacktrace or any useful debug info

So I’m experiencing a bug that is completely freezing unity,


The freeze happens regularly but not during the same processes, well it’s not thats simple on my windows (running windows 10 pro version 20h2) machine it happens at the same point during game play but on my mac (running Big Sur 11.1) it happens in different places during game play, on the mac it is getting all the way trough the round loop several times then it’s freezing in different places. which means it is running the code just fine several times before it freezes. I am running unity 2020.3.1f1


Things Iv’e tried

attaching a debugger - So I use VS code as my dev environment and that debugger I later set up Visual studio and it’s debugger but was met with the same results. Because the freeze happens at different times during game play, I don’t have good places to put break points. when it freezes i’m using the pause functionality in the debugger which pulls up an empty call stack, not useful at all.

using the profiler - so i thought it might be a memory leek of some sort so i opened the profile and did a fairly deep dive on the memory allocation and garbage collection (i did find inefficiencies in my code but none of them where the problem). part of the problem is when unity freezes I can’t do a deep dive into what the main thread is doing because the entire untie app freezes.

Memory at the os level - when the unity freezes both on windows and mac the task manager and activity monitor report nominal memory use.

**Nuking the code base and clone ** - no change in behavior

**ReInstalling Unity ** - no change in behavior

What I’m Asking For

Any tools or advice in hunting down this bug.

I’m also having this issue. Gotta be a unity bug

Not to necro but this is a great question and I would love any advice as well…