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

2017.20f2 with ch.sycoforge error

Discussion in '2017.2 Beta' started by castor76, Oct 10, 2017.

  1. castor76

    castor76

    Joined:
    Dec 5, 2011
    Posts:
    2,512
    When I build the player (win) I get :

    NullReferenceException: Object reference not set to an instance of an object
    ch.sycoforge.Unity.Editor.Versioning.VersionTracker.IncrementBuild ()
    ch.sycoforge.Unity.Editor.Versioning.VersionTracker.OnPostProcessBuild (BuildTarget target, System.String buildPath)
    System.Reflection.MonoMethod.Invoke (System.Object obj, BindingFlags invokeAttr, System.Reflection.Binder binder, System.Object[] parameters, System.Globalization.CultureInfo culture) (at /Users/builduser/buildslave/mono/build/mcs/class/corlib/System.Reflection/MonoMethod.cs:222)
    Rethrow as TargetInvocationException: Exception has been thrown by the target of an invocation.
    System.Reflection.MonoMethod.Invoke (System.Object obj, BindingFlags invokeAttr, System.Reflection.Binder binder, System.Object[] parameters, System.Globalization.CultureInfo culture) (at /Users/builduser/buildslave/mono/build/mcs/class/corlib/System.Reflection/MonoMethod.cs:232)
    System.Reflection.MethodBase.Invoke (System.Object obj, System.Object[] parameters) (at /Users/builduser/buildslave/mono/build/mcs/class/corlib/System.Reflection/MethodBase.cs:115)
    UnityEditor.Build.BuildPipelineInterfaces+AttributeCallbackWrapper.OnPostprocessBuild (BuildTarget target, System.String path) (at C:/buildslave/unity/build/Editor/Mono/BuildPipeline/BuildPipelineInterfaces.cs:86)
    UnityEditor.Build.BuildPipelineInterfaces.OnBuildPostProcess (BuildTarget platform, System.String path, Boolean strict) (at C:/buildslave/unity/build/Editor/Mono/BuildPipeline/BuildPipelineInterfaces.cs:324)
    UnityEngine.GUIUtility:processEvent(Int32, IntPtr)

    then

    Error building Player: NullReferenceException: Object reference not set to an instance of an object

    I have no idea what this one is going on about. Possibly related to the above.

    It seems to actually builds, but then it says :

    Build completed with a result of 'Failed'
    UnityEngine.GUIUtility:processEvent(Int32, IntPtr)

    UnityEditor.BuildPlayerWindow+BuildMethodException: 2 errors
    at UnityEditor.BuildPlayerWindow+DefaultBuildMethods.BuildPlayer (BuildPlayerOptions options) [0x00207] in C:\buildslave\unity\build\Editor\Mono\BuildPlayerWindowBuildMethods.cs:172
    at UnityEditor.BuildPlayerWindow.CallBuildMethods (Boolean askForBuildLocation, BuildOptions defaultBuildOptions) [0x00050] in C:\buildslave\unity\build\Editor\Mono\BuildPlayerWindowBuildMethods.cs:83
    UnityEngine.GUIUtility:processEvent(Int32, IntPtr)

    Any ideas?
     
  2. LeonhardP

    LeonhardP

    Unity Technologies

    Joined:
    Jul 4, 2016
    Posts:
    3,111
    Hi castor76,
    Did this project build without throwing this exception in a prior Unity version? If so, please submit a bug report with a minimal reproduction case. The error stems from code specific to your project:

    ch.sycoforge.Unity.Editor.Versioning.VersionTracker.IncrementBuild ()
     
    Peter77 likes this.
  3. castor76

    castor76

    Joined:
    Dec 5, 2011
    Posts:
    2,512
    I wish I can make minimal reproduction case.. This is not going to be easy.. And yes, it used to build fine on my previous Unity version 5.6.3p3..
     
  4. Peter77

    Peter77

    QA Jesus

    Joined:
    Jun 12, 2013
    Posts:
    6,467
    LeonhardP likes this.