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.
  2. We have updated the language to the Editor Terms based on feedback from our employees and community. Learn more.
    Dismiss Notice
  3. Join us on November 16th, 2023, between 1 pm and 9 pm CET for Ask the Experts Online on Discord and on Unity Discussions.
    Dismiss Notice

Unity 5.6.1p2 crashes when building scene

Discussion in 'Windows' started by fcloss, Jun 5, 2017.

  1. fcloss

    fcloss

    Joined:
    Dec 1, 2011
    Posts:
    191
    It seems that there is a serious error on Unity 5.6.1p2. My project builds normal on p1 and previous versions, on p2 it crashes. On error.log "Read from location 000000d0 caused an access violation."

    Case was submitted: 917979

    Any workaround? There are some important updates on the patch that i would need.
     
    GilbertoBitt likes this.
  2. JHibbins

    JHibbins

    Joined:
    Apr 25, 2014
    Posts:
    9
    Same here
     
  3. Rational-MA

    Rational-MA

    Joined:
    Mar 6, 2015
    Posts:
    59
    We are having this exact same problem after updating to Unity 5.6.1p2
     
  4. GilbertoBitt

    GilbertoBitt

    Joined:
    May 27, 2013
    Posts:
    111
    here the same thing.. and i'm compiling for android! on 5.6.1p1 it work like a charm! but since 5.6.0p4 i can't on android build and run! just build! and now they broke the build too!
     
  5. Rational-MA

    Rational-MA

    Joined:
    Mar 6, 2015
    Posts:
    59
    Ok I resolved it from my project. It turns out it's most likely due to this line in the 5.6.1p2 release notes:

    • (915659) - Crash building player if project has shaders with errors, this one regressed in this patch. This will be fixed in the next patch 5.6.1p3.
    I went through all of my scenes and built them one by one until I found the problem one(s). Then in them I removed any missing materials on MeshRenderers (not sure if this was a cause though, I initially thought it was)

    Sine the scene was large, I then started removing logical chunks of the scene hierarchy and built the scene until I could isolate the problem game object hierarchies. Then I inspected each game object until I found the one(s) that had a problem with it's shader. It would preview pink in the little circle and say "hidden/internal error shader". It'll look something like this:

    http://answers.unity3d.com/questions/1352363/hiddeninternal-error-shader.html

    Resolving the shader issues or removing the gameobjects with this issue will allow the build to go through.
    If your scene is small you can just start inspecting all the gameobjects if you don't want to do iterations of removing chunks and building.

    Hope this helps for you guys as well.
     
  6. GilbertoBitt

    GilbertoBitt

    Joined:
    May 27, 2013
    Posts:
    111
    that's it! i open my project and on the project tab i filter for all material on the project and i find the ones with broken shader and just fixed! or deleted! and now it compiles like a charm! thank's!
     
  7. fcloss

    fcloss

    Joined:
    Dec 1, 2011
    Posts:
    191
    Great. I will try here. Project is big, so will take a while. Thanks guys!
     
  8. fcloss

    fcloss

    Joined:
    Dec 1, 2011
    Posts:
    191
    It worked! Thanks!