Search Unity

  1. We are migrating the Unity Forums to Unity Discussions. On July 12, the Unity Forums will become read-only.

    Please, do not make any changes to your username or email addresses at id.unity.com during this transition time.

    It's still possible to reply to existing private message conversations during the migration, but any new replies you post will be missing after the main migration is complete. We'll do our best to migrate these messages in a follow-up step.

    On July 15, Unity Discussions will become read-only until July 18, when the new design and the migrated forum contents will go live.


    Read our full announcement for more information and let us know if you have any questions.

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:
    1,130
    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:
    3,074
    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:
    1,130
    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:
    3,074
    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.