Search Issue Tracker

Fixed in 2018.1.X

Fixed in 2017.4.X, 2018.2.X

Votes

26

Found in

2017.3.0a2

2017.3.0f3

Issue ID

980543

Regression

Yes

[OSX] Unity Editor fails to build project when Performance Reporting is enabled

Cloud Diagnostics

-

To reproduce:

1. Download attached project "CrashRepo.zip" and open in Unity
2. Open "test" scene
3. Go to the Services window
4. Enable "Performance Reporting"
5. Build & Run project

Expected Result: UnityEditor should successfully build project and run it
Actual Result: Unity Editor fails to build the project and spams errors to Console:

"Assets/GenerateException.cs(7,13): warning CS0649: Field `GenerateException.Null' is never assigned to, and will always have its default value `null’"

"WebException: The remote server returned an error: (403) Forbidden.
System.Net.HttpWebRequest.CheckFinalStatus (System.Net.WebAsyncResult result)
System.Net.HttpWebRequest.SetResponseData (System.Net.WebConnectionData data)
UnityEditor.BuildPlayerWindow:BuildPlayerAndRun()"

"Error building Player: WebException: The remote server returned an error: (403) Forbidden."

"Build completed with a result of ‘Failed’
UnityEditor.BuildPlayerWindow:BuildPlayerAndRun()"

"UnityEditor.BuildPlayerWindow+BuildMethodException: 2 errors
at UnityEditor.BuildPlayerWindow+DefaultBuildMethods.BuildPlayer (BuildPlayerOptions options) [0x0020e] in /Users/builduser/buildslave/unity/build/Editor/Mono/BuildPlayerWindowBuildMethods.cs:181
at UnityEditor.BuildPlayerWindow.CallBuildMethods (Boolean askForBuildLocation, BuildOptions defaultBuildOptions) [0x00065] in /Users/builduser/buildslave/unity/build/Editor/Mono/BuildPlayerWindowBuildMethods.cs:88
UnityEditor.BuildPlayerWindow:BuildPlayerAndRun()"

"Assets/GenerateException.cs(7,13): warning CS0649: Field `GenerateException.Null' is never assigned to, and will always have its default value `null’"

Notes:
- This issue appears only on OSX
- Using .NET 3.5

Reproduced on Unity 2017.3.0a2, 2017.3.0f3 and 2018.1.0b1
Not reproduced on Unity 2017.3.0a1
Regression on Unity 2017.3.0a2

Comments (17)

  1. Gillissie

    Mar 05, 2018 07:07

    I'm running into this issue with 5.6.5p2. It's extremely frustrating that I signed up for the Plus license so I could use the Performance Reporting tool, and suddenly I can no longer make a build.

  2. serginian

    Feb 19, 2018 10:41

    P.S. addition to my previous post.
    I'm using .net 4.6, not 3.5
    Unity 2017.3.1p1
    When I'm Building project on Windows for iOs, it spawn the same error as on Mac.
    Building process for Android on Windows finished successfull, without any errors.

  3. serginian

    Feb 19, 2018 10:33

    Same error. I can't build my project on Unity 2017.3p1.
    Error during building: Error building Player: WebException: The remote server returned an error: (404) Not Found.

    Performance Reporting Service is not used earlier!!!
    "FREDSA" solution also is not working, because m_Enabled field. in my case, already is set to 0.

  4. fredsa

    Feb 19, 2018 03:35

    I was able to fix this by:
    1. Edit > Project Settings > Editor > Asset Serialziation = Force Text
    2. Open "ProjectSettings/UnityConnectSettings.asset" in a text editor
    3. Find the "CrashReportingSettings" section.
    4. Replace "m_Enabled: 1" with "m_Enabled: 0".

    After saving the change, the "Window > Services" panel no longer shows "Performance Reporting" enabled, and builds no longer throw exceptions:
    > WebException: The remote server returned an error: (403) Forbidden.

    (In my case I'm on Windows using Unity 2017.3.1p1)

  5. Cenda

    Feb 13, 2018 19:03

    Same problem. I can not turn it off. But sometimes I can do build and run, but don't know how can I replicate it.

  6. TheBunny

    Jan 17, 2018 20:54

    Builds Fail for Android and IOS from OSX. I believe the entire project us being created. You can hand run the project from xcode find. Android Im not sure about as I normally use Build and Run. The Run part might be broke and I assume theres another hand driven way to push the apk to the device someone could try.

  7. TheBunny

    Jan 17, 2018 20:51

    Second bug... I believe Performance Reporting was FREE while in beta and now it is paid.. If you have a project that is running on the free version of Unity but had Performance Reporting turned on at some point... you can't turn the feature off from inside of Unity or the Website. Leaving the project in a permanent can not build state.

Add comment

Log in to post comment

All about bugs

View bugs we have successfully reproduced, and vote for the bugs you want to see fixed most urgently.