Skip to content

App unresponsive after it has been in the background for some time #76

Description

@ryandesign

Describe the bug
If I have the emulator running in the background covered with other windows, when I come back to it, it is unresponsive for several minutes, with the spinning rainbow pinwheel cursor, until it eventually becomes responsive again.

To Reproduce
Steps to reproduce the behavior:

  1. Start the emulator.
  2. Switch to another application, covering the emulator with other windows.
  3. Wait an hour.
  4. Switch back to the emulator.

Expected behavior
The app should immediately be fully responsive.

Actual behavior
The app is unresponsive for several minutes.

Versions (please complete the following information):

  • OS: macOS 12.7.5
  • Mariani: 1.5 (2)

Additional context
Here is a sample taken with Activity Monitor when it is unresponsive:

Sample of Mariani.txt

It seems like there's a ton of stuff descended from __NSFireTimer. It makes me wonder if the emulation constantly fires timers, even when in the background, but they are only processed in the foreground or when the window is not covered, so when the window becomes unobscured again it has a huge backlog to work through.

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions