Bug 4826 - Exception when pressing "Stop" in MonoDevelop when an iOS app is closed/crash on device
Summary: Exception when pressing "Stop" in MonoDevelop when an iOS app is closed/crash...
Status: RESOLVED FIXED
Alias: None
Product: iOS
Classification: Xamarin
Component: Tools ()
Version: 5.3.x
Hardware: Macintosh Mac OS
: --- normal
Target Milestone: Untriaged
Assignee: Bugzilla
URL:
: 5268 ()
Depends on:
Blocks:
 
Reported: 2012-05-02 13:39 UTC by Chris Hardy [MSFT]
Modified: 2012-05-24 10:06 UTC (History)
3 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:
RESOLVED FIXED

Description Chris Hardy [MSFT] 2012-05-02 13:39:23 UTC
System.IO.IOException: Failed to write data to device over USB connection
  at MonoDevelop.IPhone.UsbStream.Write (System.Byte[] buffer, Int32 offset, Int32 count) [0x00069] in /Users/builder/data/lanes/monodevelop-mac-master/eeae53d9/source/md-addins/MonoDevelop.IPhone/MonoDevelop.IPhone/UsbConnection.cs:110 
  at MonoDevelop.IPhone.PersistentConnection.ExecuteCommand (System.String command, Boolean consumes_stream, TimeSpan timeout) [0x001c1] in /Users/builder/data/lanes/monodevelop-mac-master/eeae53d9/source/md-addins/MonoDevelop.IPhone/MonoDevelop.IPhone/PersistentConnection.cs:364 
  at MonoDevelop.IPhone.PersistentConnection.Stop () [0x00000] in /Users/builder/data/lanes/monodevelop-mac-master/eeae53d9/source/md-addins/MonoDevelop.IPhone/MonoDevelop.IPhone/PersistentConnection.cs:420 
  at MonoDevelop.IPhone.PersistentConnection.MonoDevelop.Core.IAsyncOperation.Cancel () [0x00000] in /Users/builder/data/lanes/monodevelop-mac-master/eeae53d9/source/md-addins/MonoDevelop.IPhone/MonoDevelop.IPhone/PersistentConnection.cs:472 
  at MonoDevelop.Core.ProgressMonitoring.AggregatedOperationMonitor.OnCancel (IProgressMonitor m) [0x0002a] in /Users/builder/data/lanes/monodevelop-mac-master/eeae53d9/source/monodevelop/main/src/core/MonoDevelop.Core/MonoDevelop.Core.ProgressMonitoring/AggregatedOperationMonitor.cs:68 
  at MonoDevelop.Core.ProgressMonitoring.NullProgressMonitor.OnCancelRequested () [0x0003d] in /Users/builder/data/lanes/monodevelop-mac-master/eeae53d9/source/monodevelop/main/src/core/MonoDevelop.Core/MonoDevelop.Core.ProgressMonitoring/NullProgressMonitor.cs:210 
  at MonoDevelop.Core.ProgressMonitoring.NullProgressMonitor.MonoDevelop.Core.IAsyncOperation.Cancel () [0x00000] in /Users/builder/data/lanes/monodevelop-mac-master/eeae53d9/source/monodevelop/main/src/core/MonoDevelop.Core/MonoDevelop.Core.ProgressMonitoring/NullProgressMonitor.cs:145 
  at MonoDevelop.Ide.Commands.StopHandler.StopBuildOperations () [0x00037] in /Users/builder/data/lanes/monodevelop-mac-master/eeae53d9/source/monodevelop/main/src/core/MonoDevelop.Ide/MonoDevelop.Ide.Commands/ProjectCommands.cs:443 
  at MonoDevelop.Ide.Commands.StopHandler.Run () [0x00000] in /Users/builder/data/lanes/monodevelop-mac-master/eeae53d9/source/monodevelop/main/src/core/MonoDevelop.Ide/MonoDevelop.Ide.Commands/ProjectCommands.cs:435 
  at MonoDevelop.Components.Commands.CommandHandler.Run (System.Object dataItem) [0x00000] in /Users/builder/data/lanes/monodevelop-mac-master/eeae53d9/source/monodevelop/main/src/core/MonoDevelop.Ide/MonoDevelop.Components.Commands/CommandHandler.cs:61 
  at MonoDevelop.Components.Commands.CommandHandler.InternalRun (System.Object dataItem) [0x00000] in /Users/builder/data/lanes/monodevelop-mac-master/eeae53d9/source/monodevelop/main/src/core/MonoDevelop.Ide/MonoDevelop.Components.Commands/CommandHandler.cs:42 
  at MonoDevelop.Components.Commands.CommandManager.DefaultDispatchCommand (MonoDevelop.Components.Commands.ActionCommand cmd, MonoDevelop.Components.Commands.CommandInfo info, System.Object dataItem, System.Object target, CommandSource source) [0x00076] in /Users/builder/data/lanes/monodevelop-mac-master/eeae53d9/source/monodevelop/main/src/core/MonoDevelop.Ide/MonoDevelop.Components.Commands/CommandManager.cs:1097 
  at MonoDevelop.Components.Commands.CommandManager.DispatchCommand (System.Object commandId, System.Object dataItem, System.Object initialTarget, CommandSource source) [0x002d1] in /Users/builder/data/lanes/monodevelop-mac-master/eeae53d9/source/monodevelop/main/src/core/MonoDevelop.Ide/MonoDevelop.Components.Commands/CommandManager.cs:1067
Comment 1 Rolf Bjarne Kvinge [MSFT] 2012-05-02 17:24:10 UTC
Fixed in md-addins master (b89a4048).

In any case this only happens if the connection between MD and the app has been broken somehow (unplugged USB cable, app killed manually, etc).
Comment 2 Rolf Bjarne Kvinge [MSFT] 2012-05-24 10:06:34 UTC
*** Bug 5268 has been marked as a duplicate of this bug. ***