DeepCloner icon indicating copy to clipboard operation
DeepCloner copied to clipboard

the program crashed when i deepclone opencvsahrp Mat

Open caj-github opened this issue 3 years ago • 3 comments

the program crashed when i deepclone opencvsahrp Mat for several times

caj-github avatar Mar 16 '21 08:03 caj-github

I'm having an issue that my production website crashes, and I use this lib, and many times the Depcloner.dll is locked on the server and needs to reboot, any thoughts on this?

luizfbicalho avatar Mar 31 '22 19:03 luizfbicalho

Could you provide short example? May be you try to clone big object? Deep clone tries to clone all dependency graph (therefore it is deep). So, if you try to clone object with relation to big graph - it can cause lot of objects to clone. Another issue can be when you try to clone object which uses native resources (IntPtr handles and so on). Due unpredictable behavior when this classes are cloned - it can cause crashes. Library has some heuristics to avoid this, but sometimes it impossible to make correct decision.

force-net avatar Apr 04 '22 06:04 force-net

I can't reproduce it, only in production that I have problems and the server stops. My only idea comes from the fact that DeepCloner.dll gets locked all the time, and I need to restart the server to unlock, iis reset only doesn't work.

luizfbicalho avatar Apr 04 '22 11:04 luizfbicalho