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

Stargate - Issues #210

Closed
0xroll opened this issue Jun 10, 2024 · 7 comments
Closed

Stargate - Issues #210

0xroll opened this issue Jun 10, 2024 · 7 comments

Comments

@0xroll
Copy link
Contributor

0xroll commented Jun 10, 2024

hey @kyle-layerzero

the adapter is having issue, please fix!

number   timestamp
[2024-06-05, 15:16:44 UTC] {{task_log_fetcher.py:63}} INFO - [2024-06-05 15:16:19,426] 0  5154879  1717513197
[2024-06-05, 15:16:44 UTC] {{task_log_fetcher.py:63}} INFO - [2024-06-05 15:16:19,426] 1  5156079  1717516797
[2024-06-05, 15:16:44 UTC] {{task_log_fetcher.py:63}} INFO - [2024-06-05 15:16:19,426] 2  5157279  1717520397
[2024-06-05, 15:16:44 UTC] {{task_log_fetcher.py:63}} INFO - [2024-06-05 15:16:19,426] 3  5158479  1717523997
[2024-06-05, 15:19:45 UTC] {{task_log_fetcher.py:63}} INFO - [2024-06-05 15:19:31,650] 2024-06-05 15:19:31,650 WARNING root An error occurred for block [object Object]: RangeError: Maximum call stack size exceeded
[2024-06-05, 15:19:45 UTC] {{task_log_fetcher.py:63}} INFO - [2024-06-05 15:19:31,650]     at /project/tvl_adapters/adapters/stargate/dist/index.js:81:24
[2024-06-05, 15:19:45 UTC] {{task_log_fetcher.py:63}} INFO - [2024-06-05 15:19:31,650]     at process.processTicksAndRejections (node:internal/process/task_queues:95:5)
[2024-06-05, 15:19:45 UTC] {{task_log_fetcher.py:63}} INFO - [2024-06-05 15:19:31,650] An error occurred for block [object Object]: RangeError: Maximum call stack size exceeded
[2024-06-05, 15:19:45 UTC] {{task_log_fetcher.py:63}} INFO - [2024-06-05 15:19:31,650]     at /project/tvl_adapters/adapters/stargate/dist/index.js:81:24
[2024-06-05, 15:19:45 UTC] {{task_log_fetcher.py:63}} INFO - [2024-06-05 15:19:31,650]     at process.processTicksAndRejections (node:internal/process/task_queues:95:5)
[2024-06-05, 15:19:45 UTC] {{task_log_fetcher.py:63}} INFO - [2024-06-05 15:19:31,650] An error occurred for block [object Object]: RangeError: Maximum call stack size exceeded
[2024-06-05, 15:19:45 UTC] {{task_log_fetcher.py:63}} INFO - [2024-06-05 15:19:31,650]     at /project/tvl_adapters/adapters/stargate/dist/index.js:81:24
[2024-06-05, 15:19:45 UTC] {{task_log_fetcher.py:63}} INFO - [2024-06-05 15:19:31,650]     at process.processTicksAndRejections (node:internal/process/task_queues:95:5)
[2024-06-05, 15:19:45 UTC] {{task_log_fetcher.py:63}} INFO - [2024-06-05 15:19:31,650] An error occurred for block [object Object]: RangeError: Maximum call stack size exceeded
[2024-06-05, 15:19:45 UTC] {{task_log_fetcher.py:63}} INFO - [2024-06-05 15:19:31,650]     at /project/tvl_adapters/adapters/stargate/dist/index.js:81:24
[2024-06-05, 15:19:45 UTC] {{task_log_fetcher.py:63}} INFO - [2024-06-05 15:19:31,650]     at process.processTicksAndRejections (node:internal/process/task_queues:95:5)
[2024-06-05, 15:19:45 UTC] {{task_log_fetcher.py:63}} INFO - [2024-06-05 15:19:31,650] 2024-06-05 15:19:31,650 INFO root
@kyle-layerzero
Copy link
Contributor

