Skip to content

Instantly share code, notes, and snippets.

@merbla
Last active August 29, 2015 14:11
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save merbla/6c993af92e3c82b4f307 to your computer and use it in GitHub Desktop.
Save merbla/6c993af92e3c82b4f307 to your computer and use it in GitHub Desktop.
Issue with Xamarin iOS/Reactive Extensions with ARM64/ARM7 in 8.0

##Reproduction

###The issue is does not occur on the emulator

  • Create a new iOS project (iOS, Unified, Universal app)
  • Add Rx Components from Xamarin Store (2.2.1)
  • Add code such as
  var oddNumbers = Observable.Range (0, 10)
  	.Where (i => i % 2 == 0)
  	.Subscribe (
  		Console.WriteLine, 
  		() => Console.WriteLine ("Completed"));
  • Ensure deployment is targeting ARM64 or ARM7s or ARM7
  • Deploy to an ARM64 device
  • Run the app and should throw a similar exception to
System.InvalidOperationException: Disposable has already been assigned.
  at System.Reactive.Disposables.SingleAssignmentDisposable.set_Disposable (IDisposable value) [0x00000] in <filename unknown>:0

####Environment Details

Xamarin.Android
Version: 4.20.0.28 (Business Edition)
Android SDK: /Users/******/Library/Developer/Xamarin/android-sdk-mac_x86
	Supported Android versions:
		2.1   (API level 7)
		2.2   (API level 8)
		2.3   (API level 10)
		3.1   (API level 12)
		4.0   (API level 14)
		4.0.3 (API level 15)
Java SDK: /usr
java version "1.6.0_65"
Java(TM) SE Runtime Environment (build 1.6.0_65-b14-466.1-11M4716)
Java HotSpot(TM) 64-Bit Server VM (build 20.65-b04-466.1, mixed mode)

Apple Developer Tools
Xcode 6.0.1 (6528)
Build 6A317

Xamarin.iOS
Version: 8.4.0.47 (Business Edition)
Hash: 7244769
Branch: 
Build date: 2014-12-11 14:54:30-0500

Xamarin.Mac
Version:

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.1
@moljac
Copy link

moljac commented Jan 16, 2015

Hi

First possible problem: You have Xamarin.iOS 8.4. This might be an issue.

Second problem: Code snippet does not compile on stable channel

https://github.com/moljac/Xamarin.Tools.Tests/blob/master/logs/2015-01-16-Xamarin.iOS.Unified-Rx.net/Empty/AppDelegate.cs#L48

I'll dive deeper

thanks

regards

mel

@moljac
Copy link

moljac commented Jan 16, 2015

My bad I used fully qualified classname and extension methods failed. It compiles and I'm checking this issue

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment