-
Notifications
You must be signed in to change notification settings - Fork 41
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
[bug] Client fails on block 51740: Couldn't compute operand op1 #245
Comments
Can I do it ? |
A bit of context:
|
Possible directions of attack:
@Jeanmichel7 still ready? |
@maciejka Yep |
@maciejka Sorry, but what exactly is the error? I can't launch it via client.sh either. |
It should work directly with scarb cairo-run ...
sob., 5 paź 2024, 18:58 użytkownik Jean-Michel ***@***.***>
napisał:
… Sorry, but what exactly is the error?
I can't launch the client
scarb cairo-run --verbose --no-build --package client --function test
--arguments-file arguments-full_51740_1.json
is not supposed to work directly, is it? with
full_51740_1.json in client/tests/data and
arguments-full_51740.json in client/.client_cache ?
error: unexpected argument '--arguments-file' found
I can't launch it via client.sh either.
scarb run client is supposed to work?
What did I miss?
—
Reply to this email directly, view it on GitHub
<#245 (comment)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/AABOTB5XJFG2NKCH4QCSHGLZ2ALBXAVCNFSM6AAAAABPMBN4R6VHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDGOJVGEYTOMRSG4>
.
You are receiving this because you were mentioned.Message ID:
***@***.***>
|
Update scarb to the latest version.
sob., 5 paź 2024, 19:23 użytkownik Maciek Kamiński ***@***.***>
napisał:
… It should work directly with scarb cairo-run ...
sob., 5 paź 2024, 18:58 użytkownik Jean-Michel ***@***.***>
napisał:
> Sorry, but what exactly is the error?
> I can't launch the client
> scarb cairo-run --verbose --no-build --package client --function test
> --arguments-file arguments-full_51740_1.json
> is not supposed to work directly, is it? with
> full_51740_1.json in client/tests/data and
> arguments-full_51740.json in client/.client_cache ?
> error: unexpected argument '--arguments-file' found
>
> I can't launch it via client.sh either.
> scarb run client is supposed to work?
> What did I miss?
>
> —
> Reply to this email directly, view it on GitHub
> <#245 (comment)>,
> or unsubscribe
> <https://github.com/notifications/unsubscribe-auth/AABOTB5XJFG2NKCH4QCSHGLZ2ALBXAVCNFSM6AAAAABPMBN4R6VHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDGOJVGEYTOMRSG4>
> .
> You are receiving this because you were mentioned.Message ID:
> ***@***.***>
>
|
oh already in 2.8.3! ok thanks got it |
When you comment out body of the test function the error still persists. Which means the cause of the problem is not in Cairo logic, we should look at the way arguments are loaded into the memory. |
Seems to be related lambdaclass/cairo-vm#1728 |
Yes, the problem doesn't come from the Cairo logic, it's the weight of the argument that's too heavy in the cairo-run management. For full block 51740 we're at 641KB, while for full block 757738 we're only at 71KB. maybe useful: This raises the question of whether we're using the right way of doing things? Will it support the biggest blocks? (4Mo) And even several I think that's beyond my skills, maybe we need to look at scarb-cairo-run. |
@Jeanmichel7 I think that the problem is in the way the Cairo runner handles arguments, especially:
Somewhere in the above code, there must be an assumption that the argument length is less than 2^15. Let me know if you want to continue to work on this issue. |
@maciejka Yes, I'll try it.
I'll try using a modified version of cairo to see |
@Jeanmichel7 The cause of the issue is in the runner: starkware-libs/cairo#6479. The code is not meant to be used with large arguments. |
Fixed by: starkware-libs/cairo#6489. |
Client fails on block 51740:
with error message:
where:
same error on block 55861(small block, just 4 txs):
and 70183:
Minimal program on which the error reproduces:
There seems to be some upper bound for the arguments of type array with length >= 2^15
The text was updated successfully, but these errors were encountered: