You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
It seems to be a mismatch of gate counting. We estimate fewer gates when we generate the SRS than we should be, so we don't store enough points for when we want to commitment to polynomials.
It's unclear to me how this problem is arising now. Have you tried older versions and gotten the same issue?
For older versions of bb (I tried 0.52.0 and 0.49.0 using bbup), I get the error: Unknown variant index for enum.
So I believe I hit something else there. Maybe the olderbb versions are not compatible with nargo 0.34.0?
Ah, I would doubt that actually fixed the underlying issue; I think it probably changed the gate counts so that it no longer ran into this edge case. However, I did push a commit last week that should have resolved any weird gate counting discrepancy issues, so I'm hopeful the issue is actually resolved. This fix would be in bb 0.58.0 I think.
Ok it seems that #9046 has now actually fixed it :)
I compared against the predecessor commit before the error does no longer occur in noir, i.e. noir-lang/noir@79f8954 and the commit before the gate counting fix :
Activity
ludamad commentedon Sep 24, 2024
@lucasxia01 this looks related to AztecProtocol/barretenberg#1097
lucasxia01 commentedon Sep 24, 2024
Yea, it looks related. I can bump things up for now... maybe won't investigate until later when I optimize the SRS.
lucasxia01 commentedon Sep 24, 2024
Can you use an old version of bb in the meantime until this fix comes in?
MarkCampbell90 commentedon Sep 25, 2024
Thank you for looking into this!
I will try to work with an older version for now.
Just out of curiosity, could you explain what the bug is?
lucasxia01 commentedon Sep 28, 2024
Not sure what the bug is, but I'll update you once I look into it.
lucasxia01 commentedon Oct 3, 2024
It seems to be a mismatch of gate counting. We estimate fewer gates when we generate the SRS than we should be, so we don't store enough points for when we want to commitment to polynomials.
It's unclear to me how this problem is arising now. Have you tried older versions and gotten the same issue?
MarkCampbell90 commentedon Oct 4, 2024
For older versions of
bb(I tried0.52.0and0.49.0usingbbup), I get the error:Unknown variant index for enum.So I believe I hit something else there. Maybe the older
bbversions are not compatible withnargo 0.34.0?MarkCampbell90 commentedon Oct 4, 2024
I also found a "much" older version
bb 0.41.0andnargo 0.30.0. Here the program passed execution and proving, BUT i had to adapt it:Maybe it has something to do with the change of
to_be_bytes?MarkCampbell90 commentedon Oct 4, 2024
For the same adapted program, I get an error for versions
bb 0.46.1andnargo 0.32.0:I believe these are all the versions I could quickly find on my machine, hope it helps!
MarkCampbell90 commentedon Oct 10, 2024
I believe what ever was done in this noir commit fixes this issue (pin-pointed using
git bisect).Oldest version that works:
I also tested it with
bb 0.56.0(and newer noir versions) and I cannot reproduce the mentioned behavior.@lucasxia01 do you want to keep the issue open or is it resolved from your side?
lucasxia01 commentedon Oct 10, 2024
Ah, I would doubt that actually fixed the underlying issue; I think it probably changed the gate counts so that it no longer ran into this edge case. However, I did push a commit last week that should have resolved any weird gate counting discrepancy issues, so I'm hopeful the issue is actually resolved. This fix would be in bb 0.58.0 I think.
I think we can close this issue though.
MarkCampbell90 commentedon Oct 11, 2024
I will check it against one of the previously failing
noircommits.The change you are referring to is this commit right?
MarkCampbell90 commentedon Oct 11, 2024
Ok it seems that #9046 has now actually fixed it :)
I compared against the predecessor commit before the error does no longer occur in
noir, i.e. noir-lang/noir@79f8954 and the commit before the gate counting fix :