Zcashd fails after validating 1076 transactions

Issue

zcashd exits prematurely. Wallet cannot connect to zcashd.

Upon start wallet (Zecwallet Fullnode v0.9.11) can’t connect with zcashd. 2-3 mins of indexing ‘cannot connect with zcashd’

The daemon starts
/Library/Application Support/zecwallet/bin/mac/zcashd
after 2-3 mins…

Assertion failed: ((nd->witnessHeight == -1) || (nd->witnessHeight == indexHeight - 1)), function CopyPreviousWitnesses, file wallet/wallet.cpp, line 1065.
Abort trap: 6

Both Wallet and zcashd should be humming along but no dice. Any assistance would be warmly welcomed.

Platform

MacBook-Pro
uname -m = x86_64
uname -r = 17.7.0
uname -s = Darwin
uname -v = Darwin Kernel Version 17.7.0: Thu Jan 23 07:05:23 PST 2020; root:xnu-4570.71.69~1/RELEASE_X86_64

/usr/bin/uname -p = i386
/bin/uname -X = unknown

/bin/arch = unknown
/usr/bin/arch -k = unknown
/usr/convex/getsysinfo = unknown
/usr/bin/hostinfo = Mach kernel version:
Darwin Kernel Version 17.7.0: Thu Jan 23 07:05:23 PST 2020; root:xnu-4570.71.69~1/RELEASE_X86_64
Kernel configured for up to 4 processors.
2 processors are physically available.
4 processors are logically available.
Processor type: i486 (Intel 80486)
Processors active: 0 1 2 3
Primary memory available: 8.00 gigabytes
Default processor set: 364 tasks, 2208 threads, 4 processors
Load average: 3.63, Mach factor: 0.96
/bin/machine = unknown
/usr/bin/oslevel = unknown
/bin/universe = unknown

500Gb SSD

gcc --version
Configured with: --prefix=/Library/Developer/CommandLineTools/usr --with-gxx-include-dir=/usr/include/c++/4.2.1
Apple LLVM version 10.0.0 (clang-1000.10.44.4)
Target: x86_64-apple-darwin17.7.0
Thread model: posix
InstalledDir: /Library/Developer/CommandLineTools/usr/bin

ld -v
@(#)PROGRAM:ld PROJECT:ld64-409.12
BUILD 17:47:51 Sep 25 2018
configured to support archs: armv6 armv7 armv7s arm64 i386 x86_64 x86_64h armv6m armv7k armv7m armv7em
LTO support using: LLVM version 10.0.0, (clang-1000.10.44.4) (static support for 21, runtime is 21)
TAPI support using: Apple TAPI version 10.0.0 (tapi-1000.10.8)

as --version
Apple LLVM version 10.0.0 (clang-1000.10.44.4)
Target: x86_64-apple-darwin17.7.0
Thread model: posix
InstalledDir: /Library/Developer/CommandLineTools/usr/b

Downloading blocks | 742596 / ~843450 (88%)
Next upgrade | Unknown
Connections | 2
Network solution rate | 5951109297 Sol/s

You are currently not mining.
To enable mining, add ‘gen=1’ to your zcash.conf and restart.

Since starting this node 2 minutes, 41 seconds ago:

  • You have validated 1076 transactions!

[Press Ctrl+C to exit] [Set ‘showmetrics=0’ to hide]
Assertion failed: ((nd->witnessHeight == -1) || (nd->witnessHeight == indexHeight - 1)), function CopyPreviousWitnesses, file wallet/wallet.cpp, line 1065.
Abort trap: 6
logout
Saving session…
…copying shared history…
…saving history…truncating history files…
…completed.

[Process completed]

i486 is a 32bit architecture and isn’t compatible with zcashd to my knowledge, its pretty neat that it started though maybe theres hope yet…

1 Like

You are running into this issue: zcashd assertion failure CopyPreviousWitnesses() Assertion (nd->witnessHeight == -1) || (nd->witnessHeight == indexHeight - 1) · Issue #4301 · zcash/zcash · GitHub

The only known fix right now is to do a reindex. Start zcashd with zcashd --reindex (this will take several hours/days)

3 Likes

We see this crash a lot too. It seems more likely to happen when zcashd isn’t shut down gracefully.