(-215:Assertion failed) 0 <= _dims && _dims <= CV_MAX_DIM in function 'setSize'

Hello all !
I’m getting this error with OpenCV 4.4.0.
Thir error happens rarely.
If someone know how to resolve this issue, kindly help me to resolve the error.

(-215:Assertion failed) 0 <= _dims && _dims <= CV_MAX_DIM in function 'setSize'

aaand, how did you get this error ?
(show code / data, else we cannot help :wink:

3 posts were split to a new topic: Modules/core/src/matrix.cpp:284: error: (-215) 0 <= _dims && _dims <= 32 in function setSize