Forum member

Silvenga

40 posts

Posts by Silvenga

  1. TargetInvocationException Looping

    Happy new years! When modifying the csproj by hand (changing the TargetFrameworks property, e.g. removing netcoreapp3.0) NCrunch will loop with the following error (for all target frameworks): [code=plain] NCrunch: This project was built on server '(local)' NCrunch: The tests in this project…

  2. NCrunch 4 - Instrumentation Mode - Optimized - Project fails to build

    Also have a problem on 4.1.0.1 with optimized builds enabled. Bug report submitted. [code=plain] System.NullReferenceException: Object reference not set to an instance of an object. at nCrunch.Compiler.CilProcessingTasks.ConcurrentCilTaskProcessor.ProcessTasks(Int32 backgroundThreadsAllowed)…

  3. 15GB RAM Usage

    This has happened a couple of times, maybe once a month, I would leave VS for another task and apps would start feeling sluggish. I open Task Manager to discover that Windows is starting to paging like crazy. It turns out NCrunch was trying to consume all my RAM. [img]https://i.imgur.com/QtczDoK.…

  4. VS Crash - A heap has been corrupted

    Visual Studio 2019 has been randomly crashing, since GA (The only third party plugins installed are R# and NCrunch). The fix is normally to delete the .vs folder cache. This was the first time I was able to catch a dump, and every crash since has had the same stacktrace. - Still present? - lik…

  5. VS Crash - A heap has been corrupted

    Deleting the cache from the `.vs` mitigates the issue - so no idea what could be happening.

  6. VS Crash - A heap has been corrupted

    I'm seeing a crash in VS2019 on startup running NCrunch 3.29. [quote] Unhandled exception at 0x7766F8CD (ntdll.dll) in devenv.exe.18532.dmp: 0xC0000374: A heap has been corrupted (parameters: 0x776AB960). ntdll.dll!7766f8cd() Unknown ntdll.dll![Frames below may be incorrect and/or missing…

  7. System.ArgumentException: An item with the same key has already been added.

    I didn't find what you mentioned, but I did find that a netcoreapp2.1 referenced a net451 project in the test project's dependency chain. Removing that reference prevents the problem from surfacing. I have no idea how this netcoreapp even built - there wasn't even a warning... I was under the imp…

  8. System.ArgumentException: An item with the same key has already been added.

    Thanks for the hint, that is really odd, I'll look into it. I can definitely say there are no NCrunch settings being applied.

  9. System.ArgumentException: An item with the same key has already been added.

    Actually, kind of. The testing assembly having the issue is a .NetCoreApp application referencing a .NetStandard 2.0/.NetFull 3.5 project. I can submit a bug report, how would I do that? I've double checked the file names, no duplicates.

  10. System.ArgumentException: An item with the same key has already been added.

    Thanks for the quick reply, it appears that all the assemblies have unique names. I checked the AssemblyName element in the csproj. ``` grep AssemblyName . -R --include=*.csproj ``` EDIT: This is only occurring on a few projects.

  11. System.ArgumentException: An item with the same key has already been added.

    I'm seeing the following error when trying to run the tests for a solution: ``` NCrunch encountered an error while trying to construct an environment to execute this test: System.ArgumentException: An item with the same key has already been added. at System.ThrowHelper.ThrowArgumentException…

  12. AutoFixture Warning Incorrect

    Thanks for the response Remoc, I can totally relate to your pain. We were wondering, depending on how NCrunch's discovery system works, if it would be possible to detect when test signatures change when no IL differences are detected. This would be infinitely more prefered to us developers, IMHO…

  13. AutoFixture Warning Incorrect

    A co-worker brought up (whom doesn't want to make a forum account :( ) that the following example was given (I must have missed it): [code=csharp]namespace XUnitAutoFixture { public class TestFixture { private static readonly Fixture Fixture = new Fixture(); public …

  14. AutoFixture Warning Incorrect

    [quote]AutoFixture is an extension system that allows automatic substitution of test case parameters using randomly generated values. Every time an AutoFixture test case is discovered, its signature is different due to random generation. This causes serious problems for NCrunch and other runners t…

  15. Not identical at IL-level

    [quote=Remco;9629]That's unfortunate. I'm having trouble viewing your paste, it seems to have been set to private. Is there any other way you can share it with me? Perhaps submitting it through the [url=https://www.ncrunch.net/support/contact]contact form?[/url].[/quote] Oops, miss clicked. It…

  16. Not identical at IL-level

    That was fast! I upgraded both the grid server and my local installation and it appears that the issue is still present. Below is a full diff of the two assemblies. http://pastebin.com/bQzQKE67 (better formatting)

  17. Not identical at IL-level

    This was fun. So I took your suggestions and compared the differences and confirmed that the compiled IL is exactly the same except for a constant added by the compiler, see below: The following code is for our logger using NLog: [code=csharp]Logger.Log(ToNLogLevel(level)) .Property("Ty…

  18. Not identical at IL-level

    My team is currently running NCrunch on our projects - which includes the use of a grid server. Recently, we've found an odd warning that pops up on a single project (out of 24 right now) which can be found below: [quote]NCrunch has detected that compiled assemblies produced by different machines…

  19. Ninject Extension Issue

    Setting the "Copy referenced assemblies to workspace" on the test and the project using Ninject does not appear to make a difference.

  20. Ninject Extension Issue

    I'm running into an odd issue when writing some integration tests targeting an in-memory Owin web server with Ninject. The error is as follows: [code=plain] System.InvalidOperationException: This module requires Ninject.Web.WebAPI extension [/code] I call it odd because R#'s test runner runs…