Bug 44155 - ContextActions.Add causes indefinite hang
Summary: ContextActions.Add causes indefinite hang
Status: RESOLVED FIXED
Alias: None
Product: Forms
Classification: Xamarin
Component: Forms ()
Version: 2.3.1
Hardware: Macintosh Mac OS
: Normal critical
Target Milestone: ---
Assignee: Bugzilla
URL:
: 44177 ()
Depends on:
Blocks:
 
Reported: 2016-09-09 18:53 UTC by Robert Henden
Modified: 2016-10-19 19:14 UTC (History)
6 users (show)

Tags: ac
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 FIXED

Description Robert Henden 2016-09-09 18:53:01 UTC
# Steps to reproduce
With latest X.Studio beta, Xcode 8 and iOS10 installed.
Download the list view example - https://developer.xamarin.com/samples/xamarin-forms/UserInterface%5CListView%5CInteractivity/

Run on iOS10 simulator - any of them will do. App hangs indefinitely.
Run on iOS9 simulator - any of them will do. App launches and runs as normal.

Comment out the ContextActions.Add 
Run on iOS10 simulator - any of them will do. App launches and runs as normal.


# Expected behavior
Able to add ContextActions without app hanging.

# Actual behavior
Not able to add ContextActions without app hanging.

# Supplemental info (logs, images, videos)


# Test environment (full version information)
Comment 1 Robert Henden 2016-09-09 18:59:06 UTC
NB No other factors (X.S version, X.F version, Xcode version, etc.) were changed other than trying with/without ContextActions.Add

Details:

Environment:

Xamarin Studio Community
Version 6.1 (build 5436)
Installation UUID: a2eb7661-6c76-442b-80df-7c6679c8bae5
Runtime:
	Mono 4.6.0 (mono-4.6.0-branch/dea2155) (64-bit)
	GTK+ 2.24.23 (Raleigh theme)

	Package version: 406000243

NuGet
Version: 3.4.3.0

Xamarin.Profiler
Not Installed

Apple Developer Tools
Xcode 8.0 (11246)
Build 8A218a

Xamarin.iOS
Version: 10.0.0.4 (Xamarin Studio Community)
Hash: d1ee3ba
Branch: xcode8
Build date: 2016-09-08 02:32:05-0400

Xamarin.Android
Version: 7.0.0.15 (Xamarin Studio Community)
Android SDK: /Users/roberthenden/Library/Developer/Xamarin/android-sdk-macosx
	Supported Android versions:
		6.0 (API level 23)

SDK Tools Version: 25.1.2
SDK Platform Tools Version: 24.0.0


Simulator:

Version 10.0 (SimulatorApp-700.5.3

Xcode:

Version 8.0 (8A218a)


For more info on works vs !works:

Works:

public class textViewCell : ViewCell{
		public textViewCell()
		{
[...]
			//this.ContextActions.Add (moreAction);
			//this.ContextActions.Add (deleteAction);
			View = layout;
		}
}

!Works

public class textViewCell : ViewCell{
		public textViewCell()
		{
[...]
			this.ContextActions.Add (moreAction);
			this.ContextActions.Add (deleteAction);
			View = layout;
		}
}
Comment 2 Leo 2016-09-15 18:54:55 UTC
After a lot of headache I found out that this is the culprit of the problems users who updated to iOS 10 are seeing when using our app. The problem is that the app is already on store and every person that update to iOS 10 is seeing those hangs. If I run on simulator, my app process goes to 100% and hangs too. That is a huge issue guys.
Comment 3 Marius Kahmen 2016-09-15 20:19:25 UTC
@Leo just update to the latest XForms version (stable). It's a hotfix for it. Still some crashes (e.g. when swiping to show a second contextAction, while another one is already visible) but at least it fixes the hangs.
Comment 4 Leo 2016-09-16 14:57:25 UTC
@Marius, thank you! I was actually having another problem with the latest version but it ended up being easier to solve. The new bug (crash when try to swipe while another is open) it bad but not as bad as the hang. I am really starting to regret choosing XF to develop a public app :/
Comment 5 Marius Kahmen 2016-09-16 15:00:26 UTC
yeah this time, the hotfix came waaaay too late...
Comment 6 Robert Henden 2016-09-16 17:15:34 UTC
@Marius & @Leo, so possibly more of a lukewarmfix? 

I can confirm that using the latest stable Xamarin.Forms I was able to successfully add and use context actions on iOS10 in the example solution as well as in my own solutions. NB Only tested using the iOS10 simulators (have not yet updated my test device to iOS10).

Tested using:

=== Xamarin Studio Community ===

Version 6.1 (build 5441)
Installation UUID: a2eb7661-6c76-442b-80df-7c6679c8bae5
Runtime:
	Mono 4.6.0 (mono-4.6.0-branch/746756c) (64-bit)
	GTK+ 2.24.23 (Raleigh theme)

	Package version: 406000245

=== NuGet ===

Version: 3.4.3.0

=== Xamarin.Profiler ===

Not Installed

=== Apple Developer Tools ===

Xcode 8.0 (11246)
Build 8A218a

=== Xamarin.Android ===

Version: 7.0.0.18 (Xamarin Studio Community)
Android SDK: /Users/roberthenden/Library/Developer/Xamarin/android-sdk-macosx
	Supported Android versions:
		6.0 (API level 23)

SDK Tools Version: 25.1.2
SDK Platform Tools Version: 24.0.0
SDK Build Tools Version: 23.0.2

Java SDK: /usr
java version "1.7.0_71"
Java(TM) SE Runtime Environment (build 1.7.0_71-b14)
Java HotSpot(TM) 64-Bit Server VM (build 24.71-b01, mixed mode)

Android Designer EPL code available here:
https://github.com/xamarin/AndroidDesigner.EPL

=== Xamarin Android Player ===

Not Installed

=== Xamarin.Mac ===

Version: 2.10.0.99 (Xamarin Studio Community)

=== Xamarin.iOS ===

Version: 10.0.0.6 (Xamarin Studio Community)
Hash: 6c3fee4
Branch: xcode8
Build date: 2016-09-09 13:01:32-0400

=== Build Information ===

Release ID: 601005441
Git revision: 68292d1ab289911c815ddc715dd7cc29a9752f9f
Build date: 2016-09-09 04:43:23-04
Xamarin addins: ed25d008672663eeb9db55f1ccecb3c24d2fd3b2
Build lane: monodevelop-lion-cycle8

=== Operating System ===

Mac OS X 10.12.0
Darwin Roberts-MacBook-Pro.local 16.0.0 Darwin Kernel Version 16.0.0
    Mon Aug 29 17:56:20 PDT 2016
    root:xnu-3789.1.32~3/RELEASE_X86_64 x86_64

=== Enabled user installed addins ===

MonoGame Addin 3.6.0.906
Comment 7 Samantha Houts [MSFT] 2016-09-21 18:00:24 UTC
*** Bug 44177 has been marked as a duplicate of this bug. ***
Comment 8 Samantha Houts [MSFT] 2016-10-19 19:14:30 UTC
Should be fixed in 2.3.2. Thank you!