Search Issue Tracker

Fixed in Unity 2018.1

Votes

26

Found in

2017.3.0f3

Issue ID

980543

Regression

Yes

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

Performance Reporting Service

-

-

Priority: 2Necessary for shipping a final release

-

Severity: 1Crash or major loss of functionality

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 (13)

  1. Ca5bb22ea1ba90d60fe70309349c2d76?d=mm

    pro_psg

    Aug 30, 2018 10:56

    Issue reproducible on 2017.1.2p4

  2. Bca97f76c6dfee00a6b484b8157cf8c3?d=mm

    ZDestructor

    May 06, 2018 20:26

    I had a similar error, but it was because I was not signed in.

    I had previously pressed "work offline" when starting Unity, and never signed back in, which caused my build to fail since performance reporting was enabled. I checked the Services tab and found that it said "Not signed in", so I signed in, and the next build completed successfully.

  3. 71cb5bdc73bba20d73fc4c24f0fdbdfe?d=mm

    PNordlund

    Apr 16, 2018 06:35

    Given that 2018.1 is still in beta, 2018.2 with the fix is months away. Would expect to see the fix in 2018.1 as well.

  4. Fc25210c9bc636cc17c88c84a00f763b?d=mm

    luisforque

    Mar 08, 2018 20:02

    I have this same problem in Windows, trying an Android build. Disabling the performance reporting fixes the build.

  5. Cb0088335925614ac61657710cac4207?d=mm

    Gillissie

    Mar 05, 2018 07:16

    Good news, following Fredsa's steps fixed it for me. To be clear:
    1. Quit Unity
    2. Open "ProjectSettings/UnityConnectSettings.asset" in a text editor
    3. Find the "CrashReportingSettings" section.
    4. Replace "m_Enabled: 1" with "m_Enabled: 0".
    5. Launch Unity. See that Performance Reporting is enabled.
    6. Quit Unity so it re-saves the project settings with it properly enabled.

  6. Cb0088335925614ac61657710cac4207?d=mm

    Gillissie

    Mar 05, 2018 07:10

    In addition to builds not working, when I click on the button to try disabling Performance Reporting, the Services window shows this, even though I entered a license: https://screencast.com/t/BJC7sSdskiYM

  7. Cb0088335925614ac61657710cac4207?d=mm

    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.

  8. Ef59744a3d4d17eb7589945b952858d5?d=mm

    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.

  9. Ef59744a3d4d17eb7589945b952858d5?d=mm

    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.

  10. 5e475c98eb8bffa21b8644f4f80af863?d=mm

    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)

All about bugs

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