mirror of
https://github.com/yattee/yattee.git
synced 2026-07-31 12:22:00 +00:00
Two build 264 crashes on macOS 26.5.1 hit AppKit's non-finite-frame trap (_NSViewValidateGeometry) on AVKit's PiP sample-buffer host view during a routine layout pass. The NaN is produced inside AVKit from geometry we feed it - either the manual PiP window resize around a video switch or an infinite container rect copied into the sample buffer layer frame. Add a sanitizedGeometry helper that rejects NaN/infinite or degenerate rects and apply it at every layer/window geometry write in the bridge (updateLayerFrame variants, moveLayer, updateVideoAspectRatio, resizePiPWindow, updateLayerFrameToMatchPiPWindow). Rejected writes are logged with their call site so the actual source can be identified when it reproduces, instead of crashing on the next CATransaction commit.