Skip to content
GitLab
Projects Groups Topics Snippets
  • /
  • Help
    • Help
    • Support
    • Community forum
    • Submit feedback
    • Contribute to GitLab
  • Register
  • Sign in
  • gstreamer gstreamer
  • Project information
    • Project information
    • Activity
    • Labels
    • Members
  • Repository
    • Repository
    • Files
    • Commits
    • Branches
    • Tags
    • Contributor statistics
    • Graph
    • Compare revisions
  • Issues 1.1k
    • Issues 1.1k
    • List
    • Boards
    • Service Desk
    • Milestones
  • Merge requests 505
    • Merge requests 505
  • CI/CD
    • CI/CD
    • Pipelines
    • Jobs
    • Schedules
  • Deployments
    • Deployments
    • Environments
    • Releases
  • Packages and registries
    • Packages and registries
    • Container Registry
  • Monitor
    • Monitor
    • Incidents
  • Analytics
    • Analytics
    • Value stream
    • CI/CD
    • Repository
  • Snippets
    • Snippets
  • Activity
  • Graph
  • Create a new issue
  • Jobs
  • Commits
  • Issue Boards
Collapse sidebar
  • GStreamerGStreamer
  • gstreamergstreamer
  • Merge requests
  • !3313

bus: warn if message queue grows too large

  • Review changes

  • Download
  • Patches
  • Plain diff
Open Xavier Claessens requested to merge xclaesse/gstreamer:bus-size into main Nov 02, 2022
  • Overview 16
  • Commits 1
  • Pipelines 6
  • Changes 1

By default the message queue grows infinitely unless the application handles messages. For simple pipelines that does not need to handle messages and run for long periods this is very unexpected behaviour causing huge memory consumption over a few days of uptime and no obvious indication what's causing it.

Put a limit of 1024 messages (because queue size is a power of 2) and print a warning when dropping oldest message in the queue. That prevents unreasonable memory consumption while warning application developer that they should add a message handler.

Assignee
Assign to
Reviewers
Request review from
Time tracking
Source branch: bus-size