locked
Droid - Debugging - Visual Studio Is Busy RRS feed

  • Question

  • User22183 posted

    I have been developing in Xamarin for about 4 months (VS2012/mono-android-4.8.03015) and there's some kind of bug that happens rather frequently where you're debugging, hit a breakpoint, and VS is no longer responding. The IDE process isn't dead but you will see a "Visual Studio is Busy" notification on the taskbar. It's beyond annoying because you pretty much have to kill the IDE via Task Manager.

    Is Xamarin aware of this bug? Is there something I can do or kill to get around this?

    Tuesday, January 7, 2014 6:55 PM

All replies

  • User87646 posted

    I'm seeing the same issue :(

    Wednesday, January 14, 2015 1:57 PM
  • User70135 posted

    updated Xamarin today and got the same issue.

    Microsoft Visual Studio Ultimate 2013 Version 12.0.31101.00 Update 4 Microsoft .NET Framework Version 4.5.50938

    Installed Version: Ultimate

    Xamarin 3.9.236.0 (d6a2cae) Visual Studio extension to enable development for Xamarin.iOS and Xamarin.Android.

    Xamarin.Android 4.20.0.34 (49a04b966feb40dfdba49d57ba16249b66d606a6) Visual Studio plugin to enable development for Xamarin.Android.

    Xamarin.iOS 8.6.0.0 (eb24bdcf5cba2c12b673a07e0a8cce368b9563b3) Visual Studio extension to enable development for Xamarin.iOS.

    Xamarin.iOS Unified Migration 1.0 Automated migration for Xamarin iOS Classic projects to Unified

    Wednesday, January 14, 2015 5:39 PM
  • User25635 posted

    I reported this issue to Xamarin support yesterday and a bugzilla issue has been added. I'd encourage you guys to maybe add to the issue in order to maybe get it prioritized for a fix. https://bugzilla.xamarin.com/show_bug.cgi?id=26025

    Wednesday, January 14, 2015 6:25 PM
  • User25635 posted

    I reported this issue to Xamarin support yesterday and a bugzilla issue has been added. I'd encourage you guys to maybe add to the issue in order to maybe get it prioritized for a fix. https://bugzilla.xamarin.com/show_bug.cgi?id=26025

    Wednesday, January 14, 2015 6:25 PM
  • User70135 posted

    any way to rollback update?

    Thursday, January 15, 2015 3:39 PM
  • User20824 posted

    Brendan posted a guide how to rollback in one of the iOS threads relating to this Visual Studio is Busy problem. It might help you.

    http://forums.xamarin.com/discussion/comment/97053/#Comment_97053

    Thursday, January 15, 2015 4:00 PM
  • User25635 posted

    This is an absolute nightmare developing with Xamarin right now on Visual Studio.

    Thursday, January 15, 2015 6:04 PM
  • User100117 posted

    This issue is killing my development right now too. I am not sure what more I can add to the bug though... it is pretty much all there.

    Thursday, January 15, 2015 7:41 PM
  • User100117 posted

    I rolled back to version 3.8.15 of Xamarin and everything is working for me again.

    Thursday, January 15, 2015 8:55 PM
  • User77428 posted

    Apologies you guys are hitting this bug. I have a repo of this case on Android, but I'd like to confirm the exact issue you are facing can you please send me / provide me your solution file where you are clearly seeing this issue. I want to confirm the fix we have addresses this specific bug.

    Thursday, January 15, 2015 11:17 PM
  • User53251 posted

    I'm having the same problem here since the latest Android update. The hang doesn't happen every time, but occasionally. I've seen it in the following situations:

    • When hitting a breakpoint
    • When continuing from a breakpoint
    • On random, when I navigated Up in my app (I'm guess it had to recreate the view)
    • I also briefly tried VS2015 and it hanged once when pressing stop debugging

    I've tried to recreate my project, change to the latest android sdk api version and many other things, and nothing really helps. I've never experienced these hangs on Xamarin Android prior to the latest update.

    Edit: I'm using Visual Studio 2013 Update 4

    Friday, January 16, 2015 1:55 PM
  • User77428 posted

    Hi Nils\all. We've been looking into this issue...and we believe the issue is related to Resharper. ReSharper 9.0 Update 1 Build 9.0.20141219.130142. Can you please disable Resharper and let us know if you are still seeing the issue?

    We are going to work to figure out a solution that works with this new version of Resharper.

    Friday, January 16, 2015 10:08 PM
  • User53251 posted

    Hi Ian

    Unfortunally I don't run any other extension than Xamarin.

    I'm not sure if it's relevant, but I very often have to delete the .suo file, otherwise Visual Studio hangs on loading the solution. However, I also had to do this with previous versions of Xamarin, but debugging worked properly then.

    Monday, January 19, 2015 9:14 AM
  • User63744 posted

    +1

    My team upgraded to the latest version so we can migrate to unified and now this happens. Can't do anything on a real device for days now. This is a huge disappointment really. Every now and then my projects grind to a halt because of a bad Xamarin update. Rolling back is not an option because of the lacking unified support. And no, I'm not using resharper.

    Monday, January 19, 2015 1:51 PM
  • User65389 posted

    Same problem here!
    To do the update to XF 1.3.1 (unified API), I have updated XF on MAC and XF-Integration to VS to the latest "stable"-versions (from stable-channel).
    I don't use Resharper... so.. this problem is not related to Resharper

    After doing that, I am not able to debug in Android (like described in the postings here, also with hangs of VS, so that I have to shutdown VS from Taskmanager).
    I further also have problems with iOS like described here:

    forums.xamarin.com/discussion/29715/ios-visual-studio-locks-up-on-launching-application-for-debugging#latest

    The only platform, where debugging works now, is WP.

    So once again... it would me (more then) nice, if the VS-Integration would start to really work and not to break after every update to every peace of software... (fortunately the hope dies last)

    Monday, January 19, 2015 2:07 PM
  • User25720 posted

    Same for me here, without Resharper too. I'm currently blocked on all projects (droid/ios), and the worst is that I didn't need unified API yet, I just thought it would be nice to migrate as soon as possible (so I did it when insights was available with unified API). You recommended to migrate as soon as possible.

    I'm really disappointed because « stable » releases are supposed to be stable. Not bug-free, I can live with a few problems and as a developper I can really relate, but this is a major regression that blocks both Android and iOS, and apparently for more than a few users. We cannot even use the workaround of downgrading because of the migration. We are just stuck with no visibility over the future.

    Considering your licence prices, I think this is not acceptable. Don't get me wrong, your products are amazing, but I really believe this should not have passed through QA. I really hope you will find and fix the bug asap.

    I wish you luck and courage on this.

    Configuration :

    • PCL projects, including Xamarin.Forms
    • Android project
    • iOS project
    • no resharper, few basic extensions (most were included)
    • no components, a few nuget packages including barcode scanner (with Acr.Xamforms / ZXing)
    • VS 2013 Community Edition on a 64 bits Windows Seven

    I'm willing to spend time with Xamarin Team to reproduce on my computer if necessary, don't hesitate to contact me.

    Monday, January 19, 2015 2:36 PM
  • User77428 posted

    Hello Everyone.

    We believe we've identified the root cause of the issue you are facing with the Visual Studio Hangs on Android, and I've personally messaged all of the individuals who have posted here on this forum.

    We have a hotfix candidate and we have internally been able to verify that the issue is addressed.

    I am looking for candidates that would be willing to install the hotfix on their machines in order to verify that the issue is entirely resolved.

    The VS configuration and extensions installed on your machine may cause the issue to be more prevalent and so we are widening the matrix of configurations we are testing on....in the mean time please reach out if you have the ability to install a private hotfix that should resolve this issue.

    My contact details are below.

    Thanks, Ian Ceicys :: Visual Studio QA Software Engineer @ Xamarin - title :: Ian.Ceicys@Xamarin.com - email :: (440)724-6721 - phone.mobile

    Monday, January 19, 2015 4:55 PM
  • User73234 posted

    Are you able to give an ETA on the fix?

    Monday, January 19, 2015 10:15 PM
  • User52201 posted

    I am having this issue too. Ian, I have sent you an email requesting the hotfix so I can get back to work.

    Tuesday, January 20, 2015 6:05 AM
  • User65389 posted

    Installed 3.9.274 from GoogleDrive-Link... Same behavior!
    Not able to debug iOS, not able to debug Android (VS hangs -> I had to shutdown VS in Taskmanager).

    Annoying...

    Tuesday, January 20, 2015 2:28 PM
  • User80642 posted

    Hi guys,

    In my case, creating too many background threads causes this issue. This problem happens on iOS and Android but not WP. I think it's because each os has different resource capacity like total thread count for an app. If there are many extensions and the extensions run many background threads, it may easily cause this problem.

    This is the code causing this issue.

    // this bg task is run by valueChanged event of Entry // when I enter 20 more charaters in the Entry, this problem happens.

    public void Validate() { Task.Factory.StartNew(() => { // delay to run after 5 seconds Task.Delay(5000).Wait();

        // if entering value is not completed, cancel this task.
        if (!valueChangeCompleted)
               return;
    
        // run something if entering value is completed.
       .....
       .....
    }
    

    }

    Anyway, even if the code causes the problem, Xamarin should show the exact reason instead of "Visual Studio is busy".

    Tuesday, January 20, 2015 2:56 PM
  • User77428 posted

    Hi Folks, we are continuing to investigate reports of hangs on Android devices and we believe that Xamarin.VisualStudio_3.9.274 contains the necessary fixes for the Android hangs and that the debugger successfully attaches.

    We have seen customer have success when they attempt to debug the application in VS a second time. This resolves any cached/stale results.

    We have have several customers successfully install this hotfix and have seen the hang issues be resolved for Android.

    After installing this hotfix build i'd like to ask you to send everyone to please send me a quick mail indicating if you've seen the hang issue being resolved or if it is in fact NOT resolved. any additional feedback/issues you are seeing would be very much appreciated so I can make additional improvements.

    Ian Ceicys :: Visual Studio QA Software Engineer @ Xamarin - title :: Ian.Ceicys@Xamarin.com - email :: (440)724-6721 - phone.mobile

    Wednesday, January 21, 2015 3:40 PM
  • User65389 posted

    Hi Ian (and others)

    As I write in my last posting, the update definitely don't work for me.
    Actual behavior (after install update and reboot MAC):
    Android:
    - A few minutes ago, I was able to debug Android two times
    - Now (third time), VS hangs with a spinning wheel since a few minutes
    => I have to shutdown VS in Taskmanager (once again)
    iOS:
    - I can deploy to iPhone
    - Debugger is started and holds on first breakpoint
    - If I the go further in code, the debugger lost the connection
    WP:
    - Seems to work (only platform, that works)

    Ian: As I have sent you my whole project, I hope you can comprehend the problem...

    Wednesday, January 21, 2015 3:51 PM
  • User99341 posted

    Myself and my co-worker are having Visual studio lock up as well. We dont use resharper. This is REALLY killing my development time. This has to be a top priority...

    Thursday, January 22, 2015 8:50 AM
  • User99341 posted

    ...

    Thursday, January 22, 2015 1:46 PM
  • User24307 posted

    Where can I get Xamarin.VisualStudio_3.9.274?

    Thursday, January 22, 2015 3:27 PM
  • User13824 posted

    Here's a link to the experimental preview build that many users have reported to be helpful. As a caution, keep in mind that this build includes new untested changes, so even if it helps with the hanging problem it's possible it might introduce some other issues.

    That warning out of the way, here's the build for anyone who might like to try it:
    http://xvs.xamarin.com/Xamarin.VisualStudio_3.9.274.msi

    These changes will also be included in an upcoming service release (tentatively scheduled for release to the Alpha channel before the end of the month).

    Friday, January 23, 2015 12:30 AM
  • User2024 posted

    Just tested the updated msi, and for me is thumbs up! Before this I had to kill adb after every debug session to make visual studio responsive again, and eventually restart visual studio anyway. It seems it's working much better now. I'll keep on working on this for the rest of the day and see if there's any major issue. Oh, by any chance, is sketches for visual studio in this release? (joking ;))

    Friday, January 23, 2015 12:03 PM
  • User65319 posted

    Same problem here: after I manually updated my solution to iOS Unified debugging problems started.

    Also see this thread:

    https://forums.xamarin.com/discussion/27775

    Setup: Xamarin.Forms PCL solution, current stable versions of Xamarin.Forms, Xamarin Studio and Visual Studio Xamarin add-on, Visual Studio 2013 Update 4, Windows 8.1 Update 64bit, NuGet packages: Json.NET 6.0.8, RestSharp 105.0.1, SQLite.NET PCL 2.5.

    Starting iOS debugging is not a problem, but it's almost for sure that while debugging at some point Visual Studio freezes saying "Visual Studio is busy" when trying to activate its window and also the app in the iOS Simulatur hangs. This happens e.g. when just clicking on a SwitchCell in my app that causes a RestSharp call using a binding like "On='{Binding ...}'".

    I then have to force quit Visual Studio 2013 via Task Manager.

    I also tried to wait and see what happens when let Visual Studio open after its freeze. After approximately 12 minutes Visual Studio got force quit by the OS. See attached file for the last entry in the %LOCALAPPDATA%\Xamarin\Log\12.0\devenv....log at that time.

    Please fix this annoying issue as soon as possible! Alas, I am not such a man of genius that I do not need to debug in order to develop...

    Thanks in advance!

    Friday, January 23, 2015 1:20 PM
  • User52201 posted

    Whilst the experimental build appears to reduce the incidence of VS is busy dialogs, it has introduced a new issue.

    I am now finding that VS is now simply locked after stopping debugging. This is happening around 20% of the time. I have to kill VS via task manager and reload the project.

    In addition, it also does appear to have caused the app i'm working on to run more slowly when I'm debugging.

    I do not have resharper nor any other plug-ins installed. I'm running VS Premium 2013 Update 3.

    As everyone else has stated, this is a significant issue and really should never happen for a "stable" release.

    This issue is grinding a very time-sensitive project to an almost complete halt.

    Happy to provide the Xamarin logs or any other debug info that would be helpful

    Tuesday, January 27, 2015 7:03 AM
  • User65389 posted

    @DarrenChapman?:
    See also this thread: forums.xamarin.com/discussion/comment/99519#Comment_99519

    The only platform, that works for me right now is WP.

    But it seems as the problem is depending on the environment (some other users say, that their problems are solved with the update).

    Tuesday, January 27, 2015 8:53 AM
  • User2024 posted

    After a few days of testing, it seems to me that the package alleviates the issue but it's not a definitive fix. After a few rounds of deployment/debug, I still have to kill adb in order to regain control of visual studio. Looking at process monitor/netstat, it seems that visual studio become very "chatty" with adb.

    Tuesday, January 27, 2015 10:58 AM
  • User15878 posted

    Another issue that I and my team suffer from on Visual Studio (13 ultimate + pro), is VS hangs every time I try to create a new file, regardless of it's type. I did not upgrade to the beta build yet since I cannot risk loosing more work days on Xamarin bugs... Thanks

    Tuesday, January 27, 2015 3:00 PM
  • User14970 posted

    I too have been getting this problem. It seems to be a common thing now with Xamarin. Update to the latest stable version, something else is broken that makes it difficult or wastes days trying to get working while work deadlines are looming. Makes it really frustrating considering the amount of money it costs to use Xamarin in the first place.

    Android debugging has totally ground to a halt for me now because of this bug. I've tried both Xamarin Player and the Intel emulator, both do the same.

    I'm using Resharper 7.1.2 in Visual Studio 2012.

    I'm hesitant to try the 3.9.274.msi for fear it's going to break even more and stop me from something else.

    I also find the versioning used by Xamarin utterly confusing. Each component has it's own version which seems to have no parity to other components and then it's different again depending on the host system you're installing on.

    E.g, Xamarin.Android for OS X is 4.2, Xamarin.Android for Windows is 3.9.236 Xamarin.iOS for OS X is 8.6, Xamarin.iOS for Windows is 3.9.236

    How do I know which version can be used with which other version to successfully downgrade? I can't even use the date because for example Xamarin.Android for windows was released on Jan 13th with version 3.9.236 and OS X was 4.2 on Nov 21!?

    Sorry for the rant, it's been building up for months now with each broken 'Stable' release.

    Wednesday, January 28, 2015 2:44 AM
  • User14970 posted

    From the logs it seems to be spamming: Xamarin.VisualStudio.ProcessWrapper Verbose: 0 : [2015-01-28 12:49:14.1] -- Starting Process - 01/28/2015 12:49:14 -- Xamarin.VisualStudio.ProcessWrapper Verbose: 0 : [2015-01-28 12:49:14.1] Executable: C:\Users\Nimble\AppData\Local\Android\ANDROI~1\tools\android.bat Xamarin.VisualStudio.ProcessWrapper Verbose: 0 : [2015-01-28 12:49:14.2] Arguments: list avd Xamarin.VisualStudio.ProcessWrapper Verbose: 0 : [2015-01-28 12:49:15.0] -- Process Finished [-1] --

    I've attached the log from a recent session before I terminated VS

    Wednesday, January 28, 2015 2:49 AM
  • User14970 posted

    Just to add to this, it appears to also be happening from VS when you debug iOS. You launch, try to do something in the app, and VS freezes.

    The interesting thing about that is that it looks like even though I'm running iOS, it's still spamming list avd.

    Xamarin.VisualStudio.IOS.XamarinIOSPackage Information: 0 : [2015-01-28 14:22:24.1] [28-Jan-2015 14:22:24] Request handled in 2.929ms Xamarin.VisualStudio.IOS.XamarinIOSPackage Information: 0 : [2015-01-28 14:22:25.6] [28-Jan-2015 14:22:26] Request handled in 3.32ms Xamarin.VisualStudio.ProcessWrapper Verbose: 0 : [2015-01-28 14:22:26.9] -- Starting Process - 01/28/2015 14:22:26 -- Xamarin.VisualStudio.ProcessWrapper Verbose: 0 : [2015-01-28 14:22:26.9] Executable: C:\Users\Nimble\AppData\Local\Android\ANDROI~1\tools\android.bat Xamarin.VisualStudio.ProcessWrapper Verbose: 0 : [2015-01-28 14:22:27.0] Arguments: list avd Xamarin.VisualStudio.IOS.XamarinIOSPackage Information: 0 : [2015-01-28 14:22:27.1] [28-Jan-2015 14:22:27] Request handled in 2.677ms Xamarin.VisualStudio.ProcessWrapper Verbose: 0 : [2015-01-28 14:22:27.9] -- Process Finished [-1] -- Xamarin.VisualStudio.IOS.XamarinIOSPackage Information: 0 : [2015-01-28 14:22:28.6] [28-Jan-2015 14:22:29] Request handled in 2.365ms Xamarin.VisualStudio.IOS.XamarinIOSPackage Information: 0 : [2015-01-28 14:22:30.1] [28-Jan-2015 14:22:30] Request handled in 2.241ms Xamarin.VisualStudio.IOS.XamarinIOSPackage Information: 0 : [2015-01-28 14:22:31.6] [28-Jan-2015 14:22:32] Request handled in 3.367ms Xamarin.VisualStudio.ProcessWrapper Verbose: 0 : [2015-01-28 14:22:31.9] -- Starting Process - 01/28/2015 14:22:31 -- Xamarin.VisualStudio.ProcessWrapper Verbose: 0 : [2015-01-28 14:22:32.0] Executable: C:\Users\Nimble\AppData\Local\Android\ANDROI~1\tools\android.bat

    Wednesday, January 28, 2015 4:25 AM
  • User26934 posted

    Same problem here on Android. I've tried the 3.9.274 update (link is in the thread referenced in the first post in this thread) - it hasn't helped. I don't have resharper installed. I get the same results whether I'm using an Xamarin Android Player or a device (HTC Desire).

    It's been some time now since a Xamarin update broke things like this.

    Hoping for a speedy fix...

    Wednesday, January 28, 2015 4:55 AM
  • User52201 posted

    Just a heads-up to anyone struggling with this and related issues. Just in case you have missed the post by @mikescandy?, I can confirm that there are two scenarios where killing the adb process will give you back Visual Studio:

    1] Visual Studio is Busy (never to return)

    2] Visual Studio is opening a file (never to return)

    Thanks @mikescandy?!

    Wednesday, January 28, 2015 6:41 AM
  • User55052 posted

    I am also having this same issue where VS 2013 hangs right after the Android app I am working on starts up on either a real device or simulator. My coworker is also experiencing this same issue on the iOS side as well. This bug is really making it difficult for us to do our jobs as software developers. Please release a fix as soon as possible.

    Wednesday, January 28, 2015 2:34 PM
  • User55052 posted

    The latest alpha build 3.9.289 is working good so far.

    Wednesday, January 28, 2015 9:22 PM
  • User14970 posted

    Just a heads-up to anyone struggling with this and related issues. Just in case you have missed the post by @mikescandy?, I can confirm that there are two scenarios where killing the adb process will give you back Visual Studio:

    Unfortunately this doesn't work for me. I kill adb and VS is dead to the world. Nothing works except killing VS.

    Thursday, January 29, 2015 8:02 AM
  • User13824 posted

    There are known bugs in the XamarinVS current stable version 3.9.236 that will cause hangs under certain scenarios. An updated version (3.9.289) is now available on the Alpha updater channel. It includes the fixes that were in 3.9.274 plus just a few other changes. So anyone who is hitting debugger hangs with 3.9.236 can feel free to update directly to 3.9.289 via the updater. Two key issues that were fixed for 3.9.274 (and are included in 3.9.289) were: (1) a problem that could cause the soft debugger to deadlock when polling the threads of the running app, and (2) a few scenarios that could cause Visual Studio to hang when the VS debugger had trouble connecting with the soft debugger agent in the app.

    @Cliff and others, if you haven't yet updated past 3.9.236, you can either update to the Alpha channel or temporarily downgrade to 3.8. For downgrading, see also http://kb.xamarin.com/customer/portal/articles/1699777-downgrading (This link should open an article titled "Downgrading". Due to some of the login code on xamarin.com, you might have to navigate to the link twice to get the correct article to appear.)

    For convenience (and also for trial users who won't see old versions on their store.xamarin.com account page), here are the download links for the previous stable versions:

    Thursday, January 29, 2015 4:24 PM
  • User97920 posted

    What are the changes between the 3.9.274 and the 3.9.289? The documentation is really lacking on this subject

    Thursday, January 29, 2015 4:37 PM
  • User2024 posted

    Just in the middle of something right now, but will update to alpha and provide feedback as soon as I can.

    Thursday, January 29, 2015 4:40 PM
  • User13824 posted

    I should also mention that the issue that requires killing adb sounds interesting. I will make sure the QA and developer teams see the reports on this thread and investigate. I'm almost certain that issue will remain in 3.9.289.

    I believe the only changes in 3.9.289 compared to 3.9.274 are not related to debugging. I think they are instead only for build host compatibility with the alpha version of Xamarin.iOS. I will double-check on this with the XamarinVS team.

    Thursday, January 29, 2015 4:46 PM
  • User52201 posted

    @BrendanZagaeski - i am in a position where i have to go back to the previous version so I can get some work done.

    However; I am happy to update to either the new alpha or the previous test build to generate logs etc. on my machine if they will help the VS team understand the issues.

    What is interesting regarding killing the adb process to get VS back is that there is one prior to killing, but when I have killed the task two new instances are started. This may be of interest or just an expected side-effect of killing the process but I thought I should pass it on.

    Can you also clarify the situation regarding the 289 vs 274 versions please. Are the "some other changes" likely to improve the situation for those of us who have already updated to 274?

    Thursday, January 29, 2015 10:53 PM
  • User13824 posted

    I double-checked on 3.9.274 vs 3.9.289 and heard back that apart from build host compatibility changes, the only changes are to disable Xamarin's code completion support on a file-by-file basis when ReSharper's code completion support is active on the same file (to avoid conflicts that might cause pauses while editing files).

    I'll be gathering and collating information on the adb issue over the next day and will update the thread if any particular questions arise about missing information. Thanks!

    Thursday, January 29, 2015 11:20 PM
  • User26934 posted

    FYI this is now working OK for me. I downgraded and then reinstalled 3.9.274, shut everything down, rebooted and went for a coffee. I've had one crash since then.

    Friday, January 30, 2015 4:53 AM
  • User77428 posted

    Hello Everyone.

    As mentioned, we pushed additional fixes for XamarinVS to the Alpha updater channel.

    The team and I are continuing to investigate the ADB issue and the hangs related to the 'Visual Studio Is Busy' issue that folks are encountering.

    If you haven't reached out and believe you have good steps to reproduce that consistently cause the issue to appear on your setup please reach out to me and I'll be happy to work with you. We have additional fixes that we are continuing to evaluate as new candidates to resolve this issue entirely.

    My contact details are below.

    Thanks, Ian Ceicys :: Visual Studio QA Software Engineer @ Xamarin - title :: Ian.Ceicys@Xamarin.com - email :: (440)724-6721 - phone.mobile

    Friday, January 30, 2015 2:53 PM
  • User56807 posted

    Hi Ian,

    I've had these same problems since updating to 3.9 (I'm not running Resharper), so I tried the 3.9.289 from the alpha channel and I'm still seeing very high CPU load with an Android project open in Visual Studio.

    Here's one example of Java.exe, which runs every few seconds from devenv.exe via cmd.exe, also showing its command line:

    I'm running a Core i7 @ 2.4GHz (4x2 cores), so polling this 'list avd' (via Java.exe -> com.android.sdkmanager.Main) seems quite expensive! Is it really necessary to do it? (At all? So often?)

    HTH, Philip

    Monday, February 2, 2015 5:25 PM
  • User70708 posted

    I am experiencing the same behavior as Philip. When you have more then one Visual Studio instance opened, it starts killing the performance of the machine because of the "list avd" process infinite cycle running per instance.

    Tuesday, February 3, 2015 10:08 PM
  • User13824 posted

    Thanks all for the additional follow-up on the adb hang and the list avd problem. It seems these two problems are tightly related. The list avd problem is being tracked as a high priority bug report here: https://bugzilla.xamarin.com/show_bug.cgi?id=26122. I've just started a new forum thread to provide further updates as they become available for that specific issue: http://forums.xamarin.com/discussion/32208/android-projects-cause-high-cpu-usage-related-to-android-bat-list-avd-regression-in-3-9.

    Tuesday, February 3, 2015 10:11 PM
  • User39017 posted

    Is there an ETA to have this issue rectified? I am not experiencing maxed out CPU but Visual Studio is hanging when debugging to device until I kill the process. I am not using ReSharper.

    Is there a way I can rollback my version of Xamarin to fix this...?

    Thursday, February 5, 2015 12:53 AM
  • User335 posted

    I confirm this issue. I do not have reshaper installed. Any quick fix?

    Friday, February 6, 2015 2:49 PM
  • User65389 posted

    @BrendanZagaeski:
    As you can see here in this thread and in the other thread to iOS (link see my first posting on this page), there are various users that can't do their work... I am not able to use the debugger to iOS and Android for about three weeks now.
    Can you please give an update - when we can expect an update that will work with iOS and Android.

    Thanks (in the name of all users).

    Friday, February 6, 2015 3:04 PM
  • User13824 posted

    @NormanBardell, @FrancescoColombo, @FredyWenger:

    The following points are essential to answer for any new post on this thread:

    • Are you all running 3.9.289?

    • Does downgrading to 3.8.150 stop the problem for all of you? (If I recall correctly, FredyWenger has already tested that it does stop the problem for him.)

    • Have you read through the other forum post I linked in my previous comment (http://forums.xamarin.com/discussion/32208/android-projects-cause-high-cpu-usage-related-to-android-bat-list-avd-regression-in-3-9 ) to see if it accounts for this issues you're hitting? For example does the android.bat workaround help? Do you see your antivirus scanner at the top of the Task Manager list for CPU usage?

    • If, as described in that forum post, replacing android.bat with an empty file does not help, and you don't see your antivirus scanner at the top of the list for CPU usage, then Xamarin will need additional information about what you see in the process explorer. We might also request a heap dump from the hung instance of Visual Studio. (One way to get a heap dump is by attaching another instance of VS to the hung VS. If you like, after you've attached you can browse the various Worker Threads and see if anything stands out as looking suspicious.)

    The only cause of hangs that the developers are currently tracking is the android.bat issue described in the other thread. If that does not account for your problem, please continue to follow up with Ian (as mentioned in his earlier post: "If you haven't reached out and believe you have good steps to reproduce that consistently cause the issue to appear on your setup please reach out to me" http://forums.xamarin.com/discussion/comment/100431/#Comment_100431) so that he can examine your systems in greater depth for clues about other possible causes of hangs.

    Friday, February 6, 2015 5:20 PM
  • User335 posted

    Actually I was having the issue using the stable version of Xamarin VS (3.9.236). I have now installed the beta version and it seems that the issue is gone. I need to test it further.

    I will read the other posts you mentioned to see if something is related

    thanks

    Friday, February 6, 2015 5:27 PM
  • User65389 posted

    Does downgrading to 3.8.150 stop the problem for all of you? (If I recall correctly, FredyWenger has already tested that it does stop the problem for him.)

    That's not true (else I don't would have problems ;-)
    And.. I have submitted my whole project already to Ian at 20.01.2015... But... I will check all your links next week (so I have to do something meaningful ;-)

    Friday, February 6, 2015 5:36 PM
  • User39017 posted

    @BrendanZagaeski - At this point the Alpha bugfix appears to have resolved the issue for me. Will report if anything further occurs.

    Sunday, February 8, 2015 11:51 PM
  • User65389 posted

    @BrendanZagaeski:
    I now have read all postings behind your links (and unfortunately wasted another day of my time…)

    iOS:

    Before my try’s I had installed:
    VS-Integration: 3.9.274.0
    Build Host on MAC: iOS 8.6.0.51 / BH: 3.9.0.234

    I then have installed all new versions:
    VS-Integration: 3.9.289

    On XS-MAC all versions under Beta (Alpha shows the same versions):
    Mono FrameWork MDK 3.12.0.76
    Xamarin-Studio 5.7.1
    Xamarin.iOS 8.6.1.20

    After the Updates Build-Host on MAC shows:
    iOS 8.6.1.20 / BH: 3.9.0.258

    Then I have rebooted the MAC and restarted VS 2013 (Update 2).

    In my project, I have set a breakpoint in constructor (public app()).

    Before the update VS2013 has crashed after deploying the app to the device (IPhone5):

    Error-Message (and output-Window):

    Mono.Debugging.Evaluation.EvaluatorException: Value not available
       bei Mono.Debugging.Soft.VariableValueReference.get_Value()
       bei Mono.Debugging.Soft.SoftDebuggerAdaptor.GetHoistedLocalVariables(SoftEvaluationContext cx, ValueReference vthis)
       bei Mono.Debugging.Soft.SoftDebuggerAdaptor.<GetLocalVariables>d__b.MoveNext()
       bei System.Collections.Generic.List`1.InsertRange(Int32 index, IEnumerable`1 collection)
       bei Mono.Debugging.Evaluation.BaseBacktrace.GetFrameInfo(Int32 frameIndex, EvaluationOptions options, Boolean ignoreEvalStatus)
       bei Mono.Debugging.Evaluation.BaseBacktrace.GetException(Int32 frameIndex, EvaluationOptions options)
       bei Xamarin.VisualStudio.Debugger.ExceptionsAdapter.GetExceptionInfo(Backtrace backTrace, EvaluationOptions options)
       bei Xamarin.VisualStudio.Debugger.ExceptionsAdapter.OnExceptionThrown(Object sender, TargetEventArgs args)
       bei Mono.Debugging.Client.DebuggerSession.OnTargetEvent(TargetEventArgs args)
       bei Mono.Debugging.Soft.SoftDebuggerSession.HandleBreakEventSet(Event[] es, Boolean dequeuing)
       bei Mono.Debugging.Soft.SoftDebuggerSession.HandleEventSet(EventSet es)
       bei Mono.Debugging.Soft.SoftDebuggerSession.EventHandler()
    

    The behavior is exactly the same after the update.

    Android (after update to 3.9.289):

    Breakpoint placed in constructor (public app() like iOS).

    Debugging has worked 3 times, than VS2013 was hanging (like before)…
    After restart VS2013:
    Time until app is copied to device: about 50 Seconds
    Time to show debugger breakpoint in VS2013 (after copy app to device): about 20 Seconds
    Time until Debugger is stopped: About 90 Seconds
    Total time; about 160 Seconds

    After about 3 Times, it don’t work anymore.
    The message “Visual Studio is busy” is showed and VS don’t work anymore…
    I have waited over 6 minutes, before I have killed VS2013.

    Android.bat:

    If I open "Tools -> Android -> Android Adb Command Prompt”:
    The path targets to C:\Program Files \Microsoft Visual Studio 12.0\Common\IDE\

    Under this path, there is no \tools\ directory and I don’t find a android.bat generally under the path …\IDE....

    We use TrendMicroAntivirus.

    While debugging, I see “Manages the Trend Micro unauthorized change prevention feature (64-Bit) in Task-Manage but the CPU-load is between 3-4 %. I don’t think that this causes the problems.

    So.. what to do…?
    Downgrade is no solution, as I know that we are forced from Xamarin soon…

    I further have detected some problems to access the Application-Object from debugger in iOS and Android (Application.Current.Properties.xx to save settings persistent).
    Therefore I have filled two bug's in bugzilla:
    https://bugzilla.xamarin.com/show_bug.cgi?id=26492

    Maybe the problems are related...

    Monday, February 9, 2015 6:14 PM
  • User65389 posted

    @all reader of this thread: There are various problems with the debugger (iOS and Android) right now (I'm not able to debug iOS and Android now for months). There also are various threads in the VS-Forum, very confusing and time-consuming. Therefore, I have opened a new thread (proposal to solve the problems on a new and professional way):

    forums.xamarin.com/discussion/33738/proposal-solving-of-the-debugger-problems-version-3-9-302#latest

    But... this seems to interest nobody (not Xamarin and also not the other pained users).
    So.. If you want to change something, read the thread and vote...!

    Thursday, February 26, 2015 2:00 PM
  • User59024 posted

    I appreciate your effort @FredyWenger in trying to get this issue addressed more efficiently.

    Thursday, February 26, 2015 7:04 PM
  • User65319 posted

    Same problem here: after I manually updated my solution to iOS Unified debugging problems started.

    Setup: Xamarin.Forms PCL solution, current stable versions of Xamarin.Forms, Xamarin Studio and Visual Studio Xamarin add-on, Visual Studio 2013 Update 4, Windows 8.1 Update 64bit, NuGet packages: Json.NET 6.0.8, RestSharp 105.0.1, SQLite.NET PCL 2.5.

    Starting iOS debugging is not a problem, but it's almost for sure that while debugging at some point Visual Studio freezes saying "Visual Studio is busy" when trying to activate its window and also the app in the iOS Simulatur hangs. This happens e.g. when just clicking on a SwitchCell in my app that causes a RestSharp call using a binding like "On='{Binding ...}'".

    I then have to force quit Visual Studio 2013 via Task Manager.

    I also tried to wait and see what happens when let Visual Studio open after its freeze. After approximately 12 minutes Visual Studio got force quit by the OS. The last entry in the %LOCALAPPDATA%\Xamarin\Log\12.0\devenv....log at that time was:

    Xamarin.VisualStudio.Utilities Warning: 0 : [2015-01-23 13:51:29.7] WaitInUIThread Window threw an Exception. System.ComponentModel.Win32Exception (0x80004005): Nicht genügend Quoten verfügbar, um diesen Befehl zu verarbeiten at MS.Win32.UnsafeNativeMethods.PostMessage(HandleRef hwnd, WindowMessage msg, IntPtr wparam, IntPtr lparam) at System.Windows.Interop.HwndTarget.UpdateWindowSettings(Boolean enableRenderTarget, Nullable1 channelSet) at System.Windows.Interop.HwndTarget.UpdateWindowPos(IntPtr lParam) at System.Windows.Interop.HwndTarget.HandleMessage(WindowMessage msg, IntPtr wparam, IntPtr lparam) at System.Windows.Interop.HwndSource.HwndTargetFilterMessage(IntPtr hwnd, Int32 msg, IntPtr wParam, IntPtr lParam, Boolean& handled) at MS.Win32.HwndWrapper.WndProc(IntPtr hwnd, Int32 msg, IntPtr wParam, IntPtr lParam, Boolean& handled) at MS.Win32.HwndSubclass.DispatcherCallbackOperation(Object o) at System.Windows.Threading.ExceptionWrapper.InternalRealCall(Delegate callback, Object args, Int32 numArgs) at MS.Internal.Threading.ExceptionFilterHelper.TryCatchWhen(Object source, Delegate method, Object args, Int32 numArgs, Delegate catchHandler) at System.Windows.Threading.Dispatcher.LegacyInvokeImpl(DispatcherPriority priority, TimeSpan timeout, Delegate method, Object args, Int32 numArgs) at MS.Win32.HwndSubclass.SubclassWndProc(IntPtr hwnd, Int32 msg, IntPtr wParam, IntPtr lParam) Xamarin.VisualStudio.Utilities Warning: 0 : [2015-01-23 13:51:29.9] WaitInUIThread Window threw an Exception. System.ComponentModel.Win32Exception (0x80004005): Nicht genügend Quoten verfügbar, um diesen Befehl zu verarbeiten at MS.Win32.UnsafeNativeMethods.PostMessage(HandleRef hwnd, WindowMessage msg, IntPtr wparam, IntPtr lparam) at System.Windows.Interop.HwndTarget.UpdateWindowSettings(Boolean enableRenderTarget, Nullable1 channelSet) at System.Windows.Interop.HwndTarget.UpdateWindowPos(IntPtr lParam) at System.Windows.Interop.HwndTarget.HandleMessage(WindowMessage msg, IntPtr wparam, IntPtr lparam) at System.Windows.Interop.HwndSource.HwndTargetFilterMessage(IntPtr hwnd, Int32 msg, IntPtr wParam, IntPtr lParam, Boolean& handled) at MS.Win32.HwndWrapper.WndProc(IntPtr hwnd, Int32 msg, IntPtr wParam, IntPtr lParam, Boolean& handled) at MS.Win32.HwndSubclass.DispatcherCallbackOperation(Object o) at System.Windows.Threading.ExceptionWrapper.InternalRealCall(Delegate callback, Object args, Int32 numArgs) at MS.Internal.Threading.ExceptionFilterHelper.TryCatchWhen(Object source, Delegate method, Object args, Int32 numArgs, Delegate catchHandler) at System.Windows.Threading.Dispatcher.LegacyInvokeImpl(DispatcherPriority priority, TimeSpan timeout, Delegate method, Object args, Int32 numArgs) at MS.Win32.HwndSubclass.SubclassWndProc(IntPtr hwnd, Int32 msg, IntPtr wParam, IntPtr lParam) Xamarin.VisualStudio.Utilities Warning: 0 : [2015-01-23 13:51:30.1] WaitInUIThread Window threw an Exception. System.ComponentModel.Win32Exception (0x80004005): Nicht genügend Quoten verfügbar, um diesen Befehl zu verarbeiten at MS.Win32.UnsafeNativeMethods.PostMessage(HandleRef hwnd, WindowMessage msg, IntPtr wparam, IntPtr lparam) at System.Windows.Interop.HwndTarget.UpdateWindowSettings(Boolean enableRenderTarget, Nullable1 channelSet) at System.Windows.Interop.HwndTarget.UpdateWindowPos(IntPtr lParam) at System.Windows.Interop.HwndTarget.HandleMessage(WindowMessage msg, IntPtr wparam, IntPtr lparam) at System.Windows.Interop.HwndSource.HwndTargetFilterMessage(IntPtr hwnd, Int32 msg, IntPtr wParam, IntPtr lParam, Boolean& handled) at MS.Win32.HwndWrapper.WndProc(IntPtr hwnd, Int32 msg, IntPtr wParam, IntPtr lParam, Boolean& handled) at MS.Win32.HwndSubclass.DispatcherCallbackOperation(Object o) at System.Windows.Threading.ExceptionWrapper.InternalRealCall(Delegate callback, Object args, Int32 numArgs) at MS.Internal.Threading.ExceptionFilterHelper.TryCatchWhen(Object source, Delegate method, Object args, Int32 numArgs, Delegate catchHandler) at System.Windows.Threading.Dispatcher.LegacyInvokeImpl(DispatcherPriority priority, TimeSpan timeout, Delegate method, Object args, Int32 numArgs) at MS.Win32.HwndSubclass.SubclassWndProc(IntPtr hwnd, Int32 msg, IntPtr wParam, IntPtr lParam) Xamarin.VisualStudio.Utilities Warning: 0 : [2015-01-23 13:51:30.3] WaitInUIThread Window threw an Exception. System.ComponentModel.Win32Exception (0x80004005): Nicht genügend Quoten verfügbar, um diesen Befehl zu verarbeiten at MS.Win32.UnsafeNativeMethods.PostMessage(HandleRef hwnd, WindowMessage msg, IntPtr wparam, IntPtr lparam) at System.Windows.Interop.HwndTarget.UpdateWindowSettings(Boolean enableRenderTarget, Nullable1 channelSet) at System.Windows.Interop.HwndTarget.UpdateWindowPos(IntPtr lParam) at System.Windows.Interop.HwndTarget.HandleMessage(WindowMessage msg, IntPtr wparam, IntPtr lparam) at System.Windows.Interop.HwndSource.HwndTargetFilterMessage(IntPtr hwnd, Int32 msg, IntPtr wParam, IntPtr lParam, Boolean& handled) at MS.Win32.HwndWrapper.WndProc(IntPtr hwnd, Int32 msg, IntPtr wParam, IntPtr lParam, Boolean& handled) at MS.Win32.HwndSubclass.DispatcherCallbackOperation(Object o) at System.Windows.Threading.ExceptionWrapper.InternalRealCall(Delegate callback, Object args, Int32 numArgs) at MS.Internal.Threading.ExceptionFilterHelper.TryCatchWhen(Object source, Delegate method, Object args, Int32 numArgs, Delegate catchHandler) at System.Windows.Threading.Dispatcher.LegacyInvokeImpl(DispatcherPriority priority, TimeSpan timeout, Delegate method, Object args, Int32 numArgs) at MS.Win32.HwndSubclass.SubclassWndProc(IntPtr hwnd, Int32 msg, IntPtr wParam, IntPtr lParam) Xamarin.VisualStudio.Utilities Warning: 0 : [2015-01-23 13:51:30.5] WaitInUIThread Window threw an Exception. System.ComponentModel.Win32Exception (0x80004005): Nicht genügend Quoten verfügbar, um diesen Befehl zu verarbeiten at MS.Win32.UnsafeNativeMethods.PostMessage(HandleRef hwnd, WindowMessage msg, IntPtr wparam, IntPtr lparam) at System.Windows.Interop.HwndTarget.UpdateWindowSettings(Boolean enableRenderTarget, Nullable1 channelSet) at System.Windows.Interop.HwndTarget.UpdateWindowPos(IntPtr lParam) at System.Windows.Interop.HwndTarget.HandleMessage(WindowMessage msg, IntPtr wparam, IntPtr lparam) at System.Windows.Interop.HwndSource.HwndTargetFilterMessage(IntPtr hwnd, Int32 msg, IntPtr wParam, IntPtr lParam, Boolean& handled) at MS.Win32.HwndWrapper.WndProc(IntPtr hwnd, Int32 msg, IntPtr wParam, IntPtr lParam, Boolean& handled) at MS.Win32.HwndSubclass.DispatcherCallbackOperation(Object o) at System.Windows.Threading.ExceptionWrapper.InternalRealCall(Delegate callback, Object args, Int32 numArgs) at MS.Internal.Threading.ExceptionFilterHelper.TryCatchWhen(Object source, Delegate method, Object args, Int32 numArgs, Delegate catchHandler) at System.Windows.Threading.Dispatcher.LegacyInvokeImpl(DispatcherPriority priority, TimeSpan timeout, Delegate method, Object args, Int32 numArgs) at MS.Win32.HwndSubclass.SubclassWndProc(IntPtr hwnd, Int32 msg, IntPtr wParam, IntPtr lParam) Xamarin.VisualStudio.Utilities Warning: 0 : [2015-01-23 13:51:30.6] WaitInUIThread Window threw an Exception. System.ComponentModel.Win32Exception (0x80004005): Nicht genügend Quoten verfügbar, um diesen Befehl zu verarbeiten at MS.Win32.UnsafeNativeMethods.PostMessage(HandleRef hwnd, WindowMessage msg, IntPtr wparam, IntPtr lparam) at System.Windows.Interop.HwndTarget.UpdateWindowSettings(Boolean enableRenderTarget, Nullable1 channelSet) at System.Windows.Interop.HwndTarget.UpdateWindowPos(IntPtr lParam) at System.Windows.Interop.HwndTarget.HandleMessage(WindowMessage msg, IntPtr wparam, IntPtr lparam) at System.Windows.Interop.HwndSource.HwndTargetFilterMessage(IntPtr hwnd, Int32 msg, IntPtr wParam, IntPtr lParam, Boolean& handled) at MS.Win32.HwndWrapper.WndProc(IntPtr hwnd, Int32 msg, IntPtr wParam, IntPtr lParam, Boolean& handled) at MS.Win32.HwndSubclass.DispatcherCallbackOperation(Object o) at System.Windows.Threading.ExceptionWrapper.InternalRealCall(Delegate callback, Object args, Int32 numArgs) at MS.Internal.Threading.ExceptionFilterHelper.TryCatchWhen(Object source, Delegate method, Object args, Int32 numArgs, Delegate catchHandler) at System.Windows.Threading.Dispatcher.LegacyInvokeImpl(DispatcherPriority priority, TimeSpan timeout, Delegate method, Object args, Int32 numArgs) at MS.Win32.HwndSubclass.SubclassWndProc(IntPtr hwnd, Int32 msg, IntPtr wParam, IntPtr lParam) Xamarin.VisualStudio.Utilities Warning: 0 : [2015-01-23 13:51:30.8] WaitInUIThread Window threw an Exception. System.ComponentModel.Win32Exception (0x80004005): Nicht genügend Quoten verfügbar, um diesen Befehl zu verarbeiten at MS.Win32.UnsafeNativeMethods.PostMessage(HandleRef hwnd, WindowMessage msg, IntPtr wparam, IntPtr lparam) at System.Windows.Interop.HwndTarget.UpdateWindowSettings(Boolean enableRenderTarget, Nullable1 channelSet) at System.Windows.Interop.HwndTarget.UpdateWindowPos(IntPtr lParam) at System.Windows.Interop.HwndTarget.HandleMessage(WindowMessage msg, IntPtr wparam, IntPtr lparam) at System.Windows.Interop.HwndSource.HwndTargetFilterMessage(IntPtr hwnd, Int32 msg, IntPtr wParam, IntPtr lParam, Boolean& handled) at MS.Win32.HwndWrapper.WndProc(IntPtr hwnd, Int32 msg, IntPtr wParam, IntPtr lParam, Boolean& handled) at MS.Win32.HwndSubclass.DispatcherCallbackOperation(Object o) at System.Windows.Threading.ExceptionWrapper.InternalRealCall(Delegate callback, Object args, Int32 numArgs) at MS.Internal.Threading.ExceptionFilterHelper.TryCatchWhen(Object source, Delegate method, Object args, Int32 numArgs, Delegate catchHandler) at System.Windows.Threading.Dispatcher.LegacyInvokeImpl(DispatcherPriority priority, TimeSpan timeout, Delegate method, Object args, Int32 numArgs) at MS.Win32.HwndSubclass.SubclassWndProc(IntPtr hwnd, Int32 msg, IntPtr wParam, IntPtr lParam) Xamarin.VisualStudio.Utilities Warning: 0 : [2015-01-23 13:51:31.0] WaitInUIThread Window threw an Exception. System.ComponentModel.Win32Exception (0x80004005): Nicht genügend Quoten verfügbar, um diesen Befehl zu verarbeiten at MS.Win32.UnsafeNativeMethods.PostMessage(HandleRef hwnd, WindowMessage msg, IntPtr wparam, IntPtr lparam) at System.Windows.Interop.HwndTarget.UpdateWindowSettings(Boolean enableRenderTarget, Nullable1 channelSet) at System.Windows.Interop.HwndTarget.UpdateWindowPos(IntPtr lParam) at System.Windows.Interop.HwndTarget.HandleMessage(WindowMessage msg, IntPtr wparam, IntPtr lparam) at System.Windows.Interop.HwndSource.HwndTargetFilterMessage(IntPtr hwnd, Int32 msg, IntPtr wParam, IntPtr lParam, Boolean& handled) at MS.Win32.HwndWrapper.WndProc(IntPtr hwnd, Int32 msg, IntPtr wParam, IntPtr lParam, Boolean& handled) at MS.Win32.HwndSubclass.DispatcherCallbackOperation(Object o) at System.Windows.Threading.ExceptionWrapper.InternalRealCall(Delegate callback, Object args, Int32 numArgs) at MS.Internal.Threading.ExceptionFilterHelper.TryCatchWhen(Object source, Delegate method, Object args, Int32 numArgs, Delegate catchHandler) at System.Windows.Threading.Dispatcher.LegacyInvokeImpl(DispatcherPriority priority, TimeSpan timeout, Delegate method, Object args, Int32 numArgs) at MS.Win32.HwndSubclass.SubclassWndProc(IntPtr hwnd, Int32 msg, IntPtr wParam, IntPtr lParam) Xamarin.VisualStudio.Utilities Warning: 0 : [2015-01-23 13:51:31.2] WaitInUIThread Window threw an Exception. System.ComponentModel.Win32Exception (0x80004005): Nicht genügend Quoten verfügbar, um diesen Befehl zu verarbeiten at MS.Win32.UnsafeNativeMethods.PostMessage(HandleRef hwnd, WindowMessage msg, IntPtr wparam, IntPtr lparam) at System.Windows.Interop.HwndTarget.UpdateWindowSettings(Boolean enableRenderTarget, Nullable1 channelSet) at System.Windows.Interop.HwndTarget.UpdateWindowPos(IntPtr lParam) at System.Windows.Interop.HwndTarget.HandleMessage(WindowMessage msg, IntPtr wparam, IntPtr lparam) at System.Windows.Interop.HwndSource.HwndTargetFilterMessage(IntPtr hwnd, Int32 msg, IntPtr wParam, IntPtr lParam, Boolean& handled) at MS.Win32.HwndWrapper.WndProc(IntPtr hwnd, Int32 msg, IntPtr wParam, IntPtr lParam, Boolean& handled) at MS.Win32.HwndSubclass.DispatcherCallbackOperation(Object o) at System.Windows.Threading.ExceptionWrapper.InternalRealCall(Delegate callback, Object args, Int32 numArgs) at MS.Internal.Threading.ExceptionFilterHelper.TryCatchWhen(Object source, Delegate method, Object args, Int32 numArgs, Delegate catchHandler) at System.Windows.Threading.Dispatcher.LegacyInvokeImpl(DispatcherPriority priority, TimeSpan timeout, Delegate method, Object args, Int32 numArgs) at MS.Win32.HwndSubclass.SubclassWndProc(IntPtr hwnd, Int32 msg, IntPtr wParam, IntPtr lParam) Xamarin.VisualStudio.Utilities Warning: 0 : [2015-01-23 13:51:31.4] WaitInUIThread Window threw an Exception. System.ComponentModel.Win32Exception (0x80004005): Nicht genügend Quoten verfügbar, um diesen Befehl zu verarbeiten at MS.Win32.UnsafeNativeMethods.PostMessage(HandleRef hwnd, WindowMessage msg, IntPtr wparam, IntPtr lparam) at System.Windows.Interop.HwndTarget.UpdateWindowSettings(Boolean enableRenderTarget, Nullable1 channelSet) at System.Windows.Interop.HwndTarget.UpdateWindowPos(IntPtr lParam) at System.Windows.Interop.HwndTarget.HandleMessage(WindowMessage msg, IntPtr wparam, IntPtr lparam) at System.Windows.Interop.HwndSource.HwndTargetFilterMessage(IntPtr hwnd, Int32 msg, IntPtr wParam, IntPtr lParam, Boolean& handled) at MS.Win32.HwndWrapper.WndProc(IntPtr hwnd, Int32 msg, IntPtr wParam, IntPtr lParam, Boolean& handled) at MS.Win32.HwndSubclass.DispatcherCallbackOperation(Object o) at System.Windows.Threading.ExceptionWrapper.InternalRealCall(Delegate callback, Object args, Int32 numArgs) at MS.Internal.Threading.ExceptionFilterHelper.TryCatchWhen(Object source, Delegate method, Object args, Int32 numArgs, Delegate catchHandler) at System.Windows.Threading.Dispatcher.LegacyInvokeImpl(DispatcherPriority priority, TimeSpan timeout, Delegate method, Object args, Int32 numArgs) at MS.Win32.HwndSubclass.SubclassWndProc(IntPtr hwnd, Int32 msg, IntPtr wParam, IntPtr lParam)

    Please fix this annoying issue as soon as possible! Alas, I am not such a man of genius that I do not need to debug in order to develop...

    Thanks in advance!

    Monday, March 9, 2015 8:23 PM
  • User65319 posted

    Same problem here: after I manually updated my solution to iOS Unified debugging problems started.

    Setup: Xamarin.Forms PCL solution, current stable versions of Xamarin.Forms, Xamarin Studio and Visual Studio Xamarin add-on, Visual Studio 2013 Update 4, Windows 8.1 Update 64bit, NuGet packages: Json.NET 6.0.8, RestSharp 105.0.1, SQLite.NET PCL 2.5.

    Starting iOS debugging is not a problem, but it's almost for sure that while debugging at some point Visual Studio freezes saying "Visual Studio is busy" when trying to activate its window and also the app in the iOS Simulatur hangs. This happens e.g. when just clicking on a SwitchCell in my app that causes a RestSharp call using a binding like "On='{Binding ...}'".

    I then have to force quit Visual Studio 2013 via Task Manager.

    I also tried to wait and see what happens when let Visual Studio open after its freeze. After approximately 12 minutes Visual Studio got force quit by the OS. See below for the last entry in the %LOCALAPPDATA%\Xamarin\Log\12.0\devenv....log at that time.

    Please fix this annoying issue as soon as possible! Alas, I am not such a man of genius that I do not need to debug in order to develop...

    Thanks in advance!

    System.ComponentModel.Win32Exception (0x80004005): Nicht genügend Quoten verfügbar, um diesen Befehl zu verarbeiten at MS.Win32.UnsafeNativeMethods.PostMessage(HandleRef hwnd, WindowMessage msg, IntPtr wparam, IntPtr lparam) at System.Windows.Interop.HwndTarget.UpdateWindowSettings(Boolean enableRenderTarget, Nullable1 channelSet) at System.Windows.Interop.HwndTarget.UpdateWindowPos(IntPtr lParam) at System.Windows.Interop.HwndTarget.HandleMessage(WindowMessage msg, IntPtr wparam, IntPtr lparam) at System.Windows.Interop.HwndSource.HwndTargetFilterMessage(IntPtr hwnd, Int32 msg, IntPtr wParam, IntPtr lParam, Boolean& handled) at MS.Win32.HwndWrapper.WndProc(IntPtr hwnd, Int32 msg, IntPtr wParam, IntPtr lParam, Boolean& handled) at MS.Win32.HwndSubclass.DispatcherCallbackOperation(Object o) at System.Windows.Threading.ExceptionWrapper.InternalRealCall(Delegate callback, Object args, Int32 numArgs) at MS.Internal.Threading.ExceptionFilterHelper.TryCatchWhen(Object source, Delegate method, Object args, Int32 numArgs, Delegate catchHandler) at System.Windows.Threading.Dispatcher.LegacyInvokeImpl(DispatcherPriority priority, TimeSpan timeout, Delegate method, Object args, Int32 numArgs) at MS.Win32.HwndSubclass.SubclassWndProc(IntPtr hwnd, Int32 msg, IntPtr wParam, IntPtr lParam) Xamarin.VisualStudio.Utilities Warning: 0 : [2015-01-23 13:51:29.9] WaitInUIThread Window threw an Exception. System.ComponentModel.Win32Exception (0x80004005): Nicht genügend Quoten verfügbar, um diesen Befehl zu verarbeiten at MS.Win32.UnsafeNativeMethods.PostMessage(HandleRef hwnd, WindowMessage msg, IntPtr wparam, IntPtr lparam) at System.Windows.Interop.HwndTarget.UpdateWindowSettings(Boolean enableRenderTarget, Nullable1 channelSet) at System.Windows.Interop.HwndTarget.UpdateWindowPos(IntPtr lParam) at System.Windows.Interop.HwndTarget.HandleMessage(WindowMessage msg, IntPtr wparam, IntPtr lparam) at System.Windows.Interop.HwndSource.HwndTargetFilterMessage(IntPtr hwnd, Int32 msg, IntPtr wParam, IntPtr lParam, Boolean& handled) at MS.Win32.HwndWrapper.WndProc(IntPtr hwnd, Int32 msg, IntPtr wParam, IntPtr lParam, Boolean& handled) at MS.Win32.HwndSubclass.DispatcherCallbackOperation(Object o) at System.Windows.Threading.ExceptionWrapper.InternalRealCall(Delegate callback, Object args, Int32 numArgs) at MS.Internal.Threading.ExceptionFilterHelper.TryCatchWhen(Object source, Delegate method, Object args, Int32 numArgs, Delegate catchHandler) at System.Windows.Threading.Dispatcher.LegacyInvokeImpl(DispatcherPriority priority, TimeSpan timeout, Delegate method, Object args, Int32 numArgs) at MS.Win32.HwndSubclass.SubclassWndProc(IntPtr hwnd, Int32 msg, IntPtr wParam, IntPtr lParam) Xamarin.VisualStudio.Utilities Warning: 0 : [2015-01-23 13:51:30.1] WaitInUIThread Window threw an Exception. System.ComponentModel.Win32Exception (0x80004005): Nicht genügend Quoten verfügbar, um diesen Befehl zu verarbeiten at MS.Win32.UnsafeNativeMethods.PostMessage(HandleRef hwnd, WindowMessage msg, IntPtr wparam, IntPtr lparam) at System.Windows.Interop.HwndTarget.UpdateWindowSettings(Boolean enableRenderTarget, Nullable1 channelSet) at System.Windows.Interop.HwndTarget.UpdateWindowPos(IntPtr lParam) at System.Windows.Interop.HwndTarget.HandleMessage(WindowMessage msg, IntPtr wparam, IntPtr lparam) at System.Windows.Interop.HwndSource.HwndTargetFilterMessage(IntPtr hwnd, Int32 msg, IntPtr wParam, IntPtr lParam, Boolean& handled) at MS.Win32.HwndWrapper.WndProc(IntPtr hwnd, Int32 msg, IntPtr wParam, IntPtr lParam, Boolean& handled) at MS.Win32.HwndSubclass.DispatcherCallbackOperation(Object o) at System.Windows.Threading.ExceptionWrapper.InternalRealCall(Delegate callback, Object args, Int32 numArgs) at MS.Internal.Threading.ExceptionFilterHelper.TryCatchWhen(Object source, Delegate method, Object args, Int32 numArgs, Delegate catchHandler) at System.Windows.Threading.Dispatcher.LegacyInvokeImpl(DispatcherPriority priority, TimeSpan timeout, Delegate method, Object args, Int32 numArgs) at MS.Win32.HwndSubclass.SubclassWndProc(IntPtr hwnd, Int32 msg, IntPtr wParam, IntPtr lParam) Xamarin.VisualStudio.Utilities Warning: 0 : [2015-01-23 13:51:30.3] WaitInUIThread Window threw an Exception. System.ComponentModel.Win32Exception (0x80004005): Nicht genügend Quoten verfügbar, um diesen Befehl zu verarbeiten at MS.Win32.UnsafeNativeMethods.PostMessage(HandleRef hwnd, WindowMessage msg, IntPtr wparam, IntPtr lparam) at System.Windows.Interop.HwndTarget.UpdateWindowSettings(Boolean enableRenderTarget, Nullable1 channelSet) at System.Windows.Interop.HwndTarget.UpdateWindowPos(IntPtr lParam) at System.Windows.Interop.HwndTarget.HandleMessage(WindowMessage msg, IntPtr wparam, IntPtr lparam) at System.Windows.Interop.HwndSource.HwndTargetFilterMessage(IntPtr hwnd, Int32 msg, IntPtr wParam, IntPtr lParam, Boolean& handled) at MS.Win32.HwndWrapper.WndProc(IntPtr hwnd, Int32 msg, IntPtr wParam, IntPtr lParam, Boolean& handled) at MS.Win32.HwndSubclass.DispatcherCallbackOperation(Object o) at System.Windows.Threading.ExceptionWrapper.InternalRealCall(Delegate callback, Object args, Int32 numArgs) at MS.Internal.Threading.ExceptionFilterHelper.TryCatchWhen(Object source, Delegate method, Object args, Int32 numArgs, Delegate catchHandler) at System.Windows.Threading.Dispatcher.LegacyInvokeImpl(DispatcherPriority priority, TimeSpan timeout, Delegate method, Object args, Int32 numArgs) at MS.Win32.HwndSubclass.SubclassWndProc(IntPtr hwnd, Int32 msg, IntPtr wParam, IntPtr lParam) Xamarin.VisualStudio.Utilities Warning: 0 : [2015-01-23 13:51:30.5] WaitInUIThread Window threw an Exception. System.ComponentModel.Win32Exception (0x80004005): Nicht genügend Quoten verfügbar, um diesen Befehl zu verarbeiten at MS.Win32.UnsafeNativeMethods.PostMessage(HandleRef hwnd, WindowMessage msg, IntPtr wparam, IntPtr lparam) at System.Windows.Interop.HwndTarget.UpdateWindowSettings(Boolean enableRenderTarget, Nullable1 channelSet) at System.Windows.Interop.HwndTarget.UpdateWindowPos(IntPtr lParam) at System.Windows.Interop.HwndTarget.HandleMessage(WindowMessage msg, IntPtr wparam, IntPtr lparam) at System.Windows.Interop.HwndSource.HwndTargetFilterMessage(IntPtr hwnd, Int32 msg, IntPtr wParam, IntPtr lParam, Boolean& handled) at MS.Win32.HwndWrapper.WndProc(IntPtr hwnd, Int32 msg, IntPtr wParam, IntPtr lParam, Boolean& handled) at MS.Win32.HwndSubclass.DispatcherCallbackOperation(Object o) at System.Windows.Threading.ExceptionWrapper.InternalRealCall(Delegate callback, Object args, Int32 numArgs) at MS.Internal.Threading.ExceptionFilterHelper.TryCatchWhen(Object source, Delegate method, Object args, Int32 numArgs, Delegate catchHandler) at System.Windows.Threading.Dispatcher.LegacyInvokeImpl(DispatcherPriority priority, TimeSpan timeout, Delegate method, Object args, Int32 numArgs) at MS.Win32.HwndSubclass.SubclassWndProc(IntPtr hwnd, Int32 msg, IntPtr wParam, IntPtr lParam) Xamarin.VisualStudio.Utilities Warning: 0 : [2015-01-23 13:51:30.6] WaitInUIThread Window threw an Exception. System.ComponentModel.Win32Exception (0x80004005): Nicht genügend Quoten verfügbar, um diesen Befehl zu verarbeiten at MS.Win32.UnsafeNativeMethods.PostMessage(HandleRef hwnd, WindowMessage msg, IntPtr wparam, IntPtr lparam) at System.Windows.Interop.HwndTarget.UpdateWindowSettings(Boolean enableRenderTarget, Nullable1 channelSet) at System.Windows.Interop.HwndTarget.UpdateWindowPos(IntPtr lParam) at System.Windows.Interop.HwndTarget.HandleMessage(WindowMessage msg, IntPtr wparam, IntPtr lparam) at System.Windows.Interop.HwndSource.HwndTargetFilterMessage(IntPtr hwnd, Int32 msg, IntPtr wParam, IntPtr lParam, Boolean& handled) at MS.Win32.HwndWrapper.WndProc(IntPtr hwnd, Int32 msg, IntPtr wParam, IntPtr lParam, Boolean& handled) at MS.Win32.HwndSubclass.DispatcherCallbackOperation(Object o) at System.Windows.Threading.ExceptionWrapper.InternalRealCall(Delegate callback, Object args, Int32 numArgs) at MS.Internal.Threading.ExceptionFilterHelper.TryCatchWhen(Object source, Delegate method, Object args, Int32 numArgs, Delegate catchHandler) at System.Windows.Threading.Dispatcher.LegacyInvokeImpl(DispatcherPriority priority, TimeSpan timeout, Delegate method, Object args, Int32 numArgs) at MS.Win32.HwndSubclass.SubclassWndProc(IntPtr hwnd, Int32 msg, IntPtr wParam, IntPtr lParam) Xamarin.VisualStudio.Utilities Warning: 0 : [2015-01-23 13:51:30.8] WaitInUIThread Window threw an Exception. System.ComponentModel.Win32Exception (0x80004005): Nicht genügend Quoten verfügbar, um diesen Befehl zu verarbeiten at MS.Win32.UnsafeNativeMethods.PostMessage(HandleRef hwnd, WindowMessage msg, IntPtr wparam, IntPtr lparam) at System.Windows.Interop.HwndTarget.UpdateWindowSettings(Boolean enableRenderTarget, Nullable1 channelSet) at System.Windows.Interop.HwndTarget.UpdateWindowPos(IntPtr lParam) at System.Windows.Interop.HwndTarget.HandleMessage(WindowMessage msg, IntPtr wparam, IntPtr lparam) at System.Windows.Interop.HwndSource.HwndTargetFilterMessage(IntPtr hwnd, Int32 msg, IntPtr wParam, IntPtr lParam, Boolean& handled) at MS.Win32.HwndWrapper.WndProc(IntPtr hwnd, Int32 msg, IntPtr wParam, IntPtr lParam, Boolean& handled) at MS.Win32.HwndSubclass.DispatcherCallbackOperation(Object o) at System.Windows.Threading.ExceptionWrapper.InternalRealCall(Delegate callback, Object args, Int32 numArgs) at MS.Internal.Threading.ExceptionFilterHelper.TryCatchWhen(Object source, Delegate method, Object args, Int32 numArgs, Delegate catchHandler) at System.Windows.Threading.Dispatcher.LegacyInvokeImpl(DispatcherPriority priority, TimeSpan timeout, Delegate method, Object args, Int32 numArgs) at MS.Win32.HwndSubclass.SubclassWndProc(IntPtr hwnd, Int32 msg, IntPtr wParam, IntPtr lParam) Xamarin.VisualStudio.Utilities Warning: 0 : [2015-01-23 13:51:31.0] WaitInUIThread Window threw an Exception. System.ComponentModel.Win32Exception (0x80004005): Nicht genügend Quoten verfügbar, um diesen Befehl zu verarbeiten at MS.Win32.UnsafeNativeMethods.PostMessage(HandleRef hwnd, WindowMessage msg, IntPtr wparam, IntPtr lparam) at System.Windows.Interop.HwndTarget.UpdateWindowSettings(Boolean enableRenderTarget, Nullable1 channelSet) at System.Windows.Interop.HwndTarget.UpdateWindowPos(IntPtr lParam) at System.Windows.Interop.HwndTarget.HandleMessage(WindowMessage msg, IntPtr wparam, IntPtr lparam) at System.Windows.Interop.HwndSource.HwndTargetFilterMessage(IntPtr hwnd, Int32 msg, IntPtr wParam, IntPtr lParam, Boolean& handled) at MS.Win32.HwndWrapper.WndProc(IntPtr hwnd, Int32 msg, IntPtr wParam, IntPtr lParam, Boolean& handled) at MS.Win32.HwndSubclass.DispatcherCallbackOperation(Object o) at System.Windows.Threading.ExceptionWrapper.InternalRealCall(Delegate callback, Object args, Int32 numArgs) at MS.Internal.Threading.ExceptionFilterHelper.TryCatchWhen(Object source, Delegate method, Object args, Int32 numArgs, Delegate catchHandler) at System.Windows.Threading.Dispatcher.LegacyInvokeImpl(DispatcherPriority priority, TimeSpan timeout, Delegate method, Object args, Int32 numArgs) at MS.Win32.HwndSubclass.SubclassWndProc(IntPtr hwnd, Int32 msg, IntPtr wParam, IntPtr lParam) Xamarin.VisualStudio.Utilities Warning: 0 : [2015-01-23 13:51:31.2] WaitInUIThread Window threw an Exception. System.ComponentModel.Win32Exception (0x80004005): Nicht genügend Quoten verfügbar, um diesen Befehl zu verarbeiten at MS.Win32.UnsafeNativeMethods.PostMessage(HandleRef hwnd, WindowMessage msg, IntPtr wparam, IntPtr lparam) at System.Windows.Interop.HwndTarget.UpdateWindowSettings(Boolean enableRenderTarget, Nullable1 channelSet) at System.Windows.Interop.HwndTarget.UpdateWindowPos(IntPtr lParam) at System.Windows.Interop.HwndTarget.HandleMessage(WindowMessage msg, IntPtr wparam, IntPtr lparam) at System.Windows.Interop.HwndSource.HwndTargetFilterMessage(IntPtr hwnd, Int32 msg, IntPtr wParam, IntPtr lParam, Boolean& handled) at MS.Win32.HwndWrapper.WndProc(IntPtr hwnd, Int32 msg, IntPtr wParam, IntPtr lParam, Boolean& handled) at MS.Win32.HwndSubclass.DispatcherCallbackOperation(Object o) at System.Windows.Threading.ExceptionWrapper.InternalRealCall(Delegate callback, Object args, Int32 numArgs) at MS.Internal.Threading.ExceptionFilterHelper.TryCatchWhen(Object source, Delegate method, Object args, Int32 numArgs, Delegate catchHandler) at System.Windows.Threading.Dispatcher.LegacyInvokeImpl(DispatcherPriority priority, TimeSpan timeout, Delegate method, Object args, Int32 numArgs) at MS.Win32.HwndSubclass.SubclassWndProc(IntPtr hwnd, Int32 msg, IntPtr wParam, IntPtr lParam) Xamarin.VisualStudio.Utilities Warning: 0 : [2015-01-23 13:51:31.4] WaitInUIThread Window threw an Exception. System.ComponentModel.Win32Exception (0x80004005): Nicht genügend Quoten verfügbar, um diesen Befehl zu verarbeiten at MS.Win32.UnsafeNativeMethods.PostMessage(HandleRef hwnd, WindowMessage msg, IntPtr wparam, IntPtr lparam) at System.Windows.Interop.HwndTarget.UpdateWindowSettings(Boolean enableRenderTarget, Nullable1 channelSet) at System.Windows.Interop.HwndTarget.UpdateWindowPos(IntPtr lParam) at System.Windows.Interop.HwndTarget.HandleMessage(WindowMessage msg, IntPtr wparam, IntPtr lparam) at System.Windows.Interop.HwndSource.HwndTargetFilterMessage(IntPtr hwnd, Int32 msg, IntPtr wParam, IntPtr lParam, Boolean& handled) at MS.Win32.HwndWrapper.WndProc(IntPtr hwnd, Int32 msg, IntPtr wParam, IntPtr lParam, Boolean& handled) at MS.Win32.HwndSubclass.DispatcherCallbackOperation(Object o) at System.Windows.Threading.ExceptionWrapper.InternalRealCall(Delegate callback, Object args, Int32 numArgs) at MS.Internal.Threading.ExceptionFilterHelper.TryCatchWhen(Object source, Delegate method, Object args, Int32 numArgs, Delegate catchHandler) at System.Windows.Threading.Dispatcher.LegacyInvokeImpl(DispatcherPriority priority, TimeSpan timeout, Delegate method, Object args, Int32 numArgs) at MS.Win32.HwndSubclass.SubclassWndProc(IntPtr hwnd, Int32 msg, IntPtr wParam, IntPtr lParam)

    Monday, March 9, 2015 8:23 PM
  • User65319 posted

    Same problem here: after I manually updated my solution to iOS Unified debugging problems started.

    Setup: Xamarin.Forms PCL solution, current stable versions of Xamarin.Forms, Xamarin Studio and Visual Studio Xamarin add-on, Visual Studio 2013 Update 4, Windows 8.1 Update 64bit, NuGet packages: Json.NET 6.0.8, RestSharp 105.0.1, SQLite.NET PCL 2.5.

    Starting iOS debugging is not a problem, but it's almost for sure that while debugging at some point Visual Studio freezes saying "Visual Studio is busy" when trying to activate its window and also the app in the iOS Simulatur hangs. This happens e.g. when just clicking on a SwitchCell in my app that causes a RestSharp call using a binding like "On='{Binding ...}'".

    I then have to force quit Visual Studio 2013 via Task Manager.

    I also tried to wait and see what happens when let Visual Studio open after its freeze. After approximately 12 minutes Visual Studio got force quit by the OS. The last entry in the %LOCALAPPDATA%\Xamarin\Log\12.0\devenv....log at that time was:

    Xamarin.VisualStudio.Utilities Warning: 0 : [2015-01-23 13:51:29.7] WaitInUIThread Window threw an Exception. System.ComponentModel.Win32Exception (0x80004005): Nicht genügend Quoten verfügbar, um diesen Befehl zu verarbeiten at MS.Win32.UnsafeNativeMethods.PostMessage(HandleRef hwnd, WindowMessage msg, IntPtr wparam, IntPtr lparam) at System.Windows.Interop.HwndTarget.UpdateWindowSettings(Boolean enableRenderTarget, Nullable1 channelSet) at System.Windows.Interop.HwndTarget.UpdateWindowPos(IntPtr lParam) at System.Windows.Interop.HwndTarget.HandleMessage(WindowMessage msg, IntPtr wparam, IntPtr lparam) at System.Windows.Interop.HwndSource.HwndTargetFilterMessage(IntPtr hwnd, Int32 msg, IntPtr wParam, IntPtr lParam, Boolean& handled) at MS.Win32.HwndWrapper.WndProc(IntPtr hwnd, Int32 msg, IntPtr wParam, IntPtr lParam, Boolean& handled) at MS.Win32.HwndSubclass.DispatcherCallbackOperation(Object o) at System.Windows.Threading.ExceptionWrapper.InternalRealCall(Delegate callback, Object args, Int32 numArgs) at MS.Internal.Threading.ExceptionFilterHelper.TryCatchWhen(Object source, Delegate method, Object args, Int32 numArgs, Delegate catchHandler) at System.Windows.Threading.Dispatcher.LegacyInvokeImpl(DispatcherPriority priority, TimeSpan timeout, Delegate method, Object args, Int32 numArgs) at MS.Win32.HwndSubclass.SubclassWndProc(IntPtr hwnd, Int32 msg, IntPtr wParam, IntPtr lParam) Xamarin.VisualStudio.Utilities Warning: 0 : [2015-01-23 13:51:29.9] WaitInUIThread Window threw an Exception. System.ComponentModel.Win32Exception (0x80004005): Nicht genügend Quoten verfügbar, um diesen Befehl zu verarbeiten at MS.Win32.UnsafeNativeMethods.PostMessage(HandleRef hwnd, WindowMessage msg, IntPtr wparam, IntPtr lparam) at System.Windows.Interop.HwndTarget.UpdateWindowSettings(Boolean enableRenderTarget, Nullable1 channelSet) at System.Windows.Interop.HwndTarget.UpdateWindowPos(IntPtr lParam) at System.Windows.Interop.HwndTarget.HandleMessage(WindowMessage msg, IntPtr wparam, IntPtr lparam) at System.Windows.Interop.HwndSource.HwndTargetFilterMessage(IntPtr hwnd, Int32 msg, IntPtr wParam, IntPtr lParam, Boolean& handled) at MS.Win32.HwndWrapper.WndProc(IntPtr hwnd, Int32 msg, IntPtr wParam, IntPtr lParam, Boolean& handled) at MS.Win32.HwndSubclass.DispatcherCallbackOperation(Object o) at System.Windows.Threading.ExceptionWrapper.InternalRealCall(Delegate callback, Object args, Int32 numArgs) at MS.Internal.Threading.ExceptionFilterHelper.TryCatchWhen(Object source, Delegate method, Object args, Int32 numArgs, Delegate catchHandler) at System.Windows.Threading.Dispatcher.LegacyInvokeImpl(DispatcherPriority priority, TimeSpan timeout, Delegate method, Object args, Int32 numArgs) at MS.Win32.HwndSubclass.SubclassWndProc(IntPtr hwnd, Int32 msg, IntPtr wParam, IntPtr lParam) Xamarin.VisualStudio.Utilities Warning: 0 : [2015-01-23 13:51:30.1] WaitInUIThread Window threw an Exception. System.ComponentModel.Win32Exception (0x80004005): Nicht genügend Quoten verfügbar, um diesen Befehl zu verarbeiten at MS.Win32.UnsafeNativeMethods.PostMessage(HandleRef hwnd, WindowMessage msg, IntPtr wparam, IntPtr lparam) at System.Windows.Interop.HwndTarget.UpdateWindowSettings(Boolean enableRenderTarget, Nullable1 channelSet) at System.Windows.Interop.HwndTarget.UpdateWindowPos(IntPtr lParam) at System.Windows.Interop.HwndTarget.HandleMessage(WindowMessage msg, IntPtr wparam, IntPtr lparam) at System.Windows.Interop.HwndSource.HwndTargetFilterMessage(IntPtr hwnd, Int32 msg, IntPtr wParam, IntPtr lParam, Boolean& handled) at MS.Win32.HwndWrapper.WndProc(IntPtr hwnd, Int32 msg, IntPtr wParam, IntPtr lParam, Boolean& handled) at MS.Win32.HwndSubclass.DispatcherCallbackOperation(Object o) at System.Windows.Threading.ExceptionWrapper.InternalRealCall(Delegate callback, Object args, Int32 numArgs) at MS.Internal.Threading.ExceptionFilterHelper.TryCatchWhen(Object source, Delegate method, Object args, Int32 numArgs, Delegate catchHandler) at System.Windows.Threading.Dispatcher.LegacyInvokeImpl(DispatcherPriority priority, TimeSpan timeout, Delegate method, Object args, Int32 numArgs) at MS.Win32.HwndSubclass.SubclassWndProc(IntPtr hwnd, Int32 msg, IntPtr wParam, IntPtr lParam) Xamarin.VisualStudio.Utilities Warning: 0 : [2015-01-23 13:51:30.3] WaitInUIThread Window threw an Exception. System.ComponentModel.Win32Exception (0x80004005): Nicht genügend Quoten verfügbar, um diesen Befehl zu verarbeiten at MS.Win32.UnsafeNativeMethods.PostMessage(HandleRef hwnd, WindowMessage msg, IntPtr wparam, IntPtr lparam) at System.Windows.Interop.HwndTarget.UpdateWindowSettings(Boolean enableRenderTarget, Nullable1 channelSet) at System.Windows.Interop.HwndTarget.UpdateWindowPos(IntPtr lParam) at System.Windows.Interop.HwndTarget.HandleMessage(WindowMessage msg, IntPtr wparam, IntPtr lparam) at System.Windows.Interop.HwndSource.HwndTargetFilterMessage(IntPtr hwnd, Int32 msg, IntPtr wParam, IntPtr lParam, Boolean& handled) at MS.Win32.HwndWrapper.WndProc(IntPtr hwnd, Int32 msg, IntPtr wParam, IntPtr lParam, Boolean& handled) at MS.Win32.HwndSubclass.DispatcherCallbackOperation(Object o) at System.Windows.Threading.ExceptionWrapper.InternalRealCall(Delegate callback, Object args, Int32 numArgs) at MS.Internal.Threading.ExceptionFilterHelper.TryCatchWhen(Object source, Delegate method, Object args, Int32 numArgs, Delegate catchHandler) at System.Windows.Threading.Dispatcher.LegacyInvokeImpl(DispatcherPriority priority, TimeSpan timeout, Delegate method, Object args, Int32 numArgs) at MS.Win32.HwndSubclass.SubclassWndProc(IntPtr hwnd, Int32 msg, IntPtr wParam, IntPtr lParam) Xamarin.VisualStudio.Utilities Warning: 0 : [2015-01-23 13:51:30.5] WaitInUIThread Window threw an Exception. System.ComponentModel.Win32Exception (0x80004005): Nicht genügend Quoten verfügbar, um diesen Befehl zu verarbeiten at MS.Win32.UnsafeNativeMethods.PostMessage(HandleRef hwnd, WindowMessage msg, IntPtr wparam, IntPtr lparam) at System.Windows.Interop.HwndTarget.UpdateWindowSettings(Boolean enableRenderTarget, Nullable1 channelSet) at System.Windows.Interop.HwndTarget.UpdateWindowPos(IntPtr lParam) at System.Windows.Interop.HwndTarget.HandleMessage(WindowMessage msg, IntPtr wparam, IntPtr lparam) at System.Windows.Interop.HwndSource.HwndTargetFilterMessage(IntPtr hwnd, Int32 msg, IntPtr wParam, IntPtr lParam, Boolean& handled) at MS.Win32.HwndWrapper.WndProc(IntPtr hwnd, Int32 msg, IntPtr wParam, IntPtr lParam, Boolean& handled) at MS.Win32.HwndSubclass.DispatcherCallbackOperation(Object o) at System.Windows.Threading.ExceptionWrapper.InternalRealCall(Delegate callback, Object args, Int32 numArgs) at MS.Internal.Threading.ExceptionFilterHelper.TryCatchWhen(Object source, Delegate method, Object args, Int32 numArgs, Delegate catchHandler) at System.Windows.Threading.Dispatcher.LegacyInvokeImpl(DispatcherPriority priority, TimeSpan timeout, Delegate method, Object args, Int32 numArgs) at MS.Win32.HwndSubclass.SubclassWndProc(IntPtr hwnd, Int32 msg, IntPtr wParam, IntPtr lParam) Xamarin.VisualStudio.Utilities Warning: 0 : [2015-01-23 13:51:30.6] WaitInUIThread Window threw an Exception. System.ComponentModel.Win32Exception (0x80004005): Nicht genügend Quoten verfügbar, um diesen Befehl zu verarbeiten at MS.Win32.UnsafeNativeMethods.PostMessage(HandleRef hwnd, WindowMessage msg, IntPtr wparam, IntPtr lparam) at System.Windows.Interop.HwndTarget.UpdateWindowSettings(Boolean enableRenderTarget, Nullable1 channelSet) at System.Windows.Interop.HwndTarget.UpdateWindowPos(IntPtr lParam) at System.Windows.Interop.HwndTarget.HandleMessage(WindowMessage msg, IntPtr wparam, IntPtr lparam) at System.Windows.Interop.HwndSource.HwndTargetFilterMessage(IntPtr hwnd, Int32 msg, IntPtr wParam, IntPtr lParam, Boolean& handled) at MS.Win32.HwndWrapper.WndProc(IntPtr hwnd, Int32 msg, IntPtr wParam, IntPtr lParam, Boolean& handled) at MS.Win32.HwndSubclass.DispatcherCallbackOperation(Object o) at System.Windows.Threading.ExceptionWrapper.InternalRealCall(Delegate callback, Object args, Int32 numArgs) at MS.Internal.Threading.ExceptionFilterHelper.TryCatchWhen(Object source, Delegate method, Object args, Int32 numArgs, Delegate catchHandler) at System.Windows.Threading.Dispatcher.LegacyInvokeImpl(DispatcherPriority priority, TimeSpan timeout, Delegate method, Object args, Int32 numArgs) at MS.Win32.HwndSubclass.SubclassWndProc(IntPtr hwnd, Int32 msg, IntPtr wParam, IntPtr lParam) Xamarin.VisualStudio.Utilities Warning: 0 : [2015-01-23 13:51:30.8] WaitInUIThread Window threw an Exception. System.ComponentModel.Win32Exception (0x80004005): Nicht genügend Quoten verfügbar, um diesen Befehl zu verarbeiten at MS.Win32.UnsafeNativeMethods.PostMessage(HandleRef hwnd, WindowMessage msg, IntPtr wparam, IntPtr lparam) at System.Windows.Interop.HwndTarget.UpdateWindowSettings(Boolean enableRenderTarget, Nullable1 channelSet) at System.Windows.Interop.HwndTarget.UpdateWindowPos(IntPtr lParam) at System.Windows.Interop.HwndTarget.HandleMessage(WindowMessage msg, IntPtr wparam, IntPtr lparam) at System.Windows.Interop.HwndSource.HwndTargetFilterMessage(IntPtr hwnd, Int32 msg, IntPtr wParam, IntPtr lParam, Boolean& handled) at MS.Win32.HwndWrapper.WndProc(IntPtr hwnd, Int32 msg, IntPtr wParam, IntPtr lParam, Boolean& handled) at MS.Win32.HwndSubclass.DispatcherCallbackOperation(Object o) at System.Windows.Threading.ExceptionWrapper.InternalRealCall(Delegate callback, Object args, Int32 numArgs) at MS.Internal.Threading.ExceptionFilterHelper.TryCatchWhen(Object source, Delegate method, Object args, Int32 numArgs, Delegate catchHandler) at System.Windows.Threading.Dispatcher.LegacyInvokeImpl(DispatcherPriority priority, TimeSpan timeout, Delegate method, Object args, Int32 numArgs) at MS.Win32.HwndSubclass.SubclassWndProc(IntPtr hwnd, Int32 msg, IntPtr wParam, IntPtr lParam) Xamarin.VisualStudio.Utilities Warning: 0 : [2015-01-23 13:51:31.0] WaitInUIThread Window threw an Exception. System.ComponentModel.Win32Exception (0x80004005): Nicht genügend Quoten verfügbar, um diesen Befehl zu verarbeiten at MS.Win32.UnsafeNativeMethods.PostMessage(HandleRef hwnd, WindowMessage msg, IntPtr wparam, IntPtr lparam) at System.Windows.Interop.HwndTarget.UpdateWindowSettings(Boolean enableRenderTarget, Nullable1 channelSet) at System.Windows.Interop.HwndTarget.UpdateWindowPos(IntPtr lParam) at System.Windows.Interop.HwndTarget.HandleMessage(WindowMessage msg, IntPtr wparam, IntPtr lparam) at System.Windows.Interop.HwndSource.HwndTargetFilterMessage(IntPtr hwnd, Int32 msg, IntPtr wParam, IntPtr lParam, Boolean& handled) at MS.Win32.HwndWrapper.WndProc(IntPtr hwnd, Int32 msg, IntPtr wParam, IntPtr lParam, Boolean& handled) at MS.Win32.HwndSubclass.DispatcherCallbackOperation(Object o) at System.Windows.Threading.ExceptionWrapper.InternalRealCall(Delegate callback, Object args, Int32 numArgs) at MS.Internal.Threading.ExceptionFilterHelper.TryCatchWhen(Object source, Delegate method, Object args, Int32 numArgs, Delegate catchHandler) at System.Windows.Threading.Dispatcher.LegacyInvokeImpl(DispatcherPriority priority, TimeSpan timeout, Delegate method, Object args, Int32 numArgs) at MS.Win32.HwndSubclass.SubclassWndProc(IntPtr hwnd, Int32 msg, IntPtr wParam, IntPtr lParam) Xamarin.VisualStudio.Utilities Warning: 0 : [2015-01-23 13:51:31.2] WaitInUIThread Window threw an Exception. System.ComponentModel.Win32Exception (0x80004005): Nicht genügend Quoten verfügbar, um diesen Befehl zu verarbeiten at MS.Win32.UnsafeNativeMethods.PostMessage(HandleRef hwnd, WindowMessage msg, IntPtr wparam, IntPtr lparam) at System.Windows.Interop.HwndTarget.UpdateWindowSettings(Boolean enableRenderTarget, Nullable1 channelSet) at System.Windows.Interop.HwndTarget.UpdateWindowPos(IntPtr lParam) at System.Windows.Interop.HwndTarget.HandleMessage(WindowMessage msg, IntPtr wparam, IntPtr lparam) at System.Windows.Interop.HwndSource.HwndTargetFilterMessage(IntPtr hwnd, Int32 msg, IntPtr wParam, IntPtr lParam, Boolean& handled) at MS.Win32.HwndWrapper.WndProc(IntPtr hwnd, Int32 msg, IntPtr wParam, IntPtr lParam, Boolean& handled) at MS.Win32.HwndSubclass.DispatcherCallbackOperation(Object o) at System.Windows.Threading.ExceptionWrapper.InternalRealCall(Delegate callback, Object args, Int32 numArgs) at MS.Internal.Threading.ExceptionFilterHelper.TryCatchWhen(Object source, Delegate method, Object args, Int32 numArgs, Delegate catchHandler) at System.Windows.Threading.Dispatcher.LegacyInvokeImpl(DispatcherPriority priority, TimeSpan timeout, Delegate method, Object args, Int32 numArgs) at MS.Win32.HwndSubclass.SubclassWndProc(IntPtr hwnd, Int32 msg, IntPtr wParam, IntPtr lParam) Xamarin.VisualStudio.Utilities Warning: 0 : [2015-01-23 13:51:31.4] WaitInUIThread Window threw an Exception. System.ComponentModel.Win32Exception (0x80004005): Nicht genügend Quoten verfügbar, um diesen Befehl zu verarbeiten at MS.Win32.UnsafeNativeMethods.PostMessage(HandleRef hwnd, WindowMessage msg, IntPtr wparam, IntPtr lparam) at System.Windows.Interop.HwndTarget.UpdateWindowSettings(Boolean enableRenderTarget, Nullable1 channelSet) at System.Windows.Interop.HwndTarget.UpdateWindowPos(IntPtr lParam) at System.Windows.Interop.HwndTarget.HandleMessage(WindowMessage msg, IntPtr wparam, IntPtr lparam) at System.Windows.Interop.HwndSource.HwndTargetFilterMessage(IntPtr hwnd, Int32 msg, IntPtr wParam, IntPtr lParam, Boolean& handled) at MS.Win32.HwndWrapper.WndProc(IntPtr hwnd, Int32 msg, IntPtr wParam, IntPtr lParam, Boolean& handled) at MS.Win32.HwndSubclass.DispatcherCallbackOperation(Object o) at System.Windows.Threading.ExceptionWrapper.InternalRealCall(Delegate callback, Object args, Int32 numArgs) at MS.Internal.Threading.ExceptionFilterHelper.TryCatchWhen(Object source, Delegate method, Object args, Int32 numArgs, Delegate catchHandler) at System.Windows.Threading.Dispatcher.LegacyInvokeImpl(DispatcherPriority priority, TimeSpan timeout, Delegate method, Object args, Int32 numArgs) at MS.Win32.HwndSubclass.SubclassWndProc(IntPtr hwnd, Int32 msg, IntPtr wParam, IntPtr lParam)

    Please fix this annoying issue as soon as possible! Alas, I am not such a man of genius that I do not need to debug in order to develop...

    Thanks in advance!

    Monday, March 9, 2015 8:23 PM
  • User65319 posted

    Same problem here: after I manually updated my solution to iOS Unified debugging problems started.

    Setup: Xamarin.Forms PCL solution, current stable versions of Xamarin.Forms, Xamarin Studio and Visual Studio Xamarin add-on, Visual Studio 2013 Update 4, Windows 8.1 Update 64bit, NuGet packages: Json.NET 6.0.8, RestSharp 105.0.1, SQLite.NET PCL 2.5.

    Starting iOS debugging is not a problem, but it's almost for sure that while debugging at some point Visual Studio freezes saying "Visual Studio is busy" when trying to activate its window and also the app in the iOS Simulatur hangs. This happens e.g. when just clicking on a SwitchCell in my app that causes a RestSharp call using a binding like "On='{Binding ...}'".

    I then have to force quit Visual Studio 2013 via Task Manager.

    I also tried to wait and see what happens when let Visual Studio open after its freeze. After approximately 12 minutes Visual Studio got force quit by the OS. See below for the last entry in the %LOCALAPPDATA%\Xamarin\Log\12.0\devenv....log at that time.

    Please fix this annoying issue as soon as possible! Alas, I am not such a man of genius that I do not need to debug in order to develop...

    Thanks in advance!

    System.ComponentModel.Win32Exception (0x80004005): Nicht genügend Quoten verfügbar, um diesen Befehl zu verarbeiten at MS.Win32.UnsafeNativeMethods.PostMessage(HandleRef hwnd, WindowMessage msg, IntPtr wparam, IntPtr lparam) at System.Windows.Interop.HwndTarget.UpdateWindowSettings(Boolean enableRenderTarget, Nullable1 channelSet) at System.Windows.Interop.HwndTarget.UpdateWindowPos(IntPtr lParam) at System.Windows.Interop.HwndTarget.HandleMessage(WindowMessage msg, IntPtr wparam, IntPtr lparam) at System.Windows.Interop.HwndSource.HwndTargetFilterMessage(IntPtr hwnd, Int32 msg, IntPtr wParam, IntPtr lParam, Boolean& handled) at MS.Win32.HwndWrapper.WndProc(IntPtr hwnd, Int32 msg, IntPtr wParam, IntPtr lParam, Boolean& handled) at MS.Win32.HwndSubclass.DispatcherCallbackOperation(Object o) at System.Windows.Threading.ExceptionWrapper.InternalRealCall(Delegate callback, Object args, Int32 numArgs) at MS.Internal.Threading.ExceptionFilterHelper.TryCatchWhen(Object source, Delegate method, Object args, Int32 numArgs, Delegate catchHandler) at System.Windows.Threading.Dispatcher.LegacyInvokeImpl(DispatcherPriority priority, TimeSpan timeout, Delegate method, Object args, Int32 numArgs) at MS.Win32.HwndSubclass.SubclassWndProc(IntPtr hwnd, Int32 msg, IntPtr wParam, IntPtr lParam) Xamarin.VisualStudio.Utilities Warning: 0 : [2015-01-23 13:51:29.9] WaitInUIThread Window threw an Exception. System.ComponentModel.Win32Exception (0x80004005): Nicht genügend Quoten verfügbar, um diesen Befehl zu verarbeiten at MS.Win32.UnsafeNativeMethods.PostMessage(HandleRef hwnd, WindowMessage msg, IntPtr wparam, IntPtr lparam) at System.Windows.Interop.HwndTarget.UpdateWindowSettings(Boolean enableRenderTarget, Nullable1 channelSet) at System.Windows.Interop.HwndTarget.UpdateWindowPos(IntPtr lParam) at System.Windows.Interop.HwndTarget.HandleMessage(WindowMessage msg, IntPtr wparam, IntPtr lparam) at System.Windows.Interop.HwndSource.HwndTargetFilterMessage(IntPtr hwnd, Int32 msg, IntPtr wParam, IntPtr lParam, Boolean& handled) at MS.Win32.HwndWrapper.WndProc(IntPtr hwnd, Int32 msg, IntPtr wParam, IntPtr lParam, Boolean& handled) at MS.Win32.HwndSubclass.DispatcherCallbackOperation(Object o) at System.Windows.Threading.ExceptionWrapper.InternalRealCall(Delegate callback, Object args, Int32 numArgs) at MS.Internal.Threading.ExceptionFilterHelper.TryCatchWhen(Object source, Delegate method, Object args, Int32 numArgs, Delegate catchHandler) at System.Windows.Threading.Dispatcher.LegacyInvokeImpl(DispatcherPriority priority, TimeSpan timeout, Delegate method, Object args, Int32 numArgs) at MS.Win32.HwndSubclass.SubclassWndProc(IntPtr hwnd, Int32 msg, IntPtr wParam, IntPtr lParam) Xamarin.VisualStudio.Utilities Warning: 0 : [2015-01-23 13:51:30.1] WaitInUIThread Window threw an Exception. System.ComponentModel.Win32Exception (0x80004005): Nicht genügend Quoten verfügbar, um diesen Befehl zu verarbeiten at MS.Win32.UnsafeNativeMethods.PostMessage(HandleRef hwnd, WindowMessage msg, IntPtr wparam, IntPtr lparam) at System.Windows.Interop.HwndTarget.UpdateWindowSettings(Boolean enableRenderTarget, Nullable1 channelSet) at System.Windows.Interop.HwndTarget.UpdateWindowPos(IntPtr lParam) at System.Windows.Interop.HwndTarget.HandleMessage(WindowMessage msg, IntPtr wparam, IntPtr lparam) at System.Windows.Interop.HwndSource.HwndTargetFilterMessage(IntPtr hwnd, Int32 msg, IntPtr wParam, IntPtr lParam, Boolean& handled) at MS.Win32.HwndWrapper.WndProc(IntPtr hwnd, Int32 msg, IntPtr wParam, IntPtr lParam, Boolean& handled) at MS.Win32.HwndSubclass.DispatcherCallbackOperation(Object o) at System.Windows.Threading.ExceptionWrapper.InternalRealCall(Delegate callback, Object args, Int32 numArgs) at MS.Internal.Threading.ExceptionFilterHelper.TryCatchWhen(Object source, Delegate method, Object args, Int32 numArgs, Delegate catchHandler) at System.Windows.Threading.Dispatcher.LegacyInvokeImpl(DispatcherPriority priority, TimeSpan timeout, Delegate method, Object args, Int32 numArgs) at MS.Win32.HwndSubclass.SubclassWndProc(IntPtr hwnd, Int32 msg, IntPtr wParam, IntPtr lParam) Xamarin.VisualStudio.Utilities Warning: 0 : [2015-01-23 13:51:30.3] WaitInUIThread Window threw an Exception. System.ComponentModel.Win32Exception (0x80004005): Nicht genügend Quoten verfügbar, um diesen Befehl zu verarbeiten at MS.Win32.UnsafeNativeMethods.PostMessage(HandleRef hwnd, WindowMessage msg, IntPtr wparam, IntPtr lparam) at System.Windows.Interop.HwndTarget.UpdateWindowSettings(Boolean enableRenderTarget, Nullable1 channelSet) at System.Windows.Interop.HwndTarget.UpdateWindowPos(IntPtr lParam) at System.Windows.Interop.HwndTarget.HandleMessage(WindowMessage msg, IntPtr wparam, IntPtr lparam) at System.Windows.Interop.HwndSource.HwndTargetFilterMessage(IntPtr hwnd, Int32 msg, IntPtr wParam, IntPtr lParam, Boolean& handled) at MS.Win32.HwndWrapper.WndProc(IntPtr hwnd, Int32 msg, IntPtr wParam, IntPtr lParam, Boolean& handled) at MS.Win32.HwndSubclass.DispatcherCallbackOperation(Object o) at System.Windows.Threading.ExceptionWrapper.InternalRealCall(Delegate callback, Object args, Int32 numArgs) at MS.Internal.Threading.ExceptionFilterHelper.TryCatchWhen(Object source, Delegate method, Object args, Int32 numArgs, Delegate catchHandler) at System.Windows.Threading.Dispatcher.LegacyInvokeImpl(DispatcherPriority priority, TimeSpan timeout, Delegate method, Object args, Int32 numArgs) at MS.Win32.HwndSubclass.SubclassWndProc(IntPtr hwnd, Int32 msg, IntPtr wParam, IntPtr lParam) Xamarin.VisualStudio.Utilities Warning: 0 : [2015-01-23 13:51:30.5] WaitInUIThread Window threw an Exception. System.ComponentModel.Win32Exception (0x80004005): Nicht genügend Quoten verfügbar, um diesen Befehl zu verarbeiten at MS.Win32.UnsafeNativeMethods.PostMessage(HandleRef hwnd, WindowMessage msg, IntPtr wparam, IntPtr lparam) at System.Windows.Interop.HwndTarget.UpdateWindowSettings(Boolean enableRenderTarget, Nullable1 channelSet) at System.Windows.Interop.HwndTarget.UpdateWindowPos(IntPtr lParam) at System.Windows.Interop.HwndTarget.HandleMessage(WindowMessage msg, IntPtr wparam, IntPtr lparam) at System.Windows.Interop.HwndSource.HwndTargetFilterMessage(IntPtr hwnd, Int32 msg, IntPtr wParam, IntPtr lParam, Boolean& handled) at MS.Win32.HwndWrapper.WndProc(IntPtr hwnd, Int32 msg, IntPtr wParam, IntPtr lParam, Boolean& handled) at MS.Win32.HwndSubclass.DispatcherCallbackOperation(Object o) at System.Windows.Threading.ExceptionWrapper.InternalRealCall(Delegate callback, Object args, Int32 numArgs) at MS.Internal.Threading.ExceptionFilterHelper.TryCatchWhen(Object source, Delegate method, Object args, Int32 numArgs, Delegate catchHandler) at System.Windows.Threading.Dispatcher.LegacyInvokeImpl(DispatcherPriority priority, TimeSpan timeout, Delegate method, Object args, Int32 numArgs) at MS.Win32.HwndSubclass.SubclassWndProc(IntPtr hwnd, Int32 msg, IntPtr wParam, IntPtr lParam) Xamarin.VisualStudio.Utilities Warning: 0 : [2015-01-23 13:51:30.6] WaitInUIThread Window threw an Exception. System.ComponentModel.Win32Exception (0x80004005): Nicht genügend Quoten verfügbar, um diesen Befehl zu verarbeiten at MS.Win32.UnsafeNativeMethods.PostMessage(HandleRef hwnd, WindowMessage msg, IntPtr wparam, IntPtr lparam) at System.Windows.Interop.HwndTarget.UpdateWindowSettings(Boolean enableRenderTarget, Nullable1 channelSet) at System.Windows.Interop.HwndTarget.UpdateWindowPos(IntPtr lParam) at System.Windows.Interop.HwndTarget.HandleMessage(WindowMessage msg, IntPtr wparam, IntPtr lparam) at System.Windows.Interop.HwndSource.HwndTargetFilterMessage(IntPtr hwnd, Int32 msg, IntPtr wParam, IntPtr lParam, Boolean& handled) at MS.Win32.HwndWrapper.WndProc(IntPtr hwnd, Int32 msg, IntPtr wParam, IntPtr lParam, Boolean& handled) at MS.Win32.HwndSubclass.DispatcherCallbackOperation(Object o) at System.Windows.Threading.ExceptionWrapper.InternalRealCall(Delegate callback, Object args, Int32 numArgs) at MS.Internal.Threading.ExceptionFilterHelper.TryCatchWhen(Object source, Delegate method, Object args, Int32 numArgs, Delegate catchHandler) at System.Windows.Threading.Dispatcher.LegacyInvokeImpl(DispatcherPriority priority, TimeSpan timeout, Delegate method, Object args, Int32 numArgs) at MS.Win32.HwndSubclass.SubclassWndProc(IntPtr hwnd, Int32 msg, IntPtr wParam, IntPtr lParam) Xamarin.VisualStudio.Utilities Warning: 0 : [2015-01-23 13:51:30.8] WaitInUIThread Window threw an Exception. System.ComponentModel.Win32Exception (0x80004005): Nicht genügend Quoten verfügbar, um diesen Befehl zu verarbeiten at MS.Win32.UnsafeNativeMethods.PostMessage(HandleRef hwnd, WindowMessage msg, IntPtr wparam, IntPtr lparam) at System.Windows.Interop.HwndTarget.UpdateWindowSettings(Boolean enableRenderTarget, Nullable1 channelSet) at System.Windows.Interop.HwndTarget.UpdateWindowPos(IntPtr lParam) at System.Windows.Interop.HwndTarget.HandleMessage(WindowMessage msg, IntPtr wparam, IntPtr lparam) at System.Windows.Interop.HwndSource.HwndTargetFilterMessage(IntPtr hwnd, Int32 msg, IntPtr wParam, IntPtr lParam, Boolean& handled) at MS.Win32.HwndWrapper.WndProc(IntPtr hwnd, Int32 msg, IntPtr wParam, IntPtr lParam, Boolean& handled) at MS.Win32.HwndSubclass.DispatcherCallbackOperation(Object o) at System.Windows.Threading.ExceptionWrapper.InternalRealCall(Delegate callback, Object args, Int32 numArgs) at MS.Internal.Threading.ExceptionFilterHelper.TryCatchWhen(Object source, Delegate method, Object args, Int32 numArgs, Delegate catchHandler) at System.Windows.Threading.Dispatcher.LegacyInvokeImpl(DispatcherPriority priority, TimeSpan timeout, Delegate method, Object args, Int32 numArgs) at MS.Win32.HwndSubclass.SubclassWndProc(IntPtr hwnd, Int32 msg, IntPtr wParam, IntPtr lParam) Xamarin.VisualStudio.Utilities Warning: 0 : [2015-01-23 13:51:31.0] WaitInUIThread Window threw an Exception. System.ComponentModel.Win32Exception (0x80004005): Nicht genügend Quoten verfügbar, um diesen Befehl zu verarbeiten at MS.Win32.UnsafeNativeMethods.PostMessage(HandleRef hwnd, WindowMessage msg, IntPtr wparam, IntPtr lparam) at System.Windows.Interop.HwndTarget.UpdateWindowSettings(Boolean enableRenderTarget, Nullable1 channelSet) at System.Windows.Interop.HwndTarget.UpdateWindowPos(IntPtr lParam) at System.Windows.Interop.HwndTarget.HandleMessage(WindowMessage msg, IntPtr wparam, IntPtr lparam) at System.Windows.Interop.HwndSource.HwndTargetFilterMessage(IntPtr hwnd, Int32 msg, IntPtr wParam, IntPtr lParam, Boolean& handled) at MS.Win32.HwndWrapper.WndProc(IntPtr hwnd, Int32 msg, IntPtr wParam, IntPtr lParam, Boolean& handled) at MS.Win32.HwndSubclass.DispatcherCallbackOperation(Object o) at System.Windows.Threading.ExceptionWrapper.InternalRealCall(Delegate callback, Object args, Int32 numArgs) at MS.Internal.Threading.ExceptionFilterHelper.TryCatchWhen(Object source, Delegate method, Object args, Int32 numArgs, Delegate catchHandler) at System.Windows.Threading.Dispatcher.LegacyInvokeImpl(DispatcherPriority priority, TimeSpan timeout, Delegate method, Object args, Int32 numArgs) at MS.Win32.HwndSubclass.SubclassWndProc(IntPtr hwnd, Int32 msg, IntPtr wParam, IntPtr lParam) Xamarin.VisualStudio.Utilities Warning: 0 : [2015-01-23 13:51:31.2] WaitInUIThread Window threw an Exception. System.ComponentModel.Win32Exception (0x80004005): Nicht genügend Quoten verfügbar, um diesen Befehl zu verarbeiten at MS.Win32.UnsafeNativeMethods.PostMessage(HandleRef hwnd, WindowMessage msg, IntPtr wparam, IntPtr lparam) at System.Windows.Interop.HwndTarget.UpdateWindowSettings(Boolean enableRenderTarget, Nullable1 channelSet) at System.Windows.Interop.HwndTarget.UpdateWindowPos(IntPtr lParam) at System.Windows.Interop.HwndTarget.HandleMessage(WindowMessage msg, IntPtr wparam, IntPtr lparam) at System.Windows.Interop.HwndSource.HwndTargetFilterMessage(IntPtr hwnd, Int32 msg, IntPtr wParam, IntPtr lParam, Boolean& handled) at MS.Win32.HwndWrapper.WndProc(IntPtr hwnd, Int32 msg, IntPtr wParam, IntPtr lParam, Boolean& handled) at MS.Win32.HwndSubclass.DispatcherCallbackOperation(Object o) at System.Windows.Threading.ExceptionWrapper.InternalRealCall(Delegate callback, Object args, Int32 numArgs) at MS.Internal.Threading.ExceptionFilterHelper.TryCatchWhen(Object source, Delegate method, Object args, Int32 numArgs, Delegate catchHandler) at System.Windows.Threading.Dispatcher.LegacyInvokeImpl(DispatcherPriority priority, TimeSpan timeout, Delegate method, Object args, Int32 numArgs) at MS.Win32.HwndSubclass.SubclassWndProc(IntPtr hwnd, Int32 msg, IntPtr wParam, IntPtr lParam) Xamarin.VisualStudio.Utilities Warning: 0 : [2015-01-23 13:51:31.4] WaitInUIThread Window threw an Exception. System.ComponentModel.Win32Exception (0x80004005): Nicht genügend Quoten verfügbar, um diesen Befehl zu verarbeiten at MS.Win32.UnsafeNativeMethods.PostMessage(HandleRef hwnd, WindowMessage msg, IntPtr wparam, IntPtr lparam) at System.Windows.Interop.HwndTarget.UpdateWindowSettings(Boolean enableRenderTarget, Nullable1 channelSet) at System.Windows.Interop.HwndTarget.UpdateWindowPos(IntPtr lParam) at System.Windows.Interop.HwndTarget.HandleMessage(WindowMessage msg, IntPtr wparam, IntPtr lparam) at System.Windows.Interop.HwndSource.HwndTargetFilterMessage(IntPtr hwnd, Int32 msg, IntPtr wParam, IntPtr lParam, Boolean& handled) at MS.Win32.HwndWrapper.WndProc(IntPtr hwnd, Int32 msg, IntPtr wParam, IntPtr lParam, Boolean& handled) at MS.Win32.HwndSubclass.DispatcherCallbackOperation(Object o) at System.Windows.Threading.ExceptionWrapper.InternalRealCall(Delegate callback, Object args, Int32 numArgs) at MS.Internal.Threading.ExceptionFilterHelper.TryCatchWhen(Object source, Delegate method, Object args, Int32 numArgs, Delegate catchHandler) at System.Windows.Threading.Dispatcher.LegacyInvokeImpl(DispatcherPriority priority, TimeSpan timeout, Delegate method, Object args, Int32 numArgs) at MS.Win32.HwndSubclass.SubclassWndProc(IntPtr hwnd, Int32 msg, IntPtr wParam, IntPtr lParam)

    Monday, March 9, 2015 8:23 PM
  • User113182 posted

    This bug wasn't happening before. Seems like these issues started for me after a Windows update.

    Wednesday, March 18, 2015 12:51 PM
  • User78799 posted

    I had the issue in the past and it got away after installing 3.9.274. But now VS updated itself to 3.11.271 and the issue is back. Is there a fix? Otherwise, how can I downgrade my version of xamarin? Tks.

    Tuesday, April 7, 2015 8:04 AM
  • User109137 posted

    Same here, I just upgraded my version today (I was not up to date for a few weeks) and this problem is back…

    This is getting really annoying…

    Friday, May 1, 2015 3:23 PM
  • User103661 posted

    The recent update on 4/30 introduced the problem for me. It seems like every update I've had in the 3 months I've been using Xamarin breaks something...

    Friday, May 1, 2015 7:10 PM
  • User124872 posted

    These issues seem to be cropping up a lot; With the inability to debug on any platform and no easy, UI-parallel way to run an app as x86 for easy iteration on non-device-specific functionality, development of anything but primitive asynchronous behavior is all but impossible. I'd love to see a stability fix for the debugger so I can get back to work.

    Friday, May 1, 2015 7:25 PM
  • User125140 posted

    I am getting the same problem after update to the latest version (3.11.445). By downgrading to version 3.9.547 (and loosing a couple of hours) I am able to run and debug the app again.

    Monday, May 4, 2015 3:15 PM
  • User45394 posted

    I started having this issue after the most recent updates. Visual Studio locks up when trying to debug with Xamarin Android Player usually the second time I click debug. Are others still having this problem?

    Windows 8.1 Pro (Version 6.3.9600 Build 9600) Visual Studio Professional 2013 (Version 12.0.31101.00 Update 4) .NET 4.5.51641 Xamarin 3.11.445.0 Xamarin.Android 5.1.0.115 Xamarin.Forms Intellisense 1.0 Xamarin.iOS 8.10.0.0 Xamarin.iOS Unified Migration 1.0

    Monday, May 4, 2015 3:25 PM
  • User5846 posted

    I am facing the same problem after updating the nuget packages. First time debugging works fine, second time debugging causes VS to hang and I need to kill VS via Task Manager. I'm debugging on an actual device not the emulator.

    I have the same configuration as @DanielDickey

    Thursday, May 7, 2015 10:03 AM
  • User5846 posted

    I've also got a problem debugging an iOS app (with Visual Studio) for the first time on the iPhoneSimulator and on an iPhone. I've got an unexpected exception occured error in VS. Does this relate to the Android debugging errors?

    Debugging (on Android & iOs) with Xamarin Studio works on both Windows and OSX.

    Thursday, May 7, 2015 12:17 PM
  • User45394 posted

    @RolandvanderPlas and others having this problem. Installing the latest Alpha version fixed the problem from Visual Studio. It works on Android, iOS and WinPhone. I'm running Xamarin 3.11.507.0 (dfac85e) at this point.

    Of course it's Alpha so install at your own risk, backup files, etc... Hopefully this will be released to Stable within a couple of weeks.

    Here are instructions on switching update channels: http://developer.xamarin.com/recipes/cross-platform/ide/changeupdateschannel/

    Today I have noticed Visual Studio is still slow with a few lock ups but nothing compared to before. I know they're still working on releasing some fixes but after days of downtime I'm finally able to get back to work... for the most part. I do notice that I have to clean the project a lot more before debugging. Not sure why.

    I have not experienced this kind of quality issues with Xamarin in the past. I wonder if Xamarin management said get these new features out before the Microsoft Build conference date and it made them release way before they were ready for prime time. Xamarin, if that's the case PLEASE don't do this again!!

    EDIT: I may be speaking too soon but since VS was slow I just performed a Disk Cleanup in windows, restarted both my PC and Mac, cleaned and built the solution and it seems to be running really well. Hopefully it will continue.

    Thursday, May 7, 2015 8:16 PM
  • User77819 posted

    Hi, I am experiencing the same issues as @RolandvanderPlas and @DanielDickey mentioned and updated VS to Xamarin alpha 3.11.507.0 . The last 30 minutes no issues related to VS hangs.

    Tnx!

    Friday, May 8, 2015 7:20 AM
  • User5846 posted

    Hi @DanielDickey and @michelTol, thanks for the update!

    Switching to the Alpha channel seems to resolve this problem. I agree with Daniel, hope Xamarin is not pushing (not well tested) features into the stable channel before a major conference like Build.

    Friday, May 8, 2015 8:04 AM
  • User55052 posted

    This issue is back again for me after having been fixed with an alpha build 3.9.xxx. I decided to update to the latest stable version (3.11.445) today and I am now having the same issue as before with VS 2013 freezing when debugging my android app. I am going to go back to the alpha builds for now.

    Friday, May 8, 2015 5:24 PM
  • User118890 posted

    As a prospective new Xamarin client, this is very worrisome. I just created a Xamarin Forms "blank app" in VS2013, and just ran the "hello world" code, setting android as the startup project, and VS is locked up! Every time I start, it wants me to setup a Mac for a build server, but I don't have a Mac, and am not interested in creating an iOS app... yet. That will come, but now, I just need to start learning this API, and this has me stopped. I'll go back to the Xamarin Studio, for now, because it worked, but I fully intend on using VS as my workhorse, so this needs to be fixed!! Please put me on the list of people to notify when this is fixed.

    Friday, May 8, 2015 9:38 PM
  • User50108 posted

    I'm facing the same issue like @RolandvanderPlas (VS freezes when I try debugging on the device second time; the first debug attempt works properly). I saw that I have this problem only with Xamarin.Forms projects; the old projects implemented with Xamarin.Android only seem to have no issue when debugging the second time.

    Sunday, May 10, 2015 8:59 AM
  • User50108 posted

    Just find out that the solution proposed by @DanielDickey is the one proposed by Xamarin team, as well:

    http://forums.xamarin.com/discussion/comment/122826/#Comment_122826

    Sunday, May 10, 2015 9:06 AM
  • User164965 posted

    Sometimes "Visual Studio Is Busy" can be solved with a simple but effective solution. Delete the obj and bin directories from every project.

    Wednesday, November 18, 2015 5:44 PM