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

Notification

Icon
Error

Tests discovery uses ALL memory available, without running tests
fidel
#1 Posted : Monday, May 15, 2023 12:38:19 PM(UTC)
Rank: Newbie

Groups: Registered
Joined: 5/15/2023(UTC)
Posts: 8
Location: Ukraine

Latest , Xunit, dotnet framework as Target project.

Just test discovery (opening test window) causes VS to use all memory available (with freeze and crash at the end)

Latest VS, Latest NCrunch.

I ignored test assembly completelly in Nrunch settings, but after enabling Ncrunch same issue, all memory gone, VS crashed. looks like recursive calls somewhere.



DELETING
v3.ncrunchsolution and .ncrunchsolution.user

HELPED.

Should i provide those files?
Remco
#2 Posted : Monday, May 15, 2023 11:24:01 PM(UTC)
Rank: NCrunch Developer

Groups: Administrators
Joined: 4/16/2011(UTC)
Posts: 6,970

Thanks: 929 times
Was thanked: 1256 time(s) in 1169 post(s)
Hi, thanks for sharing this issue.

Can you confirm which physical process is responsible for the memory overrun? Task manager tends to aggregate memory usage for the entire tree, but there are many processes involved in an NCrunch session. If you expand the tree, it should be possible to see which one(s) are eating all the memory.
fidel
#3 Posted : Tuesday, May 16, 2023 6:33:24 AM(UTC)
Rank: Newbie

Groups: Registered
Joined: 5/15/2023(UTC)
Posts: 8
Location: Ukraine

[img]null[/img]devenv.

Not possible to paste picture here.

on the picture i have devenv 30GB.

I encountered that issue already previously.

Fixed by remove ncrunchsolution files. "v3.ncrunchsolution"
"ncrunchsolution.user"


It was not because of TEST run, no tests were running, i even tried unload+disable test assembly in ncrunch+vs configuration.
It feels like happened because nrcunch tried to "discover" tests.


Removed files attached here, should I play around with them to understand where the issue is?

Quote:

<SolutionConfiguration>
<Settings>
<AllowParallelTestExecution>True</AllowParallelTestExecution>
<HotSpotsLineExclusionList />
<SolutionConfigured>True</SolutionConfigured>
</Settings>
</SolutionConfiguration>


Quote:


<SolutionConfiguration>
<Settings>
<AutoEnable>True</AutoEnable>
<CurrentEngineMode>Run UnitTests automatically [Global]</CurrentEngineMode>
<HotSpotsTreeShowExcludedComponents>True</HotSpotsTreeShowExcludedComponents>
<HotSpotsWindowSplitterDistance>29.8928909301758%</HotSpotsWindowSplitterDistance>
<ProcessingQueueSplitterDistance>49.9349784851074%</ProcessingQueueSplitterDistance>
<StatusIndicatorSplitterDistance>15%</StatusIndicatorSplitterDistance>
<TestListTreeLayout>
<Column>
<Name>TestFriendlyName</Name>
<Width>690</Width>
</Column>
<Column>
<Name>ExecutionTime</Name>
<Width>111</Width>
</Column>
</TestListTreeLayout>
<TestsWindowMenuOptions>
<VerticalSplitMenuOption>true</VerticalSplitMenuOption>
<ShowPassingTestsMenuOption>true</ShowPassingTestsMenuOption>
<ShowFailingTestsMenuOption>true</ShowFailingTestsMenuOption>
<ShowUnexecutedTestsMenuOption>true</ShowUnexecutedTestsMenuOption>
<ShowIgnoredTestsMenuOption>true</ShowIgnoredTestsMenuOption>
</TestsWindowMenuOptions>
<TestsWindowSplitterDistance>52.4256629943848%</TestsWindowSplitterDistance>
<TestsWindowTreeLayout>
<Column>
<Name>Name</Name>
<Width>809</Width>
</Column>
<Column>
<Name>Status</Name>
<Width>18</Width>
</Column>
<Column>
<Name>LastExecutionTime</Name>
<Width>197</Width>
</Column>
<Column>
<Name>GridNode</Name>
<Width>179</Width>
</Column>
</TestsWindowTreeLayout>
<TestsWindowTreeSortOrder>
<Sort>
<Name>Name</Name>
<Order>Ascending</Order>
</Sort>
</TestsWindowTreeSortOrder>
</Settings>
</SolutionConfiguration>
Remco
#4 Posted : Tuesday, May 16, 2023 12:24:44 PM(UTC)
Rank: NCrunch Developer

Groups: Administrators
Joined: 4/16/2011(UTC)
Posts: 6,970

Thanks: 929 times
Was thanked: 1256 time(s) in 1169 post(s)
Thanks for these extra details.

I think this was caused by some kind of display issue. It may be related to the saved UI layouts in the config files. If the problem is no longer bothering you, I'm happy to leave this be unless it appears for you again.
fidel
#5 Posted : Tuesday, May 16, 2023 12:27:44 PM(UTC)
Rank: Newbie

Groups: Registered
Joined: 5/15/2023(UTC)
Posts: 8
Location: Ukraine

I can try discover more, if you interested to fix it.
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.106 seconds.
Trial NCrunch
Take NCrunch for a spin
Do your fingers a favour and supercharge your testing workflow
Free Download