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

Notification

Icon
Error

NCrunch Tests window fails to update its icons
Kaerwek
#1 Posted : Friday, February 9, 2018 12:34:38 PM(UTC)
Rank: Member

Groups: Registered
Joined: 8/7/2017(UTC)
Posts: 23
Location: Finland

Hi,

Tests run, pass or fail, and nothing left in Processing Queue, yet Ncrunch Test window fails to update with correct Symbol. All points to that NCrunch is finished with it's work, but I still see the darned Timer symbol:



Ncrunch version 3.12.0.15
Kaerwek
#2 Posted : Friday, February 9, 2018 1:36:01 PM(UTC)
Rank: Member

Groups: Registered
Joined: 8/7/2017(UTC)
Posts: 23
Location: Finland

And this happens irrespective how I run tests. Both when NCrunch runs because of impacted tests, and both when I right click that test group and Run Tests.
Remco
#3 Posted : Friday, February 9, 2018 10:53:11 PM(UTC)
Rank: NCrunch Developer

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

Thanks: 957 times
Was thanked: 1286 time(s) in 1193 post(s)
This is probably an internal exception. Would you be able to submit a bug report after you see this? The log file may yield some useful information.
Remco
#4 Posted : Monday, February 12, 2018 6:53:31 AM(UTC)
Rank: NCrunch Developer

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

Thanks: 957 times
Was thanked: 1286 time(s) in 1193 post(s)
Thanks for sending through the bug report. Was NCrunch enabled when you sent this? The log file was blank, which suggests the engine was either completely crashed out or otherwise disabled.
Kaerwek
#5 Posted : Monday, February 12, 2018 6:58:36 AM(UTC)
Rank: Member

Groups: Registered
Joined: 8/7/2017(UTC)
Posts: 23
Location: Finland

Huh?!

NCrunch is sure enabled. I can do all the normal stuff I do without any issue.
Remco
#6 Posted : Monday, February 12, 2018 7:03:03 AM(UTC)
Rank: NCrunch Developer

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

Thanks: 957 times
Was thanked: 1286 time(s) in 1193 post(s)
Alternatively, can you check your Processing Queue for failed tasks? If a task has blown up, there should be an exception trace available there.
Remco
#7 Posted : Monday, February 12, 2018 7:07:35 AM(UTC)
Rank: NCrunch Developer

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

Thanks: 957 times
Was thanked: 1286 time(s) in 1193 post(s)
If you're receiving OutOfMemoryExceptions in the NCrunch engine process itself, then this would likely be because of one of the following:
1. NCrunch is set to run using an x86 process host and the resource demands by the engine have exceeded the 32-bit memory limit.
2. NCrunch is set to run its engine inside the IDE and the IDE is overloaded (happens easily under VS2017 with other packages installed).
3. Your machine is out of physical memory and swap space.

I recommend making sure you have NCrunch set to run in an x64 process host.
Kaerwek
#8 Posted : Monday, February 12, 2018 7:19:45 AM(UTC)
Rank: Member

Groups: Registered
Joined: 8/7/2017(UTC)
Posts: 23
Location: Finland

I restarted Visual Studio, and put the "Use CPU Architecture" from "Autodectect" to "x64".

It seems that on Restart of Visual Studio, the icon issue disappeared. I think it's related to the habit of mine to let the machine just idle on lock at all times.

I'll keep an eye out for that for now.
Kaerwek
#9 Posted : Monday, February 12, 2018 7:22:07 AM(UTC)
Rank: Member

Groups: Registered
Joined: 8/7/2017(UTC)
Posts: 23
Location: Finland

Oh and I keep having the Processing Queue window open. Most often it's empty, i.e. once it's done, I never see any outright failing lines there.
Remco
#10 Posted : Monday, February 12, 2018 3:39:00 PM(UTC)
Rank: NCrunch Developer

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

Thanks: 957 times
Was thanked: 1286 time(s) in 1193 post(s)
I'm not sure if the most recent bug report with this issue was yours, but in the likely event that it is, it contained a useful stack trace:

System.Exception: Unknown DataRow parameter type: System.RuntimeType
at nCrunch.Module.MSTest.Integration.MSTestResolvedTest.convertStringToType(String stringValue, String typeName, Type parameterType)
at nCrunch.Module.MSTest.Integration.MSTestResolvedTest.DecodeAndResolve(ReflectedAssembly assemblyContainingTest, String encodedTest)
at nCrunch.Module.MSTest.Integration.MSTestTest..ctor(MSTestNames names, ReflectedAssembly assembly, ReflectedType fixtureType, PendingTest pendingTest, MSTestInterceptingContext testContext, Boolean considerInconclusiveTestsAsPassing)
at nCrunch.Module.MSTest.Integration.MSTestFixture.<>c__DisplayClass2_0.<.ctor>b__0(PendingTest t)
at System.Linq.Enumerable.WhereSelectArrayIterator`2.MoveNext()
at System.Collections.Generic.List`1..ctor(IEnumerable`1 collection)
at nCrunch.Module.MSTest.Integration.MSTestFixture..ctor(MSTestNames names, ReflectedAssembly assembly, TestName fixtureTest, IList`1 tests, MSTestInterceptingContext testContext, Boolean considerInconclusiveTestsAsPassing)
at nCrunch.Module.MSTest.Integration.MSTestRunner.runTestsWithinAssembly(IList`1 testsToRun, TestTaskOutput testOutput)
at nCrunch.Common.PerformanceTracking.PerfTracker.TrackUnreliableActivity(String name, Action activity)
at nCrunch.Common.PerformanceTracking.PerfTracker.TryTrackUnreliableActivity(String name, Action activity)
at nCrunch.Module.MSTest.Integration.MSTestRunner.RunTests(IList`1 testsToRun, TestTaskOutput testOutput)
at nCrunch.TestExecution.TestExecutionMonitor.PerformMonitoredTestExecution(Action testExecutionAction)
at nCrunch.TestExecution.TestRunnerThread.()


