Exception caught in TGenericSlotWrapper. bad allocation

image

Since tonight, I get this while just playing my game in play solo. It makes me restart my session. No idea how to reproduce.

Place:

I’m on windows 10, using team create. I’ve been trying to figure out what it is for the last hour but it happens inconsistently. Sometimes just standing still for a few seconds causes it. If I watch task manager, studio’s memory usage suddenly rockets up from 1GB to 2GB+, then the errors happen. If I stop play solo it will go back down, but not to what it was before. So eventually I have to restart studio.

The lines in that stack trade are “wait()” and “wait(10)”. There’s also another seemingly unrelated stack trace for a line that reads “spawn(function()”

2 Likes

So it looks like you can get a bad allocation error if you have a ton of threads running, but just spamming spawn doesn’t get the TGenericSlotWrapper error. So I don’t think that’s my issue.

Yielding inside of threads always caused nasty results; could be related to this.

image

Still getting it, still don’t know why