beyondcode / herd-community

91 stars 1 forks source link

[Bug]: Crazy flicker when attempting to create a new site #1110

Closed mfullbrook closed 1 month ago

mfullbrook commented 1 month ago

Platform

macOS

Operating system version

macOS Sonoma 14.3

System architecture

Arm

Herd Version

1.11.1

PHP Version

No response

Bug description

Crazy flicker after click add site. The flicker is happening tens of times per second, the screenshot video below does not show how fast it is.

https://github.com/user-attachments/assets/99d91bd6-8f22-4b59-9198-a062b96255f4

Steps to reproduce

  1. Install Herd for the first time.
  2. Install PHP version
  3. Click "add site"

Relevant log output

2024-10-23 19:54:21.602 Herd[78727:15315352] WARNING: Secure coding is automatically enabled for restorable state! However, not on all supported macOS versions of this application. Opt-in to secure coding explicitly by implementing NSApplicationDelegate.applicationSupportsSecureRestorableState:.
2024-10-23 20:43:41.745 Herd[78727:15315352] It's not legal to call -layoutSubtreeIfNeeded on a view which is already being laid out.  If you are implementing the view's -layout method, you can call -[super layout] instead. Break on void _NSDetectedLayoutRecursion(void) to debug.  This will be logged only once.  This may break in the future.
sschlein commented 1 month ago

Hi, is there any chance that you update to the latest macOS version? You don't need to move to 15, but 14.3 is pretty old and the latest macOS 14 release is 14.7

mpociot commented 1 month ago

I was just able to reproduce this on macOS 14.0 as well. The issue does not occur on macOS 14.5+ (I haven't checked every version in-between) What's interesting is that this bug also does not occur on older macOS versions (like macOS 12).

So this is unfortunately a macOS bug and you should update your OS. I will add a check into Herd to prevent this from happening, but we won't be able to fix the root issue as it's OS related.