Bug 53522 - Continuous loading is observed while creating Workbook template for Xamarin.android. (Mac OS)
Summary: Continuous loading is observed while creating Workbook template for Xamarin.a...
Status: RESOLVED FIXED
Alias: None
Product: Workbooks & Inspector
Classification: Xamarin
Component: Agent: Android ()
Version: master
Hardware: PC Mac OS
: --- normal
Target Milestone: ---
Assignee: Sandy Armstrong [MSFT]
URL:
Depends on:
Blocks:
 
Reported: 2017-03-20 11:48 UTC by Prasad Raghorte
Modified: 2017-09-14 22:09 UTC (History)
7 users (show)

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


Attachments
Logs generated in Xamarin studio during creation of workbook template for Xamarin.android. (3.97 KB, application/zip)
2017-03-20 11:48 UTC, Prasad Raghorte
Details
Screenshot (486.00 KB, image/png)
2017-03-20 11:50 UTC, Prasad Raghorte
Details
Updated logs of workbook from logs folder in library. (454.28 KB, application/zip)
2017-03-21 04:52 UTC, Prasad Raghorte
Details
Screenshot of logs folder containing workbook logs. (231.85 KB, image/png)
2017-03-21 08:59 UTC, Prasad Raghorte
Details
Inspector Logs (7.70 KB, application/zip)
2017-03-22 07:21 UTC, Prasad Raghorte
Details
AVD Manager (22.18 KB, image/png)
2017-08-07 16:15 UTC, Bojan Rajkovic [MSFT]
Details
Client + AVD (58.10 KB, image/png)
2017-08-07 16:16 UTC, Bojan Rajkovic [MSFT]
Details
Inspector logs (3.02 KB, text/plain)
2017-08-10 09:15 UTC, Jacky Waswani
Details


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 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 Prasad Raghorte 2017-03-20 11:48:52 UTC
Created attachment 20454 [details]
Logs generated in Xamarin studio during creation of workbook template for Xamarin.android.

Steps to Reproduce:
1. Open any android app solution in Xamarin studio.
2. Start Xamarin workbook and select Xamarin.android.
3. Click on Create Workbook and observe.

Expected Result : Workbook template for Xamarin.android should be opened.

Actual result: Continuous loading is observed after clicki8ng "Create Workbook". (We have waited almost an hour.)

Environment:
Xamarin Studio Enterprise
Version 6.3 (build 848)
Installation UUID: 02abd52f-d54e-47dd-91de-9b9360a27c1b
Runtime:
	Mono 4.8.0 (mono-4.8.0-branch/9d74414) (64-bit)
	GTK+ 2.24.23 (Raleigh theme)

	Package version: 408000524

NuGet
Version: 3.5.0.0

Xamarin.Profiler
Version: 1.4.0
Location: /Applications/Xamarin Profiler.app/Contents/MacOS/Xamarin Profiler

Apple Developer Tools
Xcode 8.2.1 (11766.1)
Build 8C1002

Xamarin.iOS
Version: 10.8.0.26 (Visual Studio Enterprise Trial)
Hash: 0e9e791
Branch: d15-1
Build date: 2017-03-17 11:57:14-0400

Xamarin.Android
Version: 7.2.0.6 (Visual Studio Enterprise Trial)
Android SDK: /Users/globallogic/Library/Developer/Xamarin/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)
		5.1    (API level 22)
		6.0    (API level 23)
		7.0    (API level 24)
		7.1    (API level 25)

SDK Tools Version: 25.2.5
SDK Platform Tools Version: 25.0.3
SDK Build Tools Version: 25.0.1

Java SDK: /usr
java version "1.8.0_101"
Java(TM) SE Runtime Environment (build 1.8.0_101-b13)
Java HotSpot(TM) 64-Bit Server VM (build 25.101-b13, mixed mode)

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

Xamarin.Mac
Version: 3.2.0.26 (Visual Studio Enterprise Trial)

