Bug 53139 - [Cycle 8 SR 2] Ignorable error "An error occurred while executing MTouch" is shown due to an error "while executing a reply for topic xvs/idb/4.3.0.784/launch-app" after "Stop Debugging" for iPhone simulator
Summary: [Cycle 8 SR 2] Ignorable error "An error occurred while executing MTouch" is ...
Status: VERIFIED NOT_REPRODUCIBLE
Alias: None
Product: Visual Studio Extensions
Classification: Xamarin
Component: iOS ()
Version: 4.2.0 (C8)
Hardware: PC Windows
: --- minor
Target Milestone: 15.3
Assignee: Bugzilla
URL:
: 56010 ()
Depends on:
Blocks:
 
Reported: 2017-03-08 02:22 UTC by Brendan Zagaeski (Xamarin Team, assistant)
Modified: 2017-06-08 22:32 UTC (History)
6 users (show)

Tags: BZRC8SR2S2_C8S1
Is this bug a regression?: Yes
Last known good build: Cycle 8 (XamarinVS 4.2.0.680 (c4382f5))


Attachments
IDE log files that show the BAD result (Cycle 9) (6.25 KB, application/zip)
2017-03-08 02:22 UTC, Brendan Zagaeski (Xamarin Team, assistant)
Details
IDE log files that show the GOOD result (Cycle 8) (5.80 KB, application/zip)
2017-03-08 02:22 UTC, Brendan Zagaeski (Xamarin Team, assistant)
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:
VERIFIED NOT_REPRODUCIBLE

Description Brendan Zagaeski (Xamarin Team, assistant) 2017-03-08 02:22:09 UTC
Created attachment 20198 [details]
IDE log files that show the BAD result (Cycle 9)

[Cycle 8 SR 2] Ignorable error "An error occurred while executing MTouch" is shown due to an error "while executing a reply for topic xvs/idb/4.3.0.784/launch-app" after "Stop Debugging" for iPhone simulator




## Regression status: regression between Cycle 8 (c4382f5) and Cycle 8 SR 2 (00fa5cc)

> BAD:  XamarinVS 4.3.1.2   (486e68a) + Xamarin.iOS 10.8.0.10  (9995504) + Xcode 8.2.1   (The current Alpha preview)
> BAD:  XamarinVS 4.3.0.784 (73f58d6) + Xamarin.iOS 10.4.0.123 (35d1ccd) + Xcode 8.2.1   (Cycle 9)
> BAD:  XamarinVS 4.2.2.11  (00fa5cc) + Xamarin.iOS 10.3.1.8   (7beaef4) + Xcode 8.2.1   (Cycle 8 SR 2)
> BAD:  XamarinVS 4.2.2.11  (00fa5cc) + Xamarin.iOS 10.3.1.8   (7beaef4) + Xcode 7.3 [*] (Cycle 8 SR 2)
> GOOD: XamarinVS 4.2.0.680 (c4382f5) + Xamarin.iOS 10.0.0.6   (6c3fee4) + Xcode 7.3 [*] (Cycle 8)
> GOOD: XamarinVS 4.1.2.18  (fcbe082) + Xamarin.iOS 9.8.2.22   (f37444a) + Xcode 7.3     (Cycle 7 SR 1)

[*] "Project Properties > Linker behavior" set to "Link SDK assemblies only" to allow building against the old Xcode.

- The Xcode 8.2.1 tests used the "iPhone 7 iOS 10.2" simulator.

- The Xcode 7.3 tests used the "iPhone 6s iOS 9.3" simulator.




## Steps followed to test

1. Create a new "Visual C# > iOS > iPhone > Single View App (iPhone)" project.

2. Build and deploy the app in the "Debug | iPhoneSimulator" configuration via "Build > Start Debugging".

3. Select "Debug > Stop Debugging".

4. Open the "View > Error List" window.


- I tested in 2 independent Windows 10 images, one non-virtualized, and one running under Hyper-V.

- The problem does _not_ seem to affect deploying to device: I tested in 1 configuration with an iPad Mini 2, iOS 8.0, and it showed the "GOOD" behavior.




## BAD Results with XamarinVS 4.3.0.784 (73f58d6)



### In the "Error List"

An error appears in the "Error List" (specifically, this only appears _after_ step 3):
> An error occurred while executing MTouch


### In the "Output > Debug" window

