Search Unity

  1. Good news ✨ We have more Unite Now videos available for you to watch on-demand! Come check them out and ask our experts any questions!
    Dismiss Notice
  2. Ever participated in one our Game Jams? Want pointers on your project? Our Evangelists will be available on Friday to give feedback. Come share your games with us!
    Dismiss Notice

Crashing on Instantiate GameObject with Sprite Renderrer (Tegra device)

Discussion in 'Android' started by OmgTear, Mar 29, 2015.

  1. OmgTear

    OmgTear

    Joined:
    Mar 5, 2015
    Posts:
    2
    Hello Guys,

    My game is crashing on 2nd Instiniate of the simple GameObject with SpriteRenderrer.

    Unity: 5
    Android: 4.4
    Device: Xiaomi Mi Pad

    My script:

    voidUpdate () {

    if (Input.GetMouseButtonDown (0)) {

    Instantiate(test, newVector3 (0, 0, 0), Quaternion.identity);

    }
    }

    STR:
    1. Tap 1st time (Everething is ok, GameObject is created)
    2. Tap 2nd time (Crash)

    GameObject (Prefab): http://i.imgur.com/mOO5B6K.png?1

    Android Crash Log attached

    Note: I tested the same code on few another devices (Galaxy Tab 3 for example) and there are no problems at all.

    Thanks in advance!
     

    Attached Files:

    • Log.txt
      File size:
      21.8 KB
      Views:
      666
    Last edited: Mar 29, 2015
  2. liortal

    liortal

    Joined:
    Oct 17, 2012
    Posts:
    3,415
    Looks like a bug... report it to Unity so they can have a look
     
  3. V1nsaN

    V1nsaN

    Joined:
    Jan 16, 2013
    Posts:
    6
    Hello.

    I have the same problem with the same device. And the problem occurs when you are using many sprites on the scene. If you have the scene with only one sprite - everything is ok. And on my nexus 4 and htc one x+ and hp touchpad - everything is fine with many sprites. Only xiaomi has this problem. I guess it is because of tegra k1, but I am not 100% sure about it.

    Did you post this bug to Unity?
    Thanks.
     
  4. GreenRabbit

    GreenRabbit

    Joined:
    Nov 27, 2013
    Posts:
    4
    We are also experiencing crashes on scenes using sprites. Please provide link to the ticket so we can vote it up. It's quite critical issue, MI PAD is completely unusable because of this.

    Last time we tried this device was on Unity 4.6 which was working correctly. Unity 5.0.1 is crashing when creating sprites (after scene loads, after instantiating or after creating sprite renderer and adding it to game object).

    After some testing it looks like its related to source textures... TC formats, texture size, sprite packing etc... but I didn't manage to find settings that work in general.
     
    Last edited: Apr 29, 2015
  5. OmgTear

    OmgTear

    Joined:
    Mar 5, 2015
    Posts:
    2
  6. V1nsaN

    V1nsaN

    Joined:
    Jan 16, 2013
    Posts:
    6
  7. blockh34d

    blockh34d

    Joined:
    Sep 9, 2015
    Posts:
    1
    any resolution on this yet? I seem to be experiencing the same issue.

    Unity 5.1.3f1 personal
     
  8. Hiten2012

    Hiten2012

    Joined:
    Dec 12, 2014
    Posts:
    13
    Unity: Version 5.2.1f1
    Device: Xiaomi Mi Pad

    Same Issue, working on many day , Have No Solution.
    any got solution for this...
     
  9. Gamez-Tech

    Gamez-Tech

    Joined:
    Jan 16, 2016
    Posts:
    1
    Me Too Same Issue Alternative Solution can be using Plane mesh instead of Sprite This Can Be Fine (If We Deal with newly Project) but Still need the solution for already done project . I experiment around 150 build to solve this But No Solution.
     
    Hiten2012 likes this.
  10. Attilaxx

    Attilaxx

    Joined:
    Nov 30, 2014
    Posts:
    1
    hello!
    same problem with Unity 4.7.2 ( ASUS TF101 (TEGRA2) tablet). I find a solution 3 days. It drive me crazy.

    Any solution? should i buy new tablet :)

    i dont try with Unity 4.6 yet.
     
    Last edited: Jun 22, 2016
  11. Hiten2012

    Hiten2012

    Joined:
    Dec 12, 2014
    Posts:
    13
    Hi all. in my case i found that when we used a opacity (transparency/alpha) option in material and assign any game object it was crashing scenes. I removed where i had used that. now i am able to run in all device..
     
unityunity