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

Nargo uses exhausts all memory and crashes on larger circuits #2571

Closed
TomAFrench opened this issue Sep 6, 2023 · 3 comments
Closed

Nargo uses exhausts all memory and crashes on larger circuits #2571

TomAFrench opened this issue Sep 6, 2023 · 3 comments
Labels
bug Something isn't working

Comments

@TomAFrench
Copy link
Member

Aim

I've been trying to compile https://github.com/SetProtocol/noir-rsa to experiment on reducing the number of constraints in the circuit.

Expected Behavior

The circuit should compile successfully

Bug

The circuit fails to compile at all. Looking at the task manager, I can see that Nargo takes more and more memory until it's at 100% utilisation (at which point Nargo is using > 30GB) and then crashes.

Comparing with the 0.10.5 release shows that this is a relatively recent issue as this reaches a constant amount of memory, although the compilation time is extremely long ()

To Reproduce

  1. noirup -n
  2. clone https://github.com/SetProtocol/noir-rsa
  3. nargo info --package dkim
  4. noirup -v 0.10.5
  5. nargo info --package dkim

Installation Method

Binary

Nargo Version

No response

Additional Context

No response

Would you like to submit a PR for this Issue?

No

Support Needs

No response

@TomAFrench TomAFrench added the bug Something isn't working label Sep 6, 2023
@github-project-automation github-project-automation bot moved this to 📋 Backlog in Noir Sep 6, 2023
@kevaundray
Copy link
Contributor

After adding examples/dkim to the workspace, this crate does not run without using --package , @phated can you look into getting this fixed?

@Savio-Sou
Copy link
Collaborator

Possibly related: #2500

@TomAFrench
Copy link
Member Author

Closed by #2590

@github-project-automation github-project-automation bot moved this from 📋 Backlog to ✅ Done in Noir Sep 7, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
Archived in project
Development

No branches or pull requests

3 participants