Commit c3d48ef
macos: fix Mach rendezvous by injecting CFBundleIdentifier + CFProcessPath
CEF 130+ forms the MachPortRendezvousServer bootstrap service name as
BaseBundleID() + ".MachPortRendezvousServer." + pid
When the process has no app bundle (bare Python script), BaseBundleID()
returns "" and the service name starts with "." — an invalid form that
bootstrap_register rejects, causing all renderer subprocesses to crash
at startup with "Unknown service name" (1102).
Fix 1 (util_mac.mm): In MacInitialize() — which runs before
CefInitialize() — inject CFBundleIdentifier="org.cefpython" into the
main bundle's info dictionary when none exists. This gives BaseBundleID()
a valid reverse-DNS prefix so the rendezvous server can register.
Fix 2 (ci-macos.yml): Also create a minimal fake app bundle and set
CFProcessPath before launching Python, so CFBundleGetMainBundle() picks up
the bundle identifier at CoreFoundation init time (belt-and-suspenders for
the CI runner's early initialization order).
Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>1 parent 30b4a71 commit c3d48ef
2 files changed
Lines changed: 51 additions & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
121 | 121 | | |
122 | 122 | | |
123 | 123 | | |
124 | | - | |
| 124 | + | |
| 125 | + | |
| 126 | + | |
| 127 | + | |
| 128 | + | |
| 129 | + | |
| 130 | + | |
| 131 | + | |
| 132 | + | |
| 133 | + | |
| 134 | + | |
| 135 | + | |
| 136 | + | |
| 137 | + | |
| 138 | + | |
| 139 | + | |
| 140 | + | |
| 141 | + | |
| 142 | + | |
| 143 | + | |
| 144 | + | |
| 145 | + | |
| 146 | + | |
| 147 | + | |
| 148 | + | |
| 149 | + | |
| 150 | + | |
125 | 151 | | |
126 | 152 | | |
127 | 153 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
77 | 77 | | |
78 | 78 | | |
79 | 79 | | |
| 80 | + | |
| 81 | + | |
| 82 | + | |
| 83 | + | |
| 84 | + | |
| 85 | + | |
| 86 | + | |
| 87 | + | |
| 88 | + | |
| 89 | + | |
| 90 | + | |
| 91 | + | |
| 92 | + | |
| 93 | + | |
| 94 | + | |
| 95 | + | |
| 96 | + | |
| 97 | + | |
| 98 | + | |
| 99 | + | |
| 100 | + | |
| 101 | + | |
| 102 | + | |
| 103 | + | |
80 | 104 | | |
81 | 105 | | |
82 | 106 | | |
| |||
0 commit comments