Bug 56756 - [VS 2015][Indirect Rendering][4.5.0.425]- Getting exceptions in android designer logs when indirect rendering is enabled.
Summary: [VS 2015][Indirect Rendering][4.5.0.425]- Getting exceptions in android desig...
Status: RESOLVED NOT_REPRODUCIBLE
Alias: None
Product: Visual Studio Extensions
Classification: Xamarin
Component: Android Designer ()
Version: 4.6.0 (15.3)
Hardware: PC Windows
: Normal normal
Target Milestone: ---
Assignee: Bugzilla
URL:
Depends on:
Blocks:
 
Reported: 2017-05-23 11:47 UTC by Gaurav Ganorkar
Modified: 2017-07-10 18:06 UTC (History)
6 users (show)

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


Attachments
Logs for Indirect rendering available (181.35 KB, application/x-zip-compressed)
2017-05-23 11:47 UTC, Gaurav Ganorkar
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 NOT_REPRODUCIBLE

Description Gaurav Ganorkar 2017-05-23 11:47:14 UTC
Created attachment 22388 [details]
Logs for Indirect rendering available

Description
1-Getting System.IO.IOException: Unable to read data from the transport connection: An existing connection was forcibly closed by the remote host when indirect rendering is enabled
2-Getting System.InvalidOperationException: The operation cannot be completed because a build is already in progress.
   at Microsoft.Build.Shared.ErrorUtilities.ThrowInvalidOperation(String resourceName, Object[] args when indirect rendering is enabled

Build info
-https://gist.github.com/ganorkargaurav/3dfc7d8af32af4bec32826e5e38848bb
-VS 2015  Xamarin   4.5.0.425 (102e226) 

Build link
- https://bosstoragemirror.blob.core.windows.net/wrench/xvs-win-android-designer-indirectrendering/10/102e226386618b2c11a87530

----Precondition----
1-Before launching Visual Studio make sure to create file at location "C:\Users\[yourname]\Documents\xam-designer-useiosurface" without any extension.

Steps to reproduce
1-Launch VS and Create Android Single View application 
2-Add any Image in image view in main.axml 
3-Build the application 
4-Now go to C:\Users\User\AppData\Local\Xamarin\Logs\14.0\AndroidDesigner.txt and Search for "Indirect rendering enabled" text and Observe the exceptions beneath the keyword

Actual
1-Getting System.IO.IOException: Unable to read data from the transport connection: An existing connection was forcibly closed by the remote host when indirect rendering is enabled
2-Getting System.InvalidOperationException: The operation cannot be completed because a build is already in progress.
   at Microsoft.Build.Shared.ErrorUtilities.ThrowInvalidOperation(String resourceName, Object[] args when indirect rendering is enabled


Expected
-No such exceptions should be given
Comment 1 Jon Douglas [MSFT] 2017-07-10 18:06:04 UTC
I had attempted to reproduce using the steps in the following comment:

https://bugzilla.xamarin.com/show_bug.cgi?id=56756#c0

However the steps do not seem to reproduce on VS 2017. Although I do see the following line:

[2017-07-10 11:48:55.9] Renderer >> INFO: No indirect rendering available

This doesn't follow up with exceptions below. Thus I am marking this RESOLVED NOT REPRODUCIBLE for the time being.

Looking through your logs, it seems that there are other warnings such as:

[2017-05-23 13:36:33.5] Renderer >> Info: Exception while marshalling C:\Program Files (x86)\Android\android-sdk\build-tools\25.0.2\package.xml. Probably the SDK is read-only

For every single package.xml

Thus I believe the INFO: No indirect rendering avaiable is rather a red herring in this situation. 

I believe your designer failed in other ways and thus the following message was thrown:

[2017-05-23 14:51:07.6] Renderer >> Houston, we are shutting down

Can you double check your Android SDK? Some thoughts are:

- Move it to a path without a space
- Ensure it's not read only
- Keep an eye on logs