Parameters Setting in BGV schems

Hi I’m using BGVRNS, and I set the parameters as following:


    parameters.SetMultiplicativeDepth(5);
    parameters.SetPlaintextModulus(256);
    parameters.SetScalingModSize(60); 

It will pop up an error:

what():  /data/homomorphic/openfhe-development/src/core/include/math/hal/intnat/ubintnat.h:l.649:ComputeMu<>(): NativeIntegerT ComputeMu: Divide by zero

I’m wondering Is it a bug? Or any specific reason for that?

Thanks in advance!

Please try the dev branch (we will merge to main within 2 weeks as part of the v1.2.0 release). The validator in the dev should throw a more meaningful exception. The configuration you are tying is invalid.