Skip to content

[WebToolsE2E][Green] Right click BlazorApp ~ WebAssembly project in solution explorer and select "Open In Integrated Terminal", type "dotnet watch", An unexpected error occurred"System.IO.IOException: The configured user limit (128) ..." #2651

@Susie-1989

Description

@Susie-1989

REGRESSION INFO: Not a regression

INSTALL STEPS

  1. OS: Linux x64
  2. Install the SDK 10.0.101
  3. Install VS Code stable - 1.107.0
  4. Install release C# DK1.90.2(include C#2.110.4)

Platform

  • Windows
  • macOS
  • Linux

REPRO STEPS

  1. Open vs code > Create .NET Project >Blazor Web App ~ WebAssembly ~Per page/component
  2. Right click BlazorApp project in solution explorer and select "Open In Integrated Terminal", type "dotnet watch"

Note:

  1. This issue works well when use command to create project
  2. This issue works well for windows x64
  3. This issue works well for Blazor Web App ~ Server ~Per page/component and Blazor Web App ~ Server ~Global project.
  4. This issue repro for Blazor Web App ~ webassembly~Global and Blazor Web App ~ auto.

ACTUAL An unexpected error occurred: System.IO.IOException: The configured user limit (128) on the number of inotify instances has been reached.

Image

log:

dotnet watch 🔥 Hot reload enabled. For a list of supported edits, see https://aka.ms/dotnet/hot-reload.
dotnet watch 💡 Press Ctrl+R to restart.
dotnet watch 🔨 Building /home/parallels/18/BlazorApp1/BlazorApp1/BlazorApp1.csproj ...
dotnet watch 🔨 Build succeeded: /home/parallels/18/BlazorApp1/BlazorApp1/BlazorApp1.csproj
Using launch settings from /home/parallels/18/BlazorApp1/BlazorApp1/Properties/launchSettings.json...
info: Microsoft.Hosting.Lifetime[14]
Now listening on: http://localhost:5041
info: Microsoft.Hosting.Lifetime[0]
Application started. Press Ctrl+C to shut down.
info: Microsoft.Hosting.Lifetime[0]
Hosting environment: Development
info: Microsoft.Hosting.Lifetime[0]
Content root path: /home/parallels/18/BlazorApp1/BlazorApp1
Gtk-Message: 00:14:14.776: Not loading module "atk-bridge": The functionality is provided by GTK natively. Please try to not load it.
warn: Microsoft.AspNetCore.HttpsPolicy.HttpsRedirectionMiddleware[3]
Failed to determine the https port for redirect.
info: Microsoft.Hosting.Lifetime[0]
Application is shutting down...
dotnet watch ⌚ [BlazorApp1 (net10.0)] Exited
dotnet watch � An unexpected error occurred: System.IO.IOException: 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.
at System.IO.FileSystemWatcher.StartRaisingEvents()
at Microsoft.DotNet.Watch.EventBasedDirectoryWatcher.set_EnableRaisingEvents(Boolean value)
at Microsoft.DotNet.Watch.FileWatcher.Watch(IEnumerable1 filePaths, Boolean containingDirectories, Boolean includeSubdirectories) at Microsoft.DotNet.Watch.FileWatcher.WatchFiles(IEnumerable1 filePaths)
at Microsoft.DotNet.Watch.EvaluationResult.WatchFiles(FileWatcher fileWatcher)
at Microsoft.DotNet.Watch.HotReloadDotNetWatcher.WatchAsync(CancellationToken shutdownCancellationToken)
at Microsoft.DotNet.Watch.HotReloadDotNetWatcher.WatchAsync(CancellationToken shutdownCancellationToken)
at Microsoft.DotNet.Watch.Program.RunAsync()
parallels@ubuntu-linux-22-04-02-desktop:~/18/BlazorApp1/BlazorApp1$

EXPECTED No error up

Metadata

Metadata

Assignees

No one assigned

    Labels

    area-hotreloadIssues with Hot Reload experiences

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions