Skip to content

🐛 Loop immediately crashes when Next + Previous screen in a Cycle is triggered #363

@akincan-kilic

Description

@akincan-kilic

Bug Description

When a Cycle is created with 2 Screen Switching components inside (Next and Previous), and that shortcut is triggered Loop will crash, leak memory.

Steps To Reproduce

  1. Open Loop settings
  2. Go to keybindings
  3. Click + -> More -> Cycle
  4. Click to edit the Cycle
  5. Add Screen Switching -> Next Screen
  6. Add Screen Switching -> Previous Screen
  7. Name the Cycle "Screen Switching" and save it.
  8. Assign any keyboard shortcut to it (Mine is ⌥ + ⌃ + ⇧ + Space)
  9. Try the assigned keyboard shortcut.

Expected Behavior

Loop will show a preview of the window appearing on my other screen, and after repeating the shortcut make it appear on my first screen. Thus cycling between my two main monitors.

Actual Behavior

Loop immediately crashes, leaving a hollow circle that is fixed on screen. Not only Loop will become unresponsive but it will start taking up more and more memory as time passes, reaching to infinity before killing itself.

Screenshots

The Hollow Circle after crash

SCR-20240526-eldt

The Cycle details

SCR-20240526-emcl

The Cycle in the keybinds menu

SCR-20240526-emec

My Loop Settings

General Settings

SCR-20240526-emjv

More Settings

SCR-20240526-emhc

MacOS Version

Sonoma 14.5

Loop Version

1.0.0-beta.15 (817)

Additional Context

I have a Macbook Pro M1 Pro 16" laptop as my secondary display and a main display MSI Optix G32CQ4 31.5" running at 2560x1440 resolution and 120HZ with BetterDisplay application running to scale it to HiDPI.

Final Checks

  • My issue title is descriptive
  • This is a single bug (multiple bugs should be reported individually)

Metadata

Metadata

Assignees

Labels

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions