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.
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!
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:
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.
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!