-
Notifications
You must be signed in to change notification settings - Fork 136
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
Compiling ZkProgram in the browser never ends #1891
Comments
I have been having the same issue. |
What version of o1js are you using? Could you make sure it's either 1.9.1 or 2.0.0? |
Yes i tried both.Unfortunately neither worked. |
#1890 (comment) |
Finally, it's working! This problem took me about 10 days. Thank u @kadirchan. |
@berkay1532 , I don't think we can close this issue if the fix is to use a non-released version of o1js. We still need to release a fixed version. |
Yep , i think so. Let’s not close till it is solved |
It sounds like the fix is to use an older o1js version, so there was a recent regression? |
@mitschabaude we believe it's this one: #1874 Up to 1.9.0 compiling in the browser didn't work, then at exactly 1.9.0, when the pickles bug was fixed, but we introduced a performance issue, compilation in the browser did work. Then in 1.9.1 and the releases since, after we resolved the performance issue, it doesn't work in the browser again. |
Oh interesting. What about our CI tests which compile in the browser though? Is there a more specific situation in which it doesn't work? |
Ah it's only when using recursion. (Just like the performance regression!) |
The performance regression happened in the recursive verifier. Since #1874 fixed that regression, we can conclude that Since this part now seems to break, a very likely issue is that the lagrange basis is not present in the recursive verifier. in the browser at least! the browser case is different from nodejs at least in that there is no caching. |
@45930 I identified and fixed the problem. It's on me 😅 |
upgraded mine from |
@kadirchan the fix has not been released yet. It is scheduled for the next release, which ought to be this week. You can check the changelog for details |
oh I missed unreleased part sorry for inconvenience 🙏 |
I noticed that a simple zkprogram I created did not compile in the browser. Then I tried to compile the zkprogram in the tutorial to see if the problem was with my program, but it did not compile either. Finally, when I removed the "SelfProof" parts in the zkprogram and compiled it, I saw that the process was completed without any problems. That's why I decided to open an issue about this.
Tutorial ZkProgram
`
const Add = ZkProgram({
name: 'add-example',
publicInput: Field,
methods: {
init: {
privateInputs: [],
},
});
`
The text was updated successfully, but these errors were encountered: