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

Memory capacity exceeded in JSON-RPC server components when run web3 compatible test. #1534

Closed
yangby-cryptape opened this issue Nov 8, 2023 · 3 comments
Assignees
Labels
P-High t:bug Something isn't working

Comments

@yangby-cryptape
Copy link
Collaborator

yangby-cryptape commented Nov 8, 2023

Description

My laptop is old, but it has high performance and a great quantity of RAM.

And I started a local Axon node use the default configuration.

Then I ran the following command to run the web3 compatible test.

npm run test:test --network=axon_test --grep=""

After a while, I got:

[2023-11-08T23:03:38.977904689+08:00 ERROR jsonrpsee_core::server::helpers] Error serializing response: Error("Memory capacity exceeded", line: 0, column: 0)

Then the test is hung.

I had to press Ctrl+C to exit.

Related CI Checks

Maybe this issue is the reason why many CI checks are failed after few hours tonight:

But, if luck enough, the web3 compatible test could be finished in 30 minutes:

My Guess

  • This immediate cause for this issue is these axon-tests changes.

    Reason: All issues was happened after those commits merged.

    It doesn't mean these commits are incorrect.

  • I think the underlying cause is some unknown bugs in Axon.

    Reason: The Axon testnet has same errors but its code is old.

  • And, fix: check mempool when call eth_getTransactionByHash #1526 reduces the chance of bugs happened to almost 0%.

    Reason: All CI checks could be finished in 30 minutes in this PR.

@Flouse Flouse added t:bug Something isn't working P-High agenda labels Nov 8, 2023
@blckngm
Copy link
Contributor

blckngm commented Nov 9, 2023

Error is probably logged here:

https://github.com/paritytech/jsonrpsee/blob/724e23841df5783255cd5b55c1f15308d75a362a/core/src/server/helpers.rs#L276

There is a limit on max response size in jsonrpsee.

@yangby-cryptape
Copy link
Collaborator Author

yangby-cryptape commented Nov 9, 2023

References:


I still have two question:

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
P-High t:bug Something isn't working
Projects
None yet
Development

No branches or pull requests

3 participants