ZCASHD Crashing Help

Hello Zcash users,
I have the follow problem:

zcashd: wallet/wallet.cpp:794: void CopyPreviousWitnesses(NoteDataMap&, int, int64_t) [with NoteDataMap = std::map<JSOutPoint, SproutNoteData>; int64_t = long int]: Assertion `(nd->witnessHeight == -1) || (nd->witnessHeight == indexHeight - 1)’ failed.
Aborted (core dumped)

Trying to fix it, I did -reindex. It was reindexing for around 30 hours and then I got this error:

zcash error 
Error: Out of memory. Terminating.
terminate called without an active exception
Aborted (core dumped)

I still have free GBs
Any ideas what is the best I could do at the moment?
Thank you!

I would try starting up with the rescan flag so zcashd -rescan and let it sync.

1 Like

What version of Zcash are you using? How much memory do you have? We recommend at least 5GB for building Zcash.

Also what OS?

1 Like

I use Ubuntu and 2.0 version of zcash , I had 4gb when I did rescan, so may be now I will try with 6gbs, just one full reindex or rescan takes 2 days. I will let you know if it’s ok after increasing the Ram.
thanks for answering

We’re curious, any luck with increasing the RAM?

Yes, that helped. Thank you!