Skip to content

fix(macos): app is background-only; ARM INTER_AREA mismatch - #188

Merged
noah-peeters merged 1 commit into
masterfrom
fix/macos-v0.4.0
Oct 30, 2026
Merged

noah-peeters merged 1 commit into
masterfrom
fix/macos-v0.4.0

Conversation

@noah-peeters

Copy link
Copy Markdown
Owner

First run of v0.4.0 on a Mac (MacBook Air M4, macOS 27.0.1, Apple OpenCL).

Fixes

  • The macOS app was background-only. Info.plist had LSBackgroundOnly = true: no Dock icon, no menu bar, and the window couldn't come to the front. The spec's BUNDLE inherits console=True from the CLI exe in the shared COLLECT, and PyInstaller then writes that key. The spec now sets it to False; I checked by patching a copy of the released app.
  • resize_area against ARM OpenCV. test_estimation_levels_match_opencv[0.17] failed on one tie pixel. OpenCV's ARM builds fuse the row multiply-add in resize(INTER_AREA) (the compiler contracts it) and x86 builds don't. The kernel now does the same on ARM hosts (-DHOST_FMA_ROWS): mismatches against ARM cv2 drop from 5203 to 31 of 72 M pixels over 11 images × 10 scales, and every kernel test passes on the M4. x86 (Windows, CI) builds the kernel as before.

Mac results

  • Apple's compiler builds every kernel, and there was no GPU fallback in any run.
  • Still failing on the M4 (not changed here): five GPU-vs-CPU pipeline tests with alignment, just over their limits (Pyramid breathing mean 0.306–0.314; Depth Map >2 levels 1.5–3.3 %, slabbed Depth Map mean 0.52). GPU and CPU ECC differ by 0.002–0.006 px per frame pair (float32 summation order), and the breathing chain adds that up to ≤0.05 px over 10 frames. GPU stacking fed the CPU's transforms is within the limits, so this is alignment rounding, not a stacking bug. It needs a decision: looser limits for aligned runs, or test stacking with shared transforms.

Tests

  • pytest tests/test_gpu.py -k TestKernels on Apple M4: 18 passed.

🤖 Generated with Claude Code

- chimpstackr.spec: set LSBackgroundOnly to False. BUNDLE inherits
  console=True from the CLI exe in the shared COLLECT, so PyInstaller
  marked ChimpStackr.app background-only: no Dock icon or menu bar, and
  the window couldn't come to the front (v0.4.0 DMG).
- ocl.py: resize_area fuses the row multiply-add on ARM hosts, like
  OpenCV's ARM builds do, so it stays bit-exact with cv2.resize there
  (test_estimation_levels_match_opencv failed on Apple M4).

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
@noah-peeters
noah-peeters merged commit b329e7d into master Oct 30, 2026
8 checks passed
@noah-peeters
noah-peeters deleted the fix/macos-v0.4.0 branch October 30, 2026 08:13
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant