Bug 15653 - 'Xamarin.iOS Build Host' gets crash.
Summary: 'Xamarin.iOS Build Host' gets crash.
Status: VERIFIED FIXED
Alias: None
Product: iOS
Classification: Xamarin
Component: General ()
Version: 7.0.4.x
Hardware: Macintosh Mac OS
: High major
Target Milestone: 7.2.0 (iOS 7.1)
Assignee: PJ
URL:
Depends on:
Blocks:
 
Reported: 2013-10-24 11:21 UTC by Saurabh
Modified: 2013-12-18 12:35 UTC (History)
4 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:
VERIFIED FIXED

Description Saurabh 2013-10-24 11:21:15 UTC
[Condition] No user is logged in

On opening 'Xamarin.iOs Build Host' by double clicking, it gets crashes in few seconds.

Screenncast: http://www.screencast.com/t/9Go34YDjsYFS
mtbserver log: https://gist.github.com/AkhileshKumar01/5f673b3ea4bb558ebd97
System log: https://gist.github.com/AkhileshKumar01/04a0073a62de305e82ee

Environment info:
All Mac
X.iOS 7.0.4.118

Full environment info of one system:
=== Xamarin Studio ===

Version 4.1.7 (build 1532)
Installation UUID: b1fc3b76-cf00-405e-a0a1-3839ac11fe6d
Runtime:
	Mono 3.2.4 ((no/f163333)
	GTK+ 2.24.20 theme: Raleigh
	GTK# (2.12.0.0)
	Package version: 302040000

=== Apple Developer Tools ===

Xcode 5.0.1 (3335.6)
Build 5A2034a

=== Xamarin.Android ===

Version: 4.10.1 (Starter Edition)
Android SDK: /Users/apple/Desktop/android-sdk-macosx
	Supported Android versions:
		2.1   (API level 7)
		2.2   (API level 8)
		2.3   (API level 10)
		3.1   (API level 12)
		3.2   (API level 13)
		4.0   (API level 14)
		4.0.3 (API level 15)
		4.1   (API level 16)
		4.2   (API level 17)
		4.3   (API level 18)
Java SDK: /usr
java version "1.7.0_25"
Java(TM) SE Runtime Environment (build 1.7.0_25-b15)
Java HotSpot(TM) 64-Bit Server VM (build 23.25-b01, mixed mode)

=== Xamarin.Mac ===

Xamarin.Mac: 1.6.19

=== Xamarin.iOS ===

Version: 7.0.4.118 (Starter Edition)
Hash: 7c70ef3
Branch: 
Build date: 2013-23-10 21:47:09-0400

=== Build Information ===

Release ID: 401071532
Git revision: 9e905faa6b92fde2b459f4dda1c64d471b974145
Build date: 2013-10-24 00:51:15+0000
Xamarin addins: 56bd5ed124caa9e066c27f4e8c7da665fc4a51eb

=== Operating System ===

Mac OS X 10.9.0
Darwin Apples-iMac.local 13.0.0 Darwin Kernel Version 13.0.0
    Thu Sep 19 22:22:27 PDT 2013
    root:xnu-2422.1.72~6/RELEASE_X86_64 x86_64
Comment 1 Jérémie Laval 2013-10-24 11:50:40 UTC
Hey,

Two questions:

 - Was this log the result of trying to launch the build host app once or several time?
 - Are you really sure you were not logged in? It appears the activation service manages to find a license for a user but no more license is available: "Activation error: Failed to update iOS license: You have reached the maximum number of activations. (TooManyMachines)"
Comment 2 Jérémie Laval 2013-10-24 12:02:52 UTC
I could successfully launch and interact with the app in both scenario:
   - No user logged in and no license, trying to activate a valid business license
   - No user logged in and no license, trying to activate a business license that has been activated too many times
Comment 3 PJ 2013-10-24 13:11:53 UTC
This appears to be a combination of being logged out *and* having an invalid license.

Here's a screencast showing the difference between having a valid license and an invalid license:
http://screencast.com/t/bMk5mbzRUb6i

Here's the log:
[24-Oct-2013 13:07:35] Activation error: Running license sync for iOS
[24-Oct-2013 13:07:35] Warning: Activation error: Not logged in, but found iOS license file. Leaving it... for now.
[24-Oct-2013 13:07:35] Normal: Starting RefreshStatus : full : True showSpinner : True
[24-Oct-2013 13:07:35] Normal: RefreshStatus Completed.
[24-Oct-2013 13:07:35] Activation error: Read license: iOS Business 2014-12-14 16:31:35Z
[24-Oct-2013 13:08:49] Activation error: Running license sync for iOS
[24-Oct-2013 13:08:49] Warning: Activation error: Not logged in, but found iOS license file. Leaving it... for now.
[24-Oct-2013 13:08:49] Normal: Starting RefreshStatus : full : True showSpinner : True
[24-Oct-2013 13:08:50] Normal: RefreshStatus Completed.
[24-Oct-2013 13:08:50] Activation error: Read license: iOS Business 2014-12-14 16:31:35Z
[24-Oct-2013 13:09:07] Activation error: Using staging servers
[24-Oct-2013 13:09:07] Activation error: Running license sync for iOS
[24-Oct-2013 13:09:07] Warning: Activation error: Not logged in, but found iOS license file. Leaving it... for now.
[24-Oct-2013 13:09:07] Normal: Starting RefreshStatus : full : True showSpinner : True
[24-Oct-2013 13:09:07] Normal: RefreshStatus Completed.
[24-Oct-2013 13:09:08] Error: Activation error: Read invalid license: iOS Unknown 1/1/0001 12:00:00 AM. Invalid license.  Please reactivate Xamarin.iOS (MT9999)
[24-Oct-2013 13:09:11] Activation error: Using staging servers
[24-Oct-2013 13:09:11] Activation error: Running license sync for iOS
[24-Oct-2013 13:09:11] Warning: Activation error: Not logged in, but found iOS license file. Leaving it... for now.
[24-Oct-2013 13:09:11] Normal: Starting RefreshStatus : full : True showSpinner : True
[24-Oct-2013 13:09:11] Normal: RefreshStatus Completed.
[24-Oct-2013 13:09:12] Error: Activation error: Read invalid license: iOS Unknown 1/1/0001 12:00:00 AM. Invalid license.  Please reactivate Xamarin.iOS (MT9999)
[24-Oct-2013 13:09:33] Activation error: Running license sync for iOS
[24-Oct-2013 13:09:33] Warning: Activation error: Not logged in, but found iOS license file. Leaving it... for now.
[24-Oct-2013 13:09:33] Normal: Starting RefreshStatus : full : True showSpinner : True
[24-Oct-2013 13:09:33] Normal: RefreshStatus Completed.
[24-Oct-2013 13:09:34] Activation error: Read license: iOS Business 2014-12-14 16:31:35Z


Additional Question:
Why is there an activation *error* in that last line? "Activation error: Read license: iOS Business 2014-12-14 16:31:35Z" - I
Comment 4 Jérémie Laval 2013-10-24 13:41:35 UTC
With PJ setup I was able to reproduce the issue.

This seems to be both an activation problem (something is triggering an exception) and an Xwt problem showing that exception in the dialog (which makes the application crashes badly).

I worked around the Xwt problem in monotouch master and 7.0.4.

The issues left are in the activation code/workflow:

   - Two "Unhandled activation error" dialogs are shown during the process: http://screencast.com/t/TEBlwSsZ
   - Invalid license if not correctly handled.

Assigning mhutch.
Comment 5 Jérémie Laval 2013-10-24 14:53:27 UTC
In the meantime, you can workaround the issue by deleting manually your MonoTouch license file (rm -f ~/Library/MonoTouch/License.v2).
Comment 6 Mikayla Hutchinson [MSFT] 2013-11-06 17:03:43 UTC
Can you repro this with the tip of md-addins/license-sync?
Comment 7 Mikayla Hutchinson [MSFT] 2013-11-06 17:04:15 UTC
It shouldn't be a problem because the workflow dialog now makes the user log in.
Comment 8 PJ 2013-11-19 16:45:04 UTC
This bug was targeted for a past milestone, moving to the next non-hotfix active milestone.
Comment 9 Saurabh 2013-12-18 12:35:27 UTC
We have checked this issue with X.iOS 7.0.6.164

Now, if user is not logged-in then On opening 'Xamarin.iOs Build Host' by double clicking, it does not crash and log In window appears.

Screencast: http://screencast.com/t/cb8d0lRogeA

X.iOS 7.0.6.164

Hence, closing this issue.