Bug 6324 - Upload to device fails with error
Summary: Upload to device fails with error
Status: RESOLVED FIXED
Alias: None
Product: iOS
Classification: Xamarin
Component: Tools ()
Version: 5.2
Hardware: Macintosh Mac OS
: --- normal
Target Milestone: Untriaged
Assignee: Rolf Bjarne Kvinge [MSFT]
URL:
Depends on:
Blocks:
 
Reported: 2012-07-30 06:52 UTC by Dermot
Modified: 2012-09-15 21:53 UTC (History)
3 users (show)

Tags: upload
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 Dermot 2012-07-30 06:52:16 UTC
Versions:
MonoDevelop 3.0.3.4
Installation UUID: 21414c31-eb69-499d-9e13-8d22ab1cfd19
Runtime:
	Mono 2.10.9 (tarball)
	GTK 2.24.10
	GTK# (2.12.0.0)
	Package version: 210090011
Apple Developer Tools:
	 Xcode 4.3.2 (1177)
	 Build 4E2002
Monotouch: 5.2.12
Mono for Android not installed
Build information:
	Release ID: 30003004
	Git revision: 57eb8135299a707287d21a1e0ca1040babf6d9aa-dirty
	Build date: 2012-07-16 19:44:05+0000
	Xamarin addins: c331c3ba7ef02e9823ef5dfc9f6f9038f187158b
Operating System:
	Mac OS X 10.7.4
	Darwin MacbookAir.local 11.4.0 Darwin Kernel Version 11.4.0
	    Mon Apr  9 19:32:15 PDT 2012
	    root:xnu-1699.26.8~1/RELEASE_X86_64 x86_64


Application output when attempting to upload to device:


Please ensure your device is connected...
Connected to: Test iPhone 4 [3GS]
Initializing file service...
Uploading application
Finalizing file service...
Installing application
Stacktrace:

  at (wrapper managed-to-native) MonoTouch.Installation.InstallationProxyService.AMDeviceSecureInstallApplication (intptr,intptr,intptr,intptr,intptr) <0xffffffff>
  at MonoTouch.Installation.InstallationProxyService.InstallApplication (intptr,intptr) <0x0025b>
  at MonoTouch.Installation.Installer.InstallApplication (MonoTouch.Installation.Device,string) <0x000ff>
  at MonoTouch.Installation.Installer/<InstallApplication>c__AnonStorey4.<>m__4 (MonoTouch.Installation.Device) <0x00017>
  at MonoTouch.Installation.Installer/<ExecuteWithSession>c__AnonStorey3.<>m__2 (object,System.EventArgs) <0x000ef>
  at MonoTouch.Installation.Device.NotificationCallback (MonoTouch.Installation.Device/am_device_notification_callback_info&) <0x0006e>
  at (wrapper native-to-managed) MonoTouch.Installation.Device.NotificationCallback (MonoTouch.Installation.Device/am_device_notification_callback_info&) <0xffffffff>
  at (wrapper managed-to-native) MonoTouch.CoreFoundation.CFRunLoop.CFRunLoopRun () <0xffffffff>
  at MonoTouch.CoreFoundation.CFRunLoop.Run () <0x0000b>
  at MonoTouch.Installation.Installer.ExecuteWithSession (MonoTouch.Installation.Installer/Executor) <0x000cf>
  at MonoTouch.Installation.Installer.InstallApplication (string) <0x000ab>
  at MTouch.Main2 (string[]) <0x03b53>
  at MTouch.Main (string[]) <0x0001f>
  at (wrapper runtime-invoke) <Module>.runtime_invoke_int_object (object,intptr,intptr,intptr) <0xffffffff>

Native stacktrace:

	0   mtouch                              0x000ecdd3 WriteZStream + 957203
	1   mtouch                              0x0001c64f WriteZStream + 103311
	2   libsystem_c.dylib                   0x9681559b _sigtramp + 43
	3   ???                                 0xffffffff 0x0 + 4294967295
	4   CoreFoundation                      0x9c3e8b63 CFURLCreateStringWithFileSystemPath + 515
	5   CoreFoundation                      0x9c3e4713 CFURLCopyLastPathComponent + 131
	6   MobileDevice                        0x0305dede AMDeviceSecureInstallApplication + 105
	7   ???                                 0x027d7970 0x0 + 41777520
	8   ???                                 0x027d759c 0x0 + 41776540
	9   ???                                 0x027d6d58 0x0 + 41774424
	10  ???                                 0x027d6c40 0x0 + 41774144
	11  ???                                 0x0270f2a8 0x0 + 40956584
	12  ???                                 0x0270f0af 0x0 + 40956079
	13  ???                                 0x027c50a8 0x0 + 41701544
	14  MobileDevice                        0x03059767 _AMDDeviceAttachedCallbackv3 + 163
	15  MobileDevice                        0x0300e539 USBMuxIntCFSocketCallback + 1633
	16  CoreFoundation                      0x9c42ab2b __CFSocketPerformV0 + 1163
	17  CoreFoundation                      0x9c3de13f __CFRUNLOOP_IS_CALLING_OUT_TO_A_SOURCE0_PERFORM_FUNCTION__ + 15
	18  CoreFoundation                      0x9c3ddaf6 __CFRunLoopDoSources0 + 246
	19  CoreFoundation                      0x9c4079c8 __CFRunLoopRun + 1112
	20  CoreFoundation                      0x9c4071dc CFRunLoopRunSpecific + 332
	21  CoreFoundation                      0x9c417f01 CFRunLoopRun + 129
	22  ???                                 0x0270efc4 0x0 + 40955844
	23  ???                                 0x0270ef8c 0x0 + 40955788
	24  ???                                 0x02754218 0x0 + 41239064
	25  ???                                 0x0275409c 0x0 + 41238684
	26  ???                                 0x0218ce8c 0x0 + 35180172
	27  ???                                 0x02186db0 0x0 + 35155376
	28  ???                                 0x02189216 0x0 + 35164694
	29  mtouch                              0x0001c39f WriteZStream + 102623
	30  mtouch                              0x0022f25a WriteZStream + 2277274
	31  mtouch                              0x00231f3c WriteZStream + 2288764
	32  mtouch                              0x002311a1 WriteZStream + 2285281
	33  mtouch                              0x000b803f WriteZStream + 740735
	34  mtouch                              0x000b8290 WriteZStream + 741328
	35  mtouch                              0x000ba6ff WriteZStream + 750655
	36  mtouch                              0x00002763 mtouch + 5987
	37  mtouch                              0x00002005 mtouch + 4101

