Bug 19985 - Unhandled exception from InotifyWatcher
Summary: Unhandled exception from InotifyWatcher
Status: RESOLVED NORESPONSE
Alias: None
Product: Class Libraries
Classification: Mono
Component: System ()
Version: 3.2.x
Hardware: PC Linux
: Normal normal
Target Milestone: Untriaged
Assignee: Bugzilla
URL:
Depends on:
Blocks:
 
Reported: 2014-05-22 04:53 UTC by Svein Arne Ackenhausen
Modified: 2018-03-13 11:07 UTC (History)
4 users (show)

Tags:
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 GitHub or Developer Community with your current version information, steps to reproduce, and relevant error messages or log files if you are hitting an issue that looks similar to this resolved bug and you do not yet see a matching new report.

Related Links:
Status:
RESOLVED NORESPONSE

Description Svein Arne Ackenhausen 2014-05-22 04:53:12 UTC
Hi,

Getting the following exception when doing FS monitoring on linux.

System.NullReferenceException: Object reference not set to an instance of an object
  at System.IO.InotifyWatcher.RemoveRequestData (System.IO.InotifyData data) [0x00000] in <filename unknown>:0 
  at System.IO.InotifyWatcher.StopDispatching (System.IO.FileSystemWatcher fsw) [0x00000] in <filename unknown>:0 SomeFile.txt  ReadModel/                          
  at System.IO.FileSystemWatcher.Stop () [0x00000] in <filename unknown>:0 
  at System.IO.FileSystemWatcher.set_EnableRaisingEvents (Boolean value) [0x00000] in <filename unknown>:0 
  at (wrapper remoting-invoke-with-check) System.IO.FileSystemWatcher:set_EnableRaisingEvents (bool)
  at FSWatcher.EventedWatchers.FSW.Stop () [0x00000] in <filename unknown>:0 
  at FSWatcher.EventedWatchers.FSW.startListener () [0x00000] in <filename unknown>:0 
  at FSWatcher.EventedWatchers.FSW.Start () [0x00000] in <filename unknown>:0 
  at FSWatcher.Watcher.<Watch>m__1 () [0x00000] in <filename unknown>:0 
  at System.Threading.Thread.StartInternal () [0x00000] in <filename unknown>:0 
[ERROR] FATAL UNHANDLED EXCEPTION: System.NullReferenceException: Object reference not set to an instance of an object
  at System.IO.InotifyWatcher.RemoveRequestData (System.IO.InotifyData data) [0x00000] in <filename unknown>:0 
  at System.IO.InotifyWatcher.StopDispatching (System.IO.FileSystemWatcher fsw) [0x00000] in <filename unknown>:0 
  at System.IO.FileSystemWatcher.Stop () [0x00000] in <filename unknown>:0 
  at System.IO.FileSystemWatcher.set_EnableRaisingEvents (Boolean value) [0x00000] in <filename unknown>:0 
  at (wrapper remoting-invoke-with-check) System.IO.FileSystemWatcher:set_EnableRaisingEvents (bool)
  at FSWatcher.EventedWatchers.FSW.Stop () [0x00000] in <filename unknown>:0 
  at FSWatcher.EventedWatchers.FSW.startListener () [0x00000] in <filename unknown>:0 
  at FSWatcher.EventedWatchers.FSW.Start () [0x00000] in <filename unknown>:0 
  at FSWatcher.Watcher.<Watch>m__1 () [0x00000] in <filename unknown>:0 
  at System.Threading.Thread.StartInternal () [0x00000] in <filename unknown>:0
Comment 1 Rodrigo Kumpera 2014-05-26 08:38:18 UTC
Hey Svein,

Thanks for reporting this bug, but we can't reproduce it ourselves. Can you share more details on the setup and possibly a test case?
Comment 2 Marek Safar 2018-03-13 11:07:40 UTC
We have not received the requested information. If you are still experiencing this issue please provide all the requested information and reopen the bug report.

Thank you!