Files
vphone-cli/sources/vphone-cli
Luka 23cf4eadbc Fix: macOS ImageIO SIGBUS crash fixes (#205)
* fix: macOS 26.3 ImageIO SIGBUS crash fixes

All crashes share the same root cause: a corrupt function pointer in
macOS 26.3's ImageIO PNG decoder (EXC_BAD_ACCESS SIGBUS at 0x0bad4007).

Fixes:
- Replace emoji and non-ASCII characters in UI strings that trigger
  the broken PNG decoder via AppKit's text rendering pipeline
- Replace all NSAlert usage with NSPanel to avoid the crash when
  NSAlert loads a NIB containing an NSImageView that triggers
  IconServices -> ImageIO -> PNGReadPlugin
- Replace requireConnection() NSAlert in VPhoneKeyHelper with a print
  statement to prevent crash on home gesture before vphoned connects
- Switch screenshot output format from PNG to JPEG to avoid the crash
  in CGImageDestinationFinalize -> PNGWritePlugin

* fix: additional macOS 26.3 ImageIO SIGBUS crash fixes

- Fix copyScreenshotToPasteboard crash by writing JPEG data directly
  to pasteboard instead of using NSImage writeObjects which internally
  triggers the broken TIFF encoder
- Replace requireConnection() print statement with NSPanel to properly
  notify user when key injection is attempted before VM connects

* fix: additional macOS 26.3 ImageIO SIGBUS crash fixes

- Fix copyScreenshotToPasteboard crash by writing JPEG data directly
  to pasteboard instead of using NSImage writeObjects which internally
  triggers the broken TIFF encoder
- Replace requireConnection() print statement with NSPanel to properly
  notify user when key injection is attempted before VM connects
2026-03-15 01:38:40 +09:00
..