Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

EventSourceException exception floods debugging session and slows down process. How to fix? [duplicate]

I am experiencing this after upgrading from Windows 7 to Windows 10 and running my WPF application from Visual Studio 2013 Update 5 with the debugger attached.

While running some basic image processing operations the debug output starts getting flooded with EventSourceException: No Free Buffers available from the operating system (e.g. event rate too fast) messages, causing the process being debugged to slow down significantly.

Running the process without visual studio's debugger attached behaves normally.

I couldn't find much information online when I googled about it. It has something to do with EFW (Event tracing for windows), I don't know what it is.

The code base is not small so it'd be difficult track down the origin of the exception as asking Visual Studio to stop on all exceptions doesn't actually stop at this exception source.

Can anyone help on getting on getting rid of this exception?

UPDATE

I use Resharper Ultimate 2016.1. I did realize after uninstalling DotTrace some ETW service is uninstalled. But uninstalling Resharper didn't help, the problem is still there.

like image 312
johnildergleidisson Avatar asked Apr 27 '16 18:04

johnildergleidisson


1 Answers

I had the same problem and posted an answer how to stop the message in VS 2013: https://stackoverflow.com/a/37389692/2936206

In summary, it is:

Go to

TOOLS --> Options… --> Debugging --> General --> (mark) Use Managed Compatibility Mode

like image 112
Jens Bornschein Avatar answered Oct 01 '22 16:10

Jens Bornschein