Skip to content

plotdevice RAM usage #22

Open
Open

Description

@ifmihai

I'm running a very simple animation with plotdevice.app.
Some calculations, then some texts displayed.

after 100.000 steps (frames?), plotdevice.app reached 3Gb of ram.
Is this normal?

I'm on mac osx mavericks, 10.9.4

Activity

  1. samizdatco commented on Jan 19, 2015

    @samizdatco
    Member

    I've noticed this as well but suspect that it's out of my control (for the moment at least). There seems to be either an AppKit or (more likely) PyObjC bug causing a memory leak when drawing to an NSImage context. With every pass through the renderer, a number of internal lock objects are leaked and can add up to significant quantities over time:
    leaky-lock

    I've heard reports that this has been fixed in 10.10.2 but, like you, I'm still on 10.9 so can't say for certain...

  2. ifmihai commented on Jan 21, 2015

    @ifmihai
    Author

    maybe, there will be someone with at least 10.10.2 that will tell us :)

    or maybe i will update to 10.10.2 when it will be available
    I tried to avoid updating to yosemite as long as possible

  3. fish2000 commented on Oct 8, 2015

    @fish2000

    Dogg drawing to an NSImage’s NSGraphicsContext will leak like a middle-aged New Orleans alcoholic for reals, it may be in PyObjC but those crazy locks leak anywhere man. If it is NSBitmapImageRep-backed it will also sometimes (non-deterministically) leak the entire image buffer when the NSImage releases.

    Although yeah actually that screenshot also shows a leak from a PyObjC strdup() wrapper, what? You don’t tell people you use strdup() much less proudly wrap it with a conspicuously named API call. That’s the POSIX equivalent of starting a conversation with friends by telling them you haven’t changed your socks in a week. Absolute leaksville.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions