Skip to content

GitLab

  • Projects
  • Groups
  • Snippets
  • Help
    • Loading...
  • Help
    • Help
    • Support
    • Community forum
    • Submit feedback
    • Contribute to GitLab
  • Sign in
pygobject
pygobject
  • Project overview
    • Project overview
    • Details
    • Activity
    • Releases
  • Repository
    • Repository
    • Files
    • Commits
    • Branches
    • Tags
    • Contributors
    • Graph
    • Compare
  • Issues 238
    • Issues 238
    • List
    • Boards
    • Labels
    • Service Desk
    • Milestones
  • Merge Requests 9
    • Merge Requests 9
  • CI / CD
    • CI / CD
    • Pipelines
    • Jobs
    • Schedules
  • Operations
    • Operations
    • Incidents
    • Environments
  • Packages & Registries
    • Packages & Registries
    • Container Registry
  • Analytics
    • Analytics
    • CI / CD
    • Repository
    • Value Stream
  • Members
    • Members
  • Collapse sidebar
  • Activity
  • Graph
  • Create a new issue
  • Jobs
  • Commits
  • Issue Boards
  • GNOME
  • pygobjectpygobject
  • Issues
  • #369

Closed
Open
Opened Nov 08, 2019 by Cédric Bellegarde@gnumdk

Memory issues with pixbuf management

Since first Lollypop version, I have reports about Lollypop high memory usage.

So I took time to test pixbuf loading and found really strange behaviours:

image_from_pixbuf.py

Here, we are loading a pixbuf and using Gtk.Image.new_from_pixbuf():

  • While loading, memory usage goes to 600 Mio
  • Floxbox is cleaned at the end and memory usage goes to 30 Mio

image_from_surface.py

Here, we are loading a surface from a pixbuf and using Gtk.Image.new_from_surface():

  • While loading, memory usage goes to 900 Mio
  • Floxbox is cleaned but memory is not freed

image_from_surface_signals.py

Here, we are loading a surface from a pixbuf and using Gtk.Image.new_from_surface() and signals to load images without freezing UI:

  • While loading, memory usage goes to 900 Mio
  • Floxbox is cleaned at the end and memory usage goes to 60 Mio

image_from_surface_idle_add.py

Variant of previous one using idle_add() instead of signals:

  • While loading, memory usage goes to 600 Mio
  • Floxbox is cleaned but memory is not freed

I'm really confused by all this strange behaviours.

World/lollypop#2111 (closed)

Edited Nov 08, 2019 by Cédric Bellegarde
Assignee
Assign to
None
Milestone
None
Assign milestone
Time tracking
None
Due date
None
Reference: GNOME/pygobject#369