Bug 39265 - Updater stuck on "Attaching disk image..."
Summary: Updater stuck on "Attaching disk image..."
Status: RESOLVED FIXED
Alias: None
Product: Xamarin Studio
Classification: Desktop
Component: Updater ()
Version: 6.0.0 (C7)
Hardware: Macintosh Mac OS
: --- normal
Target Milestone: master
Assignee: iain
URL:
Depends on:
Blocks:
 
Reported: 2016-03-01 19:34 UTC by David Siegel
Modified: 2016-05-02 21:32 UTC (History)
3 users (show)

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


Attachments
Updater is stuck here (78.40 KB, image/png)
2016-03-01 19:34 UTC, David Siegel
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 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 David Siegel 2016-03-01 19:34:28 UTC
Created attachment 15213 [details]
Updater is stuck here

Contents of Updater.log:

2016-03-01 11:16:37.883 Xamarin Update[7126:1243031] Reading index file
2016-03-01 11:16:37.885 Xamarin Update[7126:1243031] Loaded 5 updates from index file
2016-03-01 11:16:37.885 Xamarin Update[7126:1243031] Requesting root authorization for <nothing>
2016-03-01 11:16:41.371 Xamarin Update[7126:1243031] Acquired root authorization
2016-03-01 11:16:41.371 Xamarin Update[7126:1243031] Updates require restart, terminating Xamarin Studio and related apps
2016-03-01 11:16:41.378 Xamarin Update[7126:1243323] Installing update 1 of 5
2016-03-01 11:16:41.378 Xamarin Update[7126:1243323] Installing package '/Users/david/Library/Caches/XamarinStudio-6.0/TempDownload/MonoFramework-MDK-4.2.2.30.macos10.xamarin.x86.pkg'
2016-03-01 11:16:41.378 Xamarin Update[7126:1243323] /usr/sbin/installer -pkg '/Users/david/Library/Caches/XamarinStudio-6.0/TempDownload/MonoFramework-MDK-4.2.2.30.macos10.xamarin.x86.pkg' -target / -verboseR
2016-03-01 11:16:41.379 Xamarin Update[7126:1243323] Requesting root authorization for /usr/sbin/installer
2016-03-01 11:16:41.380 Xamarin Update[7126:1243323] Acquired root authorization
2016-03-01 11:16:56.205 Xamarin Update[7126:1243323] Update installed successfully
2016-03-01 11:16:56.206 Xamarin Update[7126:1243323] Installing update 2 of 5
2016-03-01 11:16:56.212 Xamarin Update[7126:1243323] Attaching disk image '/Users/david/Library/Caches/XamarinStudio-6.0/TempDownload/XamarinStudio-5.10.2.56-0.dmg'
2016-03-01 11:16:56.212 Xamarin Update[7126:1243323] /usr/bin/hdiutil attach '/Users/david/Library/Caches/XamarinStudio-6.0/TempDownload/XamarinStudio-5.10.2.56-0.dmg' -mountrandom /tmp -nobrowse -plist
Comment 1 Andy Dent 2016-03-08 15:59:37 UTC
Same problem experienced with Xamarin Studio 5.10.2 on Stable channel, with Check Automatically disabled.

Cleared all the files from ~/Library/Caches/XamarinStudio-5.0 and relaunched.

Saw it downloading the updaters again:

Studio 5.10.3
Android 6.0.2.1
iOS 9.4.2.27
Mac 2.4.1.7

Same apparent freeze stuck at the Attaching stage.

Similar log

2016-03-08 23:51:47.073 Xamarin Update[65462:10742340] Reading index file
2016-03-08 23:51:47.090 Xamarin Update[65462:10742340] Loaded 4 updates from index file
2016-03-08 23:51:47.091 Xamarin Update[65462:10742340] Requesting root authorization for <nothing>
2016-03-08 23:51:52.440 Xamarin Update[65462:10742340] Acquired root authorization
2016-03-08 23:51:52.440 Xamarin Update[65462:10742340] Updates require restart, terminating Xamarin Studio and related apps
2016-03-08 23:51:52.461 Xamarin Update[65462:10742640] Installing update 1 of 4
2016-03-08 23:51:52.462 Xamarin Update[65462:10742640] Attaching disk image '/Users/andydent/Library/Caches/XamarinStudio-5.0/TempDownload/XamarinStudio-5.10.3.26-0.dmg'
Comment 2 iain 2016-03-09 18:28:08 UTC
Some further info regarding this from Chris Hardy

> if I quit the Xamarin Updater and run the dmg file directly, it just complains that 
> the Resource is busy (Mac error message), if I delete all the things, re run the 
> downloader and open the dmg directly, it seems to work but if I close an unmount it 
> and continue installing through XS, it fails again
Comment 3 Andy Dent 2016-03-10 00:34:53 UTC
Confirmed that a full reboot of my Mac apparently fixes the problem. After rebooting, the next time I started Xamarin Studio and went into Check Updates it said those same updates were downloaded and ready to install.

This time, clicking the button to install went smoothly - there was no perceptible delay at any point and all the updates applied.
Comment 4 iain 2016-03-10 19:11:34 UTC
Some debugging info from Chris Hardy's machine shows that hdiutil hangs while trying to mount the disk image:

2016-03-10 14:03:22.141 Xamarin Update[54371:17826711] Starting to attach '/Users/chrisntr/Library/Caches/XamarinStudio-6.0/TempDownload/XamarinStudio-6.0.0.4761-0.dmg'

Is the last thing in his log.

The verbose output from hdiutil gives:

DIBackingStoreInstantiatorProbe: interface  0, score      100, CBSDBackingStore
DIBackingStoreInstantiatorProbe: interface  1, score    -1000, CBundleBackingStore
DIBackingStoreInstantiatorProbe: interface  2, score    -1000, CRAMBackingStore
DIBackingStoreInstantiatorProbe: interface  3, score      100, CCarbonBackingStore
DIBackingStoreInstantiatorProbe: interface  4, score    -1000, CDevBackingStore
DIBackingStoreInstantiatorProbe: interface  5, score    -1000, CCURLBackingStore
DIBackingStoreInstantiatorProbe: interface  6, score    -1000, CVectoredBackingStore
DIBackingStoreInstantiatorProbe: interface  0, score      100, CBSDBackingStore
DIBackingStoreInstantiatorProbe: interface  1, score    -1000, CBundleBackingStore
DIBackingStoreInstantiatorProbe: interface  2, score    -1000, CRAMBackingStore
DIBackingStoreInstantiatorProbe: interface  3, score      100, CCarbonBackingStore
DIBackingStoreInstantiatorProbe: interface  4, score    -1000, CDevBackingStore
DIBackingStoreInstantiatorProbe: interface  5, score    -1000, CCURLBackingStore
DIBackingStoreInstantiatorProbe: interface  6, score    -1000, CVectoredBackingStore
DIFileEncodingInstantiatorProbe: interface  0, score    -1000, CMacBinaryEncoding
DIFileEncodingInstantiatorProbe: interface  1, score    -1000, CAppleSingleEncoding
DIFileEncodingInstantiatorProbe: interface  2, score    -1000, CEncryptedEncoding
DIFileEncodingInstantiatorProbe: interface  0, score      900, CUDIFEncoding
DIFileEncodingNewWithBackingStore: CUDIFEncoding
DIFileEncodingNewWithBackingStore: instantiator returned 0
DIFileEncodingInstantiatorProbe: interface  0, score    -1000, CSegmentedNDIFEncoding
DIFileEncodingInstantiatorProbe: interface  1, score    -1000, CSegmentedUDIFEncoding
DIFileEncodingInstantiatorProbe: interface  2, score    -1000, CSegmentedUDIFRawEncoding
DIDiskImageInstantiatorProbe: interface  0, score     1000, CUDIFDiskImage
DIDiskImageInstantiatorProbe: interface  1, score        0, CSparseBundleDiskImage
DIDiskImageInstantiatorProbe: interface  2, score        0, CSparseDiskImage
DIDiskImageInstantiatorProbe: interface  3, score     -100, CRawDiskImage
DIDiskImageInstantiatorProbe: interface  4, score        0, CDARTDiskImage
DIDiskImageInstantiatorProbe: interface  5, score        0, CDiskCopy42DiskImage
DIDiskImageInstantiatorProbe: interface  6, score    -1000, CNDIFDiskImage
DIDiskImageInstantiatorProbe: interface  8, score     -100, CShadowedDiskImage
DIDiskImageInstantiatorProbe: interface  9, score    -1000, CCFPlugInDiskImage
DIDiskImageInstantiatorProbe: interface 10, score     -100, CWrappedDiskImage
DIDiskImageNewWithBackingStore: CUDIFDiskImage
DIDiskImageNewWithBackingStore: instantiator returned 0
DI_kextWaitQuiet: about to call IOServiceWaitQuiet...
DI_kextWaitQuiet: IOServiceWaitQuiet took 0.000002 seconds
2016-03-10 14:03:22.319 diskimages-helper[54376:17826729] DIHelperHDID serveImage: attaching drive
{
    autodiskmount = 1;
    "hdiagent-drive-identifier" = "913F361C-9999-4601-94E4-18484FF8F68B";
    "unmount-timeout" = 0;
}
2016-03-10 14:03:22.321 diskimages-helper[54376:17826729] DIHelperHDID serveImage: connecting to myDrive 0x4D23
2016-03-10 14:03:22.321 diskimages-helper[54376:17826729] DIHelperHDID serveImage: register _readBuffer 0x102fba000
2016-03-10 14:03:22.321 diskimages-helper[54376:17826729] DIHelperHDID serveImage: activating drive port 19211
2016-03-10 14:03:22.321 diskimages-helper[54376:17826729] DIHelperHDID serveImage: set cache enabled=TRUE returned SUCCESS.
2016-03-10 14:03:22.321 diskimages-helper[54376:17826729] DIHelperHDID serveImage: set on IO thread=TRUE returned SUCCESS.
2016-03-10 14:03:22.321 diskimages-helper[54376:17826729] -processKernelRequest: will sleep received
2016-03-10 14:03:22.578 diskimages-helper[54376:17826726] _mountDevEntries: disk8s1 aborting mountpoint postflight because disk image has no band size specified.
2016-03-10 14:03:38.473 diskimages-helper[54376:17826729] -processKernelRequest: will sleep received
Comment 5 iain 2016-03-14 12:04:13 UTC
Fix submitted
Comment 6 xamarin-release-manager 2016-03-25 11:48:19 UTC
Fixed in version 6.1.0.396 (master)

Author: iain holmes
Commit: 54faa4dbb06ad1fb77b0ea4fed676699719575fd (xamarin/md-addins)
Included in Commit: ca45e7c0e8779f91f21590a24f0eb99a4c622b28 (mono/monodevelop)
Comment 7 xamarin-release-manager 2016-04-20 23:12:04 UTC
Fixed in version 6.0.0.5085 (cycle7)

Author: iain holmes
Commit: e7601fddd6ee4eda549efe3125f046dfecaa44b4 (xamarin/md-addins)
Included in Commit: 18774fb2495c1e6479176ff37a44a0886bcb62ed (mono/monodevelop)
Comment 8 xamarin-release-manager 2016-05-02 21:32:52 UTC
Fixed in version 6.0.0.4946 (cycle7-android-n)

Author: iain holmes
Commit: e7601fddd6ee4eda549efe3125f046dfecaa44b4 (xamarin/md-addins)
Included in Commit: 0ef77f9ba3302af9b11097b9b3747a7bc0416c6c (mono/monodevelop)