Unity 4.6 Causes a memory leak.

It seems like with every new release of unity the editor becomes more and more unstable. I feel like you guys have a ticking time bomb on your hands.

I don’t know what is causing this, but I’ve seen it aroudn the forums a billion times before and I sincerely hope that UT is taking this bug seriously.

I don’t know exactly what the problem is, and i haven’t noticed a real pattern yet, but Unity just randomly freezes… Sometimes when it imports a newly edited script, it’ll just hang there forever… Sometimes when I press the “Play” button to test my scene, it just hangs there forever until I end the task with my Task Manager…

This is like the 15th time I’ve had to rebuild a freaking menu dude. It’s killing dev time.

And it’s not a specific menu I’ve had to rebuild every time… I am sooooo freaking over this, dude. NGUI > uGUI. Hopefully if I get NGUI it’ll stop the hanging. I’m switching back to NGUI. uGUI is too buggy to try and work with at the moment. If you are trying to build a SERIOUS project, DO NOT use it. Period.

4.6f3 or 5 beta?

4.6f3. I have no clue what is going on here… I mean, I know it’s kinda my fault for not saving… But seriously? I shouldn’t have to be scared to hit the Play button lol

1 Like

Let me find out for you. What is the case number you submitted for your issue?

1 Like

I haven’t yet because I haven’t been able to figure out how to repro this for you. I’d have to send you the entire project and simply hope that you guys can repro the error. As far as I can tell it’s happening completely randomly. Yesterday I thought I had it whittled down to only happening whenever I edit a script, but this morning it happened for no reason at all… Just hung there when I pressed play, after creating a new panel in my canvas. I ended the process in Task Manager and started it up again, rebuilt my panel, and it worked when I pressed play. I don’t want to send you my entire 5gb project lol.

Okay, I found the issue and am sending a bug report now. It’s a memory leak. When I start the editor, if I look at my Task Manager, it says i’m hanging at around 140,000k memory. When I play the game, it jumps up to about 300,000k memory. When I stop the game, it goes back down to about 260,000K memory, and stays there. It won’t let me start a second time due to Unity sucking up so much memory on the second run. Something must be up with garbage collection. As soon as the report goes through I’ll send you the case number. Stuff like this is why the profiler would be beautiful in the indie version…

Okay man, my case number is: 653390

I’m guessing I’m just going to have to get used to this issue for awhile… Ugh…

Just tried to build my game… This is what I got:

This is what unity looks like on a fresh start:

There’s obviously something wrong here lol

This.