I am also having this exact issue after upgrading to 2021.2.8f1. It's something to do with the Easy Save manager references. If I turn on Auto add references, I get a crash on play. If I turn this off and manually hit refresh in the manager, crash. But I also cannot recreative it in a new project.
I think I have found the issue. There appears to be some kind of conflict with Easy Save and Rewired's Input Manager. If I remove Rewired Manager from the scene, no crash. If I add it back in, crash. I have managed to replicate this in a new project also. Is there a way for me to exclude generating references to anything related to the Rewired object as a workaround? Can also send you the replicated project if necessary, although to replicate it you simply just need to have both objects in the scene and hit refresh.
If you’re able to send us the project which replicates it that would be appreciated. Easy Save’s referencing simply adds references to a list, so the issue is likely to be at Rewireds or Unity’s rather than ours, but happy to confirm this.
There would be no way of excluding them from automatic referencing, so in this case you would need to disable it and manually add references.
Thanks, send you a PM with the project. I've worked around it for now by just adding a "blacklisted references" to the ES3ReferenceMgr, that just checks if the objs is in this list and doesn't add it if it is.
Hello, I have the same problem where I'm manually refreshing the referencing and it crashes with "Unexpected mark stack overflow". I also have Rewired. Have you been able to confirm where is the issue coming from?
Ell223 wrote: ↑Sat Feb 19, 2022 12:58 pm
Thanks, send you a PM with the project. I've worked around it for now by just adding a "blacklisted references" to the ES3ReferenceMgr, that just checks if the objs is in this list and doesn't add it if it is.
And Ell223, would you be able to share the snippet of code you added? It would be greatly appreciated!
Ell223 wrote: ↑Sat Feb 19, 2022 12:58 pm
Thanks, send you a PM with the project. I've worked around it for now by just adding a "blacklisted references" to the ES3ReferenceMgr, that just checks if the objs is in this list and doesn't add it if it is.
And Ell223, would you be able to share the snippet of code you added? It would be greatly appreciated!
I can also send you an update version of Easy Save (modifying source files is not recommended) if you remind me of your invoice number via PM, which looks less deeply for references. The issue appeared to be that the asset in question had an extremely wide serialisation tree, but reducing the referencing depth mitigated this.
Awesome, sent! The workaround that I had from reading this was to remove the Rewired Manager, generate the References, and then add the Rw. Manager again.