coco
06.Май.2026 11:32:36
1
Запишу этот баг и временный обходной путь, чтобы потом было проще найти.
Проблема: AltTab 10.12.0 на macOS 26.4.1 (25E253) / Apple Silicon, если в системе включён только источник ввода «Ввод WeChat (WeType)» (пиньинь), при запуске сразу завершается: нет ни окна настроек, ни значка в строке меню. macOS при этом генерирует crash report для AltTab.
Уже отправил(а) апстриму GitHub issue:
已打开 11:29AM - 06 May 26 UTC
**Describe the bug**
AltTab 10.12.0 crashes immediately on launch when the only… enabled keyboard input source is WeType Pinyin (`com.tencent.inputmethod.wetype.pinyin`). There is no settings window or menu bar icon; launching appears to do nothing, but macOS writes an `AltTab-*.ips` crash report.
Enabling the built-in U.S. keyboard layout (`com.apple.keylayout.US`) and selecting it makes AltTab launch successfully again. This looks related to shortcut/key equivalent initialization in ShortcutRecorder when no Apple ASCII-capable keyboard layout is enabled.
**Screenshots / video**
No screenshot: the app exits before any UI appears.
Relevant crash stack excerpt:
```text
Exception Type: EXC_BAD_ACCESS (SIGSEGV)
Exception Subtype: KERN_INVALID_ADDRESS at 0x0000000000000000
Faulting thread stack:
__CF_IS_OBJC
CFDataGetBytePtr
-[_SRKeyCodeTranslator translateKeyCode:implicitModifierFlags:explicitModifierFlags:usingCache:]
-[_SRKeyCodeASCIITranslator keyCodeForTranslation:]
__60-[SRASCIILiteralKeyCodeTransformer reverseTransformedValue:]_block_invoke
-[SRASCIILiteralKeyCodeTransformer reverseTransformedValue:]
+[SRShortcut shortcutWithKeyEquivalent:]
<AltTab frames>
```
**Steps to reproduce the bug**
1. On macOS, have WeType/微信输入法 installed.
2. Leave WeType Pinyin as the only enabled keyboard input source:
```text
AppleEnabledInputSources = (
{
"Bundle ID" = "com.tencent.inputmethod.wetype";
"Input Mode" = "com.tencent.inputmethod.wetype.pinyin";
InputSourceKind = "Input Mode";
},
{
"Bundle ID" = "com.apple.CharacterPaletteIM";
InputSourceKind = "Non Keyboard Input Method";
}
)
```
3. Launch AltTab 10.12.0.
4. AltTab exits immediately and macOS creates an `AltTab-*.ips` crash report.
5. Enable/select the built-in U.S. keyboard layout (`com.apple.keylayout.US`).
6. Launch AltTab again. It starts normally.
**Expected behavior**
AltTab should not crash if the current/enabled input source is an IME. If it needs an ASCII-capable keyboard layout to initialize default shortcuts, it should fall back safely or show a recoverable error.
**Your environment**
* AltTab version: 10.12.0
* macOS version: 26.4.1 (25E253)
* Architecture: Apple Silicon / arm64
* Input method: WeType / 微信输入法 Pinyin (`com.tencent.inputmethod.wetype.pinyin`)
* Workaround confirmed: enabling/selecting `com.apple.keylayout.US` lets AltTab launch
Ключевая зацепка: стек падения попадает на путь разбора горячих клавиш в ShortcutRecorder:
EXC_BAD_ACCESS / SIGSEGV
CFDataGetBytePtr
-[_SRKeyCodeTranslator translateKeyCode:implicitModifierFlags:explicitModifierFlags:usingCache:]
-[_SRKeyCodeASCIITranslator keyCodeForTranslation:]
+[SRShortcut shortcutWithKeyEquivalent:]
На тот момент включённые источники ввода были примерно такие:
com.tencent.inputmethod.wetype.pinyin
com.apple.CharacterPaletteIM
Временное решение: включить и переключиться на системную раскладку клавиатуры U.S. (com.apple.keylayout.US ) — после этого AltTab запускается нормально. Затем можно продолжать пользоваться китайским методом ввода.
Также отправил(а) то же резюме по почте на адрес поддержки AltTab.