Tasharen Entertainment Forum

Support => NGUI 3 Support => Topic started by: Ninja on December 09, 2016, 03:44:57 PM

Title: Creating Atlas crashes Unity
Post by: Ninja on December 09, 2016, 03:44:57 PM
Hello,

I'm using Unity 5.5.0f3 with NGUI 3.11.0c.

When creating a new atlas, Unity freezes, my memory maxes out (16gb) after a minute or so and Unity eventually closes itself (if I don't force it to close) without any errors. The atlas prefab is created but the texture is not.

At first I thought it was the project since it's large, but it also happens in a new project.

Any help would be appreciated, let me know if you need more info.
Title: Re: Creating Atlas crashes Unity
Post by: ArenMook on December 10, 2016, 09:55:31 AM
Seems to work fine here, so I will need more details. What's the size of the image(s) you use to create an atlas?
Title: Re: Creating Atlas crashes Unity
Post by: Ninja on December 10, 2016, 03:36:50 PM
Updated to NGUI 3.11.1, still having the same problem.

Using one image, 64x64 resolution and about 14kb. Here's a video showing it if that helps at all: https://youtu.be/1QDwgLVcHp0
Title: Re: Creating Atlas crashes Unity
Post by: ArenMook on December 10, 2016, 04:08:42 PM
Maybe try turning off the compression setting on the source image before trying to add it? All seems to work as expected here...
Title: Re: Creating Atlas crashes Unity
Post by: Ninja on December 10, 2016, 04:13:23 PM
I also tried updating to Unity 5.5.0p1, but the issue persists.

It works after setting Compression on the texture to None.
Title: Re: Creating Atlas crashes Unity
Post by: Daniel Rey on March 01, 2017, 09:16:43 AM
I have yet to try the solution you offered, but I figured it may be helpful to know that I'm experiencing the exact same issue.

I'm using Unity 5.5 and tried both NGUI 3.11.1 & .2, but the problem persists.

I'm trying to create an atlas using an image that is 32x32 and only a few KB's in size. I'll update as soon as I try and turn off the compression.