"Leaked BatchRendererGroup" error requires restart to go away

After I enter play mode then exit it for the first time, this error spams every frame from that point on, even in edit mode(e.g. when you mouse over & it renders at low fps):

Potentially indicates a problem with domain load/unload.```

I have it set to fully reload everything upon entering play mode, but that doesn't do anything to stop the error spam, so this does seem to indicate a problem with domain load/unload, as in the error message. Apparently BatchRendererGroup is an SRP thing used in Entities Graphics, but I have no idea besides that about what could be causing this. I didn't find any way to stop it other than restarting Unity. Also, I recently reimported because of another bug causing Unity to not recognize MonoBehaviours.
I'm using Entities packages version 1.0.0-pre.15 with Unity 2022.2b16.

Google turned up literally zero results, so I'm at a loss. Does anyone have a fix?
2 Likes

I second this, Please Unity get control of your QA! I’m losing hours of productivity each week because the editor crashes every 5 minutes. I’ve sent them a bug report, but somehow the QA team can never ‘reproduce’ the issue. Even though it happens all the time.

Thank you for reporting this issue. We are trying to develop a fix for this.

1 Like

I too am having this issue. If it helps, I updated to entities 1.0.0-pre.15 and completed the upgrade steps listed here, all except upgrading transforms to v2 and all seemed to be working.

But after upgrading transforms to v2, I get this error very often.

Just in case it helps, anecdotally, 2022.2.1f1 seems to have the issue less often. In 2 weeks of using it, I had a few days without the error spam. The error spam seems to happen more when there is some other leak.

This issue should be fixed in 2022.2.3f1

4 Likes