Xamarin Inspector
Version: 1.2.0-rc3+58
Hash: e10a00b
Branch: d15-1
Build date: Fri, 17 Mar 2017 23:22:51 GMT

Build Information
Release ID: 603000848
Git revision: 27a4ec812c7a4633174d0bdd361e48a49c30c447
Build date: 2017-03-17 17:10:02-04
Xamarin addins: fa607bd6cd7bf6c7977175e573c6dd7134b04976
Build lane: monodevelop-lion-d15-1

Operating System
Mac OS X 10.12.2
Darwin NAG1-DMAC-N07188 16.3.0 Darwin Kernel Version 16.3.0
    Thu Nov 17 20:23:58 PST 2016
    root:xnu-3789.31.2~1/RELEASE_X86_64 x86_64
Comment 1 Prasad Raghorte 2017-03-20 11:50:16 UTC
Created attachment 20455 [details]
Screenshot
Comment 2 Bojan Rajkovic [MSFT] 2017-03-20 14:27:53 UTC
Hi,

Workbooks doesn't need Xamarin Studio running at all, so the Xamarin Studio logs are not useful in this case.

Can you please grab the Workbooks/Inspector *client* logs from `~/Library/Logs/Xamarin/Inspector/Xamarin Inspector {date}.log`?

Thanks!
Comment 3 Prasad Raghorte 2017-03-21 04:52:04 UTC
Created attachment 20482 [details]
Updated logs of workbook from logs folder in library.

@bojan
Hi,
As per steps provided by you I didn't find inspector logs but I do find workbook logs in logs folder which are related to hanging issue. please find attached zipped logs. Please let me know if any additional information is required.
Comment 4 Prasad Raghorte 2017-03-21 08:59:02 UTC
Created attachment 20490 [details]
Screenshot of logs folder containing workbook logs.

@Bojan,
Hi, I have shared the workbook logs as per above comment. but as you said you need inspector logs I didn't find them in logs folder. Herewith I have attached screenshot of logs folder in my Mac. I hope the workbook logs would be useful to you as the name is "Xamarin Workbooks_2017-03-20-203241_Swati-mac-mini.hang" which indicates it is related to the hanging issue.
Comment 5 Sandy Armstrong [MSFT] 2017-03-21 16:18:33 UTC
You are looking in the wrong log directory.

~ refers to your home directory. The screenshot you pasted shows you looking at /Library/Logs instead of ~/Library/Logs. Please check in the correct directory.
Comment 6 Prasad Raghorte 2017-03-22 07:21:47 UTC
Created attachment 20558 [details]
Inspector Logs

@Sandy Armstrong
Hi, thanks I got the logs now. Please find the attached zipped log file for inspector.
Comment 7 Alok Kulkarni 2017-03-23 11:49:10 UTC
@Sandy Armstrong,

I am reverting back the status for this defect to "New" since requested logs are been provided.

Please check and let us know if there any more information you need on this defect.
Comment 8 Prasad Raghorte 2017-05-11 11:43:26 UTC
Issue still persist for Workbook version 1.2.2
Please find the workbook logs below.
https://gist.github.com/gangrade-swati/768b466e50eeffae4e4d844ee2ce1384

Environment:
OS: Mac OS Sierra 10.12.2
Visual Studio for Mac Version 7.1 Preview (7.1.582)
Mono : 5.2.0.104
Xamarin.Mac: Version: 3.5.0.126
Xamarin.iOS Version: 10.11.0.126
Xamarin.Android: Version: 7.3.0.13
Workbook version 1.2.2
Comment 9 Sandy Armstrong [MSFT] 2017-05-11 12:56:28 UTC
Please list all Android emulators installed on the system you are testing. For each, specify the following:

