1. Help us improve the editor usability and artist workflows. Join our discussion to provide your feedback.
    Dismiss Notice
  2. We're looking for feedback on Unity Starter Kits! Let us know what you’d like.
    Dismiss Notice
  3. We’re giving 2017.1 beta testers a chance to win t-shirts and a Nintendo Switch. Read more on the blog.
    Dismiss Notice
  4. We want to know how you learned Unity! Help us by taking this quick survey and have a chance at a $25 gift card
    Dismiss Notice
  5. Are you an artist or level designer going to Unite Europe? Join our roundtables there to discuss artist features.
    Dismiss Notice
  6. Unity 5.6 is now released.
    Dismiss Notice
  7. Check out all the fixes for 5.6 on the patch releases page.
    Dismiss Notice

Build fails with error: Player export failed. Reason: 3 errors

Discussion in 'Unity Cloud Build' started by esg-joshmorhart, Jun 2, 2017.

  1. esg-joshmorhart

    esg-joshmorhart

    Joined:
    Oct 10, 2016
    Posts:
    8
    Description of issue: The build is failing with a non-descriptive error. There is also the error " Assertion failed on expression: 'ms_Instance != NULL'"

    Unity version: 5.6.0f3

    Source control: git

    Local build platform: Windows

    Build target: Android

    Build log (relevant chunk):

    Code (csharp):
    1.  
    2. 98666: [Unity] *** Completed 'Build.Player.AndroidPlayer' in 174 seconds (174193 ms)
    3. 98667: [Unity] Player export failed. Reason: 3 errors
    4. 98668: [Unity] UnityEngine.DebugLogHandler:Internal_Log(LogType, String, Object)
    5. 98669: [Unity] UnityEngine.DebugLogHandler:LogFormat(LogType, Object, String, Object[])
    6. 98670: [Unity] UnityEngine.Logger:Log(LogType, Object)
    7. 98671: [Unity] UnityEngine.Debug:Log(Object)
    8. 98672: [Unity] UnityEditor.CloudBuild.BuildLogger:Log(String, Object[])
    9. 98673: [Unity] UnityEditor.CloudBuild.Builder:Build()
    10. 98674: [Unity] Refresh: detecting if any assets need to be imported or removed ... Refresh: elapses 0.162417 seconds (Nothing changed)
    11. 98675: [Unity] Refresh: detecting if any assets need to be imported or removed ... Refresh: elapses 0.143060 seconds (Nothing changed)
    12. 98676: [Unity] Cleanup mono
    13. 98677: [Unity] Checking for leaked weakptr:
    14. 98678: [Unity]   Found no leaked weakptrs.
    15. 98679: [Unity] Assertion failed on expression: 'ms_Instance != NULL'
    16. 98680: [Unity] ##unity-automation:{"messageType":"MemoryLeaks","allocatedMemory":16627346,"memoryLabels":[{"Default":96},{"Permanent":16128},{"NewDelete":4194320},{"Thread":616},{"Manager":1976},{"GfxDevice":21664},{"GfxThread":2688},{"Physics":8},{"Serialization":12704},{"JobScheduler":144},{"GarbageCollector":1048576},{"Renderer":224},{"Terrain":224},{"STL":131584},{"String":122025},{"DynamicArray":3112},{"Utility":-1048576},{"PoolAlloc":-224},{"ScriptManager":3280},{"Sprites":12096336},{"VR":11404},{"EditorUtility":544},{"AssetImporter":712},{"RestService":64},{"License":965},{"UnityConnect":6024},{"Collab":728}]}
    17. 98681:  ! Unity player export failed!
    18. 98682: ! build of 'android-dev-josh' failed. compile failed
    19. 98683: Publishing build 45 of east-side-games/trailer-park-boys-greasy-money for target 'android-dev-josh'...
    20. 98684: publishing finished successfully.
    21. 98685: Storing CACHE_PATH to cache key library_5_6_0f3
    22. 98686: done.
    23. 98687: Build step 'Execute shell' marked build as failure
    24. 98688: postbuildstatus finished successfully.
    25. 98689: Finished: FAILURE

    Does it build locally from a fresh checkout? Yes
     
  2. Marc-Uberstein

    Marc-Uberstein

    Joined:
    Apr 10, 2013
    Posts:
    4