Skip to content
GitLab
Projects Groups Snippets
  • /
  • Help
    • Help
    • Support
    • Community forum
    • Submit feedback
    • Contribute to GitLab
  • Sign in
  • bob.io.video bob.io.video
  • Project information
    • Project information
    • Activity
    • Labels
    • Members
  • Repository
    • Repository
    • Files
    • Commits
    • Branches
    • Tags
    • Contributors
    • Graph
    • Compare
  • Issues 1
    • Issues 1
    • List
    • Boards
    • Service Desk
    • Milestones
  • Merge requests 0
    • Merge requests 0
  • CI/CD
    • CI/CD
    • Pipelines
    • Jobs
    • Schedules
  • Deployments
    • Deployments
    • Environments
    • Releases
  • Monitor
    • Monitor
    • Incidents
  • Analytics
    • Analytics
    • Value stream
    • CI/CD
    • Repository
  • Activity
  • Graph
  • Create a new issue
  • Jobs
  • Commits
  • Issue Boards
Collapse sidebar
  • bobbob
  • bob.io.videobob.io.video
  • Issues
  • #12
Closed
Open
Issue created Oct 03, 2018 by Amir MOHAMMADI@amohammadiOwner

Memory leak in the video reader

When I use the bob.io.video.reader class and read videos frame by frame, I run out of memory after reading some videos. I think we have a memory leak. To reproduce:

import bob.io.video
import bob.io.base
import numpy
my_video = numpy.random.random_integers(0,255,(30,3,256,256))
bob.io.base.save(my_video.astype('uint8'), 'testvideo.avi')
while True:
    vd = bob.io.video.reader('testvideo.avi')
    for frame in vd:
        pass

observe the memory of process going up over time constantly

Edited Oct 03, 2018 by Amir MOHAMMADI
Assignee
Assign to
Time tracking