question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

File descriptor leak in PluginConfig.load()

See original GitHub issue

Android 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:closed
  • Created 5 years ago
  • Comments:8 (7 by maintainers)

github_iconTop GitHub Comments

1reaction
devoncarewcommented, Mar 8, 2019

Depending on @DaveShuckerow’s eval of the fix, if may be worth doing a patch release to capture this fix.

1reaction
TytaniumDevcommented, Mar 8, 2019

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.

Read more comments on GitHub >

github_iconTop 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 >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found