Skip to content

macOS test report: Intel Mac (MacBookPro16,1, Radeon Pro 5500M, macOS 26.7.1) #17

Open

Description

@piaoboo

macOS test report: Intel Mac (Radeon Pro 5500M, macOS 26.7.1)

Intel Mac report, as requested in docs/macos-testing.md ("If you have another Mac, especially an Intel one, please try it and tell us what happens"). The wheel installs and the Cocoa window host works here. Found three API frictions on the Python side, listed under Findings.

Scope of this report: the PyPI wheel path only. I did not build from source, did not run ctest, and did not work through the section 5 checklist (input, IME, menus, drag-to-scrub, clipboard, multi-monitor). Those are still untested on this machine.


Environment

macOS 26.7.1 (build 25G241)
Machine MacBook Pro (MacBookPro16,1), Intel Core i9-9980HK, x86_64
GPU AMD Radeon Pro 5500M, 8 GB, Metal 3 (no Metal renderer in BUI, as documented)
Python 3.12.13 (uv-managed venv)
blenderui 0.4.1, from PyPI
Wheel used blenderui-0.4.1-cp312-cp312-macosx_11_0_x86_64.whl
Test date 2026-11-07

Install:

uv venv --python 3.12 .venv
uv pip install --python .venv/bin/python blenderui

Installed in ~7 ms, no build step, no warnings.


What works

Check Result
import blenderui ✅ __version__ == 0.4.1
from blenderui import components ✅ 65 public names
from blenderui import imgui ✅ imports
import buipy (top level) ✅ buipy.cpython-312-darwin.so loads
buipy.KitNode(type) ✅ 10 of 14 probed type names accepted
buipy.KitContext(root) ✅
buipy.KitWindow(ctx, title, w, h) ✅ real window created
win.show() ✅
win.render_now() ✅ 3.7 ms first frame, 0.7 ms steady (5 consecutive frames)
win.pixel(x, y) ✅ (61, 61, 61) = Blender's dark theme background
win.size ✅ (800, 520) for a 400×260 request — the documented 2× Retina pixel/point ratio
win.is_open() ✅ returns True while open
win.gpu False (expected; no Metal renderer)
win.close() ✅ clean, no crash, no crash report

render_now() at 0.7 ms per frame on the CPU rasterizer is the part worth knowing: the software path is not the bottleneck on this hardware.

Accepted KitNode type names (probed individually): panel, box, row, column, button, label, frame, canvas, slider, checkbox.
Rejected: window, main, root, menu.

The size returning pixels rather than points is not a bug — docs/macos-testing.md section 3 states it (size 960x640 … size is in pixels: twice the points on Retina). Confirming it holds on Intel/AMD as well: requested 400×260 → 800×520, 300×200 → 600×400, 500×400 → 1000×800, ratio exactly 2.0 on all three.


Findings

1. win.size is an attribute but win.is_open is a method

Two adjacent properties of KitWindow are exposed differently:

win.size          # (800, 520)   <- attribute, a plain tuple
win.size()        # TypeError: 'tuple' object is not callable
win.is_open       # <built-in method>
win.is_open()     # True          <- must be called

Easy to get wrong when writing if win.is_open: and getting a truthy bound method that is always true. Minor, but it cost a round of debugging here win.size() raised inside an error path and masked the actual result.

2. import blenderui.buipy fails; from blenderui import buipy works

import blenderui.buipy
# ModuleNotFoundError: No module named 'blenderui.buipy'

from blenderui import buipy    # works
import buipy                   # works, buipy.cpython-312-darwin.so at site-packages root
blenderui.buipy is buipy       # True

buipy is a lazily exposed attribute pointing at the top-level extension module, not a real submodule, so the two import spellings disagree. Both README and docs use import buipy-style examples, so this is only a trap for people who guess the package-qualified form — but that guess is the natural one when everything else lives under blenderui.*.

3. KitNode type names are not discoverable

KitNode("root") raises ValueError: unknown kit node type 'root'. There is no attribute, docstring or listing to enumerate valid names, and KitNode.__doc__ gives only KitNode(type): a node of the C UI kit (see BUI_kit.h). The wheel also does not ship BUI_kit.h, so that pointer leads nowhere for a pip user:

find .venv -iname "*kit*.h"   # (nothing)

I found the valid names by trial and error. A module-level constant (or including BUI_kit.h in the wheel) would save that.

Same root cause, one more: KitWindow.__doc__ documents KitWindow(context, title='BUI', width=640, height=480), which is accurate and was enough to get going — but inspect.signature() reports (self, /, *args, **kwargs) for all three kit classes, so help() and IDE completion are uninformative. That is inherent to a C extension, mentioning it only because the docstring is the only source of truth and a user who calls help() first sees nothing.


Not tested (still open on this machine)

Section 5 of docs/macos-testing.md is entirely untouched:

  • input, typing, IME, emoji, arrow keys
  • menus, pie menu, fuzzy search
  • drag-to-scrub and cursor warping
  • clipboard in both directions
  • trackpad scrolling and momentum
  • resize, full screen, multiple monitors
  • tooltips, cursors, color picker, focus
  • Cmd+Q clean exit

I did not build from source (cmake, ctest, examples/components_demo.py, Rust, C, ImGui demos). If a source build or a checklist run on Intel would be more useful than the wheel path above, say so and I will do that next — Xcode 21, CMake 4.4.5, Ninja 1.13.2 and Rust 1.99.1 are all present here.

