Fatal error has occurred, BAD_Alloc runaway exception error when starting bitcoin core
Debug log says error on processblock Then creates orphanblocks and finally ends with:
LevelDB batch commit failure: IO error: winmapfile.append::unmapcurrent region or mapnewregion : unsufficient memory available to process this task
Error AcceptBlock : Addtoblockindex failed Error ProcessBlock : Acceptblock failed Processblock, block not accepted
Orphanblock
Can anyone help me with this issue?
I did fix the bad alloc runaway error with this memory issue before by configuring the configuration file adding the following:
Listen=1 Bind=0.0.0.0 Port=8333 Maxconnections=64 Maxmempool=32 Upnp=1 Dnsseed=1 Discover=1
Dbcache=18 Dblogsize=50 Par=1 Checkblocks=2000 Checklevel=6
Disablewallet=0
Rpcbind= 127.0.0.1 Rpcport=8333 Rpcallowip=127.0.0.1
Maxuploadtargets=32 Rescan=1
Maxorphanblocksmib=80
Testnet=0
Can anyone help me solve the issue?
It keeps coming back at the memory issue as the underlying problem but why does it not accept the block?
I think I need to fix the memory issue first. This is done on the latest bitcoin core wallet