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

cannot allocate memory when creating native wallets with arm binary #2965

Open
bochinchero opened this issue Sep 9, 2024 · 2 comments
Open

Comments

@bochinchero
Copy link

bochinchero commented Sep 9, 2024

Build ID: c5fb19a

Tested on a rapsberry pi 4, another user reporrted having the same error.

2024-09-09 18:51:48.469 [ERR] WEB: error creating polygon wallet: failed to connect polygon wallet: ConnectOnce error: connect failure: Mmap value log file. Path=/home/user/.dexc/mainnet/assetdb/polygon/txhistorydb/000000.vlog. Error=cannot allocate memory

2024-09-09 18:52:08.470 [ERR] WEB: error creating btc wallet: failed to connect btc wallet: ConnectOnce error: connect failure: Mmap value log file. Path=/home/user/.dexc/mainnet/assetdb/btc/mainnet/txhistorydb-e32203eecd0f7dc454b2a6fb2e52aff18af90e5f/000000.vlog. Error=cannot allocate memory

2024-09-09 18:52:26.870 [ERR] WEB: error creating dcr wallet: failed to connect dcr wallet: ConnectOnce error: connect failure: error connecting to tx history db: connect failure: Mmap value log file. Path=/home/user/.dexc/mainnet/assetdb/dcr/mainnet/txhistorydb-DsjFwctsXQJBxBmwpAnCVvtXfJ4HGPZapUP/000000.vlog. Error=cannot allocate memory

Once the wallet(s) fails to create, you can't attempt to recreate them because the file already exists:

2024-09-09 18:52:08.470 [INF] CORE[btc][SPV]: Unloading wallet
2024-09-09 18:52:08.527 [INF] CORE[btc][SPV]: SPV wallet closed
2024-09-09 18:52:26.653 [DBG] CORE[dcr]: Using tx history db at /home/user/.dexc/mainnet/assetdb/dcr/mainnet/txhistorydb-DsjFwctsXQJBxBmwpAnCVvtXfJ4HGPZapUP
2024-09-09 18:52:26.867 [INF] CORE[dcr][SPV]: Unloading wallet
2024-09-09 18:52:26.867 [INF] CORE[dcr][SPV]: SPV wallet closed
2024-09-09 18:52:26.870 [ERR] WEB: error creating dcr wallet: failed to connect dcr wallet: ConnectOnce error: connect failure: error connecting to tx history db: connect failure: Mmap value log file. Path=/home/user/.dexc/mainnet/assetdb/dcr/mainnet/txhistorydb-DsjFwctsXQJBxBmwpAnCVvtXfJ4HGPZapUP/000000.vlog. Error=cannot allocate memory
2024-09-09 18:55:23.431 [INF] CORE: Initializing a dcr wallet
2024-09-09 18:55:23.434 [ERR] WEB: error creating dcr wallet: Error creating wallet: wallet at "/home/user/.dexc/mainnet/assetdb/dcr/mainnet/spv" already exists

Only way to attempt again is to delete the files.

@JoeGruffins
Copy link
Member

JoeGruffins commented Sep 10, 2024

I encountered the same problem until I updated to a 64 bit os #2698

Probably the binaries were build for 32 bit pi and there is something there.

@davecgh
Copy link
Member

davecgh commented Sep 22, 2024

Raspberry Pi 4 is a quad core Cortex-A72 (ARM v8) 64-bit SoC, so I would definitely expect that you'd need/want a 64-bit OS and arm64 bins.

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

3 participants