Author Topic: NGUI Atlas fails to load in WP8  (Read 3625 times)

sathyaraj

  • Newbie
  • *
  • Thank You
  • -Given: 0
  • -Receive: 0
  • Posts: 5
    • View Profile
NGUI Atlas fails to load in WP8
« on: September 03, 2014, 10:27:57 AM »
Hi,
   I am using NGUI 3.7.0 and i am facing this strange issue in Windows phone 8 project.
When switching scenes back and forth in one scene atlas fails to load.

I have two scenes Scene A and Scene B
Scene A has AtlasA and Scene B got AtlasB
On launch Scene A loads and continuing to Scene B both atlases load fine
But When Loading Scene A from Scene B AtlasA fails to load.
I tried printing the atlas name from one UISprite of Scene A. It shows the atlas name. means its not null but it does not display.
Is there a possible way to force load an atlas.
PS : i tried different atlas sizes and texture compression with no help.
And also while debugging in Visual studio this works fine and in master build it fails to load the atlas but no exceptions whatsoever.
I need to fix this asap. Assist to fix this issue would be really great. Thanks in advance

ArenMook

  • Administrator
  • Hero Member
  • *****
  • Thank You
  • -Given: 337
  • -Receive: 1171
  • Posts: 22,128
  • Toronto, Canada
    • View Profile
Re: NGUI Atlas fails to load in WP8
« Reply #1 on: September 03, 2014, 11:56:06 AM »
I don't know what would cause this. Sounds like some issue in Unity. What version of Unity are you running? Also, you should get the latest NGUI while you're at it.

sathyaraj

  • Newbie
  • *
  • Thank You
  • -Given: 0
  • -Receive: 0
  • Posts: 5
    • View Profile
Re: NGUI Atlas fails to load in WP8
« Reply #2 on: September 03, 2014, 12:45:41 PM »
Using Unity 4.5.2p3.

Well got these two exceptions while scene switching
A first chance exception of type 'System.ArgumentOutOfRangeException' occurred in mscorlib.ni.dll
A first chance exception of type 'System.UnauthorizedAccessException' occurred in TestProject.DLL
An exception of type 'System.UnauthorizedAccessException' occurred in TestProject.DLL and wasn't handled before a managed/native boundary
A first chance exception of type 'System.InvalidOperationException' occurred in TestProject.DLL
An exception of type 'System.InvalidOperationException' occurred in TestProject.DLL and wasn't handled before a managed/native boundary

I could not figure out what causing these exceptions. Can these be causing NGUI Issue ?
And while doing this debug test atlas loads fine. May be because of slow excecution.
Any hints !

ArenMook

  • Administrator
  • Hero Member
  • *****
  • Thank You
  • -Given: 337
  • -Receive: 1171
  • Posts: 22,128
  • Toronto, Canada
    • View Profile
Re: NGUI Atlas fails to load in WP8
« Reply #3 on: September 04, 2014, 10:25:08 AM »
Check the call stack. The error message isn't useful without a call stack with line numbers.