Bug 32782 - persistent kevent() error, error code = '22'
Summary: persistent kevent() error, error code = '22'
Alias: None
Product: Xamarin Studio
Classification: Desktop
Component: General ()
Version: Trunk
Hardware: PC Other
: Normal normal
Target Milestone: master
Assignee: Bugzilla
Depends on:
Reported: 2015-08-05 03:52 UTC by Russell Haley
Modified: 2017-07-21 00:17 UTC (History)
3 users (show)

Is this bug a regression?: ---
Last known good build:

Notice (2018-05-24): bugzilla.xamarin.com is now in read-only mode.

Please join us on Visual Studio Developer Community and in the Xamarin and Mono organizations on GitHub to continue tracking issues. Bugzilla will remain available for reference in read-only mode. We will continue to work on open Bugzilla bugs, copy them to the new locations as needed for follow-up, and add the new items under Related Links.

Our sincere thanks to everyone who has contributed on this bug tracker over the years. Thanks also for your understanding as we make these adjustments and improvements for the future.

Please create a new report on Developer Community or GitHub with your current version information, steps to reproduce, and relevant error messages or log files if you are hitting an issue that looks similar to this resolved bug and you do not yet see a matching new report.

Related Links:

Description Russell Haley 2015-08-05 03:52:18 UTC
Hello, I have been trying to build Monodevelop on PC-BSD/FreeBSD 10.1 from current source and after a successful build I get to this error when I run the applicaiton:

[ERROR] FATAL UNHANDLED EXCEPTION: System.IO.IOException: persistent kevent() error, error code = '22'
  at System.IO.KqueueMonitor.Monitor () [0x00000] in <filename unknown>:0
  at System.IO.KqueueMonitor.DoMonitor () [0x00000] in <filename unknown>:0

I drilled into the KqueueMonitor code but dind't find much of interest because I don't know what I'm looking for. 


Comment 1 Russell Haley 2015-08-05 04:04:07 UTC
Hi sorry, after a rebooot the error changes a little:

%monodevelop --no-redirect

Unhandled Exception:
System.TypeLoadException: A type load exception has occurred.
  at MonoDevelop.Startup.MonoDevelopMain.Main (System.String[] args) [0x00000] in <filename unknown>:0
[ERROR] FATAL UNHANDLED EXCEPTION: System.TypeLoadException: A type load exception has occurred.
  at MonoDevelop.Startup.MonoDevelopMain.Main (System.String[] args) [0x00000] in <filename unknown>:0


Comment 2 Russell Haley 2015-08-09 04:11:55 UTC
Hi There, 

The error "System.TypeLoadException: A type load exception has occurred." was a red herring - I fixed this, I was missing gtk-sharp2

The actual error is the first one. I am digging through startup code but cannot find where KqueueMonitor is being called. Any input would be great.

Comment 3 Jordan Matthiesen [MSFT] 2017-07-21 00:17:02 UTC
Hi, Russ,

Thanks for contacting us and I hope you were able to get some assistance with this issue eventually! I'm going to go ahead and resolve this issue now that its been almost 2 years, but please feel free to re-open if this is still a problem for which you need help. Thanks again!