Repository navigation
Fix the macOS build, and smoke-test the import that starts the app - #193
Merged
Merged
Conversation
The macOS build of v2026.5.0 passed every check and could not start. A harfbuzz collision in the bundle made importing cv2 fail with "Symbol not found: _hb_coretext_font_create", so the app exited before drawing a window, which reads to a user like the Gatekeeper warning did not take. Nothing caught it because nothing imported cv2. entrypoint.py answers --version before the desktop shell is imported, on purpose, and --texworker only reaches Pillow and the texture decoders. --selfcheck imports numpy, Pillow, cv2 and the two app modules and exits without a window, and both build workflows now call it. This commit is expected to fail the two macOS legs: that is the defect, reproduced in CI. Co-Authored-By: Claude Opus 5 <[email protected]>
The collision is between two packaging ecosystems. The PyPI Pillow wheel vendors its own libharfbuzz built without CoreText; conda-forge's pango, which comes in with the LGPL OpenCV, needs one built with it. PyInstaller collapses two dylibs of the same name into one, and the copy that survived exported no CoreText symbol, so cv2 could not load and the app could not start. Installing Pillow from conda-forge alongside OpenCV leaves a single shared harfbuzz, which both use. Nothing changes off macOS, where Pillow keeps coming from PyPI and no pango is bundled. The previous commit's CI run is the control: both macOS legs failed at --selfcheck on "Symbol not found: _hb_coretext_font_create", after ok numpy and ok PIL.Image, while Linux and Windows passed. Co-Authored-By: Claude Opus 5 <[email protected]>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
The macOS build of v2026.5.0 could not start: a harfbuzz collision in the bundle
made importing cv2 fail, so the app exited before drawing a window. Those assets
have been withdrawn from the release.
Nothing caught it because nothing imported cv2. --version answers before the
desktop shell is imported and --texworker only reaches Pillow.
First commit adds --selfcheck, which imports numpy, Pillow, cv2 and the app
modules without opening a window, and calls it from both build workflows. It is
expected to fail the macOS legs. The fix follows once CI has reproduced the
defect.
🤖 Generated with Claude Code