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

Oversized Vector Allocation #416

Closed
84adam opened this issue Nov 1, 2022 · 2 comments
Closed

Oversized Vector Allocation #416

84adam opened this issue Nov 1, 2022 · 2 comments

Comments

@84adam
Copy link

84adam commented Nov 1, 2022

I am seeing this on electrs-esplora 0.4.1. Indexing is stuck and is falling further behind.

from esplora/logs/electrs/current:

[...]51c1cffebfe386c08479749f87205772752b7cb5e012102a7d196ae254ef2ffb686bf7802a9da0580584b90741230f5d7d14e18438463ec024401210256cfaade820b773019ec33bb54ed05c4718c5427090300e65a[...]4194e024847d7ae68182d7bf2d92ec820000451afeedce543b00000000020000000001029dd[...]cb003b6d7c3aec9ffa5aac4706147ea7b8c7a0b9ede8957283dbb018a9b4ae6da09d0b00"), 
State { next_error: Some(OversizedVectorAllocation { requested: 12000072, max: 4000000 }), backtrace: InternalBacktrace { backtrace: None } })', src/new_index/fetch.rs:86:22
2-note: run with `RUST_BACKTRACE=1` environment variable to display a backtrace
2-Config { log: StdErrLog { verbosity: Info, quiet: false, show_level: true, timestamp: Millisecond, modules: [], writer: "stderr", color_choice: Never }, network_type: Bitcoin, db_path: "/data/electrs_bitcoin_db/mainnet/mainnet", daemon_dir: "/data/bitcoin", blocks_dir: "/data/bitcoin/blocks", daemon_rpc_addr: 127.0.0.1:8332, cookie: None, electrum_rpc_addr: 0.0.0.0:50001, http_addr: 127.0.0.1:3000, http_socket_file: Some("/var/electrs-rest.sock"), monitoring_addr: 0.0.0.0:4224, jsonrpc_import: false, light_mode: true, address_search: true, index_unspendables: false, cors: None, precache_scripts: Some("/srv/explorer/popular-scripts.txt"), utxos_limit: 500, electrum_txs_limit: 100000, electrum_banner: "Welcome to electrs-esplora 0.4.1", electrum_public_hosts: None, electrum_announce: false, tor_proxy: Some(127.0.0.1:9050) }
2-2022-11-01T16:33:20.012+00:00 - INFO - NetworkInfo { version: 200100, subversion: "/Satoshi:0.20.1/", relayfee: 0.00001 }

See also: romanz/electrs#783

@romanz
Copy link
Collaborator

romanz commented Nov 1, 2022

I think it should be resolved by Blockstream/electrs@93fff34, which is included by 7bc4c7d.

@84adam
Copy link
Author

84adam commented Nov 1, 2022

Confirmed. Updating to latest version (esplora:latest) resolved the issue. Thanks, @romanz!

@84adam 84adam closed this as completed Nov 1, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants