Editor randomly crashes after pausing the scene?
Hey, I have a really weird error in Unity. I have a gameobject with this script attached to it https://pastecode.io/s/fh2e2d3v
If I don't use any of it's methods everything is fine, but when I use
SimulateLogin
and then pause or stop the scene Unity just crashes.
No errors in the console, only that bug report window. Any ideas what might be causing it?13 Replies
its best to use the unity forums for things like this
I posted both here and on unity server
it might be due to threading since I see functions like

its some old legacy code and I'm really confused
are u by chance using any deprecated code?, if ur using VS it should show a warning
nope
no warnings
its an old legacy code right, are you on a older version?
nope, unity 6
that could be the issue though I'm not using Unity anymore so I'm not sure
either memory is leaking somewhere, threading is fcked, or just another weird unity issue
could be even a bug
dk*
yee, that would be the worst case
this one time I had to fix a bug manually with Unity Mirror which caused me some painful hours
also gd luck in the unity forums