Skip to content

macOS: Typing indicators cause high CPU & GPU usage #5077

Open
@Shnub

Description

@Shnub
  • I have searched open and closed issues for duplicates

Bug Description

On both installations of macOS that I'm running Signal Desktop on (one 10.14.6 on Intel and one 11.2.2 on Apple ARM), CPU and GPU usage is very low when Signal is idle, but whenever a typing indicator is displayed, it jumps to curiously high values. This happens always; the indicator is never displayed without processor usage spiking. It doesn't matter whether the indicator appears in a visible conversation or just in the conversation list.

Crucially, this happens not only when the app is visible, but even when it is hidden or the window closed. Consequently, energy usage is now much higher than it used to be, dependent of course on how often and how long people compose messages.

This behavior started only recently, though unfortunately I can't say when exactly. It certainly wasn't an issue a year ago.

Steps to Reproduce

  1. Observe processor usage while Signal is idle.
  2. Wait till someone types a message and a typing indicator is displayed. (Signal window can be open, hidden, or closed.)

Actual Result:

High CPU and GPU usage.

Expected Result:

Processor usage not much higher than in idle state.

Screenshots

Signal processor usage when idle:

Screen Shot 2021-03-02 at 23 02 02

Signal processor usage while typing indicator is visible (no other discernible activity):

Screen Shot 2021-03-02 at 23 01 29

Platform Info

Signal Desktop Version: 1.40.1

Operating System: macOS 10.14.6 & 11.2.2

Linked Device Version: iOS 13.7

Signal Version on Linked Device: 5.5.0.18

Link to Debug Log

https://debuglogs.org/b79ff08e7f9c01cd844475995f85b19dcd8016caa8508dc308dfe658af531053

Wasn't quite fast enough, but scroll up to time 22:01:29, which should correspond to the time the problem occurred according to the screenshot filenames above (one hour difference likely Central European vs. Greenwich Time). At 22:02:02, the problem is gone again.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions