Welcome Guest! To enable all features please Login or Register.

Notification

Icon
Error

NCrunch console crash: NullReferenceException at ModelCodeMember.get_FilePath
DeltaEngine
#1 Posted : Friday, November 13, 2020 1:39:14 AM(UTC)
Rank: Advanced Member

Groups: Registered
Joined: 11/23/2012(UTC)
Posts: 31
Location: Germany

Thanks: 8 times
Was thanked: 3 time(s) in 3 post(s)
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?
Remco
#2 Posted : Friday, November 13, 2020 9:20:54 AM(UTC)
Rank: NCrunch Developer

Groups: Administrators
Joined: 4/16/2011(UTC)
Posts: 7,161

Thanks: 964 times
Was thanked: 1296 time(s) in 1202 post(s)
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.
Remco
#3 Posted : Wednesday, November 18, 2020 3:17:19 AM(UTC)
Rank: NCrunch Developer

Groups: Administrators
Joined: 4/16/2011(UTC)
Posts: 7,161

Thanks: 964 times
Was thanked: 1296 time(s) in 1202 post(s)
Users browsing this topic
Guest
Forum Jump  
You cannot post new topics in this forum.
You cannot reply to topics in this forum.
You cannot delete your posts in this forum.
You cannot edit your posts in this forum.
You cannot create polls in this forum.
You cannot vote in polls in this forum.

YAF | YAF © 2003-2011, Yet Another Forum.NET
This page was generated in 0.037 seconds.
Trial NCrunch
Take NCrunch for a spin
Do your fingers a favour and supercharge your testing workflow
Free Download