@0xroll there's some changes since I last worked on this here. I'm running the code and not seeing the issue but I don't have all the details like what the hourly_blocks.csv is in the error case. There's definitely a suspect in the while loop to get user balances but I can't pin it down without some more details.

@0xroll
Copy link
Contributor Author

0xroll commented Jun 18, 2024

you can find the block numbers passed from the error message above

[2024-06-05, 15:16:44 UTC] {{task_log_fetcher.py:63}} INFO - [2024-06-05 15:16:19,426] 0  5154879  1717513197
[2024-06-05, 15:16:44 UTC] {{task_log_fetcher.py:63}} INFO - [2024-06-05 15:16:19,426] 1  5156079  1717516797
[2024-06-05, 15:16:44 UTC] {{task_log_fetcher.py:63}} INFO - [2024-06-05 15:16:19,426] 2  5157279  1717520397
[2024-06-05, 15:16:44 UTC] {{task_log_fetcher.py:63}} INFO - [2024-06-05 15:16:19,426] 3  5158479  1717523997

this might be the rootcause?

[2024-06-18, 07:25:14 UTC] {{task_log_fetcher.py:63}} INFO - [2024-06-18 07:25:03,429] 2024-06-18 07:25:03,429 WARNING root An error occurred for block [object Object]: RangeError: Maximum call stack size exceeded

@kyle-layerzero
Copy link
Contributor

@0xroll I took a look and found that some blocks have too many rows for the current implementation. I have an alternative here - #245, let me know what you think.

@0xroll
Copy link
Contributor Author

0xroll commented Jul 3, 2024

@kyle-layerzero just reran and got this

[2024-07-03, 11:13:38 UTC] {{task_log_fetcher.py:63}} INFO - [2024-07-03 11:13:26,734]     chunks = self._reader.read_low_memory(nrows)
[2024-07-03, 11:13:38 UTC] {{task_log_fetcher.py:63}} INFO - [2024-07-03 11:13:26,734]              ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
[2024-07-03, 11:13:38 UTC] {{task_log_fetcher.py:63}} INFO - [2024-07-03 11:13:26,734]   File "parsers.pyx", line 838, in pandas._libs.parsers.TextReader.read_low_memory
[2024-07-03, 11:13:38 UTC] {{task_log_fetcher.py:63}} INFO - [2024-07-03 11:13:26,735]   File "parsers.pyx", line 905, in pandas._libs.parsers.TextReader._read_rows
[2024-07-03, 11:13:38 UTC] {{task_log_fetcher.py:63}} INFO - [2024-07-03 11:13:26,735]   File "parsers.pyx", line 874, in pandas._libs.parsers.TextReader._tokenize_rows
[2024-07-03, 11:13:38 UTC] {{task_log_fetcher.py:63}} INFO - [2024-07-03 11:13:26,735]   File "parsers.pyx", line 891, in pandas._libs.parsers.TextReader._check_tokenize_status
[2024-07-03, 11:13:38 UTC] {{task_log_fetcher.py:63}} INFO - [2024-07-03 11:13:26,735]   File "parsers.pyx", line 2061, in pandas._libs.parsers.raise_parser_error
[2024-07-03, 11:13:38 UTC] {{task_log_fetcher.py:63}} INFO - [2024-07-03 11:13:26,735] pandas.errors.ParserError: Error tokenizing data. C error: Expected 7 fields in line 1001, saw 13

@kyle-layerzero
Copy link
Contributor

@0xroll I've double checked a few cases on the ingestion side and am able to generate hundreds of thousands of rows. Based on that and the error message, are you sure there's an issue with the adapter code?

@kyle-layerzero
Copy link
Contributor

@0xroll I found an issue and fixed it here - #271

@0xroll
Copy link
Contributor Author

0xroll commented Aug 22, 2024

adapter working fine, closing this. tyvm @kyle-layerzero !!

@0xroll 0xroll closed this as completed Aug 22, 2024
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

2 participants