Bug 3358 - System.Runtime.Remoting.RemotingException: Unix transport error.
Summary: System.Runtime.Remoting.RemotingException: Unix transport error.
Status: RESOLVED NORESPONSE
Alias: None
Product: Xamarin Studio
Classification: Desktop
Component: NUnit ()
Version: 5.4
Hardware: Macintosh Mac OS
: Normal minor
Target Milestone: ---
Assignee: Mike Krüger
URL:
Depends on:
Blocks:
 
Reported: 2012-02-10 08:22 UTC by Marek Safar
Modified: 2014-12-12 11:16 UTC (History)
3 users (show)

Tags:
Is this bug a regression?: ---
Last known good build:

Notice (2018-05-24): bugzilla.xamarin.com is now in read-only mode.

Please join us on Visual Studio Developer Community and in the Xamarin and Mono organizations on GitHub to continue tracking issues. Bugzilla will remain available for reference in read-only mode. We will continue to work on open Bugzilla bugs, copy them to the new locations as needed for follow-up, and add the new items under Related Links.

Our sincere thanks to everyone who has contributed on this bug tracker over the years. Thanks also for your understanding as we make these adjustments and improvements for the future.


Please create a new report on Developer Community or GitHub with your current version information, steps to reproduce, and relevant error messages or log files if you are hitting an issue that looks similar to this resolved bug and you do not yet see a matching new report.

Related Links:
Status:
RESOLVED NORESPONSE

Description Marek Safar 2012-02-10 08:22:49 UTC
1. Open master /mono/mcs/class/corlib/corlib-tests-net_4_5.csproj
2. Find unit test called MonoTests.System.Runtime.CompilerServices.AsyncVoidMethodBuilderTest.SetException
3. Run it

It always terminates whole nunit session with the System.Runtime.Remoting.RemotingException: Unix transport error.
Comment 1 Mike Krüger 2012-02-16 01:32:51 UTC
I can't find the corlib tests in master - do you work on a branch?
Comment 2 Marek Safar 2012-02-16 03:48:26 UTC
They are in master, see 

