Author Topic: Creating Atlas crashes Unity  (Read 3318 times)

Ninja

  • Newbie
  • *
  • Thank You
  • -Given: 1
  • -Receive: 0
  • Posts: 21
    • View Profile
Creating Atlas crashes Unity
« 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.

ArenMook

  • Administrator
  • Hero Member
  • *****
  • Thank You
  • -Given: 337
  • -Receive: 1171
  • Posts: 22,128
  • Toronto, Canada
    • View Profile
Re: Creating Atlas crashes Unity
« Reply #1 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?

Ninja

  • Newbie
  • *
  • Thank You
  • -Given: 1
  • -Receive: 0
  • Posts: 21
    • View Profile
Re: Creating Atlas crashes Unity
« Reply #2 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

ArenMook

  • Administrator
  • Hero Member
  • *****
  • Thank You
  • -Given: 337
  • -Receive: 1171
  • Posts: 22,128
  • Toronto, Canada
    • View Profile
Re: Creating Atlas crashes Unity
« Reply #3 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...

Ninja

  • Newbie
  • *
  • Thank You
  • -Given: 1
  • -Receive: 0
  • Posts: 21
    • View Profile
Re: Creating Atlas crashes Unity
« Reply #4 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.

Daniel Rey

  • Newbie
  • *
  • Thank You
  • -Given: 0
  • -Receive: 0
  • Posts: 1
    • View Profile
Re: Creating Atlas crashes Unity
« Reply #5 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.