* What type of emulator? Google, Xamarin, etc?
* x86, x86_86, or ARM?
* What version of Android (OS and API level)?
Comment 10 Prasad Raghorte 2017-05-15 05:53:26 UTC
@ Sandy Armstrong
Below are the details of emulator :
1. AVD Name= AVD_for_Nexus_4 , Target = Android 7.1.1, Platform 7.1.1, API = 25, CPU = Google APIs Intel Atom (x86)
2. AVD Name= AVD_Api_23, Target Name = Android 6.0, Platform = 6.0, API = 23, CPU = Google APIs Intel Atom (x86)
3. AVD Name= Kitkat , Target Name = Android 4.4.2, Platform 4.4.2, API Level = 19, CPU = Google APIs ARM (armeabi-v7a)
4. AVD Name = asdfasf, Target Name = Android 4.4.2, Platform 4.4.2, API Level = 19, CPU = Google APIs ARM (armeabi-v7a)
(In reply to Sandy Armstrong from comment #9)
> Please list all Android emulators installed on the system you are testing.
> For each, specify the following:
> 
> * What type of emulator? Google, Xamarin, etc?
> * x86, x86_86, or ARM?
> * What version of Android (OS and API level)?
Comment 11 Aman Dharwal 2017-05-30 07:29:46 UTC
@Sandy Armstrong Hello,

Today also I found same issue on version, 
Xamarin Inspector 
Version: 1.2.2
Hash: b71b035

The workaround I followed here is , 

1. Create a SingleView Android Application and deploy it in debug mode
2. after deployment succeeds click on live inspect button
3. copy code from https://gist.github.com/Arpit360/1dd88621c5a3de89d87b6432fdbf3bfe and paste to C# cell
4. click on play button.

This way it works fine for Android Workbook Application.
Comment 12 Bojan Rajkovic [MSFT] 2017-08-07 16:15:48 UTC
Created attachment 24068 [details]
AVD Manager

I can't reproduce this. I set up my Android virtual devices to exactly match yours, and when I create a new Android workbook using Workbooks 1.2.2.

I'm attaching screenshots of my AVD manager and a running Workbooks client.
Comment 13 Bojan Rajkovic [MSFT] 2017-08-07 16:16:55 UTC
Created attachment 24069 [details]
Client + AVD

Running client, with AVD_Api_23 being the chosen emulator.
Comment 14 Bojan Rajkovic [MSFT] 2017-08-07 17:22:31 UTC
OK, I tried this on Mac too, and still can't reproduce it. Can you provide some additional details:

1) What is the hardware that you are using?
2) What happens if you start the emulator beforehand from the Google Emulator Manager?
3) Can you attach a *clean* Workbooks log that clearly shows the version you are running? You can delete all existing logs before running Workbooks so that you have a clean log directory.
4) Can you attach a screen recording that demonstrates the issue?
Comment 17 Bojan Rajkovic [MSFT] 2017-08-14 15:34:05 UTC
Hi,

You did not answer questions 1 or 2, and the screencast is not very useful--I really need to see the entire desktop surface, not just a small section of VSMac (why is it even running? You don't need to have it running at the same time as Workbooks) and a small Workbooks window.

I am wondering if the emulator is starting up and just very slow to start up because of your hardware or because of some other factors.

Also, the information regarding #58265 is completely irrelevant--the comments on that bug indicate that there is a fix that is waiting to be merged.

Setting back to NEEDINFO until all my questions are answered.
Comment 21 Sandy Armstrong [MSFT] 2017-08-17 15:57:53 UTC
Hi Jacky.

When you experience this, are you able to quit Workbooks via the menu or do you have to force quit?
Comment 24 Sandy Armstrong [MSFT] 2017-09-06 16:38:22 UTC
I have experienced the same issue, but have not been able to isolate the cause. Confirming since you see the same think I do, where the app needs to be Force Quit.
Comment 25 Sandy Armstrong [MSFT] 2017-09-12 22:22:26 UTC
I believe I have a fix.

Jacky, can you please share the contents of this file? ~/.config/xbuild/monodroid-config.xml

Also, please run /usr/libexec/java_home and let me know the output of that command.
Comment 26 Sandy Armstrong [MSFT] 2017-09-14 22:09:29 UTC
Fixed for me in 1.3.0 final.