Re: [nunit-discuss] Nunit-Agent hang under OpenCover

94 views
Skip to first unread message

Charlie Poole

unread,
Sep 2, 2012, 10:17:22 AM9/2/12
to nunit-...@googlegroups.com
Hi Shaun,

The problem described in issue #118 is fairly complex. The user is running two
assemblies under two different processes, so there are two instances
of nunit-agent
running. It may be a valid issue, but it will be easier to deal with a
simpler example.

Issue #94 has a number of folks piling on and it's hard to tell what
they have in common.

One user is making use of /noshadow in order to make tests visible to OpenCover.
As I said offline, the /noshadow copy is deprecated. It requires copying files
around to make it work and is only needed in extremely rare cases.
Unfortunately,
it _sounds_ like something people want and is overused. It is likely
to be removed
in 3.0 unless somebody comes up with a definitive reason for keeping
it. We should
filter out the issues that involve this option, since it introduces
additional problems
problems that may confuse the underlying issue. Once any other issues are
resolved, we might come back to /noshadow.

We have had various problems in the past with nunit-agent hanging and I've
made a number of fixes. I haven't been able to narrow down those that remain,
but I have a sense that many of them involve running under a 64-bit versuib if
Windows. Is that the case with your reports as well?

Charlie
On Sat, Sep 1, 2012 at 11:31 PM, Shaun Wilde <shaun.wi...@gmail.com> wrote:
> I am getting reports of Nunit-Agent hanging when the process is being run
> under OpenCover
>
> https://github.com/sawilde/opencover/issues/94
> https://github.com/sawilde/opencover/issues/118
>
> NOTE: I have never been able to repeat the issue and so I've had trouble
> determining the problem.
>
> Now I am not sure if OpenCover is directly responsible for these hangs or is
> just exacerbating a known issue as reports of nunit-agent hangs have been
> reported independently. Originally I used to think OpenCover was responsible
> as the profiler used to introduce a thread which was then reported as
> running and I have since reworked the OpenCover memory management so as to
> not require this thread., however the problem still exists for some people
> and yet has cleared up for others.
>
> So have members of this user group seen this issue i.e. do they use
> OpenCover and have seen this or do they know of other scenarios that cause
> nunit-agent to hang?
>
> Thanks
>
> --
> You received this message because you are subscribed to the Google Groups
> "NUnit-Discuss" group.
> To view this discussion on the web visit
> https://groups.google.com/d/msg/nunit-discuss/-/gfmPskQzg9cJ.
> To post to this group, send email to nunit-...@googlegroups.com.
> To unsubscribe from this group, send email to
> nunit-discus...@googlegroups.com.
> For more options, visit this group at
> http://groups.google.com/group/nunit-discuss?hl=en.

Shaun Wilde

unread,
Sep 7, 2012, 5:07:10 PM9/7/12
to nunit-...@googlegroups.com
Hi Charlie

64 bit definitely seems to be a theme in the reports.

The guy having issues (#118) has created a memory dump of the hung nunit-agent process and also reports that NUnit (via OpenCover) is returning -100.


I intend to have a look at it but I thought it might be interesting to you as well

Regards

Shaun

PS this time I have checked the "Email updates to me" and won't be so tardy in response next time.
Reply all
Reply to author
Forward
0 new messages