loda-lang / loda-cpp

Runtime and miner for the LODA language written in C++
https://loda-lang.org/
Apache License 2.0
21 stars 1 forks source link

Error loading b-file #27

Closed jonmaiga closed 3 years ago

jonmaiga commented 3 years ago

While running the loda mine client, the following message appeared. The file exists in the path and it didn't look corrupted to the naked eye (I did not look carefully or specifically around the given index).

2021-09-22 15:25:12|INFO |Fetched https://oeis.org/A163960/b163960.txt
2021-09-22 15:25:13|WARN |Unexpected index 9675 in b-file /home/jon/loda/oeis/b/123/b123329.txt
2021-09-22 15:25:13|ERROR|Error loading b-file /home/jon/loda/oeis/b/123/b123329.txt
terminate called after throwing an instance of 'std::runtime_error'
  what():  Error loading b-file /home/jon/loda/oeis/b/123/b123329.txt
2021-09-22 15:25:14|INFO |Generated 4096 programs
ckrause commented 3 years ago

The error message is expected. The b-file looks like this:

...
9672 97292168808
9673 97322345292
9675 97382722338
9676 97412914844
...

Notice that 9674 is missing. Not sure how to handle it. We could stop at 9673 and log a warning message(?).

ckrause commented 3 years ago

File was fixed on OEIS side. Please reopen if it occurs again.