Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Consistent Number exceeds 2^53-1 errors on Windows #71

Open
ghost opened this issue Jul 16, 2017 · 6 comments
Open

Consistent Number exceeds 2^53-1 errors on Windows #71

ghost opened this issue Jul 16, 2017 · 6 comments

Comments

@ghost
Copy link

ghost commented Jul 16, 2017

A fresh install of the latest d5e87de on Windows quickly crashes with several Number exceeds 2^53-1 errors. Apparently not a single block is parsed successfully. The same behavior shows for every run.

Similar to #26 but shows whether miner is active or not.

Pasting the observed output here:

$ bin\start.bat
[info] Chain is loading.
[info] Content server listening on port 9301
[info] Opening ChainDB...
[info] Chain is loading.
[info] Opening ChainDB...
[debug] AssertionError [ERR_ASSERTION]: Number exceeds 2^53-1
    at Object._read64 (I:\Decentraland\bronzeage-node\lib\utils\encoding.js:153:5)
    at Object.read64 (I:\Decentraland\bronzeage-node\lib\utils\encoding.js:175:19)
    at BufferReader.read64 (I:\Decentraland\bronzeage-node\lib\utils\reader.js:332:18)
    at Output.fromReader (I:\Decentraland\bronzeage-node\lib\primitives\output.js:259:15)
    at Function.fromReader (I:\Decentraland\bronzeage-node\lib\primitives\output.js:282:23)
    at TX.fromReader (I:\Decentraland\bronzeage-node\lib\primitives\tx.js:2158:30)
    at Function.fromReader (I:\Decentraland\bronzeage-node\lib\primitives\tx.js:2121:19)
    at Block.fromReader (I:\Decentraland\bronzeage-node\lib\primitives\block.js:753:13)
    at Block.fromRaw (I:\Decentraland\bronzeage-node\lib\primitives\block.js:774:15)
    at Function.fromRaw (I:\Decentraland\bronzeage-node\lib\primitives\block.js:798:22)
[error] Number exceeds 2^53-1
[error] Number exceeds 2^53-1
{ AssertionError [ERR_ASSERTION]: Number exceeds 2^53-1
    at Object._read64 (I:\Decentraland\bronzeage-node\lib\utils\encoding.js:153:5)
    at Object.read64 (I:\Decentraland\bronzeage-node\lib\utils\encoding.js:175:19)
    at BufferReader.read64 (I:\Decentraland\bronzeage-node\lib\utils\reader.js:332:18)
    at Output.fromReader (I:\Decentraland\bronzeage-node\lib\primitives\output.js:259:15)
    at Function.fromReader (I:\Decentraland\bronzeage-node\lib\primitives\output.js:282:23)
    at TX.fromReader (I:\Decentraland\bronzeage-node\lib\primitives\tx.js:2158:30)
    at Function.fromReader (I:\Decentraland\bronzeage-node\lib\primitives\tx.js:2121:19)
    at Block.fromReader (I:\Decentraland\bronzeage-node\lib\primitives\block.js:753:13)
    at Block.fromRaw (I:\Decentraland\bronzeage-node\lib\primitives\block.js:774:15)
    at Function.fromRaw (I:\Decentraland\bronzeage-node\lib\primitives\block.js:798:22)
  generatedMessage: false,
  name: 'AssertionError [ERR_ASSERTION]',
  code: 'ERR_ASSERTION',
  actual: false,
  expected: true,
  operator: '==' }
{ AssertionError [ERR_ASSERTION]: Number exceeds 2^53-1
    at Object._read64 (I:\Decentraland\bronzeage-node\lib\utils\encoding.js:153:5)
    at Object.read64 (I:\Decentraland\bronzeage-node\lib\utils\encoding.js:175:19)
    at BufferReader.read64 (I:\Decentraland\bronzeage-node\lib\utils\reader.js:332:18)
    at Output.fromReader (I:\Decentraland\bronzeage-node\lib\primitives\output.js:259:15)
    at Function.fromReader (I:\Decentraland\bronzeage-node\lib\primitives\output.js:282:23)
    at TX.fromReader (I:\Decentraland\bronzeage-node\lib\primitives\tx.js:2158:30)
    at Function.fromReader (I:\Decentraland\bronzeage-node\lib\primitives\tx.js:2121:19)
    at Block.fromReader (I:\Decentraland\bronzeage-node\lib\primitives\block.js:753:13)
    at Block.fromRaw (I:\Decentraland\bronzeage-node\lib\primitives\block.js:774:15)
    at Function.fromRaw (I:\Decentraland\bronzeage-node\lib\primitives\block.js:798:22)
  generatedMessage: false,
  name: 'AssertionError [ERR_ASSERTION]',
  code: 'ERR_ASSERTION',
  actual: false,
  expected: true,
  operator: '==' }
[debug] AssertionError [ERR_ASSERTION]: Number exceeds 2^53-1
    at Object._read64 (I:\Decentraland\bronzeage-node\lib\utils\encoding.js:153:5)
    at Object.read64 (I:\Decentraland\bronzeage-node\lib\utils\encoding.js:175:19)
    at BufferReader.read64 (I:\Decentraland\bronzeage-node\lib\utils\reader.js:332:18)
    at Output.fromReader (I:\Decentraland\bronzeage-node\lib\primitives\output.js:259:15)
    at Function.fromReader (I:\Decentraland\bronzeage-node\lib\primitives\output.js:282:23)
    at TX.fromReader (I:\Decentraland\bronzeage-node\lib\primitives\tx.js:2158:30)
    at Function.fromReader (I:\Decentraland\bronzeage-node\lib\primitives\tx.js:2121:19)
    at Block.fromReader (I:\Decentraland\bronzeage-node\lib\primitives\block.js:753:13)
    at Block.fromRaw (I:\Decentraland\bronzeage-node\lib\primitives\block.js:774:15)
    at Function.fromRaw (I:\Decentraland\bronzeage-node\lib\primitives\block.js:798:22)
[error] Number exceeds 2^53-1
^CTerminate batch job (Y/N)? y

$ 
@ghost
Copy link
Author

ghost commented Jul 16, 2017

An existing install of earlier code on the same Windows system runs fine.

@ghost
Copy link
Author

ghost commented Jul 16, 2017

A fresh install of the testnet v2 commit 3c987da on the same Windows system runs fine. Something has changed since that commit.

@ghost
Copy link
Author

ghost commented Jul 16, 2017

A fresh install of the latest on a Linux system runs fine. Specific to Windows, or at least my Windows system.

@ghost
Copy link
Author

ghost commented Jul 16, 2017

The web interface is a significant change since the testnet v2 commit. Didn't really expect it to cause this error but tried just in case. Same behavior without the web interface running.

@Dmitry1987
Copy link

Had same error, on Linux Ubuntu in VM on top windows 10:

Starting node
[info] Chain is loading.
[info] Checkpoints are enabled.
[info] Coin cache is enabled.
[info] Content server listening on port 9301
[info] Opening ChainDB...
[info] Chain is loading.
[info] Checkpoints are enabled.
[info] Coin cache is enabled.
[info] Opening ChainDB...
[error] Number exceeds 2^53-1
[error] Number exceeds 2^53-1
{ AssertionError [ERR_ASSERTION]: Number exceeds 2^53-1
    at Object._read64 (/root/DCL/bronzeage-node/lib/utils/encoding.js:153:5)
    at Object.read64 (/root/DCL/bronzeage-node/lib/utils/encoding.js:175:19)
    at BufferReader.read64 (/root/DCL/bronzeage-node/lib/utils/reader.js:332:18)
    at Output.fromReader (/root/DCL/bronzeage-node/lib/primitives/output.js:260:15)
    at Function.fromReader (/root/DCL/bronzeage-node/lib/primitives/output.js:283:23)
    at TX.fromReader (/root/DCL/bronzeage-node/lib/primitives/tx.js:2158:30)
    at Function.fromReader (/root/DCL/bronzeage-node/lib/primitives/tx.js:2121:19)
    at Block.fromReader (/root/DCL/bronzeage-node/lib/primitives/block.js:753:13)
    at Block.fromRaw (/root/DCL/bronzeage-node/lib/primitives/block.js:774:15)
    at Function.fromRaw (/root/DCL/bronzeage-node/lib/primitives/block.js:798:22)
  generatedMessage: false,
  name: 'AssertionError [ERR_ASSERTION]',
  code: 'ERR_ASSERTION',
  actual: false,
  expected: true,
  operator: '==' }
{ AssertionError [ERR_ASSERTION]: Number exceeds 2^53-1
    at Object._read64 (/root/DCL/bronzeage-node/lib/utils/encoding.js:153:5)
    at Object.read64 (/root/DCL/bronzeage-node/lib/utils/encoding.js:175:19)
    at BufferReader.read64 (/root/DCL/bronzeage-node/lib/utils/reader.js:332:18)
    at Output.fromReader (/root/DCL/bronzeage-node/lib/primitives/output.js:260:15)
    at Function.fromReader (/root/DCL/bronzeage-node/lib/primitives/output.js:283:23)
    at TX.fromReader (/root/DCL/bronzeage-node/lib/primitives/tx.js:2158:30)
    at Function.fromReader (/root/DCL/bronzeage-node/lib/primitives/tx.js:2121:19)
    at Block.fromReader (/root/DCL/bronzeage-node/lib/primitives/block.js:753:13)
    at Block.fromRaw (/root/DCL/bronzeage-node/lib/primitives/block.js:774:15)
    at Function.fromRaw (/root/DCL/bronzeage-node/lib/primitives/block.js:798:22)
  generatedMessage: false,
  name: 'AssertionError [ERR_ASSERTION]',
  code: 'ERR_ASSERTION',
  actual: false,
  expected: true,
  operator: '==' }
[error] Number exceeds 2^53-1
Swarm listening on /ip4/127.0.0.1/tcp/4003/ws/ipfs/QmefgK2WootELP2CmBCi1sHHpnVW81hDqm5ZpcsV8mCdDg
Swarm listening on /ip4/127.0.0.1/tcp/4002/ipfs/QmefgK2WootELP2CmBCi1sHHpnVW81hDqm5ZpcsV8mCdDg
Swarm listening on /ip4/10.0.2.15/tcp/4002/ipfs/QmefgK2WootELP2CmBCi1sHHpnVW81hDqm5ZpcsV8mCdDg
[info] IPFS ready

@Dmitry1987
Copy link

testnet runs ok, but when changing to 'main', I have this crash

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant