Open q3chang opened 3 years ago
Sorry, I cannot really understand the nature of your error from just the code you present. However seems like something external to GoCV? For sure, Close()
needs to be called on each NativeByteBuffer
returned by each call to gocv.IMEncodeWithParams()
.
opencv4.5.3 : Memory leak issue in IMEncodeWithParams
Description
\ Although I use defer buffer.Close(), IMEncodeWithParams cause memory leak in streaming. If buffer.Close() is executed after declaring a buffer in a for loop to catch the memory leak, the issue that streaming does not work properly occurs. ## Steps to ReproduceBelow environment cause memory leak :
Below environment cause streaming error :
Your Environment
env.sh
orenv.cmd
script before trying togo run
orgo build
? sure