One upstream note for that future run: this machine is on macOS 26.7.1 with Xcode 21 / SDK 26.5, which is newer than the AppleClang 17 vs MacOSX27.0.sdk mismatch described in issue #6, so that particular trap should not apply.

Activity

  1. piaoboo commented on Nov 7, 2026

    @piaoboo
    Author

    Follow-up: source build passes on Intel, and the attribute/method split is systemic

    Two things from the same Intel Mac (MacBookPro16,1, macOS 26.7.1, Xcode 21 / SDK 26.5).

    1. Source build works — ctest 25/25

    Following docs/macos-testing.md §3, on bca7b8d:

    cmake -S . -B build -DCMAKE_BUILD_TYPE=Release -DBUI_BUILD_EXAMPLES=ON \
          -DPython3_EXECUTABLE="$PY312"
    cmake --build build --parallel
    ctest --test-dir build --output-on-failure
    -- BUI: building buipy Python bindings for Python 3.12.13
    -- Configuring done (3.2s)
    
    [100%] Built target buipy
    
    100% tests passed out of 25
    Total Test time (real) = 42.83 sec
    The following tests did not run:
        4 - bui_ime_win32_test (Skipped)
    

    Configure took 3.2 s, the build produced 8 -Wunused-variable / -Wunused-function warnings in buiimgui_gen.inc and no errors, and buipy.cpython-312-darwin.so links. bui_ime_win32_test skipping on macOS is expected.

    The issue #6 toolchain trap does not reproduce here. This machine is on Xcode 21 / SDK 26.5, newer than the AppleClang 17 vs MacOSX27.0.sdk mismatch described there, and no xcode-select --switch was needed. Worth noting in the guide that the trap is tied to older Command Line Tools rather than to macOS version alone.

    Python came from uv (cpython-3.12.13-macos-x86_64-none) rather than python.org, and its sysconfig include/lib paths were picked up without extra flags — that path could be added to the prerequisites table.

    2. The size / is_open inconsistency in this report is not a one-off

    I initially filed the attribute-vs-method mismatch as a single case (win.size is a tuple, win.is_open must be called). Enumerating both classes shows it is the rule rather than the exception — no way to tell without probing each name:

    KitContext — 30 callables, 5 plain attributes

    non-method:
      cursor     int        0
      focus      NoneType   None
      hover      NoneType   None
      modal      bool       False
      tooltip    bool       False
    

    press, release, motion, wheel, key, key_release, clipboard_get, clipboard_set, focus_node, set_pointer, open_menu, open_pie, popup, undo, redo, undo_depth, render, … are all methods.

    So ctx.cursor() raises TypeError: 'int' object is not callable, ctx.tooltip() raises TypeError: 'bool' object is not callable, while ctx.focus_node() and ctx.set_pointer() must be called. cursor and focus read as state, but focus_node / set_pointer read as actions, so the naming does not give the split away either.

    KitWindow — 11 callables, 5 plain attributes

    non-method:                          method:
      frames    int      0                 after, after_cancel, close, is_open,
      gpu       bool     False             pixel, render_now, set_size,
      hwnd      int      140629588869088   set_title, show, wm, wm_get
      on_close  NoneType None
      size      tuple    (400, 300)
    

    Here is_open is a method (→ True) but on_close is an attribute, and gpu / frames / size are attributes — those four read consistently as state, is_open does not.

    Why it matters beyond cosmetics: the failure mode is silent in one direction. if win.is_open: is always true (a bound method), so a loop written that way never exits, and if ctx.tooltip: is always true for the same reason. The opposite direction throws immediately. When scripting a UI, the always-true case is the one that wastes an afternoon.

    Two possible fixes, either is fine: make everything a method, or expose the state as attributes and keep actions as methods with an action-shaped name (set_*, open_*, toggle_*). A help()-visible note per class would also do. I have not looked at whether this is deliberate for C-extension performance reasons — if it is, a one-line table in the docs would be enough.

    What still is not tested

    §5's checklist (15 items, not 17 — the 17 was a ctest count at an earlier commit) is still untouched by hand. But the synthetic-input surface is much wider than I expected, which is good news for automation:

    ctx.press / release / motion / wheel / key / key_release
    ctx.clipboard_set / clipboard_get        # verified: "héllo 中文" round-trips intact
    ctx.hover / cursor / focus / focus_node / set_pointer
    ctx.tooltip / menu_rows / open_menu / open_pie / popup
    ctx.undo / redo / undo_depth

    A quick scripted probe showed motion, press, release, wheel, key and undo_depth all return sanely against a live KitContext. By my reading that makes roughly 10 of the 15 checklist items scriptable, 2 partly (resize, color picker), and 3 genuinely manual (Retina, multiple monitors, trackpad scrolling). tests/ime_test.c driving composition events synthetically is the strongest example of why — "no real IME is needed" is a design choice the other 15 items could follow.

    Happy to script the 10 scriptable ones and post the results if that is useful.

  2. ppmpreetham commented on Nov 7, 2026

    @ppmpreetham
    Owner

    Looking into this!

  3. ppmpreetham commented on Nov 7, 2026

    @ppmpreetham
    Owner

    Please check into that, I'm glad most of it is working.

    Just to be sure about performance, could you please perf check on macOS, something similar to bindings/rust/bench?

  4. added
    bug
    on Nov 10, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    bug

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions