LN-Zap / zap-desktop

Zap Wallet - Cross platform Lightning Network wallet focused on user experience and ease of use ⚡️
MIT License
1.28k stars 216 forks source link

LND has unexpectedly quit: Error Code: 2 #1189

Closed qjawe closed 5 years ago

qjawe commented 5 years ago

After installing Peach Desktop wallet and open at the same time

Expected Behavior

Zap Desktop wallet should open normally

Actual Behavior

Zap could not reopen anymore

Possible Fix

Not sure how to fix it

Steps to Reproduce

DEBUG=zap* DEBUG_LEVEL=debug /Applications/ZapDesktop.app/Contents/MacOS/ZapDesktop

Context

Last login: Sat Dec 29 08:45:05 on ttys000 JCs-MacBook-Pro:~ jcawe$ DEBUG=zap* DEBUG_LEVEL=debug /Applications/ZapDesktop.app/Contents/MacOS/ZapDesktop

(node:1382) ExperimentalWarning: The http2 module is an experimental API. zap:main [LOG] Time until app is ready: 77.528513ms +0ms zap:main [DBG] Fetching user settings from indexedDb (using database "ZapDesktop.production") +55ms zap:main [DBG] Got user settings: [ { key: 'activeWallet', value: 2 }, { key: 'isWalletOpen', value: true }, { key: 'locale', value: 'en' }, { key: 'theme', value: 'dark' } ] +263ms 2018-12-29 09:00:14.203 ZapDesktop[1382:53499] *** WARNING: Textured window <AtomNSWindow: 0x7f92a05420d0> is getting an implicitly transparent titlebar. This will break when linking against newer SDKs. Use NSWindow's -titlebarAppearsTransparent=YES instead. zap:updater [INF] Checking for update +16ms zap:i18n [ 'Determined language as +0ms', 'Bulgarian' ] zap:i18n [ 'Determined language as +1ms', 'Czech' ] zap:i18n [ 'Determined language as +0ms', 'German' ] zap:i18n [ 'Determined language as +1ms', 'English' ] zap:i18n [ 'Determined language as +1ms', 'Castilian' ] zap:i18n [ 'Determined language as +0ms', 'French' ] zap:i18n [ 'Determined language as +1ms', 'Irish' ] zap:i18n [ 'Determined language as +9ms', 'Croatian' ] zap:i18n [ 'Determined language as +0ms', 'Japanese' ] zap:i18n [ 'Determined language as +0ms', 'Dutch' ] zap:i18n [ 'Determined language as +0ms', 'Portuguese' ] zap:i18n [ 'Determined language as +1ms', 'Moldavian' ] zap:i18n [ 'Determined language as +0ms', 'Russian' ] zap:i18n [ 'Determined language as +0ms', 'Swedish' ] zap:i18n [ 'Determined language as +0ms', 'Turkish' ] zap:i18n [ 'Determined language as +0ms', 'Ukrainian' ] zap:main [DBG] [FSM] onOnboarding... +544ms zap:main [DBG] [FSM] onStartOnboarding... +451ms zap:main [INF] Sending message to renderer process: { msg: 'startOnboarding', data: undefined } +0ms zap:main [INF] Starting lnd with options: { alias: 'MoveblockOTC', autopilot: true, autopilotAllocation: 0.6, autopilotMaxchannels: 5, autopilotMaxchansize: 16777215, autopilotMinchansize: 20000, autopilotMinconfs: 0, autopilotPrivate: true, binaryPath: '/Applications/ZapDesktop.app/Contents/Resources/bin/lnd', cert: '/Users/jcawe/Library/Application Support/Zap/lnd/bitcoin/testnet/wallet-2/tls.cert', chain: 'bitcoin', configPath: '/Applications/ZapDesktop.app/Contents/Resources/resources/lnd.conf', host: 'localhost:11009', id: 2, lndDir: '/Users/jcawe/Library/Application Support/Zap/lnd/bitcoin/testnet/wallet-2', macaroon: '/Users/jcawe/Library/Application Support/Zap/lnd/bitcoin/testnet/wallet-2/data/chain/bitcoin/testnet/admin.macaroon', name: 'ZAP LND Moveblock Wallet - Testnet', network: 'testnet', rpcProtoPath: '/Applications/ZapDesktop.app/Contents/Resources/resources/rpc.proto', type: 'local' } +77ms zap:lnd-config Constructor called with options: { id: 2, type: 'local', chain: 'bitcoin', network: 'testnet', settings: { name: 'ZAP LND Moveblock Wallet - Testnet', alias: 'MoveblockOTC', autopilot: true, autopilotMaxchannels: 5, autopilotAllocation: 0.6, autopilotMinchansize: 20000, autopilotMaxchansize: 16777215, autopilotPrivate: true, autopilotMinconfs: 0 } } +0ms zap:lnd-config Setting settings as: { name: 'ZAP LND Moveblock Wallet - Testnet', autopilot: true, autopilotMaxchannels: 5, autopilotMinchansize: 20000, autopilotMaxchansize: 16777215, autopilotAllocation: 0.6, autopilotPrivate: true, autopilotMinconfs: 0, alias: 'MoveblockOTC' } +1ms zap:lnd-config Connection type is local. Assigning settings as: { host: 'localhost:10009', cert: '/Users/jcawe/Library/Application Support/Zap/lnd/bitcoin/testnet/wallet-2/tls.cert', macaroon: '/Users/jcawe/Library/Application Support/Zap/lnd/bitcoin/testnet/wallet-2/data/chain/bitcoin/testnet/admin.macaroon' } +0ms zap:main [DBG] [FSM] onBeforeStartLocalLnd... +2ms zap:main [INF] Starting new lnd instance +1ms zap:main [INF] > alias: MoveblockOTC +0ms zap:main [INF] > autopilot: true +0ms zap:main [INF] Starting Neutrino... +0ms zap:main [INF] Starting lnd in neutrino mode +0ms zap:main [INF] > binaryPath /Applications/ZapDesktop.app/Contents/Resources/bin/lnd +1ms zap:main [INF] > rpcProtoPath: /Applications/ZapDesktop.app/Contents/Resources/resources/rpc.proto +0ms zap:main [INF] > host: localhost:10009 +0ms zap:main [INF] > cert: /Users/jcawe/Library/Application Support/Zap/lnd/bitcoin/testnet/wallet-2/tls.cert +0ms zap:main [INF] > macaroon: /Users/jcawe/Library/Application Support/Zap/lnd/bitcoin/testnet/wallet-2/data/chain/bitcoin/testnet/admin.macaroon +0ms zap:main [INF] Spawning Neutrino process: /Applications/ZapDesktop.app/Contents/Resources/bin/lnd --configfile=/Applications/ZapDesktop.app/Contents/Resources/resources/lnd.conf --lnddir=/Users/jcawe/Library/Application Support/Zap/lnd/bitcoin/testnet/wallet-2 --listen=0.0.0.0:9735 --rpclisten=localhost:11009 --restlisten=localhost:8180 --alias=MoveblockOTC --autopilot.active --autopilot.private --autopilot.maxchannels=5 --autopilot.minchansize=20000 --autopilot.maxchansize=16777215 --autopilot.allocation=0.6 --autopilot.minconfs=0 --neutrino.connect=testnet1-btcd.zaphq.io --neutrino.connect=testnet2-btcd.zaphq.io +5ms zap:main [INF] Sending message to renderer process: { msg: 'lndStarted', data: e { id: 2, type: 'local', chain: 'bitcoin', network: 'testnet', host: [Getter/Setter], cert: [Getter/Setter], macaroon: [Getter/Setter], string: [Getter/Setter], name: 'ZAP LND Moveblock Wallet - Testnet', alias: 'MoveblockOTC', autopilot: true, autopilotMaxchannels: 5, autopilotMinchansize: 20000, autopilotMaxchansize: 16777215, autopilotAllocation: 0.6, autopilotPrivate: true, autopilotMinconfs: 0, wallet: [Getter], binaryPath: [Getter], lndDir: [Getter], configPath: [Getter], rpcProtoPath: [Getter] } } +22ms zap:lnd [INF] 2018-12-29 09:00:15.379 [INF] LTND: Version: 0.5.1-beta commit=, build=production, logging=default +65ms zap:lnd [INF] 2018-12-29 09:00:15.379 [INF] LTND: Active chain: Bitcoin (network=testnet) +0ms zap:lnd [INF] 2018-12-29 09:00:15.380 [INF] CHDB: Checking for schema update: latest_version=7, db_version=7 +1ms zap:lnd [INF] 2018-12-29 09:00:15.390 [INF] RPCS: password gRPC proxy started at 127.0.0.1:8180 +8ms zap:lnd [INF] 2018-12-29 09:00:15.390 [INF] RPCS: password RPC server listening on 127.0.0.1:11009 +0ms zap:main [INF] Wallet unlocker gRPC active +0ms zap:main [INF] Establishing connection to Wallet Unlocker gRPC interface... +1ms zap:main [INF] Connecting to WalletUnlocker gRPC service +1ms zap:lnd [INF] 2018-12-29 09:00:15.390 [INF] LTND: Waiting for wallet encryption password. Use lncli create to create a wallet, lncli unlock to unlock an existing wallet, or lncli changepassword to change the password of an existing wallet and unlock it. +6ms zap:main [INF] Sending message to renderer process: { msg: 'walletUnlockerGrpcActive', data: e { id: 2, type: 'local', chain: 'bitcoin', network: 'testnet', host: [Getter/Setter], cert: [Getter/Setter], macaroon: [Getter/Setter], string: [Getter/Setter], name: 'ZAP LND Moveblock Wallet - Testnet', alias: 'MoveblockOTC', autopilot: true, autopilotMaxchannels: 5, autopilotMinchansize: 20000, autopilotMaxchansize: 16777215, autopilotAllocation: 0.6, autopilotPrivate: true, autopilotMinconfs: 0, wallet: [Getter], binaryPath: [Getter], lndDir: [Getter], configPath: [Getter], rpcProtoPath: [Getter] } } +84ms zap:updater [INF] Update for version 0.3.2-beta is not available (latest version: 0.3.2-beta, downgrade is disallowed). +2s zap:main [INF] Calling walletUnlocker method 'unlockWallet' +20s zap:lnd [INF] 2018-12-29 09:00:38.434 [INF] LNWL: Opened wallet +846ms zap:main [INF] Establishing connection to Lightning gRPC interface... +50ms zap:main [INF] Connecting to Lightning gRPC service +1ms zap:lnd [INF] 2018-12-29 09:00:38.511 [INF] LTND: Primary chain is set to: bitcoin +25ms zap:lnd [INF] 2018-12-29 09:00:38.689 [INF] BTCN: Loaded 1980 addresses from file '/Users/jcawe/Library/Application Support/Zap/lnd/bitcoin/testnet/wallet-2/data/chain/bitcoin/testnet/peers.json' +178ms zap:lnd [INF] 2018-12-29 09:00:38.689 [INF] BTCN: Waiting for more block headers, then will start cfheaders sync from height 1449938... +1ms zap:lnd [INF] 2018-12-29 09:00:38.689 [INF] BTCN: Starting cfheaders sync from (block_height=1449938, block_hash=00000000000000da53cb40da20776312c728970d5bb81ea7c942b1b679ea3e0f) to (block_height=1449939, block_hash=0000000000000054a97167fb41df6dade429f556fbdf1103776a643b1aeb6edb) +0ms zap:lnd [INF] 2018-12-29 09:00:38.690 [INF] BTCN: Starting cfheaders sync for filter_type=0 +0ms zap:lnd [DBG] 2018-12-29 09:00:38.690 [DBG] BTCN: Getting filter checkpoints up to height=1449939, hash=0000000000000054a97167fb41df6dade429f556fbdf1103776a643b1aeb6edb +1ms zap:lnd [WRN] 2018-12-29 09:00:38.690 [WRN] BTCN: Unable to fetch set of candidate checkpoints, trying again... +0ms zap:lnd [DBG] 2018-12-29 09:00:38.690 [DBG] CMGR: Attempting to connect to 35.196.85.107:18333 (reqid 1) +0ms zap:lnd [DBG] 2018-12-29 09:00:38.689 [DBG] CMGR: Attempting to connect to 35.231.86.179:18333 (reqid 2) +1ms zap:main [DBG] waiting for file: /Users/jcawe/Library/Application Support/Zap/lnd/bitcoin/testnet/wallet-2/data/chain/bitcoin/testnet/admin.macaroon +7ms zap:main [DBG] found file: /Users/jcawe/Library/Application Support/Zap/lnd/bitcoin/testnet/wallet-2/data/chain/bitcoin/testnet/admin.macaroon +0ms zap:lnd [INF] 2018-12-29 09:00:38.698 [INF] CMGR: DNS discovery failed on seed testnet-seed.bitcoin.schildbach.de: lookup testnet-seed.bitcoin.schildbach.de: no such host +37ms zap:lnd [INF] 2018-12-29 09:00:38.745 [INF] CMGR: 3 addresses found from DNS seed testnet-seed.bluematt.me +9ms zap:lnd [DBG] 2018-12-29 09:00:38.890 [DBG] CMGR: Connected to 35.196.85.107:18333 (reqid 1) +145ms zap:lnd [DBG] 2018-12-29 09:00:38.890 [DBG] BTCN: Sending version (agent /btcwire:0.5.0/neutrino:0.0.4-beta/, pver 70013, block 1449939) to 35.196.85.107:18333 (outbound) +0ms zap:lnd [DBG] 2018-12-29 09:00:38.891 [DBG] CMGR: Connected to 35.231.86.179:18333 (reqid 2) +2ms zap:lnd [DBG] 2018-12-29 09:00:38.892 [DBG] BTCN: Sending version (agent /btcwire:0.5.0/neutrino:0.0.4-beta/, pver 70013, block 1449939) to 35.231.86.179:18333 (outbound) +0ms zap:lnd [INF] 2018-12-29 09:00:38.905 [INF] CMGR: DNS discovery failed on seed x49.testnet-seed.bitcoin.jonasschnelli.ch: lookup x49.testnet-seed.bitcoin.jonasschnelli.ch: no such host +13ms zap:lnd [INF] 2018-12-29 09:00:38.976 [INF] CMGR: DNS discovery failed on seed x49.seed.tbtc.petertodd.org: lookup x49.seed.tbtc.petertodd.org: no such host +71ms zap:lnd [DBG] 2018-12-29 09:00:39.091 [DBG] BTCN: Received version (agent /btcwire:0.5.0/btcd:0.12.0/, pver 70013, block 1449940) from 35.196.85.107:18333 (outbound) +115ms zap:lnd [DBG] 2018-12-29 09:00:39.091 [DBG] BTCN: Negotiated protocol version 70013 for peer 35.196.85.107:18333 (outbound) +0ms zap:lnd [DBG] 2018-12-29 09:00:39.091 [DBG] BTCN: Added time sample of -1s (total: 1) +0ms zap:lnd [DBG] 2018-12-29 09:00:39.091 [DBG] BTCN: Connected to 35.196.85.107:18333 +0ms zap:lnd [DBG] 2018-12-29 09:00:39.091 [DBG] BTCN: Received verack from 35.196.85.107:18333 (outbound) +0ms zap:lnd [DBG] 2018-12-29 09:00:39.091 [DBG] BTCN: New peer 35.196.85.107:18333 (outbound) +1ms zap:lnd [DBG] 2018-12-29 09:00:39.091 [DBG] BTCN: Sending verack to 35.196.85.107:18333 (outbound) +0ms zap:lnd [INF] 2018-12-29 09:00:39.091 [INF] BTCN: New valid peer 35.196.85.107:18333 (outbound) (/btcwire:0.5.0/btcd:0.12.0/) +0ms zap:lnd [INF] 2018-12-29 09:00:39.096 [INF] BTCN: Syncing to block height 1449940 from peer 35.196.85.107:18333 +5ms zap:main [INF] Neutrino sync started +0ms zap:main [INF] Sending message to renderer process: { msg: 'lndSyncStatus', data: 'in-progress' } +0ms zap:main [INF] Sending message to renderer process: { msg: 'currentBlockHeight', data: 1449940 } +1ms zap:main [INF] Fetching current block height from https://testnet-api.smartbit.com.au/v1/blockchain/blocks?limit=1 +0ms zap:main [INF] Fetching current block height from https://tchain.api.btc.com/v3/block/latest +1ms zap:main [INF] Fetching current block height from https://api.blockcypher.com/v1/btc/test3 +0ms zap:lnd [INF] 2018-12-29 09:00:39.096 [INF] BTCN: Fetching set of headers from tip (height=1449939) from peer 35.196.85.107:18333 +2ms zap:main [INF] Sending message to renderer process: { msg: 'lndBlockHeight', data: 1449939 } +0ms zap:lnd [DBG] 2018-12-29 09:00:39.096 [DBG] BTCN: Sending getheaders (locator 0000000000000054a97167fb41df6dade429f556fbdf1103776a643b1aeb6edb, stop 0000000000000000000000000000000000000000000000000000000000000000) to 35.196.85.107:18333 (outbound) +1ms zap:lnd [DBG] 2018-12-29 09:00:39.096 [DBG] BTCN: Received version (agent /btcwire:0.5.0/btcd:0.12.0/, pver 70013, block 1449940) from 35.231.86.179:18333 (outbound) +0ms zap:lnd [DBG] 2018-12-29 09:00:39.096 [DBG] BTCN: Negotiated protocol version 70013 for peer 35.231.86.179:18333 (outbound) +0ms zap:lnd [DBG] 2018-12-29 09:00:39.096 [DBG] BTCN: Added time sample of -1s (total: 2) +0ms zap:lnd [DBG] 2018-12-29 09:00:39.097 [DBG] BTCN: Connected to 35.231.86.179:18333 +0ms zap:lnd [INF] 2018-12-29 09:00:39.098 [INF] BTCN: New valid peer 35.231.86.179:18333 (outbound) (/btcwire:0.5.0/btcd:0.12.0/) +21ms zap:lnd [DBG] 2018-12-29 09:00:39.098 [DBG] BTCN: New peer 35.231.86.179:18333 (outbound) +0ms zap:lnd [DBG] 2018-12-29 09:00:39.099 [DBG] BTCN: Received verack from 35.231.86.179:18333 (outbound) +0ms zap:lnd [DBG] 2018-12-29 09:00:39.099 [DBG] BTCN: Sending verack to 35.231.86.179:18333 (outbound) +0ms zap:lnd [DBG] 2018-12-29 09:00:39.298 [DBG] BTCN: Received headers (num 1) from 35.196.85.107:18333 (outbound) +175ms zap:lnd [INF] 2018-12-29 09:00:39.513 [INF] LNWL: The wallet has been unlocked without a time limit +215ms zap:lnd [INF] 2018-12-29 09:00:39.513 [INF] LTND: LightningWallet opened +1ms zap:lnd [DBG] 2018-12-29 09:00:39.513 [DBG] LNWL: Birthday block has already been verified: height=1411264, hash=00000000000000243dbe79cb6a0af0b97e6375fb77777890ef1533b9d99d0103 +0ms zap:lnd [INF] 2018-12-29 09:00:39.516 [INF] HSWC: Restoring in-memory circuit state from disk +2ms zap:lnd [INF] 2018-12-29 09:00:39.517 [INF] HSWC: Payment circuits loaded: num_pending=0, num_open=0 +1ms zap:lnd [INF] 2018-12-29 09:00:39.518 [INF] HSWC: Trimming open circuits for chan_id=1449934:4:1, start_htlc_id=0 +1ms zap:lnd [INF] 2018-12-29 09:00:39.520 [INF] LTND: Waiting for chain backend to finish sync, start_height=1449938 +2ms zap:main [INF] Neutrino sync waiting +1ms zap:main [INF] Sending message to renderer process: { msg: 'lndSyncStatus', data: 'waiting' } +0ms zap:lnd [INF] 2018-12-29 09:00:39.520 [INF] RPCS: RPC server listening on 127.0.0.1:11009 +0ms zap:lnd [INF] 2018-12-29 09:00:39.520 [INF] RPCS: gRPC proxy started at 127.0.0.1:8180 +0ms zap:lnd [INF] 2018-12-29 09:00:39.523 [INF] LNWL: Started rescan from block 00000000000000da53cb40da20776312c728970d5bb81ea7c942b1b679ea3e0f (height 1449938) for 23 addresses +2ms zap:lnd [DBG] 2018-12-29 09:00:39.523 [DBG] BTCN: Waiting for filter headers (height=1449938) to catch up the rescan start (height=1449938) +0ms zap:main [INF] Neutrino sync started +0ms zap:main [INF] Sending message to renderer process: { msg: 'lndSyncStatus', data: 'in-progress' } +0ms zap:lnd [INF] 2018-12-29 09:00:39.523 [INF] LNWL: Catching up block hashes to height 1449938, this might take a while +1ms zap:lnd [DBG] 2018-12-29 09:00:39.524 [DBG] BTCN: Waiting for filter headers (height=1449938) to catch up the rescan start (height=1449938) +0ms zap:lnd [DBG] 2018-12-29 09:00:39.524 [DBG] BTCN: Starting rescan from known block 1449938 (00000000000000da53cb40da20776312c728970d5bb81ea7c942b1b679ea3e0f) +0ms zap:lnd [DBG] 2018-12-29 09:00:39.524 [DBG] BTCN: Rescan became current at 1449938 (00000000000000da53cb40da20776312c728970d5bb81ea7c942b1b679ea3e0f), subscribing to block notifications +1ms zap:lnd [INF] 2018-12-29 09:00:39.524 [INF] LNWL: Done catching up block hashes +0ms zap:lnd [INF] 2018-12-29 09:00:39.524 [INF] LNWL: Finished rescan for 23 addresses (synced to block 00000000000000da53cb40da20776312c728970d5bb81ea7c942b1b679ea3e0f, height 1449938) +0ms zap:main [INF] Subscribing to Lightning gRPC streams +230ms zap:main [INF] Sending message to renderer process: { msg: 'lightningGrpcActive', data: e { id: 2, type: 'local', chain: 'bitcoin', network: 'testnet', host: [Getter/Setter], cert: [Getter/Setter], macaroon: [Getter/Setter], string: [Getter/Setter], name: 'ZAP LND Moveblock Wallet - Testnet', alias: 'MoveblockOTC', autopilot: true, autopilotMaxchannels: 5, autopilotMinchansize: 20000, autopilotMaxchansize: 16777215, autopilotAllocation: 0.6, autopilotPrivate: true, autopilotMinconfs: 0, wallet: [Getter], binaryPath: [Getter], lndDir: [Getter], configPath: [Getter], rpcProtoPath: [Getter] } } +2ms zap:lnd [DBG] 2018-12-29 09:00:39.759 [DBG] CRTR: New graph topology client subscription, client 1 +2ms zap:main [INF] Calling lnd method: { msg: 'info', data: undefined } +15ms zap:main [INF] Fetched block height as 1449940 from: https://testnet-api.smartbit.com.au/v1/blockchain/blocks?limit=1 +162ms zap:main [INF] Fetched block height as 1449940 from: https://api.blockcypher.com/v1/btc/test3 +188ms zap:lnd [INF] 2018-12-29 09:00:40.527 [INF] LTND: Chain backend is fully synced (end_height=1449938)! +404ms zap:main [INF] Neutrino sync finished +0ms zap:main [INF] Sending message to renderer process: { msg: 'lndSyncStatus', data: 'complete' } +0ms zap:lnd [DBG] 2018-12-29 09:00:40.528 [DBG] BTCN: Waiting for filter headers (height=1449938) to catch up the rescan start (height=1449938) +1ms zap:lnd [DBG] 2018-12-29 09:00:40.528 [DBG] BTCN: Starting rescan from known block 1449938 (00000000000000da53cb40da20776312c728970d5bb81ea7c942b1b679ea3e0f) +0ms zap:lnd [DBG] 2018-12-29 09:00:40.529 [DBG] BTCN: Rescan became current at 1449938 (00000000000000da53cb40da20776312c728970d5bb81ea7c942b1b679ea3e0f), subscribing to block notifications +0ms zap:lnd [INF] 2018-12-29 09:00:40.532 [INF] HSWC: Starting HTLC Switch +3ms zap:lnd [INF] 2018-12-29 09:00:40.532 [INF] NTFN: New block epoch subscription +2ms zap:lnd [INF] 2018-12-29 09:00:40.532 [INF] NTFN: New block epoch subscription +0ms zap:lnd [INF] 2018-12-29 09:00:40.540 [INF] CNCT: Creating ChannelArbitrators for 1 active channels +6ms zap:lnd [INF] 2018-12-29 09:00:40.540 [INF] NTFN: New block epoch subscription +2ms zap:lnd [DBG] 2018-12-29 09:00:40.541 [DBG] CNCT: New ChainEventSubscription(id=0) for ChannelPoint(bc0a23fe76dfa5a0847c845825c912f0d08e8837a5f7d6811bbdf30d93b21cf8:1) +0ms zap:lnd [INF] 2018-12-29 09:00:40.541 [INF] NTFN: New block epoch subscription +0ms zap:lnd [DBG] 2018-12-29 09:00:40.542 [DBG] CNCT: Starting chain watcher for ChannelPoint(bc0a23fe76dfa5a0847c845825c912f0d08e8837a5f7d6811bbdf30d93b21cf8:1) +0ms zap:lnd [DBG] 2018-12-29 09:00:40.542 [DBG] NTFN: Using height hint 1449934 retrieved from cache for bc0a23fe76dfa5a0847c845825c912f0d08e8837a5f7d6811bbdf30d93b21cf8:1 +0ms zap:lnd [INF] 2018-12-29 09:00:40.542 [INF] NTFN: New spend subscription: spend_id=1, outpoint=bc0a23fe76dfa5a0847c845825c912f0d08e8837a5f7d6811bbdf30d93b21cf8:1, height_hint=1449934 +1ms zap:lnd [DBG] 2018-12-29 09:00:40.542 [DBG] BTCN: Enqueuing request for bc0a23fe76dfa5a0847c845825c912f0d08e8837a5f7d6811bbdf30d93b21cf8:1 with birth height 1449938 +1ms zap:lnd [DBG] 2018-12-29 09:00:40.542 [DBG] BTCN: Fetching block height=1449938 hash=00000000000000da53cb40da20776312c728970d5bb81ea7c942b1b679ea3e0f +0ms zap:lnd [DBG] 2018-12-29 09:00:40.542 [DBG] BTCN: Sending getdata (witness block 00000000000000da53cb40da20776312c728970d5bb81ea7c942b1b679ea3e0f) to 35.196.85.107:18333 (outbound) +0ms zap:main [INF] Calling lnd method: { msg: 'balance', data: undefined } +57ms zap:lnd [DBG] 2018-12-29 09:00:40.605 [DBG] RPCS: [walletbalance] Total balance=0.23356625 BTC +6ms zap:main [INF] Calling lnd method: { msg: 'payments', data: undefined } +1ms zap:main [INF] Calling lnd method: { msg: 'invoices', data: undefined } +1ms zap:main [INF] Calling lnd method: { msg: 'transactions', data: undefined } +2ms zap:main [INF] Calling lnd method: { msg: 'channels', data: undefined } +5ms zap:main [INF] Calling lnd method: { msg: 'peers', data: undefined } +3ms zap:lnd [DBG] 2018-12-29 09:00:40.621 [DBG] RPCS: [listpeers] yielded [] peers +4ms zap:lnd [DBG] 2018-12-29 09:00:40.621 [DBG] RPCS: [ListPayments] +0ms zap:lnd [INF] 2018-12-29 09:00:40.624 [INF] RPCS: [listchannels] fetched 1 channels from DB +9ms zap:lnd [DBG] 2018-12-29 09:00:40.632 [DBG] RPCS: [pendingchannels] +1ms zap:main [INF] Calling lnd method: { msg: 'describeNetwork', data: undefined } +20ms zap:main [INF] Calling lnd method: { msg: 'balance', data: undefined } +59ms zap:lnd [DBG] 2018-12-29 09:00:40.721 [DBG] RPCS: [walletbalance] Total balance=0.23356625 BTC +9ms zap:main [INF] Calling lnd method: { msg: 'info', data: undefined } +16ms zap:lnd [DBG] 2018-12-29 09:00:40.743 [DBG] BTCN: Received block (hash 00000000000000da53cb40da20776312c728970d5bb81ea7c942b1b679ea3e0f, ver 536870912, 31 tx, 2018-12-29 08:38:18 +0800 HKT) from 35.196.85.107:18333 (outbound) +6ms zap:lnd [DBG] 2018-12-29 09:00:40.744 [DBG] BTCN: Processing block height=1449938 hash=00000000000000da53cb40da20776312c728970d5bb81ea7c942b1b679ea3e0f +1ms zap:lnd [DBG] 2018-12-29 09:00:40.744 [DBG] BTCN: Adding outpoint=bc0a23fe76dfa5a0847c845825c912f0d08e8837a5f7d6811bbdf30d93b21cf8:1 height=1449938 to watchlist +0ms zap:lnd [ERR] 2018-12-29 09:00:40.744 [ERR] BTCN: Failed to find outpoint bc0a23fe76dfa5a0847c845825c912f0d08e8837a5f7d6811bbdf30d93b21cf8:1 -- txid not found in block +0ms zap:lnd [DBG] 2018-12-29 09:00:40.744 [DBG] BTCN: Finished batch, 1 unspent outpoints +0ms zap:lnd [INF] 2018-12-29 09:00:40.756 [INF] CNCT: Close observer for ChannelPoint(bc0a23fe76dfa5a0847c845825c912f0d08e8837a5f7d6811bbdf30d93b21cf8:1) active +12ms zap:lnd [DBG] 2018-12-29 09:00:40.756 [DBG] CNCT: Starting ChannelArbitrator(bc0a23fe76dfa5a0847c845825c912f0d08e8837a5f7d6811bbdf30d93b21cf8:1), htlc_set=(contractcourt.htlcSet) { +1ms zap:lnd [DBG] incomingHTLCs: (map[uint64]channeldb.HTLC) { +0ms zap:lnd [DBG] }, +0ms zap:lnd [DBG] outgoingHTLCs: (map[uint64]channeldb.HTLC) { +0ms zap:lnd [DBG] } +0ms zap:lnd [DBG] } +0ms zap:lnd [DBG] +0ms zap:lnd [INF] 2018-12-29 09:00:40.757 [INF] CNCT: ChannelArbitrator(bc0a23fe76dfa5a0847c845825c912f0d08e8837a5f7d6811bbdf30d93b21cf8:1): starting state=StateDefault +1ms zap:lnd [DBG] 2018-12-29 09:00:40.757 [DBG] CNCT: ChannelArbitrator(bc0a23fe76dfa5a0847c845825c912f0d08e8837a5f7d6811bbdf30d93b21cf8:1): new block (height=1449938) examining active HTLC's +0ms zap:lnd [DBG] 2018-12-29 09:00:40.757 [DBG] CNCT: ChannelArbitrator(bc0a23fe76dfa5a0847c845825c912f0d08e8837a5f7d6811bbdf30d93b21cf8:1): checking chain actions at height=1449938 +0ms zap:lnd [INF] 2018-12-29 09:00:40.757 [INF] DISC: Authenticated Gossiper is starting +0ms zap:lnd [INF] 2018-12-29 09:00:40.757 [INF] CRTR: FilteredChainView starting +0ms zap:lnd [INF] 2018-12-29 09:00:40.758 [INF] BRAR: Starting contract observer, watching for breaches. +1ms zap:lnd [INF] 2018-12-29 09:00:40.759 [INF] NTFN: New block epoch subscription +0ms zap:lnd [ERR] 2018-12-29 09:00:40.759 [ERR] DISC: Unable to rebroadcast stale channels: unable to retrieve outgoing channels: Channel from self node has no policy +0ms zap:lnd [DBG] 2018-12-29 09:00:40.759 [DBG] BTCN: Waiting for filter headers (height=1449938) to catch up the rescan start (height=1449938) +0ms zap:lnd [DBG] 2018-12-29 09:00:40.759 [DBG] BTCN: Starting rescan from known block 1449938 (00000000000000da53cb40da20776312c728970d5bb81ea7c942b1b679ea3e0f) +0ms zap:lnd [DBG] 2018-12-29 09:00:40.759 [DBG] BTCN: Rescan became current at 1449938 (00000000000000da53cb40da20776312c728970d5bb81ea7c942b1b679ea3e0f), subscribing to block notifications +0ms zap:lnd [INF] 2018-12-29 09:00:40.797 [INF] CRTR: Filtering chain using 4755 channels active +38ms zap:lnd [INF] 2018-12-29 09:00:40.802 [INF] CRTR: Prune tip for Channel Graph: height=1449938, hash=00000000000000da53cb40da20776312c728970d5bb81ea7c942b1b679ea3e0f +5ms zap:lnd [INF] 2018-12-29 09:00:40.809 [INF] CMGR: Server listening on [::]:9735 +7ms zap:lnd [INF] 2018-12-29 09:00:40.809 [INF] BTCN: Lost peer 35.196.85.107:18333 (outbound) +0ms zap:lnd [INF] 2018-12-29 09:00:40.809 [INF] LTND: New invoice subscription client: id=0 +1ms zap:lnd [INF] 2018-12-29 09:00:40.809 [INF] LTND: Cancelling invoice subscription for client=0 +0ms zap:main [DBG] CHANNELGRAPH STATUS: [object Object] zap:main Inspected object #1 zap:main { code: 0, zap:main details: '', zap:main metadata: l { internalRepr: { 'content-type': [Array] } } } +0ms zap:main [INF] CHANNELGRAPH END +1ms zap:main [INF] TRANSACTION STATUS: [object Object] zap:main Inspected object #1 zap:main { code: 0, zap:main details: '', zap:main metadata: l { internalRepr: { 'content-type': [Array] } } } +0ms zap:main [INF] TRANSACTION END +0ms zap:main [INF] INVOICE STATUS: [object Object] zap:main Inspected object #1 zap:main { code: 0, zap:main details: '', zap:main metadata: l { internalRepr: { 'content-type': [Array] } } } +1ms zap:main [INF] INVOICE END +0ms zap:lnd [INF] 2018-12-29 09:00:40.813 [INF] BTCN: Syncing to block height 1449940 from peer 35.231.86.179:18333 +1ms zap:lnd [INF] 2018-12-29 09:00:40.813 [INF] BTCN: Fetching set of headers from tip (height=1449940) from peer 35.231.86.179:18333 +1ms zap:lnd [INF] 2018-12-29 09:00:40.822 [INF] BTCN: Lost peer 35.231.86.179:18333 (outbound) +8ms zap:lnd [WRN] 2018-12-29 09:00:40.824 [WRN] BTCN: No sync peer candidates available +2ms zap:main [INF] Calling lnd method: { msg: 'balance', data: undefined } +342ms zap:main [INF] Calling lnd method: { msg: 'balance', data: undefined } +1ms zap:lnd [INF] 2018-12-29 09:00:40.860 [INF] BTCN: Block manager shutting down +2ms zap:lnd [INF] 2018-12-29 09:00:40.860 [INF] BTCN: Address manager shutting down +0ms zap:lnd [INF] 2018-12-29 09:00:40.868 [INF] LTND: Shutdown complete +0ms zap:lnd [ERR] panic: runtime error: invalid memory address or nil pointer dereference +0ms zap:lnd [ERR] [signal SIGSEGV: segmentation violation code=0x1 addr=0x60 pc=0x193663a] +0ms zap:lnd [ERR] +0ms zap:lnd [ERR] goroutine 1 [running]: +0ms zap:lnd [ERR] main.(server).establishPersistentConnections.func1(0xc000496ee0, 0xc010ff4000, 0x0, 0xc011708120, 0xc010ff4058, 0x21) +0ms zap:lnd [ERR] /Users/tom/.go/src/github.com/lightningnetwork/lnd/server.go:1649 +0x3a +0ms zap:lnd [ERR] github.com/lightningnetwork/lnd/channeldb.(LightningNode).ForEachChannel.func1(0xc000496ee0, 0x1d39c88, 0xc000496ee0) +0ms zap:lnd [ERR] /Users/tom/.go/src/github.com/lightningnetwork/lnd/channeldb/graph.go:2017 +0x591 +0ms zap:lnd [ERR] github.com/lightningnetwork/lnd/vendor/github.com/coreos/bbolt.(DB).View(0xc0000bc1e0, 0xc01170ecf0, 0x0, 0x0) +0ms zap:lnd [ERR] /Users/tom/.go/src/github.com/lightningnetwork/lnd/vendor/github.com/coreos/bbolt/db.go:699 +0x90 +1ms zap:lnd [ERR] github.com/lightningnetwork/lnd/channeldb.(LightningNode).ForEachChannel(0xc011016000, 0x0, 0xc010a30780, 0x0, 0xc000207198) +0ms zap:lnd [ERR] /Users/tom/.go/src/github.com/lightningnetwork/lnd/channeldb/graph.go:2029 +0xbf +0ms zap:lnd [ERR] main.(server).establishPersistentConnections(0xc01093e300, 0x0, 0x0) +0ms zap:lnd [ERR] /Users/tom/.go/src/github.com/lightningnetwork/lnd/server.go:1644 +0x33e +0ms zap:lnd [ERR] main.(server).Start(0xc01093e300, 0x1bf4411, 0x2e) +0ms zap:lnd [ERR] /Users/tom/.go/src/github.com/lightningnetwork/lnd/server.go:991 +0x231 +0ms zap:lnd [ERR] main.lndMain(0x0, 0x0) +0ms zap:lnd [ERR] /Users/tom/.go/src/github.com/lightningnetwork/lnd/lnd.go:417 +0x10b8 +0ms zap:lnd [ERR] main.main() +0ms zap:lnd [ERR] /Users/tom/.go/src/github.com/lightningnetwork/lnd/lnd.go:449 +0x26 +0ms zap:main [DBG] Neutrino process received "exit" event with code 2 and signal null +1ms zap:main [INF] Lnd process has shut down (code: 2, signal: null) +0ms zap:main [INF] Sending message to renderer process: { msg: 'lndStopped', data: undefined } +0ms zap:main [DBG] [FSM] onTerminated... +17s zap:main [DBG] [FSM] onTerminate... +1ms zap:main [ERR] balance: Error zap:main Stack trace #1 zap:main Error zap:main at t.Http2CallStream.Function (/Applications/ZapDesktop.app/Contents/Resources/app.asar/webpack:/node_modules/@grpc/grpc-js/build/src/client.js:94:1) zap:main at t.Http2CallStream.emit (events.js:187:15) zap:main at t.Http2CallStream.[object Object] [as endCall] (/Applications/ZapDesktop.app/Contents/Resources/app.asar/webpack:/node_modules/@grpc/grpc-js/build/src/call-stream.js:72:1) zap:main at t.Http2CallStream.Status (/Applications/ZapDesktop.app/Contents/Resources/app.asar/webpack:/node_modules/@grpc/grpc-js/build/src/call-stream.js:300:1) zap:main at Generator.next () zap:main at resolve (/Applications/ZapDesktop.app/Contents/Resources/app.asar/webpack:/node_modules/@grpc/grpc-js/build/src/call-stream.js:6:32) zap:main at process._tickCallback (internal/process/next_tick.js:68:7) +18ms zap:main [ERR] balance: Error zap:main Stack trace #1 zap:main Error zap:main at t.Http2CallStream.Function (/Applications/ZapDesktop.app/Contents/Resources/app.asar/webpack:/node_modules/@grpc/grpc-js/build/src/client.js:94:1) zap:main at t.Http2CallStream.emit (events.js:187:15) zap:main at t.Http2CallStream.[object Object] [as endCall] (/Applications/ZapDesktop.app/Contents/Resources/app.asar/webpack:/node_modules/@grpc/grpc-js/build/src/call-stream.js:72:1) zap:main at t.Http2CallStream.Status (/Applications/ZapDesktop.app/Contents/Resources/app.asar/webpack:/node_modules/@grpc/grpc-js/build/src/call-stream.js:300:1) zap:main at Generator.next () zap:main at resolve (/Applications/ZapDesktop.app/Contents/Resources/app.asar/webpack:/node_modules/@grpc/grpc-js/build/src/call-stream.js:6:32) zap:main at process._tickCallback (internal/process/next_tick.js:68:7) +1ms zap:main [INF] Calling lnd method: { msg: 'describeNetwork', data: undefined } +18ms zap:main [ERR] describeGraph: Error: Getting metadata from plugin failed with error: New streams cannot be created after receiving a GOAWAY zap:main Stack trace #1 zap:main Error: Getting metadata from plugin failed with error: New streams cannot be created after receiving a GOAWAY zap:main at t.Http2CallStream.Function (/Applications/ZapDesktop.app/Contents/Resources/app.asar/webpack:/node_modules/@grpc/grpc-js/build/src/client.js:94:1) zap:main at t.Http2CallStream.emit (events.js:187:15) zap:main at t.Http2CallStream.[object Object] [as endCall] (/Applications/ZapDesktop.app/Contents/Resources/app.asar/webpack:/node_modules/@grpc/grpc-js/build/src/call-stream.js:72:1) zap:main at t.Http2CallStream.deadline (/Applications/ZapDesktop.app/Contents/Resources/app.asar/webpack:/node_modules/@grpc/grpc-js/build/src/call-stream.js:341:1) zap:main at Generator.next () zap:main at resolve (/Applications/ZapDesktop.app/Contents/Resources/app.asar/webpack:/node_modules/@grpc/grpc-js/build/src/call-stream.js:6:32) zap:main at process._tickCallback (internal/process/next_tick.js:68:7) +2ms zap:main [WRN] Unable to fetch block height from https://tchain.api.btc.com/v3/block/latest: timeout of 5000ms exceeded +13ms

Your Environment

MAC OS

mrfelton commented 5 years ago

@qjawe - your instance of lnd is crashing.

You may want to search through the lnd issue queues to see if one of the many reported instances of this issue matches your scenario:

https://github.com/lightningnetwork/lnd/search?q=invalid+memory+address&unscoped_q=invalid+memory+address&type=Issues

If not, I would suggest that you open up an issue in the lnd issues queues since the issue relates directly to lnd rather than to Zap.

Are you updating from an older version of Zap/lnd? When did you create your wallet? I know there have been similar issues for people in the past when upgrading older wallets to a newer version of lnd. In order to get past thew issue, you could delete your wallet and start afresh (since your wallet is testnet only anyway).

qjawe commented 5 years ago

Are you updating from an older version of Zap/lnd? upgrade to the latest version

When did you create your wallet? import the previous wallet

I know there have been similar issues for people in the past when upgrading older wallets to a newer version of lnd. In order to get past thew issue, you could delete your wallet and start afresh (since your wallet is testnet only anyway).

yup delete the old ones still the same problem

qjawe commented 5 years ago

I will create another wallet and let's see how it goes... Wallet address: 2MyHh4UgayWPyP2bzJZ19XK5iFoCxmbSAeM

qjawe commented 5 years ago

I will create another wallet and let's see how it goes... Wallet address: 2MyHh4UgayWPyP2bzJZ19XK5iFoCxmbSAeM

https://live.blockcypher.com/btc-testnet/address/2MyHh4UgayWPyP2bzJZ19XK5iFoCxmbSAeM/

mrfelton commented 5 years ago

@qjawe is this still an issue for you?

mrfelton commented 5 years ago

I'm going to close this issue due to lack of activity. If the issue persists for you with the latest release of Zap - 0.3.4-beta please feel free to reopen this issue. Thanks.