Daily Usage Issues

NCrunch console crash: NullReferenceException at ModelCodeMember.get_FilePath

Started by DeltaEngine on 2,089 views

Sadly from time to time our NCrunch builds on our CI server (TeamCity) are crashing with some internal NCrunch problem. Running it again fixes it for a while, but it doesn't make much sense to us.

This is from the recent NCrunch release:

[LocalBuildTask-128] Now building DeltaEngine.Chat
Object reference not set to an instance of an object. - System.NullReferenceException: Object reference not set to an instance of an object.
at nCrunch.Client.Model.ModelCodeMember.get_FilePath()
at nCrunch.Client.Navigation.CodeNavigationSynchroniser. (ModelTest )
at nCrunch.Client.Navigation.CodeNavigationSynchroniser. (ModelTest , CodeNavigationIndexUpdate )
at nCrunch.Client.Navigation.CodeNavigationSynchroniser. (ClientModelAlignedEvent )

And this is the version from yesterday:
[LocalBuildTask-187] Building new workspace C:\Users\...\AppData\Local\NCrunch\12804\2 for component DeltaEngine.Chat in context of grid client (local)
[Core-16] ERROR (Internal): System.NullReferenceException: Object reference not set to an instance of an object.
[Core-16] at nCrunch.Client.Model.ModelCodeMember.get_FilePath()
[Core-16] at nCrunch.Client.Navigation.CodeNavigationSynchroniser. (ModelTest )
[Core-16] at nCrunch.Client.Navigation.CodeNavigationSynchroniser. (ModelTest , CodeNavigationIndexUpdate )
[Core-16] at nCrunch.Client.Navigation.CodeNavigationSynchroniser. (ClientModelAlignedEvent )
[LocalBuildTask-187] Now building DeltaEngine.Chat
Object reference not set to an instance of an object. - System.NullReferenceException: Object reference not set to an instance of an object.
at nCrunch.Client.Model.ModelCodeMember.get_FilePath()
at nCrunch.Client.Navigation.CodeNavigationSynchroniser. (ModelTest )
at nCrunch.Client.Navigation.CodeNavigationSynchroniser. (ModelTest , CodeNavigationIndexUpdate )
at nCrunch.Client.Navigation.CodeNavigationSynchroniser. (ClientModelAlignedEvent )

Our DeltaEngine.Chat project is a very simple base project with just 2 interface files, no code, maybe that is the issue?
I suspect this is related to the structure of the project. My best guess here is that there might be a build error that is being reported to a file that isn't a source file, or something similar.

The code that is exploding here is specific to code navigation inside the IDE. There isn't really any reason for this to be running in the console tool. I'm fairly certain we can fix this with a speculative fix. I'll note it down to be addressed in our next build if we can slip it in.
Would you be interested in trying the build below to see if this solves the issue for you?

NCrunch_Console_4.6.0.2.msi
NCrunch_Console_4.6.0.2.zip
NCrunch_GridNodeServer_4.6.0.2.msi
NCrunch_GridNodeServer_4.6.0.2.zip
NCrunch_LicenseServer_4.6.0.2.zip
NCrunch_VS2008_4.6.0.2.msi
NCrunch_VS2010_4.6.0.2.msi
NCrunch_VS2010_4.6.0.2.zip
NCrunch_VS2012_4.6.0.2.msi
NCrunch_VS2012_4.6.0.2.zip
NCrunch_VS2013_4.6.0.2.msi
NCrunch_VS2013_4.6.0.2.zip
NCrunch_VS2015_4.6.0.2.msi
NCrunch_VS2015_4.6.0.2.msi.7z
NCrunch_VS2015_4.6.0.2.zip
NCrunch_VS2017_4.6.0.2.msi
NCrunch_VS2017_4.6.0.2.msi.7z
NCrunch_VS2017_4.6.0.2.zip
NCrunch_VS2019_4.6.0.2.msi
NCrunch_VS2019_4.6.0.2.msi.7z
NCrunch_VS2019_4.6.0.2.zip

Post a reply

Log in to reply.