Search Unity

  1. Unity 2020.2 has been released.
    Dismiss Notice
  2. 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

Bug Android Player Crashes After few Secondes, when building with Unity 2020.1.0a16

Discussion in '2020.1 Beta' started by Opeth001, Dec 13, 2019.

  1. Opeth001

    Opeth001

    Joined:
    Jan 28, 2017
    Posts:
    739
    Hello Everyone,

    i upgraded my project from 2019.3 to 2020.1.0a16, each time i launch the game in the Editor i get this error "InvalidOperationException: EnsureRunningOnMainThread can only be called from the main thread" link to the Issue here,
    what we liked about this unity version is our APK when down from 80mo to 33mo and the performance seems to be increased, but after building the player (i tested on 4 android devices) the game crashes after few secondes depending on the device capacity.

    does anyone faced this problem and is there any workaround ?
    Thank you!
     
  2. aleksandrk

    aleksandrk

    Unity Technologies

    Joined:
    Jul 3, 2017
    Posts:
    1,738
    Hi!
    A fix for this is going to be available in 2020.1.0a18.
    There's no workaround, unfortunately.
     
    Opeth001 likes this.
  3. Opeth001

    Opeth001

    Joined:
    Jan 28, 2017
    Posts:
    739
    is it ok to use the Unity 2020.1 as alpha version in Production ?
    cause our apk went really down in size and the game increased in performance.
     
  4. aleksandrk

    aleksandrk

    Unity Technologies

    Joined:
    Jul 3, 2017
    Posts:
    1,738
    This depends on the amount of risk you're willing to take. Alphas can break things, and you've just encoutered such a case.
    I would suggest checking the reason behind the size decrease and performance increase. It might've been stated in the release notes between the version you've been using before and 2020.1.0a16, if not - I would analyze the apk and project settings to see, why this happened.
     
    Opeth001 likes this.
unityunity