Search Unity

  1. Welcome to the Unity Forums! Please take the time to read our Code of Conduct to familiarize yourself with the forum rules and how to post constructively.

Lollipop and Unity 4.5.5 patch 5.

Discussion in 'Android' started by screenname_taken, Nov 17, 2014.

  1. screenname_taken

    screenname_taken

    Joined:
    Apr 8, 2013
    Posts:
    659
    Hi, i was using the Unity patches because i was having an issue that was addressed in them, but now that one of my two android testers installed a stock version of Lollipop, my game crashes on it.
    As i've said, i have two people using Android 5, both using the same GPU but different devices. Nexus 4 crashes, Nexus 7 doesn't. Both using stock Android 5. iOS is fine as well. Game just crashes soon after launching.
    Is it an ART thing going on? Anyone else had this, that one device was fine and a similar one wasn't?
     
  2. luisanton

    luisanton

    Joined:
    Aug 25, 2009
    Posts:
    325
    We are experiencing something similar with a game we've just released, but odly enough not on older games (not that we've found yet) :? It crashes. And it happens on a Nexus 7 at least. It works like a charm on iOS and older Android versions.

    Woa... we just found out that it crashes when using OpenGL 3.0, but not on lower versions.
     
    Last edited: Nov 17, 2014
  3. screenname_taken

    screenname_taken

    Joined:
    Apr 8, 2013
    Posts:
    659
    Well mine is using OpenGL ES 2.0. It's fine on a Nexus 7 with Lollipop, but not a Nexus 4 with Lol. Both are using Adreno 3xx and this is the thing that makes me really wonder what is going on. It's apparently something to do with ART vs Dalvic?
     
  4. luisanton

    luisanton

    Joined:
    Aug 25, 2009
    Posts:
    325
    Great. Now I have no idea. Fortunately the Open GL ES 3.0 -> 2.0 solves the problem for us.
     
  5. screenname_taken

    screenname_taken

    Joined:
    Apr 8, 2013
    Posts:
    659
    I went back to the project and checked stuff out. My texture settings were at "OpenGL ES 2", you know with ETC and 16bit textures for alpha, but in the player settings the graphics level was at auto. So i guess it defaulted to 3.0 on them. So i forced it to 2.0 and sent a new apk over for testing. Hope it does the trick, though that it should work with 3.0 as well.
    Seriously, the thing that totally throws me off is that it works on some Lollis with Adreno 3xx and not on others.
     
  6. luisanton

    luisanton

    Joined:
    Aug 25, 2009
    Posts:
    325
    Yes, it's a bit confusing. I hope it's a matter of Unity updating and embracing Android 5.0 :m
     
unityunity