https://github.com/mono/mono/blob/master/mcs/class/corlib/corlib-tests-net_4_0.csproj
Comment 3 Alan McGovern 2012-03-08 10:26:44 UTC
Generally speaking this is because there is an unhandled exception which terminates the test runner process. Could this be the case here?
Comment 4 Marek Safar 2012-03-08 10:28:24 UTC
Same assembly runs fine with nunit-console
Comment 5 Mike Krüger 2012-04-27 04:07:31 UTC
Does this work with the current nunit runner ?
I've changed it much since the bug was opened - but I've still no system where I can run these tests :(
Comment 6 PJ 2013-11-19 17:05:05 UTC
This bug has been in the NEEDINFO state with no changes for the last 90 days. Can we put this back into the NEW or CONFIRMED state, or are we still awaiting response?

If there is no change in the status of this bug over the next two weeks, this bug will be marked as NORESPONSE.
Comment 7 PJ 2013-12-05 18:35:28 UTC
This bug has not been changed from the NEEDINFO state since my previous comment, marking as RESOLVED NORESPONSE.

Please feel free to REOPEN this bug at any time if you are still experiencing the issue. Please add the requested information and set the bug back to the NEW (or CONFIRMED) state.
Comment 8 Tom Opgenorth 2014-12-09 16:32:41 UTC
Had something similar to this just happen to me with OS X 10.10.2, Xamarin Studio, NUnit, and UITest.  Here is a screenshot from when I try to run the tests through Xamarin Studio:

https://dl.dropboxusercontent.com/u/24991646/XamarinBugzillaScreenshots/Screenshot%202014-12-09%2013.39.12.png

Here is the console output when I try to run the tests using nunit-console.exe:

$ mono /Library/Frameworks/Mono.framework/Versions/3.10.0/lib/mono/4.5/nunit-console.exe bin/Debug/CreditCardValidation.Tests.dll 
NUnit version 2.4.8
Copyright (C) 2002-2007 Charlie Poole.
Copyright (C) 2002-2004 James W. Newkirk, Michael C. Two, Alexei A. Vorontsov.
Copyright (C) 2000-2002 Philip Craig.
All Rights Reserved.

Runtime Environment - 
   OS Version: Unix 14.1.0.0
  CLR Version: 4.0.30319.17020 ( 3.10.0 ((detached/92c4884 Thu Nov 13 23:27:38 EST 2014) )


Tests run: 0, Failures: 0, Not run: 0, Time: 0.013 seconds






I've zipped up my entire solution. It's a big big (152MB) but you should be able to download from here: https://dl.dropboxusercontent.com/u/24991646/XamarinBugzillaScreenshots/Bugzilla-3358.zip


Here is the screenshot from "About this Mac":
https://dl.dropboxusercontent.com/u/24991646/XamarinBugzillaScreenshots/Screenshot%202014-12-09%2014.19.10.png


Here is the information from "About Xamarin Studio":

=== Xamarin Studio ===

Version 5.5.4 (build 15)
Installation UUID: ad9490ea-6efe-4d0a-9649-80d5ac155ab4
Runtime:
	Mono 3.10.0 ((detached/92c4884)
	GTK+ 2.24.23 (Raleigh theme)

	Package version: 310000031

=== Apple Developer Tools ===

Xcode 6.1.1 (6611)
Build 6A2008a

=== Xamarin.iOS ===

Version: 8.4.0.43 (Business Edition)
Hash: 840a925
Branch: 
Build date: 2014-11-16 21:03:22-0500

=== Xamarin.Android ===

Version: 4.20.0.28 (Business Edition)
Android SDK: /Users/tom/android-sdk-macosx
	Supported Android versions:
		2.3    (API level 10)
		4.0.3  (API level 15)
		4.1    (API level 16)
		4.2    (API level 17)
		4.3    (API level 18)
		4.4    (API level 19)
		4.4.87 (API level 20)
		5.0    (API level 21)
Java SDK: /usr
java version "1.7.0_55"
Java(TM) SE Runtime Environment (build 1.7.0_55-b13)
Java HotSpot(TM) 64-Bit Server VM (build 24.55-b03, mixed mode)

=== Xamarin.Mac ===

Version: 1.10.0.18 (Business Edition)

=== Build Information ===

Release ID: 505040015
Git revision: f93940a35458a18052f1a25e106e62ca970d9c40
Build date: 2014-11-19 15:32:41-05
Xamarin addins: dc23cbd91a3a0e1d326328e1229e86c942a49ec8
=== Xamarin Studio ===

Version 5.5.4 (build 15)
Installation UUID: ad9490ea-6efe-4d0a-9649-80d5ac155ab4
Runtime:
	Mono 3.10.0 ((detached/92c4884)
	GTK+ 2.24.23 (Raleigh theme)

	Package version: 310000031

=== Apple Developer Tools ===

Xcode 6.1.1 (6611)
Build 6A2008a

=== Xamarin.iOS ===

Version: 8.4.0.43 (Business Edition)
Hash: 840a925
Branch: 
Build date: 2014-11-16 21:03:22-0500

=== Xamarin.Android ===

Version: 4.20.0.28 (Business Edition)
Android SDK: /Users/tom/android-sdk-macosx
	Supported Android versions:
		2.3    (API level 10)
		4.0.3  (API level 15)
		4.1    (API level 16)
		4.2    (API level 17)
		4.3    (API level 18)
		4.4    (API level 19)
		4.4.87 (API level 20)
		5.0    (API level 21)
Java SDK: /usr
java version "1.7.0_55"
Java(TM) SE Runtime Environment (build 1.7.0_55-b13)
Java HotSpot(TM) 64-Bit Server VM (build 24.55-b03, mixed mode)

=== Xamarin.Mac ===

Version: 1.10.0.18 (Business Edition)

=== Build Information ===

Release ID: 505040015
Git revision: f93940a35458a18052f1a25e106e62ca970d9c40
Build date: 2014-11-19 15:32:41-05
Xamarin addins: dc23cbd91a3a0e1d326328e1229e86c942a49ec8

=== Operating System ===

Mac OS X 10.10.2
Darwin bushmaster 14.1.0 Darwin Kernel Version 14.1.0
    Sun Nov 30 22:30:35 PST 2014
    root:xnu-2782.10.66~2/RELEASE_X86_64 x86_64


=== Operating System ===

Mac OS X 10.10.2
Darwin bushmaster 14.1.0 Darwin Kernel Version 14.1.0
    Sun Nov 30 22:30:35 PST 2014
    root:xnu-2782.10.66~2/RELEASE_X86_64 x86_64
Comment 9 Tom Opgenorth 2014-12-09 16:35:02 UTC
FWIW, I notice that the nunit-console.exe version is 2.4.8, but installed NUnit 2.6.3.
Comment 10 Tom Opgenorth 2014-12-09 16:41:39 UTC
Just tweaking the Version & Platform to match my existing environment.
Comment 11 Tom Opgenorth 2014-12-09 16:55:39 UTC
This might or might not be related, but it seems that tests are failing in Test Cloud a well:


https://testcloud.xamarin.com/app/bd1a0247-f75e-4e9d-8e10-01c4f8e73ce2/

https://testcloud.xamarin.com/app/bd0ed3c9-1798-4f6d-9135-c74e0fcc1bfd/

To be complete, I've also given the Test Cloud team a heads up about this.
Comment 12 Tom Opgenorth 2014-12-10 13:57:27 UTC
I tried to work around this problem, no luck. This has effectively blocked me from doing any work with UITest. I've "upgraded" the importance to "Normal - blocker" to reflect this.

I've taken all of the following steps to work around this issue - none of them helped:

* Switched to the alpha channel (Xamarin Studio)
* Switched to the beta channel (Xamarin Studio)
* Completely uninstalled Xamarin from my Mac as per this guide: http://developer.xamarin.com/guides/cross-platform/getting_started/installation/uninstalling_xamarin/ and then reinstalled
Comment 13 Alan McGovern 2014-12-10 16:30:48 UTC
Always include the log files when reporting issues :)

I ran the testcase locally and this is the relevant part of the log: https://gist.github.com/alanmcgovern/cb098b0ae01a06fd4543

It looks like the same issue i attempted to fix in:

https://github.com/mono/monodevelop/commit/796e69d72493b8ebef3401bf72e00058d623e54d#diff-82e2fdff73da8096d02114b11ae58fb5

and

https://github.com/mono/monodevelop/commit/e40fd284c8e6d8b00cb372e0ef371a0aebb35351#diff-82e2fdff73da8096d02114b11ae58fb5

I might not have time to look into it myself, but that should be a good starting point for investigating the issue.
Comment 14 Tom Opgenorth 2014-12-10 18:20:24 UTC
It seems that the source of the problem is the NUnit Test Adapter NuGet package, either of these two:

https://www.nuget.org/packages/NUnitTestAdapter/
https://www.nuget.org/packages/NUnitTestAdapter.WithFramework/

When I remove the NuGet package from the CSPROJ, everything works in Xamarin Studio. If you add either of these two back, then the test fail with the described message.

Adjusted the importance down to "Normal - minor" as there is a way around it, and Xamarin is not responsible for these two NuGet packages. 

This will be a problem for teams that are using UITest in both Xamarin Studio and Visual Studio as it means that they cannot share CSPROJ files between the two platforms.

Logged Github against UITest on this, see issue 277.
Comment 15 Tom Opgenorth 2014-12-10 18:50:20 UTC
Also logged issue 57 against the VS NUnit Adapter plugin: https://github.com/nunit/nunit-vs-adapter/issues/57
Comment 16 Tom Opgenorth 2014-12-12 11:16:31 UTC
The issue that I experienced is with the VS Unit Test Adapter. Returning the status back to RESOLVED - NORESPONSE.