Forum member

Magnus Lidbom

55 posts

Posts by Magnus Lidbom

  1. Rider window "view mode" issues

    [quote=Remco;17765]They are basically a thin layer over a JetBrains component that pipes the UI into a background process, so our UI in the tool windows isn't actually properly integrated in the Rider process.[/quote] Aha! I thought it looked suspiciously similar to the the UI in visual studio. Gue…

  2. Rider window "view mode" issues

    First I'll just say that it great that NCrunch now supports Rider so that I can try Rider out. Since there is no way I'm coding without NCrunch I never even considered Rider before you started supporting it :) That, said I've run into a few pretty annoying glitches: When setting an NCrunch to…

  3. Using EnableRdi(false) attribute results in NullReferenceException from LogStateMachineCompletion

    Two bugs submitted so far :) What are your feelings on this, do you prefer I avoid submitting what might be duplicate problems, or do you like getting a lot of these so that you have a lot of data to work with? Is there any way to track what happens with the stuff I submit and add additional …

  4. Using EnableRdi(false) attribute results in NullReferenceException from LogStateMachineCompletion

    [quote=Remco;17752]Can you confirm how easy it is to reproduce these problems? [/quote] In my solution you basically cannot avoid them. [quote=Remco;17752]Something that would be very helpful ... the next time you click on a bracket to open a scope, and nothing happens .. could you wait for 20 s…

  5. Using EnableRdi(false) attribute results in NullReferenceException from LogStateMachineCompletion

    An FYI, it's a development build so I could hardly expect it to be release quality. That said, viewing RDI information on Rider is quite glitchy. Files that work fine in visual studio do not in rider. Clicking the brackets frequently seem to have no effect, or a dialog will eventually turn up sayi…

  6. Using EnableRdi(false) attribute results in NullReferenceException from LogStateMachineCompletion

    [quote=Remco;17744]Ok, the new build is ready! I'm keen to hear if this solve the problem for you.[/quote] Problem SOLVED :D * No more NullReferenceException * Only 7 performance tests fail now * They fail with a loss in performance of only something like 40-60% Heroic effort getting a fix …

  7. Disabling RDI for a project doesn't restore performance, only disabling it for the solution does

    [quote=Remco;17741][quote] I think it would be worth checking the Hot Spots tab to see if there are any specific bottlenecks that contribute to this result. Disabling RDI or instrumentation for these regions of code might sufficiently mitigate the issue.[/quote] That's a good suggestion, but I'…

  8. Disabling RDI for a project doesn't restore performance, only disabling it for the solution does

    Also I found a workaround! And it, maybe just maybe, might point the way towards a way of supporting this within ncrunch without months of development. Here it is: Set up a gridnode such that it has no RDI storage. Configure your local NCrunch to not run the performance tests at all via the "Tes…

  9. Disabling RDI for a project doesn't restore performance, only disabling it for the solution does

    Before, I said this: [quote]I also did first try using [assembly:NCrunch.Framework.EnableRdi(false)], but that didn't work any better.[/quote] I think I need to qualify that. When I did that I saw a huge number of tests still failing and I assumed it was for the same reason, a major slowdown. B…

  10. Disabling RDI for a project doesn't restore performance, only disabling it for the solution does

    [quote]It may be worth trying to open RDI scopes for some of these tests (particularly in the performance critical parts of your code) to make sure its disabled. Maybe something is going wrong with the disabling. The Tests Window also has a tab that allows you to see how much data is collected for…

  11. Using EnableRdi(false) attribute results in NullReferenceException from LogStateMachineCompletion

    [quote=Remco;17735]Thanks, I think I've isolated this issue. Would you be interested in trying out a new build with a fix included?[/quote] Very much interested :)

  12. Using EnableRdi(false) attribute results in NullReferenceException from LogStateMachineCompletion

    [quote=Remco;17732]Does the test contain any mechanisms to make sure that the threads have all completed their execution before it completes?[/quote] It does. But more importantly, this exception is thrown at the beginning of the test not during teardown: [code=csharp] [Test, EnableRdi(fa…

  13. Disabling RDI for a project doesn't restore performance, only disabling it for the solution does

    [quote=Remco;17728]Disabling RDI on your test project using the 'Enable RDI' config setting will disable it only for the code within the test project, not for the tests contained in this project.[/quote] I don't understand. That sounds self-contradictory to me. How can it be disabled for the code i…

  14. Using EnableRdi(false) attribute results in NullReferenceException from LogStateMachineCompletion

    [quote=Remco;17727]My first thought here is whether this might be due to overlapping threads from other tests that have RDI enabled. Can you reproduce the issue at all by running the test in isolation?[/quote] That test no longer has the attribute. I need to get work done :) But with the test t…

  15. Using EnableRdi(false) attribute results in NullReferenceException from LogStateMachineCompletion

    It seems to not be entirely deterministic. The first time I tried to use the attribute it happened as soon as I applied it. Later, in other code, I thought it was working, but then when I restarted the NCrunch engine the test started failing with the below exception. For yet another test it seem…

  16. Disabling RDI for a project doesn't restore performance, only disabling it for the solution does

    The topic says it all really. This is a serious problem for me meaning that I cannot enable RDI at all because all of my performance tests fail if RDI is enabled on the solution level, even though I disable it for the performance test projects. I'm 90% sure I know what the problem is. I think that …

  17. Unable to make NCrunch build anything with optimized code and without debugging symbols

    Thank you! That works like a charm :)

  18. Unable to make NCrunch build anything with optimized code and without debugging symbols

    I have tried everything I can think of and have been banging my head against the wall for hours with this problem now. I'm to the point of having this csproj file and still NCrunch builds it with full debug info and optimizations disabled: .csproj [code=plain] <Project Sdk="Microsoft.NET.Sdk"…

  19. Find out which DistributeByCapabilitiesAttribute capability a test is executing under.

    So it's been about a month and the project now has a file in the "Solution Items" folder with this content: [code=plain] #When running tests under NCrunch all tests that uses dependency injection and persistence will be executed once for every configured value in this file. #Format is Persist…

  20. How do I tell the grid node not to use the preview version of Visual Studio 2019

    Ah, then it all makes sense. Thank you for taking the time to explain :)