Debug info from gdb:


=================================================================
Got a SIGSEGV while executing native code. This usually indicates
a fatal error in the mono runtime or one of the native libraries 
used by your application.
=================================================================

The application was terminated by a signal: SIGIOT
Comment 1 Dermot 2012-07-30 09:03:14 UTC
NOTE: A restart of Monodevelop seems to fix it temporarily.
Comment 2 Dermot 2012-07-31 05:13:06 UTC
Here's another application output that seems to be different. Note that I am debugging over WiFi on another device when uploading. This has always worked prior to now. (Im not sure if its related, as if I stop debugging it continues to happen, only a monodevelop restart temporarily fixes it)


Please ensure your device is connected...
Connected to: IT iPad
Initializing file service...
Uploading application
Finalizing file service...
Installing application
objc[5494]: Object 0xac2240 of class __NSCFString autoreleased with no pool in place - just leaking - break on objc_autoreleaseNoPool() to debug
2012-07-31 19:11:06.695 mtouch[5494:707] -[__NSCFString _cfurl]: unrecognized selector sent to instance 0xac29f0
2012-07-31 19:11:06.698 mtouch[5494:707] *** Terminating app due to uncaught exception 'NSInvalidArgumentException', reason: '-[__NSCFString _cfurl]: unrecognized selector sent to instance 0xac29f0'
*** Call stack at first throw:
(
	0   CoreFoundation                      0x9c511a67 __raiseError + 231
	1   libobjc.A.dylib                     0x98cff149 objc_exception_throw + 155
	2   CoreFoundation                      0x9c515070 -[NSObject doesNotRecognizeSelector:] + 256
	3   CoreFoundation                      0x9c463cd9 ___forwarding___ + 457
	4   CoreFoundation                      0x9c463aa2 _CF_forwarding_prep_0 + 50
	5   CoreFoundation                      0x9c3f211a CFURLCopyPath + 106
	6   CoreFoundation                      0x9c3e8b63 CFURLCreateStringWithFileSystemPath + 515
	7   CoreFoundation                      0x9c3e4713 CFURLCopyLastPathComponent + 131
	8   MobileDevice                        0x0305dede AMDeviceSecureInstallApplication + 105
	9   ???                                 0x027d7970 0x0 + 41777520
	10  ???                                 0x027d759c 0x0 + 41776540
	11  ???                                 0x027d6d58 0x0 + 41774424
	12  ???                                 0x027d6c40 0x0 + 41774144
	13  ???                                 0x0270f2b8 0x0 + 40956600
	14  ???                                 0x0270f0bf 0x0 + 40956095
	15  ???                                 0x027c50a8 0x0 + 41701544
	16  MobileDevice                        0x03059767 _AMDDeviceAttachedCallbackv3 + 163
	17  MobileDevice                        0x0300e539 USBMuxIntCFSocketCallback + 1633
	18  CoreFoundation                      0x9c42ab2b __CFSocketPerformV0 + 1163
	19  CoreFoundation                      0x9c3de13f __CFRUNLOOP_IS_CALLING_OUT_TO_A_SOURCE0_PERFORM_FUNCTION__ + 15
	20  CoreFoundation                      0x9c3ddaf6 __CFRunLoopDoSources0 + 246
	21  CoreFoundation                      0x9c4079c8 __CFRunLoopRun + 1112
	22  CoreFoundation                      0x9c4071dc CFRunLoopRunSpecific + 332
	23  CoreFoundation                      0x9c417f01 CFRunLoopRun + 129
	24  ???                                 0x0270efd4 0x0 + 40955860
	25  ???                                 0x0270ef9c 0x0 + 40955804
	26  ???                                 0x02754220 0x0 + 41239072
	27  ???                                 0x027540a4 0x0 + 41238692
	28  ???                                 0x0218ce8c 0x0 + 35180172
	29  ???                                 0x02186db0 0x0 + 35155376
	30  ???                                 0x02189216 0x0 + 35164694
	31  mtouch                              0x0001c39f WriteZStream + 102623
	32  mtouch                              0x0022f25a WriteZStream + 2277274
	33  mtouch                              0x00231f3c WriteZStream + 2288764
	34  mtouch                              0x002311a1 WriteZStream + 2285281
	35  mtouch                              0x000b803f WriteZStream + 740735
	36  mtouch                              0x000b8290 WriteZStream + 741328
	37  mtouch                              0x000ba6ff WriteZStream + 750655
	38  mtouch                              0x00002763 mtouch + 5987
	39  mtouch                              0x00002005 mtouch + 4101
)
The application was terminated by a signal: SIGTRAP
Comment 3 Rolf Bjarne Kvinge [MSFT] 2012-09-13 06:48:57 UTC
We've fixed several issues in this area in the latest stable release (MonoTouch 5.4) - can you try again to see if you're still having problems?
Comment 4 Dermot 2012-09-15 21:53:34 UTC
This seems to be fixed in the most recent version of MonoDevelop (3.4.0.6)