EVAL SQUARE ROOT FUNCTION failed

Hi,
I directly git clone the main branch of the project, and then I run the function-evaluation example, and failed at the second example. The output is

--------------------------------- EVAL SQUARE ROOT FUNCTION ---------------------------------
terminate called after throwing an instance of 'lbcrypto::math_error'
  what():  /tmp/tmp.c4KaOgOCJe/src/pke/lib/encoding/ckkspackedencoding.cpp:522 The decryption failed because the approximation error is too high. Check the parameters. 

I know there may be something wrong with the params, but I dont’ know what to change.

Thanks for your help!

Did you change anything in the function-evaluation example? I can run it without issues

I didn’t change anything. :sob:

Are you running in 128 bit or 64 bit? What’re your settings e.g. did you change the math backend, etc. This would help us recreate the issue. Thanks!

64-bit. I didn’t set any CMake options, so I think I didn’t change the MathBackend.
I download the main branch code zip from github, open it with CLion IDE, load the CMakelists, run the target function-evaluation and I get the errror.
I use a server with Ubuntu20.04, CMake version 3.21.7, GDB version 9.2.

Or should I report on github, where i could upload the whole project?

Thanks for your time!

This is a bug that will be fixed in the next version release (v1.0.4). This is how you can fix the example if you need it now: fixed the input ranges for function-evaluation.cpp by yspolyakov · Pull Request #335 · openfheorg/openfhe-development · GitHub.