NullReference exception building

Hi,

I get a NullReferenceException when building

        -> Task RemObjects.EBuild.Elements.ElementsCompile started for SailingLog.Modules.
           Compiling target 'Echoes'
           -> Target Echoes started compiling.
              Starting compile for SailingLog.Modules Echoes 
              RemObjects Elements (Oxygene, C#, Swift and Java) Compiler for .NET, Cocoa, Java and Island.
              Version 10.0.0.2385 (develop) built on talax, 20190315-162227. Commit aab5759.
              Copyright 2003-2019 RemObjects Software, LLC. All rights reserved.
              
              Source file: /Users/JohnMoshakis/Documents/develop/Echoes/SailingLog/SailingLog.Modules/AllSailedModule.pas
              Source file: /Users/JohnMoshakis/Documents/develop/Echoes/SailingLog/SailingLog.Modules/Services/PassagesSailedService.pas
              Source file: /Users/JohnMoshakis/Documents/develop/Echoes/SailingLog/SailingLog.Modules/Services/ISailedService.pas
              Source file: /Users/JohnMoshakis/Documents/develop/Echoes/SailingLog/SailingLog.Modules/Services/IPassagesService.pas
              Source file: /Users/JohnMoshakis/Documents/develop/Echoes/SailingLog/SailingLog.Modules/Services/IPassagesSailedService.pas
              Source file: /Users/JohnMoshakis/Documents/develop/Echoes/SailingLog/SailingLog.Modules/Services/IIdentityProvider.pas
              Source file: /Users/JohnMoshakis/Documents/develop/Echoes/SailingLog/SailingLog.Modules/Services/GoogleAuthIdentityProvider.pas
              Source file: /Users/JohnMoshakis/Documents/develop/Echoes/SailingLog/SailingLog.Modules/ResultsSecureModule.pas
              Source file: /Users/JohnMoshakis/Documents/develop/Echoes/SailingLog/SailingLog.Modules/RolesModule.pas
              Source file: /Users/JohnMoshakis/Documents/develop/Echoes/SailingLog/SailingLog.Modules/SailedModule.pas
              Source file: /Users/JohnMoshakis/Documents/develop/Echoes/SailingLog/SailingLog.Modules/SailedSecureModule.pas
              Source file: /Users/JohnMoshakis/Documents/develop/Echoes/SailingLog/SailingLog.Modules/SailingLogBootstrapper.pas
              Source file: /Users/JohnMoshakis/Documents/develop/Echoes/SailingLog/SailingLog.Modules/Services/EntriesService.pas
              Source file: /Users/JohnMoshakis/Documents/develop/Echoes/SailingLog/SailingLog.Modules/Services/PassagesService.pas
              Source file: /Users/JohnMoshakis/Documents/develop/Echoes/SailingLog/SailingLog.Modules/UsersModule.pas
              Source file: /Users/JohnMoshakis/Documents/develop/Echoes/SailingLog/SailingLog.Modules/ViewModels/LikeBoatViewModel.pas
              Source file: /Users/JohnMoshakis/Documents/develop/Echoes/SailingLog/SailingLog.Modules/ViewModels/LikeMakeViewModel.pas
              Source file: /Users/JohnMoshakis/Documents/develop/Echoes/SailingLog/SailingLog.Modules/ViewModels/MyBoatModuleViewModel.pas
              Source file: /Users/JohnMoshakis/Documents/develop/Echoes/SailingLog/SailingLog.Modules/ViewModels/RoleModuleViewModel.pas
              Source file: /Users/JohnMoshakis/Documents/develop/Echoes/SailingLog/SailingLog.Modules/ViewModels/SailedModuleViewModel.pas
              Source file: /Users/JohnMoshakis/Documents/develop/Echoes/SailingLog/SailingLog.Modules/TypesModule.pas
              Source file: /Users/JohnMoshakis/Documents/develop/Echoes/SailingLog/SailingLog.Modules/Services/RaceService.pas
              Source file: /Users/JohnMoshakis/Documents/develop/Echoes/SailingLog/SailingLog.Modules/Services/SailedService.pas
              Source file: /Users/JohnMoshakis/Documents/develop/Echoes/SailingLog/SailingLog.Modules/Services/ServiceFactory.pas
              Source file: /Users/JohnMoshakis/Documents/develop/Echoes/SailingLog/SailingLog.Modules/Services/SimpleIdentityProvider.pas
              Source file: /Users/JohnMoshakis/Documents/develop/Echoes/SailingLog/SailingLog.Modules/TeamsModule.pas
              Source file: /Users/JohnMoshakis/Documents/develop/Echoes/SailingLog/SailingLog.Modules/TeamsSecureModule.pas
              Source file: /Users/JohnMoshakis/Documents/develop/Echoes/SailingLog/SailingLog.Modules/ResultsModule.pas
              Source file: /Users/JohnMoshakis/Documents/develop/Echoes/SailingLog/SailingLog.Modules/MakesSecureModule.pas
              Source file: /Users/JohnMoshakis/Documents/develop/Echoes/SailingLog/SailingLog.Modules/HomeModule.pas
              Source file: /Users/JohnMoshakis/Documents/develop/Echoes/SailingLog/SailingLog.Modules/Extensions/SailedViewModelExtensions.pas
              Source file: /Users/JohnMoshakis/Documents/develop/Echoes/SailingLog/SailingLog.Modules/Extensions/SailedViewModelCollectionExtensions.pas
              Source file: /Users/JohnMoshakis/Documents/develop/Echoes/SailingLog/SailingLog.Modules/Extensions/RequestStreamExtensions.pas
              Source file: /Users/JohnMoshakis/Documents/develop/Echoes/SailingLog/SailingLog.Modules/Extensions/NancyModuleExtensions.pas
              Source file: /Users/JohnMoshakis/Documents/develop/Echoes/SailingLog/SailingLog.Modules/BoatsSecureModule.pas
              Source file: /Users/JohnMoshakis/Documents/develop/Echoes/SailingLog/SailingLog.Modules/EntriesModule.pas
              Source file: /Users/JohnMoshakis/Documents/develop/Echoes/SailingLog/SailingLog.Modules/EntriesSecureModule.pas
              Source file: /Users/JohnMoshakis/Documents/develop/Echoes/SailingLog/SailingLog.Modules/Extensions/DictionaryStringObjectExtensions.pas
              Source file: /Users/JohnMoshakis/Documents/develop/Echoes/SailingLog/SailingLog.Modules/Extensions/DynamicDictionaryExtensions.pas
              Source file: /Users/JohnMoshakis/Documents/develop/Echoes/SailingLog/SailingLog.Modules/Extensions/JsonNetSerializer.pas
              Source file: /Users/JohnMoshakis/Documents/develop/Echoes/SailingLog/SailingLog.Modules/MetaModule.pas
              Source file: /Users/JohnMoshakis/Documents/develop/Echoes/SailingLog/SailingLog.Modules/Properties/Resources.Designer.pas
              Source file: /Users/JohnMoshakis/Documents/develop/Echoes/SailingLog/SailingLog.Modules/Properties/Settings.Designer.pas
              Source file: /Users/JohnMoshakis/Documents/develop/Echoes/SailingLog/SailingLog.Modules/RacesModule.pas
              Source file: /Users/JohnMoshakis/Documents/develop/Echoes/SailingLog/SailingLog.Modules/RacesSecureModule.pas
              Source file: /Users/JohnMoshakis/Documents/develop/Echoes/SailingLog/SailingLog.Modules/RegattasModule.pas
              Source file: /Users/JohnMoshakis/Documents/develop/Echoes/SailingLog/SailingLog.Modules/RegattasSecureModule.pas
              Source file: /Users/JohnMoshakis/Documents/develop/Echoes/SailingLog/SailingLog.Modules/Properties/AssemblyInfo.pas
              Source file: /Users/JohnMoshakis/Documents/develop/Echoes/SailingLog/SailingLog.Modules/Models/UserIdentity.pas
              Source file: /Users/JohnMoshakis/Documents/develop/Echoes/SailingLog/SailingLog.Modules/MyBoatsModule.pas
              Source file: /Users/JohnMoshakis/Documents/develop/Echoes/SailingLog/SailingLog.Modules/MyPassagesModule.pas
              Source file: /Users/JohnMoshakis/Documents/develop/Echoes/SailingLog/SailingLog.Modules/MyPassagesSailedModule.pas
              Source file: /Users/JohnMoshakis/Documents/develop/Echoes/SailingLog/SailingLog.Modules/MySailedModule.pas
              Source file: /Users/JohnMoshakis/Documents/develop/Echoes/SailingLog/SailingLog.Modules/NotesModule.pas
              Source file: /Users/JohnMoshakis/Documents/develop/Echoes/SailingLog/SailingLog.Modules/ViewModels/TypeModuleViewModel.pas
              Resource file: /Users/JohnMoshakis/Library/Application Support/RemObjects Software/EBuild/Obj/SailingLog.Modules-BAE9E6404B7EF2049242C759F80517C75668A71D/Debug/Echoes/res/Properties\Resources.resources
              Reference: /Applications/Fire.app/Contents/Resources/Reference Paths with Data Abstract Trial/Echoes/../../References/Echoes/NET/Echoes.dll
              Reference: /Library/Frameworks/Mono.framework/Versions/Current/lib/mono/4.7-api/mscorlib.dll
              Reference: /Library/Frameworks/Mono.framework/Versions/Current/lib/mono/4.7-api/System.Configuration.dll
              Reference: /Library/Frameworks/Mono.framework/Versions/Current/lib/mono/4.7-api/System.Core.dll
              Reference: /Library/Frameworks/Mono.framework/Versions/Current/lib/mono/4.7-api/System.Data.dll
              Reference: /Library/Frameworks/Mono.framework/Versions/Current/lib/mono/4.7-api/System.dll
              Reference: /Library/Frameworks/Mono.framework/Versions/Current/lib/mono/4.7-api/System.Xml.dll
              Reference: /Library/Frameworks/Mono.framework/Versions/Current/lib/mono/4.7-api/System.Xml.Linq.dll
              Reference: /Users/JohnMoshakis/.nuget/packages/autofac/3.5.2/lib/net40/Autofac.dll
              Reference: /Users/JohnMoshakis/.nuget/packages/Microsoft.Win32.Primitives/4.3.0/lib/net46/Microsoft.Win32.Primitives.dll
              Reference: /Users/JohnMoshakis/.nuget/packages/nancy.authentication.stateless/1.4.1/lib/net40/Nancy.Authentication.Stateless.dll
              Reference: /Users/JohnMoshakis/.nuget/packages/Nancy.Bootstrappers.Autofac/1.4.1/lib/net40/Nancy.Bootstrappers.Autofac.dll
              Reference: /Users/JohnMoshakis/.nuget/packages/nancy.owin/1.4.1/lib/net40/Nancy.Owin.dll
              Reference: /Users/JohnMoshakis/.nuget/packages/Nancy/1.4.4/lib/net40/Nancy.dll
              Reference: /Users/JohnMoshakis/.nuget/packages/OWIN/1.0.0/lib/net40/Owin.dll
              Reference: /Users/JohnMoshakis/.nuget/packages/System.IO/4.3.0/lib/net462/System.IO.dll
              Reference: /Users/JohnMoshakis/.nuget/packages/System.Net.Http/4.1.0/lib/net46/System.Net.Http.dll
              Reference: /Users/JohnMoshakis/.nuget/packages/System.Runtime/4.3.0/lib/net462/System.Runtime.dll
              Reference: /Users/JohnMoshakis/.nuget/packages/System.Security.Cryptography.Algorithms/4.3.0/lib/net463/System.Security.Cryptography.Algorithms.dll
              Reference: /Users/JohnMoshakis/.nuget/packages/System.Security.Cryptography.Encoding/4.3.0/lib/net46/System.Security.Cryptography.Encoding.dll
              Reference: /Users/JohnMoshakis/.nuget/packages/System.Security.Cryptography.Primitives/4.3.0/lib/net46/System.Security.Cryptography.Primitives.dll
              Reference: /Users/JohnMoshakis/.nuget/packages/System.Security.Cryptography.X509Certificates/4.3.0/lib/net461/System.Security.Cryptography.X509Certificates.dll
              Reference: /Users/JohnMoshakis/Documents/develop/Echoes/SailingLog/lib/Moshine.MessagePipeline.Core.dll
              Reference: /Users/JohnMoshakis/Library/Application Support/RemObjects Software/EBuild/Obj/SailingLog.Core-38819B2AF6503A4599461C5901E1593B05F6C644/Debug/Echoes/SailingLog.Core.dll
              Reference: /Users/JohnMoshakis/Library/Application Support/RemObjects Software/EBuild/Obj/SailingLog.Data-4BDBBDE735B40185622F878D8C6BD90EECB25BA6/Debug/Echoes/SailingLog.Data.dll
              Reference: /Users/JohnMoshakis/Library/Application Support/RemObjects Software/EBuild/Packages/NuGet/newtonsoft.json/12.0.1/lib/net45/Newtonsoft.Json.dll
              Reference: /Users/JohnMoshakis/Library/Application Support/RemObjects Software/EBuild/Packages/NuGet/system.diagnostics.diagnosticsource/4.5.1/lib/net46/System.Diagnostics.DiagnosticSource.dll
              Reference: /Applications/Fire.app/Contents/Resources/RemObjects.Elements.Cirrus.dll
              -> Phase Resolving Bodies started.

H: Expression will always evaluate to “False” [/Users/JohnMoshakis/Documents/develop/Echoes/SailingLog/SailingLog.Modules/RacesSecureModule.pas (49)]
W: “false or” is unnecessary [/Users/JohnMoshakis/Documents/develop/Echoes/SailingLog/SailingLog.Modules/RacesSecureModule.pas (49)]
<- Phase Resolving Bodies finished, took 1.0927s.
-> Phase Checking Members started.
<- Phase Checking Members finished, took 0.0078s.
-> Phase Generating Helper Types started.
H: Local variable “id” is assigned to but never read [/Users/JohnMoshakis/Documents/develop/Echoes/SailingLog/SailingLog.Modules/ResultsSecureModule.pas (25)]
H: Local variable “raceId” is assigned to but never read [/Users/JohnMoshakis/Documents/develop/Echoes/SailingLog/SailingLog.Modules/ResultsSecureModule.pas (26)]
<- Phase Generating Helper Types finished, took 0.0785s.
-> Phase Inlining code started.
<- Phase Inlining code finished, took 0.0056s.
-> Phase Pre-Simplifying Code started.
<- Phase Pre-Simplifying Code finished, took 0.0001s.
-> Phase Simplifying Code started.
<- Phase Simplifying Code finished, took 0.0393s.
-> Phase Flow Analysis started.
<- Phase Flow Analysis finished, took 0.0060s.
-> Phase Generating Output started.
E: Internal error: System.NullReferenceException: Object reference not set to an instance of an object
at RemObjects.Oxygene.Code.Compiler.Compiler.ExceptionToString (System.Exception e) [0x00000] in <5e4ab5fc74454c1c9e16fc6f09a15909>:0
at RemObjects.Oxygene.Code.Output.DotNet.Output.WriteOutput (System.IO.Stream s) [0x00231] in <299bc747dfaf4a7aafa6c17ca7c6da1a>:0
<- Phase Generating Output failed.
<- Target Echoes failed compiling.
<- Task RemObjects.EBuild.Elements.ElementsCompile failed for SailingLog.Modules, took 5.2136s (5.2660s).
<- Task RemObjects.EBuild.Elements.ElementsBuildProject failed for SailingLog.Modules, took 0.0000s (5.2662s).

It’s hard to track down because it doesn’t popup every time I build.

I make a few changes, build my solution and its fine. I can do it a few more times and then I get that error. The next time I build its fine again.

Cheers,
John

This is an extreme build log.

extreme.txt.zip (243.8 KB)

well need a test case. also, the compiler has not changed at all since the last build.