-
Notifications
You must be signed in to change notification settings - Fork 149
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
getting Possible EventEmitter memory leak detected on firebase functions that use google-cloud/ packages #2072
Comments
Thanks for reporting @jdziek . I'll take a look. |
From your description ( |
Got the warning locally today and it happens on a branch that has pretty much the same dependencies as the main branch, so there might be something to it. Will give it more thorough test on staging/gcp by tomorrow and will give you an update, as functions emulator is a little erratic at best. |
Changed some package versions, as you suggested, and still getting that warning.
EDIT. Set it to packages I had 5 months ago when I didn't get the warning, but I'm still getting it. Those were
At this point I'm really not sure what to do. Cant find anything relevant online and cant really ignore the issue either as this is happening on our production environment. |
Thanks for trying out the different versions, @jdziek. Based on these findings, this is not an issue originating from the Firestore client (this repo). I think the root cause is likely either in the Functions runtime or Functions framework. The stack trace also suggests it might be in I will close this ticket, but I'd be happy to work with whoever picks up the Functions issue if needed. |
Hi.
I started getting a memory leak warning a few days ago for no apparent reason. I did update packages a few weeks ago but didn't see anything till recently. I updated the packages to the most recent ones again and still got that message.
This warning pops up whenever a function is initiated.
Is this a client library issue or a product issue?
I believe this is a google-cloud package issue. I get this error, particularly in functions that must process files to storage.
Did someone already solve this?
I've seen it has been an issue in the past but nothing has been raised since then on a current release
Environment details
It happens on gen 2 firebase functions using [email protected] using nodejs 20
OtherGCPp packages that I'm using are
"@google-cloud/documentai": "^8.8.0",
"@google-cloud/firestore": "^7.8.0",
"@google-cloud/pubsub": "^4.5.0",
"@google-cloud/storage": "^7.11.2",
"firebase-admin": "^12.1.1",
"firebase-functions": "^5.0.1",
Here is a snippet of my code. The issue happens in every function that references google-cloud packages, so its not an isolated issue to this particular code, but I thought that it cant hurt including it.
The text was updated successfully, but these errors were encountered: