2D Toolkit Forum

2D Toolkit => Support => Topic started by: Starblade on April 29, 2016, 12:10:04 am

Title: Out Of Memory Error when examining Atlases / Playing Scenes
Post by: Starblade on April 29, 2016, 12:10:04 am
Hi there!

For our two largest atlases, clicking on them in the Project window (one after the other, or even one, then several other atlases) will cause Unity to crash.  This also happens when both Atlases are used in the same scene - clicking play to run the scene will cause Unity to crash.  We were using version 2.3.0 but recently updated to 2.5.6 in hopes of alleviating the issue, but no dice.

Examining the atlases produces this error:

(https://dl.dropboxusercontent.com/u/2954274/Capture.PNG)

Playing the level produces this error:

(https://dl.dropboxusercontent.com/u/2954274/Capture 2.PNG)

Here are the Settings for each Atlas.  I didn't embed because the images are rather tall:

https://dl.dropboxusercontent.com/u/2954274/Capture3.PNG
https://dl.dropboxusercontent.com/u/2954274/Capture4.PNG

We've been working around it, but it is proving to be especially annoying for our project's artist.  Do we need to reduce the size of the atlases?
Title: Re: Out Of Memory Error when examining Atlases / Playing Scenes
Post by: unikronsoftware on May 05, 2016, 09:50:05 pm
What version of Unity are you using? You shouldn't really be running out of memory if you're using a 64 bit version of Unity...
Unity uses a ton of memory when you load a texture in the editor, there's not really much that can be done to avoid that.
Title: Re: Out Of Memory Error when examining Atlases / Playing Scenes
Post by: Starblade on May 06, 2016, 02:36:37 pm
We're using Unity version 4.7.0f1.
Title: Re: Out Of Memory Error when examining Atlases / Playing Scenes
Post by: unikronsoftware on May 09, 2016, 12:44:49 pm
Hi,
Unfortunately there isn't a great deal we can do if you're stuck in Unity 4.x as there isn't a 64 bit of Unity 4.x. In terms of editor, you could 1/4 the texture size in quality settings to let you get further?