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 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.
Created attachment 18297 [details]
In the latest version 10.2.1.4 I continue to keep getting "Cannot access a disposed object. Object name: "BuildConnection"" Sometimes VS crashes and then I have to restart it to fix it.
It would be good to have more details and better information on this error.
i - When does it happens? (on every build attempt, sometimes, etc)
ii - Are you getting full connected to XMA (green XMA icon on the toolbar)
iii - Please start VS in log mode, so we can get verbose logs on both Win and Mac (devenv.exe /log)
iv - After reproducing the error with VS in log mode, please attach the VS logs as well as Mac logs of the corresponding VS session
Changing status to NEEDINFO based on previous comment
Coarse reproduction steps:
> just debug ios apps usually with remote ios simulator from windows
> And about after a few runs it will just happen
> Has never happened before
> Ran into it about 10 times yesterday
Plus info from @Alan:
> that error happens when xvs disposes it's `BuildConnection` object
ObjectDisposedException is thrown when MSBuild tries to use BuildConnection, because the connection has been finished for some reason.
That's why MSbuild output, VS and XMA logs would be useful. I need to figure out if the XMA connection is being closed (error, remote disconnection, etc). Also If it's being closed on VS and MSBuild, only on MSBuild, etc.
Only with the above information I can do basically nothing, because I'm not being able to reproduce it.
I will play around a little bit to try getting this behaviour.
But if you can get me the logs when this happens, it could be more useful.
Fixed in version 220.127.116.11 (cycle8-bug46282)
Commit: 5efdbf19242e8d29cc4cda7e2c1bfd86bd0b5993 (xamarin/XamarinVS)
I can also reproduced this Issue using comment#9. This is the build output for the same: https://gist.github.com/sachins360/f9b386b00e538e6d4daca9705201a640
XVS 18.104.22.168, XI 10.2.1.5 VS 2015
I checked the Issue with latest XVS 22.214.171.124, Now this is working fine.
XVS 126.96.36.199, XI 10.2.1.5 VS 2015
IDE Log: https://gist.github.com/saurabh360/9d857a8b7b3f2aa0dce460898eb1a1bf
I got fixed build from 'xvs-win-cycle8-bug46282'lane but not seeing fixed build from 'xvs-win-cycle8' lane.
Please confirm me if fixed build will be merged into 'xvs-win-cycle8' for release?
Fixed in version 188.8.131.52 (cycle8)
Commit: fb22cf9e8c2f80d92420910b7fd046045f7d2885 (xamarin/XamarinVS)
Fixed in version 184.108.40.206 (cycle8)
Commit: 124903bed49c2784c9951236129dc61cac1e786e (xamarin/XamarinVS)
I have checked this Issue with latest C8SR1 build XVS 220.127.116.11. This is working fine with this build.
Microsoft Visual Studio Enterprise 2015
Version 14.0.25422.01 Update 3
Microsoft .NET Framework
Installed Version: Enterprise
Xamarin 18.104.22.168 (124903b)
Visual Studio extension to enable development for Xamarin.iOS and Xamarin.Android.
Xamarin Inspector Support 0.10.0.874 (76a53d3)
Adds support for inspecting Xamarin and WPF apps.
Xamarin.Android 22.214.171.124 (301f2df)
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.