> The app has been terminated.
> Launch failed. The app 'SingleViewIphone1' could not be launched on 'iPhone 7 iOS 10.2'. Error: An error occurred while executing MTouch. Please check the logs for more details.
> The app has been terminated.


### In the .log files

This appears to correspond to the following more detailed error from the "Help > Xamarin > Zip Logs" *Ide.log file (and also the *IDB.log file):

> Xamarin.Messaging.Client.MessagingClient|Error|0|An error occured on the receiver while executing a post for topic xvs/idb/4.3.0.784/launch-app and client vs5264Windo
> Xamarin.Messaging.Exceptions.MessagingRemoteException: An error occured on client IDB430784 while executing a reply for topic xvs/idb/4.3.0.784/launch-app



## GOOD Results with XamarinVS 4.2.0.680 (c4382f5) 

- No errors appear in the log files for the Error List.

- The "Output > Debug" window shows for example:
> Launch succeeded. The app  'SingleViewIphone1' has been successfully launched on 'iPhone 6 Plus iOS 9.3'.
> The app has been terminated.



## Additional testing environment version info (brief)



### Windows

Microsoft Visual Studio Enterprise 2015
Version 14.0.25431.01 Update 3
Microsoft .NET Framework
Version 4.6.01586

Windows 10 (64-bit) Version 1607 (OS Build 14393.0)
US English locale



### Mac

Xamarin.iOS 10.4.0.123 (cycle9: 35d1ccd)
Mono 4.8.0 (mono-4.8.0-branch/e4a3cf3)

Xcode 8.2.1, Build version 8C1002

Mac OS 10.11.6
Comment 1 Brendan Zagaeski (Xamarin Team, assistant) 2017-03-08 02:22:45 UTC
Created attachment 20199 [details]
IDE log files that show the GOOD result (Cycle 8)
Comment 3 Brendan Zagaeski (Xamarin Team, assistant) 2017-03-08 02:30:43 UTC
## Tallying reports for bookkeeping

1 user: https://developercommunity.visualstudio.com/content/problem/13791/spurious-error-when-detaching-from-xamarinios-simu.html (2017-01-24)

Although a reply on that issue mentions that the issue might be resolved in a future release, it would seem that resolution is not yet included in the current Alpha preview, so I have filed this bug to ensure a fix for the issue is (or has been) tracked into one of the development branches.
Comment 5 Brendan Zagaeski (Xamarin Team, assistant) 2017-03-14 21:17:34 UTC Comment hidden (obsolete)
Comment 6 Brendan Zagaeski (Xamarin Team, assistant) 2017-05-04 19:33:09 UTC
## Tallying reports for bookkeeping

1 user: Bug 55941, Comment 4 (2017-05-04, on XamarinVS 4.4.0)
Comment 7 Brendan Zagaeski (Xamarin Team, assistant) 2017-05-04 19:34:04 UTC
## Testing update: no change in behavior yet in the latest Beta versions

> BAD: XamarinVS 4.5.0.440 (910625d) + Xamarin.iOS 10.10.0.30 (d15-2: 30b6e87e) + Xcode 8.3
> BAD: XamarinVS 4.4.0.34  (3f99c5a) + Xamarin.iOS 10.8.0.175 (d15-1: a04678c2) + Xcode 8.3
Comment 8 Brendan Zagaeski (Xamarin Team, assistant) 2017-05-04 23:10:26 UTC
*** Bug 56010 has been marked as a duplicate of this bug. ***
Comment 9 Emanuel 2017-06-08 17:03:27 UTC
I'm marking this bug as 'Resolved-Not Reproducible' since I cannot reproduce it with latest 15.3 bits (4.6.0.233)
Comment 10 Brendan Zagaeski (Xamarin Team, assistant) 2017-06-08 18:26:33 UTC
## Bookkeeping note

I am updating the target milestone to 15.3 for verification based on Comment 9.
Comment 11 Brendan Zagaeski (Xamarin Team, assistant) 2017-06-08 22:32:15 UTC
## Verification status: verified no longer reproducible in my environment with the 15.3 development branch

> GOOD: XamarinVS 4.6.0.234 (c7d9b1e) [*] + Xamarin.iOS 10.12.0.4  (d15-3: 1d4b21d2) [*] + Xcode 8.3
> BAD:  XamarinVS 4.5.0.476 (1be4f0c)     + Xamarin.iOS 10.10.0.36 (d15-2: d2270eec)     + Xcode 8.3

[*] Un-published development builds.