Camelot icon indicating copy to clipboard operation
Camelot copied to clipboard

The configured user limit (128) on the number of inotify instances has been reached

Open timothyparez opened this issue 4 years ago • 2 comments

When the app starts it throws an IOException:

An exception of type 'System.IO.IOException' occurred in System.IO.FileSystem.Watcher.dll but was not handled in user code: 'The configured user limit (128) on the number of inotify instances has been reached, or the per-process limit on the number of open file descriptors has been reached.'

Info:

  • Source: Camelot.FileSystemWatcherWrapper/Implementations/FileSystemWatcherWrapper.cs
  • Line: 29
  • Commit: 3acd8a643731d5aebcbaa6858011659e8b11da2c
  • OS: Ubuntu 20.04
  • .NET Core Version: 3.1.201

timothyparez avatar Apr 27 '20 05:04 timothyparez

Hello. Seems that inotify limit is low on your machine and it breaks C# FileSystemWatcher. As a temporary workaround you can increase inotify limit as described here. I will think how to solve this and probably will get rid of FileSystemWatcher at all

IngvarX avatar Apr 27 '20 10:04 IngvarX

Yes, might be better since you want this to be usable by end-users.
Nice project by the way. Good showcase of Avalonia and a good alternative to TotalCommander and MuCommander.

timothyparez avatar Apr 28 '20 02:04 timothyparez