dcrdex icon indicating copy to clipboard operation
dcrdex copied to clipboard

cannot allocate memory when creating native wallets with arm binary

Open bochinchero opened this issue 5 months ago • 2 comments

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.

bochinchero avatar Sep 09 '24 18:09 bochinchero