decentraland / bronzeage-node

DEPRECATED: This codebase will not be mantained anymore, and formats are going to change when we move to the Decentraland Iron Age
https://decentraland.org
Other
104 stars 22 forks source link

Repeated assertion failures #45

Closed ghost closed 7 years ago

ghost commented 7 years ago

After some initial syncing, assertions failures start happening. The bin/start process core dumps and terminates. Once it starts happening every run of decentraland fails in this way.

I've tried clearing the data and restarting the sync several times. So far it's always appeared again. Haven't confirmed the block height every time, but the last failure started at block 7483. The current attempt has been unable to get past that block.

I'm using an x86 system running Ubuntu Server 17.04.

Pasting the output:

[debug] Requesting headers packet from peer with getheaders (163.172.175.248:2301).
[debug] Height: 7482, Hash: 000000287133d736a1c4efda78084fc04a608e1f34657a11107a59a0afdf0418, Stop: null
[info] ContentDB asked to fetch content for 0 0 adding torrent f9173add1f30696f5f82e472e20fee6495765744
[info] ContentDB asked to fetch content for 28 5 adding torrent 1bc6747cd926d24757e8f521c4b5b7dc0498110a
/usr/bin/nodejs[5409]: ../src/node.cc:1358:v8::MaybeLocal<v8::Value> node::MakeCallback(node::Environment*, v8::Local<v8::Value>, v8::Local<v8::Function>, int, v8::Local<v8::Value>*, double, double): Assertion `(env->current_async_id()) == (async_id)' failed.
 1: node::Abort() [decentraland-node]
 2: node::Assert(char const* const (*) [4]) [decentraland-node]
 3: node::MakeCallback(node::Environment*, v8::Local<v8::Value>, v8::Local<v8::Function>, int, v8::Local<v8::Value>*, double, double) [decentraland-node]
 4: node::MakeCallback(v8::Isolate*, v8::Local<v8::Object>, v8::Local<v8::Function>, int, v8::Local<v8::Value>*) [decentraland-node]
 5: leveldown::ReadWorker::HandleOKCallback() [/home/berry/sft/decentraland/bronzeage-node/node_modules/leveldown/build/Release/leveldown.node]
 6: leveldown::IOWorker::WorkComplete() [/home/berry/sft/decentraland/bronzeage-node/node_modules/leveldown/build/Release/leveldown.node]
 7: Nan::AsyncExecuteComplete(uv_work_s*) [/home/berry/sft/decentraland/bronzeage-node/node_modules/leveldown/build/Release/leveldown.node]
 8: 0x557891cf7839 [decentraland-node]
 9: 0x557891cf9c67 [decentraland-node]
10: 0x557891d0b808 [decentraland-node]
11: uv_run [decentraland-node]
12: node::Start(uv_loop_s*, int, char const* const*, int, char const* const*) [decentraland-node]
13: node::Start(int, char**) [decentraland-node]
14: __libc_start_main [/lib/x86_64-linux-gnu/libc.so.6]
15: _start [decentraland-node]
bin/start: line 6:  5409 Aborted                 (core dumped) ./bin/decentraland-node --config=$CONFFILE --fast --contentport=9301
ghost commented 7 years ago

Now seeing the same error on a Windows 7 system. Happens consistently on every run. Pasting the output here:

[debug] Height: -1, Hash: 00000059e9495b38840ef5ec981f87491068ab39ef680577ace73f12aa9b7ab4, Stop: null
[info] ContentDB asked to fetch content for 0 0 adding torrent f9173add1f30696f5f82e472e20fee6495765744
[info] ContentDB asked to fetch content for 28 5 adding torrent 1bc6747cd926d24757e8f521c4b5b7dc0498110a
[info] ContentDB asked to fetch content for 46 -42 adding torrent a64aa7d51a37583719890755c23cb84f4d212a46
C:\Program Files (x86)\nodejs\node.exe: src\async-wrap.cc:619: Assertion `(env()->current_async_id()) == (0)' failed.
ghost commented 7 years ago

Both of the above happened on checkouts of the latest code in the repository.

ghost commented 7 years ago

Additional attempts show the error happens at a consistent time.

The Linux system always fails after request for tile 28 5:

[info] ContentDB asked to fetch content for 0 0 adding torrent f9173add1f30696f5f82e472e20fee6495765744
[info] ContentDB asked to fetch content for 28 5 adding torrent 1bc6747cd926d24757e8f521c4b5b7dc0498110a

The Windows system always fails after request for tile 46 -42:

[info] ContentDB asked to fetch content for 0 0 adding torrent f9173add1f30696f5f82e472e20fee6495765744
[info] ContentDB asked to fetch content for 28 5 adding torrent 1bc6747cd926d24757e8f521c4b5b7dc0498110a
[info] ContentDB asked to fetch content for 46 -42 adding torrent a64aa7d51a37583719890755c23cb84f4d212a46
martriay commented 7 years ago

Not needed anymore as we moved to IPFS.