You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Hi, I used OpenCV.jl to read a video frames. And I found that julia is not able to do GC on data read by OpenCV. There need a mandatory GC.gc() to release those memories, otherwise, there will be a memory leakage.
Is this because that julia 'does not know the cpp memory and julia only saves the pointer of these mats' ? Or is there any bug that julia didn't release OpenCV's memory when julia doing GC?
julia version: 1.6.3
system: windows 10
My code:
vcap = cv.VideoCapture(yourVideoFile)
totalframes = cv.get(vcap, cv.CAP_PROP_FRAME_COUNT)
for i in1:totalframes
ret, frame = cv.read(vcap)
end
Run the code, and watch the memory consumption in task manager. The memory increased immediately and never decline.
Thx.
The text was updated successfully, but these errors were encountered:
Hi, I used OpenCV.jl to read a video frames. And I found that julia is not able to do GC on data read by OpenCV. There need a mandatory
GC.gc()
to release those memories, otherwise, there will be a memory leakage.Is this because that julia 'does not know the cpp memory and julia only saves the pointer of these mats' ? Or is there any bug that julia didn't release OpenCV's memory when julia doing GC?
julia version: 1.6.3
system: windows 10
My code:
Run the code, and watch the memory consumption in task manager. The memory increased immediately and never decline.
Thx.
The text was updated successfully, but these errors were encountered: