Search Unity

  1. Welcome to the Unity Forums! Please take the time to read our Code of Conduct to familiarize yourself with the forum rules and how to post constructively.
  2. Dismiss Notice

Unity 4.6 Causes a memory leak.

Discussion in 'Editor & General Support' started by Epictickle, Dec 3, 2014.

  1. Epictickle

    Epictickle

    Joined:
    Aug 12, 2012
    Posts:
    431
    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.
     
  2. LaneFox

    LaneFox

    Joined:
    Jun 29, 2011
    Posts:
    7,381
    4.6f3 or 5 beta?
     
  3. Epictickle

    Epictickle

    Joined:
    Aug 12, 2012
    Posts:
    431
    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
     
    RangePlusOne likes this.
  4. Graham-Dunnett

    Graham-Dunnett

    Unity Technologies

    Joined:
    Jun 2, 2009
    Posts:
    4,287
    Let me find out for you. What is the case number you submitted for your issue?
     
    Roest_ likes this.
  5. Epictickle

    Epictickle

    Joined:
    Aug 12, 2012
    Posts:
    431
    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.
     
  6. Epictickle

    Epictickle

    Joined:
    Aug 12, 2012
    Posts:
    431
    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....
     
  7. Epictickle

    Epictickle

    Joined:
    Aug 12, 2012
    Posts:
    431
    Okay man, my case number is: 653390
     
  8. Epictickle

    Epictickle

    Joined:
    Aug 12, 2012
    Posts:
    431
    I'm guessing I'm just going to have to get used to this issue for awhile... Ugh...
     
  9. Epictickle

    Epictickle

    Joined:
    Aug 12, 2012
    Posts:
    431
    Just tried to build my game... This is what I got:

    upload_2014-12-6_13-0-52.png

    This is what unity looks like on a fresh start:

    upload_2014-12-6_13-3-16.png

    There's obviously something wrong here lol
     
  10. RangePlusOne

    RangePlusOne

    Joined:
    Dec 6, 2014
    Posts:
    123
    This.