Bug 38340 - Launching distribution build on device breaks user input in Visual Studio
Summary: Launching distribution build on device breaks user input in Visual Studio
Status: RESOLVED NOT_REPRODUCIBLE
Alias: None
Product: Visual Studio Extensions
Classification: Xamarin
Component: iOS ()
Version: 4.0.0 (C6)
Hardware: PC Windows
: High normal
Target Milestone: 15.4
Assignee: Bugzilla
URL:
Depends on:
Blocks:
 
Reported: 2016-02-03 00:14 UTC by Matthew Orlando
Modified: 2017-07-18 15:14 UTC (History)
10 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 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 Matthew Orlando 2016-02-03 00:14:46 UTC
I have two build configurations that use a Distribution certificate: Ad-Hoc and AppStore.

If I launch with debugging (F5, the "play" button in the toolbar) I get the message "Debug is not enabled in the current configuration. Please Start Without Debugging...". This makes sense, and seems to be doing the right thing.

When I launch without debugging (CTRL-F5, or from the debug menu), a window appears saying that the app is installed, but visual studio can't start it because it's a distribution build. This makes sense, and seems to be doing the right thing. At first.

The app appears on the device as suggested, and at first everything seems fine. However, back in Visual Studio, key bindings stop behaving as expected (I use CTRL-SHIFT-B to build, and it becomes a no-op). After a while of things not responding, I try to quit visual studio to get everything reset and it tells me:

> Microsoft Visual Studio has detected that an operation is blocking user input. This can be caused by an active modal dialog or a task that needs to block user interaction. Would you like to shut down anyway?

This is 100% reproducible with the current beta channel. TL;DR steps:

* Build a distribution-signed app
* Attempt to run without debugging on device
* Dismiss dialog
* Attempt to use various keybindings & quit visual studio
Comment 1 FreakinYahoo 2016-05-11 19:33:49 UTC
Yes very annoying.  You must completely exit VS and restart.  Closing the solution does not solve the problem.
Comment 2 Emmanuel Huna 2016-11-02 17:50:03 UTC
Yep, this is still happening. :(

It's the key bindings not working that are a bummer - it forces me to quit VS and the message -

---------------------------
Microsoft Visual Studio
---------------------------
Microsoft Visual Studio has detected that an operation is blocking user input.  This can be caused by an active modal dialog or a task that needs to block user interaction.  Would you like to shut down anyway?
---------------------------
Yes   No   
---------------------------

every. single. time.

I'm on the latest Xamarin bits as of 11/2/2016, please take a look at this.
Comment 3 David Strickland 2016-12-08 13:13:24 UTC
Bump: Same issue

Microsoft Visual Studio Enterprise 2015
Version 14.0.25425.01 Update 3
Microsoft .NET Framework
Version 4.6.01038

Installed Version: Enterprise

Xamarin   4.2.1.64 (872717c)
Visual Studio extension to enable development for Xamarin.iOS and Xamarin.Android.

Xamarin.Android   7.0.2.37 (ce955cc)
Visual Studio extension to enable development for Xamarin.Android.

Xamarin.iOS   10.2.1.5 (44931ae)
Visual Studio extension to enable development for Xamarin.iOS.
Comment 4 Jose Gallardo 2016-12-23 03:26:54 UTC
Moving to Target Milestone C10.
We'll investigate.
Thanks for reporting
Comment 5 Emanuel 2017-07-18 15:14:07 UTC
Hi!
We recently fixed several issues related to launching apps built with a distribution profile, and I cannot reproduce this bug on 15.4 internal builds. Due to this, I'm marking this bug as Not Reproducible.

The first 15.4 preview will be released early next month.

Please, feel free to reopen this bug if you are still able to reproduce it after updating to 15.4.

As a side note, there's a known issue on 15.3 (https://bugzilla.xamarin.com/show_bug.cgi?id=58070) where the dialog that asks to launch the app manually appears before building/deploying the app and it blocks the whole process, so you should close the dialog to get the app deployed.

Thanks for reporting!