Search Unity

  1. Curious about what's going to be in 2020.1? Have a look at the 2020.1 beta blog post.
    Dismiss Notice
  2. Want to see 2020.1b in action? Sign up for our Beta 2020.1 Overview Webinar on April 20th for a live presentation from our evangelists and a Q&A session with guests from R&D.
    Dismiss Notice
  3. Interested in giving us feedback? Join our online research interviews on a broad range of topics and share your insights with us.
    Dismiss Notice
  4. New Unity Live Help updates. Check them out here!

    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:
    578
    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,249
    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:
    578
    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,249
    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