File descriptor leak in PluginConfig.load()
See original GitHub issueAndroid Studio 3.5 Canary 6 with Flutter plugin v33.3.2 runs out of file descriptors on Mac, subsequently failing every I/O call with “Too many open files”.
A quick lsof inspection of the process showed ~10K entries for config/intellij-plugins/flutter.json
.
One idea: does PluginConfig.load() close the InputStreamReader, or should that be a try-with-resources in https://github.com/flutter/flutter-intellij/blob/master/src/io/flutter/bazel/PluginConfig.java#L75 (I don’t know if GSON.fromJson() is supposed to close it.)
Issue Analytics
- State:
- Created 5 years ago
- Comments:8 (7 by maintainers)
Top Results From Across the Web
Search - Jenkins Jira
WARNING: Process leaked file descriptors. See https://jenkins.io/redirect/troubleshooting/process-leaked-file-descriptors for more information.
Read more >Error message definitions for WebSphere® Application ... - IBM
Cause: The plug-in attempted to reload the config file because it changed recently but the reload failed. The plug-in continues execution with ...
Read more >Changelog - Frama-C
[Kernel] Fix crash when loading a saved file without a plug-in which has previously emitted a status with a tuning parameter.
Read more >News – collectd – The system statistics collection daemon
NFS plugin: Config options to ignore specified NFS versions have been added. ... From the operating system we now get information on file...
Read more >Guides::Cookbook - Cooking with Mojolicious
Non-blocking tests for readability/writability of file descriptors and timers are commonly ... Mojo::Server::PSGI can be used directly to load and customize ...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
Depending on @DaveShuckerow’s eval of the fix, if may be worth doing a patch release to capture this fix.
Nice! Thanks for the quick fix! What’s a good way to track which version of the Flutter plugin this fix will be in? I’d like to verify this is the root cause of another issue I’ve been seeing.