Skip to content

Memory leaks in the text editor #19872

Description

@mitchellandwebb

On Pharo 13.

I've been working on some hobby project in Pharo 13 for a few weeks now, and it's been getting progressively slower to save the image, now taking a few seconds. So I tried to clean up some pointers, thinking that was the problem, and here are a few things that I found.

  • CoCompletionEngine - 2131 instances
  • MessageSend - 136352 instances
  • ClyTextEditor - 1861 instances

Not knowing much about the platform, I was originally just cleaning up terminated processes that wouldn't be garbage-collected until I removed pointers to them that were living in Context and CoCompletionEngine, and while I did manage to garbage-collect the processes, saving the image is still slow, and it seems to me that perhaps every usage of a text editor is staying in memory for some reason.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Fields

    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions