`derive` Encode overflow
Closed this issue · 2 comments
ashWhiteHat commented
The overflowed its stack
error happens as following.
running 1 test
thread 'g1::tests::parity_codec_trait' has overflowed its stack
fatal runtime error: stack overflow
error: test failed, to rerun pass '--lib'
I inherit Encode to struct G1Affine
.
#[derive(Copy, Clone, HexDebug)]
pub struct G1Affine {
pub(crate) x: Fp,
pub(crate) y: Fp,
infinity: Choice,
}
impl Encode for G1Affine {}
The error happened when I executed encode
methods.
encode
I would like to know what's happening 😥
Thank you!
bkchr commented
Run with gdb and show the stack trace please.
ashWhiteHat commented
I fixed with forking and derived.
Thank you!