Uploaded image for project: 'Realm .NET SDK'
  1. Realm .NET SDK
  2. RNET-697

NRE when executing weaver

    • Type: Icon: Bug Bug
    • Resolution: Fixed
    • Priority: Icon: Minor - P4 Minor - P4
    • Q3-23FY
    • Affects Version/s: None
    • Component/s: None
    • None

      I started updating my code to use Realm v10.10.0 but I now get the following error when attempting to build the solution.

      The current solution uses 10.7.1 without problem. I have tried;
      • Cleaning the solution between each build
      • Applying the updates incrementally (10.8 worked 10.9 failed)
      • Uninstalling Realm 10.7.1, cleaning the solution, then installing 10.10.0

      Build started...
      1>------ Build started: Project: CrmMongo, Configuration: Debug Any CPU ------
      1>Build started 1/03/2022 2:20:27 PM.
      1>Target _GetProjectReferenceTargetFrameworkProperties:
      1>Target ResolveProjectReferences:
      1>Target CoreCompile:
      1>  Skipping target "CoreCompile" because all output files are up-to-date with respect to the input files.
      1>Target FodyTarget:
      1>  Fody: Fody (version 6.6.0.0 @ file:///C:/Users/Raymond.Brack/.nuget/packages/fody/6.6.0/netclassictask/Fody.dll) Executing
      1>    Fody/Realm: Executing weaver Realm v10.10.0+a3777199226446b969610d6c14ff04caff18d482
      1>  MSBUILD : error : Fody: An unhandled exception occurred:
      1>  MSBUILD : error : Exception:
      1>  MSBUILD : error : Failed to execute weaver C:\Users\Raymond.Brack\.nuget\packages\realm.fody\10.10.0\build\..\weaver\netstandard2.0\Realm.Fody.dll
      1>  MSBUILD : error : Type:
      1>  MSBUILD : error : System.Exception
      1>  MSBUILD : error : StackTrace:
      1>  MSBUILD : error :    at InnerWeaver.ExecuteWeavers() in C:\projects\fody\FodyIsolated\InnerWeaver.cs:line 221
      1>  MSBUILD : error :    at InnerWeaver.Execute() in C:\projects\fody\FodyIsolated\InnerWeaver.cs:line 112
      1>  MSBUILD : error : Source:
      1>  MSBUILD : error : FodyIsolated
      1>  MSBUILD : error : TargetSite:
      1>  MSBUILD : error : Void ExecuteWeavers()
      1>  MSBUILD : error : Object reference not set to an instance of an object.
      1>  MSBUILD : error : Type:
      1>  MSBUILD : error : System.NullReferenceException
      1>  MSBUILD : error : StackTrace:
      1>  MSBUILD : error :    at ModuleWeaver.Execute()
      1>  MSBUILD : error :    at InnerWeaver.ExecuteWeavers() in C:\projects\fody\FodyIsolated\InnerWeaver.cs:line 185
      1>  MSBUILD : error : Source:
      1>  MSBUILD : error : Realm.Fody
      1>  MSBUILD : error : TargetSite:
      1>  MSBUILD : error : Void Execute()
      1>  MSBUILD : error :
      1>  Fody: Finished Fody 219ms.
      1>Done building target "FodyTarget" in project "CrmMongo.csproj" -- FAILED.
      1>
      1>Done building project "CrmMongo.csproj" -- FAILED.
      1>
      1>Build FAILED.
      1>
      1>MSBUILD : error : Fody: An unhandled exception occurred:
      1>MSBUILD : error : Exception:
      1>MSBUILD : error : Failed to execute weaver C:\Users\Raymond.Brack\.nuget\packages\realm.fody\10.10.0\build\..\weaver\netstandard2.0\Realm.Fody.dll
      1>MSBUILD : error : Type:
      1>MSBUILD : error : System.Exception
      1>MSBUILD : error : StackTrace:
      1>MSBUILD : error :    at InnerWeaver.ExecuteWeavers() in C:\projects\fody\FodyIsolated\InnerWeaver.cs:line 221
      1>MSBUILD : error :    at InnerWeaver.Execute() in C:\projects\fody\FodyIsolated\InnerWeaver.cs:line 112
      1>MSBUILD : error : Source:
      1>MSBUILD : error : FodyIsolated
      1>MSBUILD : error : TargetSite:
      1>MSBUILD : error : Void ExecuteWeavers()
      1>MSBUILD : error : Object reference not set to an instance of an object.
      1>MSBUILD : error : Type:
      1>MSBUILD : error : System.NullReferenceException
      1>MSBUILD : error : StackTrace:
      1>MSBUILD : error :    at ModuleWeaver.Execute()
      1>MSBUILD : error :    at InnerWeaver.ExecuteWeavers() in C:\projects\fody\FodyIsolated\InnerWeaver.cs:line 185
      1>MSBUILD : error : Source:
      1>MSBUILD : error : Realm.Fody
      1>MSBUILD : error : TargetSite:
      1>MSBUILD : error : Void Execute()
      

      _Originally posted by @RayBrack in https://github.com/realm/realm-dotnet/issues/2836#issuecomment-1060044165_

            Assignee:
            nikola.irinchev@mongodb.com Nikola Irinchev
            Reporter:
            nikola.irinchev@mongodb.com Nikola Irinchev
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated:
              Resolved: