Notice (2018-05-24): bugzilla.xamarin.com is now in
Please join us on
Visual Studio Developer Community and in the
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
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.
While updating the Xcode project MD hung for over two minutes (I watched a 2:13 video while waiting for it). After that time I started killing MD processes to stop it and got the following error and stack trace.
Error updating Xcode project. Error ScriptError: Xcode got an error: AppleEvent timed out.
System.Exception: Error ScriptError: Xcode got an error: AppleEvent timed out.
at MonoDevelop.MacInterop.AppleScript.Run (Boolean compile, MonoDevelop.MacInterop.AEDesc& scriptData) [0x00012] in /private/tmp/source/monodevelop/main/src/addins/MacPlatform/MacInterop/AppleScript.cs:107
at MonoDevelop.MacInterop.AppleScript.Run (System.String scriptSource) [0x00010] in /private/tmp/source/monodevelop/main/src/addins/MacPlatform/MacInterop/AppleScript.cs:83
at MonoDevelop.MacInterop.AppleScript.Run (System.String scriptSourceFormat, System.Object args) [0x00000] in /private/tmp/source/monodevelop/main/src/addins/MacPlatform/MacInterop/AppleScript.cs:74
at MonoDevelop.MacDev.XcodeSyncing.XcodeMonitor.CloseFile (System.String fileName) [0x0000d] in /private/tmp/source/monodevelop/main/src/addins/MonoDevelop.MacDev/XcodeSyncing/XcodeMonitor.cs:352
at MonoDevelop.MacDev.XcodeSyncing.XcodeMonitor.UpdateProject (IProgressMonitor monitor, System.Collections.Generic.List`1 allItems, MonoDevelop.MacDev.XcodeIntegration.XcodeProject emptyProject) [0x001c6] in /private/tmp/source/monodevelop/main/src/addins/MonoDevelop.MacDev/XcodeSyncing/XcodeMonitor.cs:114
at MonoDevelop.MacDev.XcodeSyncing.XcodeProjectTracker.UpdateXcodeProject (IProgressMonitor monitor) [0x00000] in /private/tmp/source/monodevelop/main/src/addins/MonoDevelop.MacDev/XcodeSyncing/XcodeProjectTracker.cs:318
Created attachment 1204 [details]
A possible solution
Michael and I looked into this a bit on Friday and we discovered that while the AppleScript APIs don't have a way to provide a timeout value, the script language itself does.
So... one possible solution is to figure out a good timeout to use and rework the scripts to use timeouts and make the script functions that don't have a return value we care about be completely async.
That's what the attached patch attempts to do.
Might need more thought wrt the chosen timeout values, though.
Created attachment 1292 [details]
new and improved patch
This updated patch is a bit cleaner (i.e. doesn't grep an error string for "time out") and does better error handling instead of just dropping all timeout exceptions.
Committed a slightly modified version of above patch. Hopefully this improves things, though we may want to tweak the timeout values a bit
Since upgrading MonoTouch/MonoDevelop this has started happening again if XCode is open. It also seems to be crashing sometimes when it times out.
Here is my current version info:
Installation UUID: 5042d5ea-af80-4cb8-98cf-fb258ece7fd9
Mono 2.10.9 (tarball)
Package version: 210090011
Apple Developer Tools:
Xcode 4.5 (1839)
Not sure if this is resolved or not, but there have been more fixes in this area of code.
pretty sure this is fixed