Author Topic: UI elements get warped or disappear after time  (Read 5431 times)

donerico

  • Newbie
  • *
  • Thank You
  • -Given: 0
  • -Receive: 0
  • Posts: 5
    • View Profile
UI elements get warped or disappear after time
« on: September 24, 2013, 11:55:47 AM »
I'm not even sure how to explain what I'm seeing, so I'll post a couple of images. I've stripped the UI down to a fairly simple hierarchy with a UIRoot, UICamera, and a button. In the example here the UIPanel script is attached to UIRoot--this may be part of the problem, but I have seen the same thing with a traditional game object hierarchy with UIPanel under UICamera.

Anyway, here's a before and after. There's no user interaction (besides possibly clicking the button a couple of times) and after about 30s the button warps into the second image. Usually it completely disappears, but this time I managed to see this more rare behaviour. Even when I see the warped button it will eventually disappear entirely within a minute or so. This is taken from a Samsung Galaxy SIII. I've never seen this in the editor. I believe we've repo'ed this on iPhone as well. The GUI text is printing out the object hierarchy and (in this case) the layer that each object is attached to. I've done debugging outputting the transforms (position, scale, rotation) of each object and those stay the same before and after the warping/disappearing.

We're using the latest Unity beta (4.3.0b1) and the latest licensed version of NGUI.

Any thoughts about what could possibly be causing this would be most helpful.

Thanks!

Ryan

ArenMook

  • Administrator
  • Hero Member
  • *****
  • Thank You
  • -Given: 337
  • -Receive: 1171
  • Posts: 22,128
  • Toronto, Canada
    • View Profile
Re: UI elements get warped or disappear after time
« Reply #1 on: September 24, 2013, 12:26:18 PM »
That looks like graphics corruption. If you can reproduce it on more than one device then I'd be curious. Also, I'm pretty sure b1 is not the latest beta. It should be rc1 by now.

donerico

  • Newbie
  • *
  • Thank You
  • -Given: 0
  • -Receive: 0
  • Posts: 5
    • View Profile
Re: UI elements get warped or disappear after time
« Reply #2 on: September 24, 2013, 01:04:55 PM »
Thanks for the quick reply. What exactly is "graphics corruption" - does this suggest a problem with the phone hardware? If so, can you suggest something I could download to try to repro it outside of my app? I haven't seen anything else to suggest that something is wrong with this phone, but it is fairly new so it's entirely possible.

So far no luck reproducing it on an old Nexus One or iPhone 4, so this issue may be limited to this handset.

ArenMook

  • Administrator
  • Hero Member
  • *****
  • Thank You
  • -Given: 337
  • -Receive: 1171
  • Posts: 22,128
  • Toronto, Canada
    • View Profile
Re: UI elements get warped or disappear after time
« Reply #3 on: September 24, 2013, 01:06:27 PM »
Usually associated with overheating on PC hardware, an indicator of the device slowly dying.

NiceTouch

  • Guest
Re: UI elements get warped or disappear after time
« Reply #4 on: October 10, 2013, 10:54:40 PM »

Its an issue with the Samsung devices ... I have exactly the same issue! ... it works fine on HTC Desire, Nexus 7, all iOS devices and on Nokia Windows Phone 8 and Win RT Surface

Tried changing the near and far clipping planes which seems to tweak with the effect, but I cannot get rid of it either .... just wish Samsung didnt have so much market then I could just exclude the devices for now

Have you had any luck fixing it?

ArenMook

  • Administrator
  • Hero Member
  • *****
  • Thank You
  • -Given: 337
  • -Receive: 1171
  • Posts: 22,128
  • Toronto, Canada
    • View Profile
Re: UI elements get warped or disappear after time
« Reply #5 on: October 11, 2013, 07:54:34 AM »
There is nothing to fix on my end. If it's not a single device-specific, report this bug to Unity so that their hardware engineers can look into it.

Whatever the issue is, it's a hardware/driver issue, not an NGUI software issue.

NiceTouch

  • Guest
Re: UI elements get warped or disappear after time
« Reply #6 on: October 15, 2013, 02:16:18 AM »
Turns out this was to do with the Multithreaded Rendering option and GPU Skinning in the Project Settings for me ... turning this off fixed the problem

donerico

  • Newbie
  • *
  • Thank You
  • -Given: 0
  • -Receive: 0
  • Posts: 5
    • View Profile
Re: UI elements get warped or disappear after time
« Reply #7 on: October 31, 2013, 02:27:32 PM »
For what it's worth, we moved back to Unity 4.2.2 and the problem went away. This issue only appeared for me with NGUI elements with the Beta Unity 4.3 engine on my Samsung Galaxy SIII, so must be some engine/driver issue that NGUI manages to trigger.