This is a hole in NCrunch's MSTest DataRow support. Somewhere in your test project you're making use of a DataRow with an unusual parameter type that NCrunch can't seem to handle. If you can get me the signature for the test that's causing it (unfortunately the log doesn't tell me which one), I should be able to investigate further.
Kaerwek
#11 Posted : Tuesday, February 13, 2018 6:49:36 AM(UTC)
Rank: Member

Groups: Registered
Joined: 8/7/2017(UTC)
Posts: 23
Location: Finland

[DataTestMethod]
[DataRow(typeof(bool), typeof(ICheckboxPropertyViewModel))]
[DataRow(typeof(Color), typeof(IColorPropertyViewModel))]
[DataRow(typeof(float), typeof(IStepperPropertyViewModel))]
[DataRow(typeof(int), typeof(IStepperPropertyViewModel))]
[DataRow(typeof(string), typeof(IInputFieldPropertyViewModel))]
public void Given_VariableOfType_When_CreateProperties_Then_ResultingPropertyViewModelIsOfGivenType(Type variableType, Type propertyViewModelType)
Kaerwek
#12 Posted : Tuesday, February 13, 2018 6:50:44 AM(UTC)
Rank: Member

Groups: Registered
Joined: 8/7/2017(UTC)
Posts: 23
Location: Finland

So... Color is System.Windows.Media.Color.

The rest of the interfaces are our own.
Remco
#13 Posted : Tuesday, February 13, 2018 9:28:00 AM(UTC)
Rank: NCrunch Developer

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

Thanks: 957 times
Was thanked: 1286 time(s) in 1193 post(s)
Yes, Color would definitely do this.

Does this work for you outside of NCrunch?

I'm not sure if it's possible to get this kind of thing working under NCrunch, since it would involve the test's meta structure consisting of a user type (a bad thing when it comes to test uniqueness/identification). But the error can certainly be improved.
Kaerwek
#14 Posted : Tuesday, February 13, 2018 11:59:19 AM(UTC)
Rank: Member

Groups: Registered
Joined: 8/7/2017(UTC)
Posts: 23
Location: Finland

Yes, the tests pass fine in the CI builds.
Kaerwek
#15 Posted : Tuesday, February 13, 2018 3:05:11 PM(UTC)
Rank: Member

Groups: Registered
Joined: 8/7/2017(UTC)
Posts: 23
Location: Finland

I submitted another bug report. One of those cases where I write multiple tests after each other, and at some point NCrunch just fails to properly update the status of some of the tests.

The test clearly passes, at least in Debug mode, but it has Dark green breadcrumb, Green timer symbol, and state 'Running (Passed last run)'
Remco
#16 Posted : Wednesday, February 14, 2018 2:56:52 AM(UTC)
Rank: NCrunch Developer

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

Thanks: 957 times
Was thanked: 1286 time(s) in 1193 post(s)
Kaerwek
#17 Posted : Thursday, February 15, 2018 9:36:45 AM(UTC)
Rank: Member

Groups: Registered
Joined: 8/7/2017(UTC)
Posts: 23
Location: Finland

The [DataRow(typeof(Color)] case works now! Thanks.

Did you do you attempt to do something about that other issue?

I'll keep an eye out for if the symbols not updating issue starts appearing again.
Remco
#18 Posted : Thursday, February 15, 2018 10:36:48 AM(UTC)
Rank: NCrunch Developer

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

Thanks: 957 times
Was thanked: 1286 time(s) in 1193 post(s)
Kaerwek;11802 wrote:

Did you do you attempt to do something about that other issue?


From what I could establish in the reports you submitted, these looked to be tied to the same thing (exceptions thrown during test discovery/execution). Are you seeing any problems with the new build?
Kaerwek
#19 Posted : Thursday, February 15, 2018 2:04:19 PM(UTC)
Rank: Member

Groups: Registered
Joined: 8/7/2017(UTC)
Posts: 23
Location: Finland

It sure seems much more stable now. It seems to refresh the statuses correctly, haven't checked it very deeply, but earlier every now and then it seemed to report things wrong.
Remco
#20 Posted : Thursday, February 15, 2018 9:58:48 PM(UTC)
Rank: NCrunch Developer

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

Thanks: 957 times
Was thanked: 1286 time(s) in 1193 post(s)
Kaerwek;11804 wrote:
It sure seems much more stable now. It seems to refresh the statuses correctly, haven't checked it very deeply, but earlier every now and then it seemed to report things wrong.


Please do let me know if you manage to pin down any problems. As far as I know, all results reporting in this build should be stable now for your use case.
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.101 seconds.
Trial NCrunch
Take NCrunch for a spin
Do your fingers a favour and supercharge your testing workflow
Free Download