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

Run-time errors on OSX #13

Open
ghost opened this issue May 25, 2018 · 4 comments
Open

Run-time errors on OSX #13

ghost opened this issue May 25, 2018 · 4 comments

Comments

@ghost
Copy link

ghost commented May 25, 2018

I'm trying to compile and run this on OSX.

I can compile fine. However, I'm getting the following errors when I go to run ("Single payment in and single payment out"):

terminating with uncaught exception of type std::invalid_argument: libff::get_root_of_unity: expected n == (1u << logn)

node index.js startBalance=10000

Please select an option:
1) Single payment in and single payment out
2) Multiple payments in and multiple payments out
3) Simulation of an RTGS payment node
0) Quit
prompt: option:  1

The provingKey and verificationKey need to be generated

libc++abi.dylib: terminating with uncaught exception of type std::invalid_argument: libff::get_root_of_unity: expected n == (1u << logn)

Loading proving key from file.  This will take a few seconds
..payment_in_out_generate_proof(91763,0x7fff9d3e33c0) malloc: *** mach_vm_map(size=1125876303986688) failed (error code=3)
*** error: can't allocate region
*** set a breakpoint in malloc_error_break to debug

libc++abi.dylib: terminating with uncaught exception of type std::bad_alloc: std::bad_alloc

.........................................................................................
@darksun113
Copy link

Have we got a solution for this yet?

@emberian
Copy link

emberian commented Jan 4, 2019

See also gstew5/snarkl#11

I've only seen this on macOS, not Linux, even when using Clang on Linux.

@emberian
Copy link

MinaProtocol/mina#1419 has a patch for this in our fork of libsnark.

@browneye1826
Copy link

@darksun113 Pls message me

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants