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.
I'm getting serious issues with using Xamarin Android in the last few days. Anytime I compile a solution with a few files open, visual studio crashes.
This happens with both Visual Studio 2013 and 2012. Using Xamarin 3.9.289.0
Following error is logged in Event Viewer:
Framework Version: v4.0.30319
Description: The process was terminated due to an unhandled exception.
Exception Info: System.AccessViolationException
at Xamarin.VisualStudio.Android.MonoAndroidDeploySession.DeployApplication(Mono.AndroidTools.AndroidDevice, System.Threading.CancellationToken)
at System.Threading.ExecutionContext.RunInternal(System.Threading.ExecutionContext, System.Threading.ContextCallback, System.Object, Boolean)
at System.Threading.ExecutionContext.Run(System.Threading.ExecutionContext, System.Threading.ContextCallback, System.Object, Boolean)
at System.Threading.Tasks.Task.ExecuteWithThreadLocal(System.Threading.Tasks.Task ByRef)
I am investigating your issue. Can you please let me know the following:
What update are you running on Visual Studio 2012/2013. Please ensure you are running Update 4.
What version of Android is your solution targeting?
Have you done a clean before you build?
Thanks for looking into this. I'm on VS2013 Update 4. This issue seems to have started happening when I got the Xamarin update 3.9.302 (although I'm not 100% if that was indeed the cause). I've tried downgrading all the way to 3.8.150 and still get the same problem.
It seems to happen immediately after it zipaligns the APK.
It works fine if I close all the documents in the visual studio and deploy.
Is there a way to completely remove all the Xamarin components and reinstall? Using Add/Remove programs doesn't seem to remove all the settings.
Forgot to add, the solution is built for Android 3.2 SDK. android:minSdkVersion="8" android:targetSdkVersion="14".
I've tried clean multiple times. The same solution builds fine on another machine with very similar setup running Xamarin Android 3.9.289.
Hi Ian Ceicys,
Any update on this?
is this still reproducible for you?
As we've introduced several improvements around the Android build system, I'll mark the bug as resolved fixed.
Please feel free to reopen it if you can still reproduce the issue with current bits.