Skip to content
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

[web3.js] Infinite loop with accountSubscribe #27167

Closed
laterbreh opened this issue Aug 15, 2022 · 2 comments
Closed

[web3.js] Infinite loop with accountSubscribe #27167

laterbreh opened this issue Aug 15, 2022 · 2 comments
Labels
javascript Pull requests that update Javascript code web3.js Related to the JavaScript client

Comments

@laterbreh
Copy link

We are currently on 1.52 (https://github.com/solana-labs/solana-web3.js/releases/tag/v1.52.0) and we are still experiencing this issue.
(wallet address ommited)
accountSubscribe error for argument [ 'XXXXXXXXXXXXXXXXXXXX', { encoding: 'base64', commitment: 'finalized' }

We never get more than 3 to 5 subscriptions. We actively track and unsubscribe from the wallets every X minutes. When this occurs, we hit 99% cpu usage and our gateway locks up.

Originally posted by @laterbreh in #26665 (comment)

@sakridge sakridge added the validator Issues that relate to the validator label Oct 21, 2022
@steveluscher steveluscher added javascript Pull requests that update Javascript code web3.js Related to the JavaScript client and removed validator Issues that relate to the validator labels Dec 2, 2022
@steveluscher
Copy link
Contributor

I still believe this to be due to a bug in rpc-websockets (#25578). Are you finding, too, that the library believes the websocket to still be open, when in fact it has closed?

@steveluscher steveluscher changed the title Infinite loop with accountSubscribe [web3.js] Infinite loop with accountSubscribe Dec 2, 2022
@steveluscher
Copy link
Contributor

@laterbreh, if you're still experiencing this problem, can you try to upgrade to an experimental release, by running yarn add @solana/web3.js@pr-29195? That's a package built from PR #29195.

Let me know if that fixes anything.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
javascript Pull requests that update Javascript code web3.js Related to the JavaScript client
Projects
None yet
Development

No branches or pull requests

3 participants