SVM model training and classification return error

I have completed my training and encountered an error during the detection. Please refer to the link above for the complete situation.

An exception was raised: read access permission conflict.
SVM. * * Ptr * * is nullptr.
image

If you’re already asking here, please add code & details here, too, ty

or maybe even close this.
(kumataro is right, your loading code is wrong. no bug)