AugurProject / augur-app

Augur Desktop Electron Application
MIT License
222 stars 22 forks source link

[BUG] Fatal Error, shutting down servers TypeError: Cannot read property 'transaction' of undefined #428

Closed petong closed 5 years ago

petong commented 5 years ago

Summary

App did not handle this error and shutdown.

Steps to reproduce

This happened during light client sync

GETH NODE: INFO [12-17|11:27:50.129] Imported new block headers               count=2048 elapsed=1.322s    number=6902325 hash=291729…6f2f38 age=10h14m22s

[11:27:50.498] [info] Skipping batch load
[11:27:50.498] [info] Sync with blockchain complete.
[11:27:50.499] [info] Bulk sync with blockchain complete.
Starting blockstream at block  6893291
[11:27:51.017] [info] new block: 6893291, 1544907194 (Sat Dec 15 2018 12:53:14 GMT-0800 (PST))
GETH NODE: INFO [12-17|11:27:51.471] Imported new block headers               count=2048 elapsed=1.298s    number=6904373 hash=8d452e…c010df age=2h4m22s

GETH NODE: INFO [12-17|11:27:51.864] Imported new block headers               count=448  elapsed=280.469ms number=6904821 hash=d763ea…39f17c age=16m39s

GETH NODE: INFO [12-17|11:27:51.932] Imported new block headers               count=61   elapsed=35.252ms  number=6904882 hash=5e59e2…e279ec age=1m19s

GETH NODE: INFO [12-17|11:27:51.952] Imported new block headers               count=1    elapsed=5.186ms   number=6904883 hash=71afde…16c0ad age=1m14s

GETH NODE: INFO [12-17|11:27:52.510] Imported new block headers               count=2    elapsed=5.346ms   number=6904885 hash=e9c3cc…7f7bda age=1m

[11:27:58.587] [info] Skipping batch load
[11:27:58.587] [info] Sync with blockchain complete.
[11:27:58.588] [info] Bulk sync with blockchain complete.
Starting blockstream at block  6893291
[11:27:58.594] [error] Fatal Error, shutting down servers TypeError: Cannot read property 'transaction' of undefined
    at Object.<anonymous> (/Volumes/Augur 1.8.5/Augur.app/Contents/Resources/app.asar/node_modules/augur-node/src/blockchain/process-block.ts:56:6)
    at Generator.next (<anonymous>)
    at fulfilled (/Volumes/Augur 1.8.5/Augur.app/Contents/Resources/app.asar/node_modules/augur-node/build/blockchain/process-block.js:4:58)
    at <anonymous>

augur-node start: Cannot read property 'transaction' of undefined
Shutdown Augur Node Server
[11:27:58.626] [info] Calling Augur Node Controller Shutdown
[11:27:58.626] [info] Stopping Augur Node Server
[11:27:58.627] [info] Stopping Augur UI Server
Stopping geth process
GETH NODE: INFO [12-17|11:27:58.627] Got interrupt, shutting down...
INFO [12-17|11:27:58.627] WebSocket endpoint closed                url=ws://127.0.0.1:8546
INFO [12-17|11:27:58.628] HTTP endpoint closed                     url=http://127.0.0.1:8545
INFO [12-17|11:27:58.628] IPC endpoint closed                      url="/Users/jph/Library/Application Support/augur/geth/geth.ipc"
INFO [12-17|11:27:58.628] Blockchain manager stopped
INFO [12-17|11:27:58.628] Stopping light Ethereum protocol
INFO [12-17|11:27:58.628] Light Ethereum protocol stopped
INFO [12-17|11:27:58.628] Transaction pool stopped

websocket ws://127.0.0.1:8546 closed: 1006 connection failed
websocket ws://127.0.0.1:8546 closed: 1006 connection failed
websocket ws://127.0.0.1:8546 closed: 1006 Socket Error: read ECONNRESET