etotheipi / BitcoinArmory

Python-Based Bitcoin Software
Other
826 stars 621 forks source link

terminate called after throwing an instance of 'std::bad_alloc' #201

Open OhShei8e opened 10 years ago

OhShei8e commented 10 years ago

Branch: Testing OS: Ubuntu 12.04, 32Bit FAILURE: during Build Databases: terminate called after throwing an instance of 'std::bad_alloc'

(WARNING) SDM.py:711 - Overriding not-available state. This should happen 0-5 times
(WARNING) SDM.py:711 - Overriding not-available state. This should happen 0-5 times
(WARNING) SDM.py:711 - Overriding not-available state. This should happen 0-5 times
(ERROR) ArmoryQt.py:915 - 39 attempts to load blockchain failed.  Remove mempool.bin.
(ERROR) ArmoryQt.py:920 - File mempool.bin does not exist. Nothing deleted.
-INFO  - 1398967256: (BlockUtils.cpp:2291) Set home directory: 
-INFO  - 1398967256: (BlockUtils.cpp:2313) Set blkfile dir: /media/BTC-Home/blocks
-INFO  - 1398967256: (BlockUtils.cpp:2323) Set leveldb dir: /home/ctbankix/.armory/databases
-INFO  - 1398967256: (BlockUtils.cpp:2279) SetBtcNetworkParams
-INFO  - 1398967256: (BlockUtils.cpp:4329) Executing: doInitialSyncOnLoad
-INFO  - 1398967256: (BlockUtils.cpp:4370) Number of registered addr: 0
-INFO  - 1398967256: (leveldb_wrapper.cpp:399) Opening databases...
-INFO  - 1398967256: (leveldb_wrapper.cpp:443) Using max_open_files = 75
-INFO  - 1398967256: (leveldb_wrapper.cpp:443) Using max_open_files = 75
-DEBUG - 1398967256: (BlockUtils.cpp:4382) Called build&scan with (0,0,0,1)
-INFO  - 1398967256: (BlockUtils.cpp:2404) Total blk*.dat files:                 137
-INFO  - 1398967256: (BlockUtils.cpp:2422) Current Top block in HEADERS DB:  298644
-INFO  - 1398967256: (BlockUtils.cpp:2423) Current Top block in BLKDATA DB:  0
-INFO  - 1398967256: (BlockUtils.cpp:2424) Current Applied blocks up to hgt: 0
-DEBUG - 1398967263: (BlockUtils.cpp:5599) Organizing chain w/ rebuild
-DEBUG - 1398967265: (BlockUtils.cpp:5723) Done organizing chain
-INFO  - 1398967267: (BlockUtils.cpp:2525) First unrecognized hash file:       136
-INFO  - 1398967267: (BlockUtils.cpp:2526) Offset of first unrecog block:      82690211
-INFO  - 1398967267: (BlockUtils.cpp:2535) First blkfile not in DB:            0
-INFO  - 1398967267: (BlockUtils.cpp:2536) Location of first block not in DB:  0
-INFO  - 1398967267: (BlockUtils.cpp:4415) Fetching stored script histories from DB
-INFO  - 1398967267: (BlockUtils.cpp:4457) Reading all headers and building chain...
-DEBUG - 1398967267: (BlockUtils.cpp:5599) Organizing chain w/ rebuild
-DEBUG - 1398967269: (BlockUtils.cpp:5723) Done organizing chain
-INFO  - 1398967284: (BlockUtils.cpp:4461) Total number of blk*.dat files: 137
-INFO  - 1398967284: (BlockUtils.cpp:4462) Total number of blocks found:   298644
-INFO  - 1398967284: (BlockUtils.cpp:4474) Getting latest blocks from blk*.dat files
-INFO  - 1398967284: (BlockUtils.cpp:4475) Total blockchain bytes: 18,321,208,622
-INFO  - 1398967284: (BlockUtils.cpp:4481) Parsing blockchain file: /media/BTC-Home/blocks/blk00000.dat
-INFO  - 1398967284: (BlockUtils.cpp:4624) /media/BTC-Home/blocks/blk00000.dat is 134,214,363 bytes
terminate called after throwing an instance of 'std::bad_alloc'
  what():  std::bad_alloc
etotheipi commented 10 years ago

Are you out of disk space?

OhShei8e commented 10 years ago

No. I'll make a few more tests.

njaard commented 10 years ago

This is probably a result of disk corruption of the bitcoind blockchain. I forgot about this case when I did that patch. :(

OhShei8e commented 10 years ago

First, sorry for the noise. Like Alan suspected I was out of disk space. I have found that Armory requires approximately 2.5 GB in the user's home directory. Because I'm developing a Live CD that contains Armory I'm wondering if there is an easy way for the user to change Armorys working directory (like you can do it for bitcoind)?