• Products
  • Solutions
  • Made with Unity
  • Learning
  • Support & Services
  • Community
  • Asset Store
  • Get Unity

UNITY ACCOUNT

You need a Unity Account to shop in the Online and Asset Stores, participate in the Unity Community and manage your license portfolio. Login Create account
  • Blog
  • Forums
  • Answers
  • Evangelists
  • User Groups
  • Beta Program
  • Advisory Panel

Navigation

  • Home
  • Products
  • Solutions
  • Made with Unity
  • Learning
  • Support & Services
  • Community
    • Blog
    • Forums
    • Answers
    • Evangelists
    • User Groups
    • Beta Program
    • Advisory Panel

Unity account

You need a Unity Account to shop in the Online and Asset Stores, participate in the Unity Community and manage your license portfolio. Login Create account

Language

  • Chinese
  • Spanish
  • Japanese
  • Korean
  • Portuguese
  • Ask a question
  • Spaces
    • Default
    • Help Room
    • META
    • Moderators
    • Topics
    • Questions
    • Users
    • Badges
  • Home /
  • Help Room /
avatar image
Question by yonson_chappers · Jun 17, 2017 at 09:36 PM · editorbugbuild-errorbug-perhaps

Strange Memory Leak in Unity Editor

I've been building a project for months with no great issues. I now cannot run or even open certain scenes, and the unity editor has a memory leak so that even when the editor isn't actually doing anything (i.e. the game isn't actually running), the memory usage goes up and up until bang, it resets the computer.

I've managed to disable as many assets as I possibly can, so it is down to a skeleton code, to try and identify the problem. But some scenes won't even load now so I can't even do this.

For those I can open, I disable as many game objects as possible, run the game, and in task manager the memory usage jumps. Then, when stopping the game, the memory usage does NOT come down again, so that the next time I run it, it just spikes up again, and again, and again.

The screenshots illustrate the problem - each time the scene is run, the memory spikes. Thats as expected. But the memory never returns back to its previous consumption afterwards. Surely this is a memory leak?

Here are some solutions I've tried, none have solved the problem

The memory leak goes on constantly when I have the main camera enabled. I thought this must be the root cause, so here are the various fixes I've tried:-

1) Disabled realtime / Mixed Lighting (as shown in screenshot)

2) Tried in different versions of Unity (5.6.1, 5.6.0)

3) Deleted / Reinstalled Unity

4) Deleted / Reinstalled all assets / libraries

5) Checked its not the 'preview window' issue

alt text6) Written my own Editor Window to run 'EditorUtility.UnloadUnusedAssetsImmediate();' (has no impact)

I found this link, but I'm not sure it describes exactly the same problem:-

https://forum.unity3d.com/threads/critical-memory-leak-in-5-6-0-p4-crashing-unity-all-the-time.470756/

Any help greatly appreciated. If its just a bug thats going to be fixed I'll keep myself busy with something else until its released!

1.jpg (185.9 kB)
2.jpg (182.9 kB)
Comment

People who like this

0 Show 0
10 |3000 characters needed characters left characters exceeded
▼
  • Viewable by all users
  • Viewable by moderators
  • Viewable by moderators and the original poster
  • Advanced visibility
Viewable by all users

0 Replies

· Add your reply
  • Sort: 

Your answer

Hint: You can notify a user about this post by typing @username

Up to 2 attachments (including images) can be used with a maximum of 524.3 kB each and 1.0 MB total.

Welcome to Unity Answers

If you’re new to Unity Answers, please check our User Guide to help you navigate through our website and refer to our FAQ for more information.

Before posting, make sure to check out our Knowledge Base for commonly asked Unity questions.

Check our Moderator Guidelines if you’re a new moderator and want to work together in an effort to improve Unity Answers and support our users.

Follow this Question

Answers Answers and Comments

124 People are following this question.

avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image

Related Questions

UnityEngine.UI.Image keeps removing itself from a Prefab. 1 Answer

Error when trying to upload a package to the unity asset store (file not found, loader.html) 2 Answers

Can't enter Play mode with DOTS package enabled. 0 Answers

Unity editor controls completely broken - how to fix? 2 Answers

Unity Has Completely Stopped Working on My Computer 0 Answers


Enterprise
Social Q&A

Social
Subscribe on YouTube social-youtube Follow on LinkedIn social-linkedin Follow on Twitter social-twitter Follow on Facebook social-facebook Follow on Instagram social-instagram

Footer

  • Purchase
    • Products
    • Subscription
    • Asset Store
    • Unity Gear
    • Resellers
  • Education
    • Students
    • Educators
    • Certification
    • Learn
    • Center of Excellence
  • Download
    • Unity
    • Beta Program
  • Unity Labs
    • Labs
    • Publications
  • Resources
    • Learn platform
    • Community
    • Documentation
    • Unity QA
    • FAQ
    • Services Status
    • Connect
  • About Unity
    • About Us
    • Blog
    • Events
    • Careers
    • Contact
    • Press
    • Partners
    • Affiliates
    • Security
Copyright © 2020 Unity Technologies
  • Legal
  • Privacy Policy
  • Cookies
  • Do Not Sell My Personal Information
  • Cookies Settings
"Unity", Unity logos, and other Unity trademarks are trademarks or registered trademarks of Unity Technologies or its affiliates in the U.S. and elsewhere (more info here). Other names or brands are trademarks of their respective owners.
  • Anonymous
  • Sign in
  • Create
  • Ask a question
  • Spaces
  • Default
  • Help Room
  • META
  • Moderators
  • Explore
  • Topics
  • Questions
  • Users
  • Badges