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

Notification

Icon
Error

ncrunch console tool - Common Language Runtime detected an invalid program
michaellogutov
#1 Posted : Monday, October 17, 2016 12:03:42 PM(UTC)
Rank: Member

Groups: Registered
Joined: 2/2/2015(UTC)
Posts: 24
Location: Russia

Thanks: 1 times
Was thanked: 4 time(s) in 4 post(s)
I've runned into a very strange issue that making our CI flow very fragile - we've got our tests running by nCrunch console tool and it throws us this exception:

Code:

System.InvalidProgramException: Common Language Runtime detected an invalid program. 
 at Tests.App.<ProcessAsync>d__3.MoveNext() 
...


The bad thing - it doesn't failing in VS2015

I've manage to narrow it to two things: using NLog and using exception filtering (when (ex is ...))
I've created the sample project: https://drive.google.com...lk3VEU/view?usp=sharing

To reproduce an error I've used this command line with NCrunch Console Tool v2.26.0.1:

Code:

"C:\Program Files (x86)\Remco Software\NCrunch Console Tool\NCrunch.exe" "d:\temp\Tests\Tests.sln" /o "D:\Temp\NCrunchOutput" /t /vs 2015 -LogVerbosity Detailed
Remco
#2 Posted : Monday, October 17, 2016 9:16:16 PM(UTC)
Rank: NCrunch Developer

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

Thanks: 959 times
Was thanked: 1290 time(s) in 1196 post(s)
Hi, thanks for sharing this issue.

This is caused by a compatibility issue between NCrunch's instrumentation and exception filters.

A fix for this has been released in v2.27. Upgrading the console tool to the latest version should solve this problem.
1 user thanked Remco for this useful post.
michaellogutov on 10/18/2016(UTC)
michaellogutov
#3 Posted : Monday, October 24, 2016 5:23:11 PM(UTC)
Rank: Member

Groups: Registered
Joined: 2/2/2015(UTC)
Posts: 24
Location: Russia

Thanks: 1 times
Was thanked: 4 time(s) in 4 post(s)
Thanks, seems like this fixed it.
1 user thanked michaellogutov for this useful post.
Remco on 10/24/2016(UTC)
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.026 seconds.
Trial NCrunch
Take NCrunch for a spin
Do your fingers a favour and supercharge your testing workflow
Free Download