-
Notifications
You must be signed in to change notification settings - Fork 104
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
Fix web version (infinite loop) #379
Comments
Are there any pointers as to how this can be fixed? I'd like to help |
I see two possible strategies for fixing:
|
@mitschabaude is this the file you've mentioned above? I'll try comparing it manually |
Yes, @maht0rz, this is it! That file is huge so I recommend looking at its recent git history for guessing relevant changes. |
Thanks to @gregor#5446's instructions i've noticed a discrepancy in the web/chrome bindings, introduced in the following commit: MinaProtocol/mina@99dc99e#diff-c2c0ff175c607b726ab7857e08ab0d7389d6c6f2b2fb1039583a0505c47b28e9R1217 Seems to me like Attempting to fix 🎢 |
Here are two profiler outputs from firefox, before the fix and after the attempted fix. I've added
You can see the stack trace / calls changing after i've added the extra argument in the binding but i am still unable to compile my contract. |
awesome! |
It works, i will issue a PR right now! :) |
…e-loop Added prev_challenges to plonk_index_create bindings
The web version of snarkyjs is reported to go into an infinite loop when compiling, cc @maht0rz @jackryanservia
one difference to node is that for web, there's some manually written "table" of functions that are run from workers. if that table got out of date, we had the web version break sometimes
here: https://github.com/o1-labs/snarkyjs/blob/main/src/chrome_bindings/worker_run.js
The text was updated successfully, but these errors were encountered: