Explore the core architecture of the operating system, including the kernel, memory management, and process scheduling.

Posts under Core OS subtopic

Post

Replies

Boosts

Views

Activity

Core OS Resources
General: DevForums subtopic: App & System Services > Core OS Core OS is a catch-all subtopic for low-level APIs that don’t fall into one of these more specific areas: Processes & Concurrency Resources Files and Storage Resources Networking Resources Network Extension Resources Security Resources Virtualization Resources Share and Enjoy — Quinn “The Eskimo!” @ Developer Technical Support @ Apple let myEmail = "eskimo" + "1" + "@" + "apple.com"
0
0
2.2k
Aug ’25
MacOS Beta not offered in Parallels VM
Greetings - First time poster. I am unable to install any beta software on a MacOS running in a Parallels VM. I am offered a Beta Update dialog box, but the only option from the pulldown is OFF. Any suggestions? My situation is as follows: Host Machine Hardware Studio M5 Ultra – 96GM RAM – 1TB Storage MacOS Host OS = 27.2.1 VM Software = Parallels 1.27.0 Both Public and Developer Beta Updates offered MacOS Virtual Machine MacOS VM with Parallels Tools OS = 27.2.1 Disk = 256GB total / 100GB free Processors = 12 Memory = 36GB Time Machine Backup Complete Beta Updates dialog box presented but no Beta Updates offered – Off only option presented After reboot the VM no longer offers Beta Update dialog box Both Host and VM are using the same Apple account
0
0
59
11h
APFS snapshots: documented guarantees for backing-storage identity and exclusion of non-root writers
We are developing MasterVault Clean Room, a governed data system whose validation gate evaluates recorded claims. Each successful validation must refer to one stable, identifiable input view, protected from capture through final consumption. We trust the macOS kernel and approved Apple storage stack, and are evaluating APFS snapshots as a candidate mechanism, but need to establish the backing-storage boundary before relying on them. 1. Binding the open file to its complete backing storage What supported interfaces let a process start with an open file descriptor on an APFS snapshot, identify its complete backing-storage chain, and reject disk-image-backed or other file-backed sources? We need to bind this evidence to the snapshot actually being read. A pathname, mount-point inspection, or independently obtained device identity is insufficient unless the supported semantics establish that binding and address changes during verification. If someone could identify the documented guarantees and limitations of any supported verification sequence, it would be emminently helpful. 2. Excluding non-root writable access through final consumption What supported mechanism or deployment configuration can establish that no non-root actor retains writable access to that backing storage, from capture through final consumption? This must account for: Writable disk-image files or other file-backed storage beneath the snapshot. Pre-existing writable raw/block-device handles. Aliases or alternate access paths to the same backing storage. Changes to the backing-storage configuration during that interval. A read-only snapshot mount and current ownership or device-permission checks alone do not establish this requirement: they do not demonstrate that previously acquired writable access is absent or has been revoked. What we need from the platform Please identify: The supported interfaces and their documented guarantees. Required privileges, supported macOS versions, and storage configurations. Deployment restrictions needed to establish and maintain the boundary. Any part of this requirement that cannot be established through supported public interfaces. We can restrict our supported deployment configurations where necessary, but those restrictions must have a documented basis. The general APFS overview explains features such as cloning, shared space, and sparse files. It does not answer these backing-storage identity and writer-exclusion questions. Likewise, describing snapshots as read-only does not by itself resolve whether their backing storage can be altered through another route. We are seeking platform semantics and supported mechanisms, not Apple certification of MasterVault. This information will determine our admission checks, supported configurations, and qualification tests. If the guarantee is unavailable—or cannot be substantiated for a particular configuration—our validation must remain unresolved, rather than report assurance we cannot support.
0
0
121
1d
Supported initial lock state and transition guarantees for a macOS GUI session
We are developing a local approval workflow with a Swift helper in the user's graphical login session. It must withhold approval unless the relevant GUI session is known to be unlocked, and invalidate that approval context on lock or session change. An unlock must not reactivate an old approval context. The read-only prototype can establish on-console/login status and whether a selected main display is awake. It deliberately keeps graphical unlock state unknown and stops. We do not treat an active session, an awake display, screen-sharing access, or successful authentication as proof of graphical unlock. We have read the Apple DTS discussion below. We understand that protected-data availability concerns the keybag and is not guaranteed to track every GUI screen-lock condition. We are not requesting internal APIs or using undocumented lock-state keys. Could you clarify the supported contract for this single requirement? Initial state and session binding: Is there a supported way for a newly started or restarted helper to obtain the current lock state of its specific GUI session, including Fast User Switching and Screen Sharing? If Endpoint Security is relevant, how should that GUI context be matched to its opaque graphical_session_id? We do not assume it equals an audit session ID. Transition coverage and recovery: Which supported notifications cover lock, unlock, and relevant session changes? Is there a documented way to combine an initial state with a subscription without missing a transition, and to detect or recover from dropped events or observer restarts? Delivery guarantees: Are ordering, completeness, and maximum delivery latency documented? Which limits apply during suspension, queue stalls, user switching, or Screen Sharing? If there is no bounded guarantee or supported current-state query, please state that explicitly so we can keep approval disabled rather than infer unlocked state from silence or a previous notification. Please identify applicable macOS versions, required entitlements/permissions, and known exclusions. If this requirement has no supported guarantee, what supported boundary would you recommend? We will not silently substitute protected-data readiness for graphical unlock. Related Apple DTS discussion: https://developer.apple.com/forums/thread/850327
0
0
71
1d
Is there a public API for hard physical-memory limits on macOS XPC services?
Can a third-party sandboxed macOS app use a supported public API or configuration to set a kernel-enforced, per-process physical-memory limit on two XPC services bundled with the app (one for PDF export and one for independent verification)? We need the limit in place before either service begins processing input, without root privileges or private APIs. If supported, what is the earliest macOS version (in particular, does it work on macOS 14.6.1)? What entitlements, provisioning, or signing settings are required for the containing app and each service? Is it supported for both Mac App Store and Developer ID distribution? Which metric does it enforce—resident memory, physical footprint, or another measure—and does the kernel reject allocations or terminate the service on excess? A virtual address-space limit such as RLIMIT_AS or memory-pressure monitoring is not the limit we are looking for. If no public mechanism is available for this deployment model, confirmation of that would also be helpful.
0
0
38
1d
Endpoint Security: pending AUTH_CREATE and new operations after the last client disappears
I am reviewing the supported Endpoint Security API contract for a design targeting macOS 27.2. I have not activated an Endpoint Security extension or reproduced this scenario. This is a question about documented API behavior. In “Build an Endpoint Security app” at WWDC20, Apple explains that Endpoint Security applies an implicit allow result when no clients are subscribed to an event’s AUTH variant. The current documentation for es_set_deadline_miss_mode describes handling missed authorization deadlines. It also documents denial when an AUTH message is dropped because the queue of a client configured with ES_DEADLINE_MISS_MODE_FAIL_CLOSED is full. Consider a single client created with es_new_client, subscribed to ES_EVENT_TYPE_AUTH_CREATE, and configured with ES_DEADLINE_MISS_MODE_FAIL_CLOSED. What supported behavior applies in these two situations? An AUTH_CREATE request has already been delivered and remains unanswered when the client crashes, disconnects, is destroyed with es_delete_client, or unsubscribes while remaining connected. How is that pending request resolved? Please distinguish these cases if their behavior differs. A new, otherwise permitted creation is attempted while no client is subscribed to AUTH_CREATE. Does the implicit-allow rule described at WWDC20 still apply on macOS 27.2, regardless of the previous client’s FAIL_CLOSED setting? We need to determine whether the design requires an independent control during the interval without a subscribed client. References to the supported contract, applicable versions, and conditions would be very helpful. References: https://developer.apple.com/videos/play/wwdc2020/10159/ https://developer.apple.com/documentation/endpointsecurity/es_set_deadline_miss_mode(_:_:) https://developer.apple.com/documentation/endpointsecurity/es_delete_client(_:) https://developer.apple.com/documentation/endpointsecurity/es_unsubscribe_all(_:)
0
0
116
4d
Virtualization.framework — stop completion and storage release
Hello Apple Developer Support, We are evaluating a macOS VM controller using VZVirtualMachine and would appreciate clarification: Does stop(completionHandler:) have any documented maximum completion time? What should a controller do if completion never arrives? After successful completion, are all backend writes finished and disk-image resources released, or is additional teardown required? What documented sequence establishes that the VM’s complete writable storage set—including disk images and macOS auxiliary storage—can safely be deleted, replaced or restored? Do these guarantees depend on caching/synchronization mode or macOS version? We understand that forced stop does not guarantee a clean guest shutdown or application consistency. Our question concerns host-side storage quiescence and resource release. Documentation references would be helpful. Thank you.
1
0
131
4d
Core Bluetooth centralManager(_:didDiscover:advertisementData:rssi:) not triggered in background after Control Center Bluetooth toggle off and followed by device restart or even the iOS update
The CBCentralManagerDelegate method centralManager(_:didDiscover:advertisementData:rssi:) fails to fire when the application is in the background following a specific sequence of user actions: disconnecting Bluetooth via the iOS Control Center and subsequently restarting the device. Even though the application fully implements both central and peripheral background configurations with the highest level of location authorization "Always Allow" (successfully monitoring nearby beacons) and restore identifier present for both the roles, iOS fails to deliver the discovery callback to the application after a device reboot if Bluetooth was previously decoupled via the Control Center. Feedback ticket created: FB25357552
0
0
63
4d
Can LiveCommunicationKit observe another app's incoming call while the observing app is suspended or terminated?
We are developing an iOS app intended for distribution on the App Store in Japan. Our goal is to alert users on Apple Watch while an incoming call from a third-party VoIP app, such as LINE or Rakuten Link, is still ringing. A critical requirement is detecting the beginning of the incoming call while the iPhone is locked and our app is not actively running in the foreground. Detection only after the call ends would not meet our requirement. We have reviewed these previous discussions: https://developer.apple.com/forums/thread/785105 https://developer.apple.com/forums/thread/849682 We understand that CXCallObserver does not wake a suspended application, and that LiveCommunicationKit's ConversationManager may offer similar call-observation functionality. We would appreciate clarification on two points: 1. Observation and background execution Can ConversationManager.conversations or ConversationManagerDelegate report the beginning of an incoming call belonging to another app while our observing app is suspended? Does the behavior differ when our app has been terminated by the system, rather than suspended? If these APIs cannot deliver events in those states, is there any supported public API that allows our app to be awakened or launched in response to another app's incoming call? 2. Scope and availability Does the call-observation functionality discussed in thread 785105 include calls belonging to other apps, and is it limited to periods when the observing app is executing? For a regular App Store app distributed in Japan, are any special entitlements, app categories, or regional conditions required to use this functionality? We are not attempting to initiate, answer, or manage another app's calls. Our requirement is limited to detecting the incoming ringing state in real time. Thank you for clarifying the supported behavior and limitations.
0
0
32
4d
Rosetta 2: wrong scalar SSE results after x87 fsqrt/fdiv in translated x86_64 code
I'm seeing translated x86_64 code compute wrong floating-point results under Rosetta 2, with no fault raised. Filed as FB25702862. Posting here in case others hit it, and to ask whether anyone can check other macOS versions. Environment: macOS 27.2.1 (26B131), Apple M4 Max, Apple clang 21.0.0. Reproduce // clang -arch x86_64 -O1 -o repro repro.c && ./repro #include <math.h> #include <stdio.h> __attribute__((noinline)) static double f(float a, double v) { double d = a; // cvtss2sd xmm, xmm double r = (double)sqrtl((long double)v); // x87: fld / fsqrt / fstp return r - d; // subsd reads d } int main(void) { volatile float a = 24.0f; volatile double v = 7.9466; printf("got %.17g\n", f(a, v)); printf("expected %.17g\n", sqrt(v) - 24.0); return 0; }Output under Rosetta: got 2.8189714436297506 expected -21.181028556370251Built with -arch arm64 it prints the expected value. -O1, -O2 and -Os all fail the same way. What triggers it Three things in one basic block: A scalar conversion with a register source, such as cvtss2sd xmm0, xmm0 (also cvtsd2ss, sqrtsd, sqrtss, roundsd), where the destination's upper bits are not known to be zero. An x87 fsqrt, fdiv, fprem, fprem1, fptan or fpatan. For fsqrt, operands that are zero, a power of two, negative, infinite or NaN are harmless. A scalar use of the converted register: addsd, subsd, mulsd, divsd, comisd, ucomisd, cvtsd2ss and similar. The smallest sequence I have: cvtss2sd xmm0, xmm0 movsd [rsp-8], xmm1 fld qword ptr [rsp-8] fsqrt fstp qword ptr [rsp-8] xorpd xmm1, xmm1 addsd xmm1, xmm0 ; sees a tiny denormal instead of the converted valueA store of xmm0 at the same point sees the correct value. Zeroing the destination before the conversion, or any jump or call between the three parts, avoids the problem. VEX-encoded forms behave the same. What seems to be happening In the translated code, the conversion result is held in a scratch vector register and read from there again after the x87 helper calls. The runtime's software square root and divide get their starting estimate from the hardware reciprocal-estimate instructions using that same register and don't restore it. The value the program then reads is exactly that estimate: for fsqrt of 7.9466 the low 32 bits are 0x3fb5a000, which is frsqrte(7.9466 / 16) with FPCR.AH set. Who is affected Code from Mono's x64 JIT, including Unity games running under Rosetta. It emits Math.Sqrt as x87 fsqrt and widens float call results with cvtss2sd reg, reg, so an expression like GetRange() < vector.magnitude can evaluate wrongly. That is how I found it. C and C++ that mix long double arithmetic with float/double conversions. For runtime-generated code the fault also depends on placement: if a 4 KB page boundary falls between the conversion and the use, the result is correct. A JIT-compiled program therefore fails on most runs but not all, which made this hard to pin down. Questions Can anyone reproduce this on an older macOS release? I could only test 27.2.1, so I don't know whether it is a regression. Is there a recommended way to avoid x87 helper calls in translated code, short of changing the code generator?
0
0
182
5d
Missing entitlement for API HomeKit error
During a test run of my HomeKit application in Xcode, after some time the app did run smoothly, I've started for one characteristic to get a pretty weird error in the readValueWithCompletionHandler: callback block: Error Domain=HMErrorDomain Code=80 "Missing entitlement for API." UserInfo={NSLocalizedFailureReason=Handler does not support background access, NSLocalizedDescription=Missing entitlement for API.} The application was launched just a couple of hours ago and the profile is still OK (though it will expire very inconveniently soon): 1044 ocs /tmp> security cms -D -i /Users/ocs/Library/Developer/Xcode/DerivedData/HomeObserverNA-hkazqlfbeuucvybpdzdgosyhhxnx/Build/Products/Debug-maccatalyst/HomeObserverNA.app/Contents/embedded.provisionprofile -o /tmp/ppp.plist 1045 ocs /tmp> plutil -extract ExpirationDate raw -o - /tmp/ppp.plist 2026-10-15T14:04:02Z 1046 ocs /tmp> Note please that immediately after launch (and for some time after that) the value was read in through the same code without any problem. Strangely enough, when I've switched the device through the Home application, I've got the update planned through enableNotification:completionHandler: all right. and the error stopped occurring, readValueWithCompletionHandler: from that moment on again works as presumed. How can I fix the problem, what's wrong in my app? Thanks!
26
0
1.2k
5d
AccessoryAccess for a Developer ID virtualization app: can it replace a root daemon for USB storage devices?
I build AVM, the Accessible Virtual Machine, a free, open source Mac app that runs Windows 11 for ARM in QEMU. It's built for blind people who use VoiceOver on the Mac and a screen reader in Windows. It's on GitHub at https://github.com/allisonfm85/accessible-virtual-machine. AVM ships with Developer ID, it's notarized, and it isn't sandboxed. QEMU runs as a child process, signed by the same team, and does the USB work itself through usbredir and libusb. I asked DTS about this (case 23107052), and Quinn pointed me to thread 851767. Today AVM captures USB devices from a root daemon registered with SMAppService. That works for braille displays and microphones. It fails for USB flash drives. Opening interface 0 returns 0xe00002c9. I measured why with a small IOUSBHost tool: Run with sudo from a terminal that has Removable Volumes: works. Same command with Removable Volumes turned off: fails with 0xe00002c9. Run as a launchd daemon in the system domain: fails. Full Disk Access makes no difference. So the block is the Removable Volumes permission, and a daemon has no responsible app to carry it. Granting it to AVM doesn't help the daemon. Thread 851767 shows a flash drive working through AccessoryAccess and IOUSBHostDevice, with interfaces opened through IOUSBLib. That looks like the path I should be on. My questions: Is the Claim USB Accessory capability (com.apple.developer.accessory-access.usb) available to Developer ID apps outside the Mac App Store? Does it require the App Sandbox? Does the user's AccessoryAccess consent cover a USB storage device's interfaces? In other words, would it get past the Removable Volumes check that stops my daemon? Can AVM pass createXPCRepresentation to QEMU, a non-sandboxed child process from the same team, and have QEMU open the accessory there? libusb opens interfaces through IOUSBLib. Given FB25324561, is it reasonable to ship on that path for now? If AccessoryAccess isn't available to Developer ID apps, I'd still welcome guidance on a supported way, such as com.apple.vm.device-access. I'm happy to share my sample project or logs. Thank you, Allison Meloy
2
0
169
5d
Updating an FSKit module to use the new Handler protocols
I have a file system extension that currently uses the various now-deprecated Operations protocols. I have a few questions about moving to the new Handler protocols. First, my module is going to maintain backwards compatibility with macOS Sequoia for the foreseeable future, but I would also like to be able to take advantage of new FSKit features for users who are on newer OS versions. What approach would you recommend: Having an FSVolume conform to both the various Operations and Handler protocols (e.g. both FSVolumeKernelOffloadedIOOperations and FSVolume.KernelOffloadedIOHandler with the latter tagged with @available) an immediate issue I see trying to do this is I run into the error Method 'activate(options:)' with Objective-C selector 'activateWithOptions:replyHandler:' conflicts with previous declaration with the same Objective-C selector when trying to conform to both FSVolume.Handler and FSVolume.Operations. Having two separate FSVolume implementations, one used for older OS versions with Operations support and one used on newer OS versions with Handler support? Keeping the use of pre-existing Operations protocols while only using the Handlers for newer features (e.g. things like SeekRegionHandler) Second, I see at https://developer.apple.com/documentation/fskit/fsvolumehandlerresult/requestedattributes that I must populate all requested attributes. Does this value only have a meaning if the initializer for the actual concrete result type has an initializer that takes in a FSItem.Attributes instance, or is there some way I’m supposed to populate those? (As a concrete example, FSCheckAccessResult has init(accessAllowed:) which doesn’t take in any attributes.)
6
0
981
1w
"IOSurface creation failed" drawing to CGContext
(more details on StackOverflow) I'm getting messages like the following, SOMETIMES, when I draw to a CGContext IOSurface creation failed: e00002c2 parentID: 00000000 properties: { IOSurfaceAddress = 5207703552; IOSurfaceAllocSize = 9461418; IOSurfaceCacheMode = 0; IOSurfaceName = CMPhoto; IOSurfacePixelFormat = 1246774599; } call to context.draw(): context.draw(photo.image, in: CGRect(x: 0, y: top, width: width, height: height), byTiling: false) The results are just fine, so the draw seems to be working. It also, most often, draws without producing this error, but it fails pretty often. I'm not sure where to begin looking to sort out what I might need to do differently to avoid this error message in the console. Complete code: import Foundation import SwiftUI func generateSpritesImage(thumbPhotos: [Photo], width: Int, filename: URL) -> [Int] { var indices = [Int]() let totalHeight = thumbPhotos.reduce(0) { $0 + $1.heightOfImage(ofWidth: width) } debugPrint("creating context") let context = CGContext(data: nil, width: width, height: totalHeight, bitsPerComponent: 8, bytesPerRow: 0, space: CGColorSpace(name: CGColorSpace.sRGB)!, bitmapInfo: CGImageAlphaInfo.noneSkipLast.rawValue)! var top = totalHeight for photo in thumbPhotos { let height = photo.heightOfImage(ofWidth: width) indices.append(top - totalHeight) top -= height debugPrint("drawing \(photo.filteredFileURL())") context.draw(photo.image, in: CGRect(x: 0, y: top, width: width, height: height), byTiling: false) } debugPrint("write jpeg") writeJpegFromContext(context: context, filename: filename) return indices } func writeJpegFromContext(context: CGContext, filename: URL) { let cgImage = context.makeImage()! let bitmapRep = NSBitmapImageRep(cgImage: cgImage) let jpegData = bitmapRep.representation(using: NSBitmapImageRep.FileType.jpeg, properties: [:])! try! jpegData.write(to: filename) } sample of output: "drawing 0002-_MG_8542.jpg" "drawing 0003-_MG_8545.jpg" "drawing 0004-_MG_8550.jpg" IOSurface creation failed: e00002c2 parentID: 00000000 properties: { IOSurfaceAddress = 5211357184; IOSurfaceAllocSize = 9983331; IOSurfaceCacheMode = 0; IOSurfaceName = CMPhoto; IOSurfacePixelFormat = 1246774599; } "drawing 0005-_MG_8555.jpg" IOSurface creation failed: e00002c2 parentID: 00000000 properties: { IOSurfaceAddress = 5221351424; IOSurfaceAllocSize = 10041215; IOSurfaceCacheMode = 0; IOSurfaceName = CMPhoto; IOSurfacePixelFormat = 1246774599; } "drawing 0006-_MG_8562.jpg" "drawing 0007-_MG_8563.jpg" IOSurface creation failed: e00002c2 parentID: 00000000 properties: { IOSurfaceAddress = 5376163840; IOSurfaceAllocSize = 10109756; IOSurfaceCacheMode = 0; IOSurfaceName = CMPhoto; IOSurfacePixelFormat = 1246774599; } "drawing 0008-_MG_8584.jpg" "drawing 0009-_MG_8618.jpg" IOSurface creation failed: e00002c2 parentID: 00000000 properties: { IOSurfaceAddress = 5394612224; IOSurfaceAllocSize = 8425564; IOSurfaceCacheMode = 0; IOSurfaceName = CMPhoto; IOSurfacePixelFormat = 1246774599; } "drawing 0010-_MG_8627.jpg" "drawing 0011-_MG_8649.jpg" "drawing 0012-_MG_8658.jpg" "drawing 0013-_MG_8665.jpg" "drawing 0014-_MG_8677.jpg" "drawing 0015-_MG_8675.jpg" "drawing 0016-_MG_8676.jpg" "drawing 0017-IMGP0873.jpg" "drawing 0018-_MG_8719.jpg" "drawing 0019-_MG_8743.jpg" ...
4
1
2.9k
1w
macOS: pre-established stop mechanism when a VM supervisor stops progressing
I am evaluating a bounded workload host using Virtualization.framework on Apple silicon. This is a question about supported architecture and API contracts, not a report of a reproduced bug. No particular macOS release has yet been qualified for this design; please identify the releases and prerequisites to which an answer applies. I have read the discussions about cleanup after the VM-owning application terminates: https://developer.apple.com/forums/thread/848542 https://developer.apple.com/forums/thread/850709 I understand that this cleanup is different from an externally observable, time-bounded teardown guarantee. I am not asking again for a replacement application's handle to a VM whose owner has already died. The unresolved case is different: A host application owns a VM, but its serial VM-control queue is no longer progressing. A separate supervisor is intended to initiate the fallback stop action against that application. An external stop trigger occurs. The supervisor is then lost or stops progressing before it enters the signal operation; the VM-owning application remains alive. Loss of the supervisor role does not necessarily mean that its process has exited, so a process-exit notification cannot be assumed. Complete host or kernel failure is not part of this scenario. Is there a supported public mechanism that can be established before workload preparation and retain authority to act on the same target application after this loss, without requiring another action by the supervisor or progress on the VM-control queue? For any such mechanism, I would particularly appreciate clarification of: How its authority is bound to the intended target during incomplete setup, including process creation that has begun but has not returned a usable target identity. Assuming an already-running watchdog leaves this setup boundary unanswered. Which actor performs the remaining action when the supervisor cannot, and what lifecycle, privilege and progress assumptions that actor requires. Whether any documented progress bound applies when a required operation does not return. The design requirement is completion of the whole prescribed stop/escalation attempt, including required failure-handling steps, within 10 seconds of the same first external trigger. Starting a timer or entering a signal call is not equivalent to completing that attempt. This is not a request for unconditional successful process or VM termination. A supported narrower mechanism, or an explicit statement that macOS provides no such contract for this case, would also be useful. I am looking for public interfaces and their documented limits, not private helper-process identities or kernel implementation details. Thank you.
8
0
144
1w
Kernel panic in EXDisplayPipeService.swift:472 (Exclaves) when the mic or camera turns on during Mac Virtual Display on Vision Pro
My MacBook Pro panics and restarts every time an app turns on the microphone or the camera while I am using the Mac through Mac Virtual Display on Apple Vision Pro. It has never happened on the Mac's own screen. Eight panics on November 20, eight out of eight attempts in this setup. Every report has the same string. Only the "actual" number and the type change: panic(cpu 7 caller 0xfffffe004ecb4010): [Exclaves] $JgEXDisplayPipeDriverT605XComponent.EXDisplayPipeComponent.ini:EXDisplayPipeDriverKitT605X/EXDisplayPipeService.swift:472: Fatal error: actual: 1100,expected: 3000,type: MIC,error: 0x2000000 at PC: 0x8021020, LR: 0x8020db8The eight panics: 09:00 type MIC actual 1908 09:06 type MIC actual 2015 09:12 type MIC actual 1114 09:18 type MIC actual 2801 10:04 type CAM actual 77 10:31 type CAM actual 1414 11:12 type CAM actual 2845 11:30 type MIC actual 1100Setup: MacBook Pro (Mac17,10), Apple M5 Max, 128 GB macOS 27.2.1 (26B8132), xnu-13432.41.4~62/RELEASE_ARM64_T6050 Apple Vision Pro, visionOS [VERSION] Lid open. With Mac Virtual Display running the built-in screen goes dark, and System Information lists a single display: "Sidecar Display", 6720 x 2880, AirPlay, virtual, main. The built-in panel is not in the list. Steps: Put on Vision Pro and start Mac Virtual Display. Open anything that uses the microphone or camera. The Mac panics and restarts within a few seconds. The app does not seem to matter. The first four panics came while joining Microsoft Teams calls, and the three CAM panics came when a camera preview started (one was just opening Teams Settings > Devices). The eighth came from a different app that only records audio through AVAudioEngine on the built-in microphone, with no call running on the Mac at all. My guess, and it is only a guess: this driver draws the secure microphone and camera indicator on the built-in panel, the check at line 472 wants the indicator shown for 3000 of something, and with the built-in panel off it cannot get there. I would expect the capture to be refused, or the indicator to move to the active display, before a panic. Filed as FB25658677 with all the panic reports attached. Two questions: Is anyone else seeing this panic string, with or without a Vision Pro? I could not find it anywhere. Does anyone know whether an external microphone (USB or AirPods) takes a different path that avoids this driver? I have not tested it, since a wrong guess costs a restart.
0
0
95
1w
Core OS Resources
General: DevForums subtopic: App & System Services > Core OS Core OS is a catch-all subtopic for low-level APIs that don’t fall into one of these more specific areas: Processes & Concurrency Resources Files and Storage Resources Networking Resources Network Extension Resources Security Resources Virtualization Resources Share and Enjoy — Quinn “The Eskimo!” @ Developer Technical Support @ Apple let myEmail = "eskimo" + "1" + "@" + "apple.com"
Replies
0
Boosts
0
Views
2.2k
Activity
Aug ’25
MacOS Beta not offered in Parallels VM
Greetings - First time poster. I am unable to install any beta software on a MacOS running in a Parallels VM. I am offered a Beta Update dialog box, but the only option from the pulldown is OFF. Any suggestions? My situation is as follows: Host Machine Hardware Studio M5 Ultra – 96GM RAM – 1TB Storage MacOS Host OS = 27.2.1 VM Software = Parallels 1.27.0 Both Public and Developer Beta Updates offered MacOS Virtual Machine MacOS VM with Parallels Tools OS = 27.2.1 Disk = 256GB total / 100GB free Processors = 12 Memory = 36GB Time Machine Backup Complete Beta Updates dialog box presented but no Beta Updates offered – Off only option presented After reboot the VM no longer offers Beta Update dialog box Both Host and VM are using the same Apple account
Replies
0
Boosts
0
Views
59
Activity
11h
APFS snapshots: documented guarantees for backing-storage identity and exclusion of non-root writers
We are developing MasterVault Clean Room, a governed data system whose validation gate evaluates recorded claims. Each successful validation must refer to one stable, identifiable input view, protected from capture through final consumption. We trust the macOS kernel and approved Apple storage stack, and are evaluating APFS snapshots as a candidate mechanism, but need to establish the backing-storage boundary before relying on them. 1. Binding the open file to its complete backing storage What supported interfaces let a process start with an open file descriptor on an APFS snapshot, identify its complete backing-storage chain, and reject disk-image-backed or other file-backed sources? We need to bind this evidence to the snapshot actually being read. A pathname, mount-point inspection, or independently obtained device identity is insufficient unless the supported semantics establish that binding and address changes during verification. If someone could identify the documented guarantees and limitations of any supported verification sequence, it would be emminently helpful. 2. Excluding non-root writable access through final consumption What supported mechanism or deployment configuration can establish that no non-root actor retains writable access to that backing storage, from capture through final consumption? This must account for: Writable disk-image files or other file-backed storage beneath the snapshot. Pre-existing writable raw/block-device handles. Aliases or alternate access paths to the same backing storage. Changes to the backing-storage configuration during that interval. A read-only snapshot mount and current ownership or device-permission checks alone do not establish this requirement: they do not demonstrate that previously acquired writable access is absent or has been revoked. What we need from the platform Please identify: The supported interfaces and their documented guarantees. Required privileges, supported macOS versions, and storage configurations. Deployment restrictions needed to establish and maintain the boundary. Any part of this requirement that cannot be established through supported public interfaces. We can restrict our supported deployment configurations where necessary, but those restrictions must have a documented basis. The general APFS overview explains features such as cloning, shared space, and sparse files. It does not answer these backing-storage identity and writer-exclusion questions. Likewise, describing snapshots as read-only does not by itself resolve whether their backing storage can be altered through another route. We are seeking platform semantics and supported mechanisms, not Apple certification of MasterVault. This information will determine our admission checks, supported configurations, and qualification tests. If the guarantee is unavailable—or cannot be substantiated for a particular configuration—our validation must remain unresolved, rather than report assurance we cannot support.
Replies
0
Boosts
0
Views
121
Activity
1d
Supported initial lock state and transition guarantees for a macOS GUI session
We are developing a local approval workflow with a Swift helper in the user's graphical login session. It must withhold approval unless the relevant GUI session is known to be unlocked, and invalidate that approval context on lock or session change. An unlock must not reactivate an old approval context. The read-only prototype can establish on-console/login status and whether a selected main display is awake. It deliberately keeps graphical unlock state unknown and stops. We do not treat an active session, an awake display, screen-sharing access, or successful authentication as proof of graphical unlock. We have read the Apple DTS discussion below. We understand that protected-data availability concerns the keybag and is not guaranteed to track every GUI screen-lock condition. We are not requesting internal APIs or using undocumented lock-state keys. Could you clarify the supported contract for this single requirement? Initial state and session binding: Is there a supported way for a newly started or restarted helper to obtain the current lock state of its specific GUI session, including Fast User Switching and Screen Sharing? If Endpoint Security is relevant, how should that GUI context be matched to its opaque graphical_session_id? We do not assume it equals an audit session ID. Transition coverage and recovery: Which supported notifications cover lock, unlock, and relevant session changes? Is there a documented way to combine an initial state with a subscription without missing a transition, and to detect or recover from dropped events or observer restarts? Delivery guarantees: Are ordering, completeness, and maximum delivery latency documented? Which limits apply during suspension, queue stalls, user switching, or Screen Sharing? If there is no bounded guarantee or supported current-state query, please state that explicitly so we can keep approval disabled rather than infer unlocked state from silence or a previous notification. Please identify applicable macOS versions, required entitlements/permissions, and known exclusions. If this requirement has no supported guarantee, what supported boundary would you recommend? We will not silently substitute protected-data readiness for graphical unlock. Related Apple DTS discussion: https://developer.apple.com/forums/thread/850327
Replies
0
Boosts
0
Views
71
Activity
1d
Is there a public API for hard physical-memory limits on macOS XPC services?
Can a third-party sandboxed macOS app use a supported public API or configuration to set a kernel-enforced, per-process physical-memory limit on two XPC services bundled with the app (one for PDF export and one for independent verification)? We need the limit in place before either service begins processing input, without root privileges or private APIs. If supported, what is the earliest macOS version (in particular, does it work on macOS 14.6.1)? What entitlements, provisioning, or signing settings are required for the containing app and each service? Is it supported for both Mac App Store and Developer ID distribution? Which metric does it enforce—resident memory, physical footprint, or another measure—and does the kernel reject allocations or terminate the service on excess? A virtual address-space limit such as RLIMIT_AS or memory-pressure monitoring is not the limit we are looking for. If no public mechanism is available for this deployment model, confirmation of that would also be helpful.
Replies
0
Boosts
0
Views
38
Activity
1d
Endpoint Security: pending AUTH_CREATE and new operations after the last client disappears
I am reviewing the supported Endpoint Security API contract for a design targeting macOS 27.2. I have not activated an Endpoint Security extension or reproduced this scenario. This is a question about documented API behavior. In “Build an Endpoint Security app” at WWDC20, Apple explains that Endpoint Security applies an implicit allow result when no clients are subscribed to an event’s AUTH variant. The current documentation for es_set_deadline_miss_mode describes handling missed authorization deadlines. It also documents denial when an AUTH message is dropped because the queue of a client configured with ES_DEADLINE_MISS_MODE_FAIL_CLOSED is full. Consider a single client created with es_new_client, subscribed to ES_EVENT_TYPE_AUTH_CREATE, and configured with ES_DEADLINE_MISS_MODE_FAIL_CLOSED. What supported behavior applies in these two situations? An AUTH_CREATE request has already been delivered and remains unanswered when the client crashes, disconnects, is destroyed with es_delete_client, or unsubscribes while remaining connected. How is that pending request resolved? Please distinguish these cases if their behavior differs. A new, otherwise permitted creation is attempted while no client is subscribed to AUTH_CREATE. Does the implicit-allow rule described at WWDC20 still apply on macOS 27.2, regardless of the previous client’s FAIL_CLOSED setting? We need to determine whether the design requires an independent control during the interval without a subscribed client. References to the supported contract, applicable versions, and conditions would be very helpful. References: https://developer.apple.com/videos/play/wwdc2020/10159/ https://developer.apple.com/documentation/endpointsecurity/es_set_deadline_miss_mode(_:_:) https://developer.apple.com/documentation/endpointsecurity/es_delete_client(_:) https://developer.apple.com/documentation/endpointsecurity/es_unsubscribe_all(_:)
Replies
0
Boosts
0
Views
116
Activity
4d
Virtualization.framework — stop completion and storage release
Hello Apple Developer Support, We are evaluating a macOS VM controller using VZVirtualMachine and would appreciate clarification: Does stop(completionHandler:) have any documented maximum completion time? What should a controller do if completion never arrives? After successful completion, are all backend writes finished and disk-image resources released, or is additional teardown required? What documented sequence establishes that the VM’s complete writable storage set—including disk images and macOS auxiliary storage—can safely be deleted, replaced or restored? Do these guarantees depend on caching/synchronization mode or macOS version? We understand that forced stop does not guarantee a clean guest shutdown or application consistency. Our question concerns host-side storage quiescence and resource release. Documentation references would be helpful. Thank you.
Replies
1
Boosts
0
Views
131
Activity
4d
Core Bluetooth centralManager(_:didDiscover:advertisementData:rssi:) not triggered in background after Control Center Bluetooth toggle off and followed by device restart or even the iOS update
The CBCentralManagerDelegate method centralManager(_:didDiscover:advertisementData:rssi:) fails to fire when the application is in the background following a specific sequence of user actions: disconnecting Bluetooth via the iOS Control Center and subsequently restarting the device. Even though the application fully implements both central and peripheral background configurations with the highest level of location authorization "Always Allow" (successfully monitoring nearby beacons) and restore identifier present for both the roles, iOS fails to deliver the discovery callback to the application after a device reboot if Bluetooth was previously decoupled via the Control Center. Feedback ticket created: FB25357552
Replies
0
Boosts
0
Views
63
Activity
4d
Can LiveCommunicationKit observe another app's incoming call while the observing app is suspended or terminated?
We are developing an iOS app intended for distribution on the App Store in Japan. Our goal is to alert users on Apple Watch while an incoming call from a third-party VoIP app, such as LINE or Rakuten Link, is still ringing. A critical requirement is detecting the beginning of the incoming call while the iPhone is locked and our app is not actively running in the foreground. Detection only after the call ends would not meet our requirement. We have reviewed these previous discussions: https://developer.apple.com/forums/thread/785105 https://developer.apple.com/forums/thread/849682 We understand that CXCallObserver does not wake a suspended application, and that LiveCommunicationKit's ConversationManager may offer similar call-observation functionality. We would appreciate clarification on two points: 1. Observation and background execution Can ConversationManager.conversations or ConversationManagerDelegate report the beginning of an incoming call belonging to another app while our observing app is suspended? Does the behavior differ when our app has been terminated by the system, rather than suspended? If these APIs cannot deliver events in those states, is there any supported public API that allows our app to be awakened or launched in response to another app's incoming call? 2. Scope and availability Does the call-observation functionality discussed in thread 785105 include calls belonging to other apps, and is it limited to periods when the observing app is executing? For a regular App Store app distributed in Japan, are any special entitlements, app categories, or regional conditions required to use this functionality? We are not attempting to initiate, answer, or manage another app's calls. Our requirement is limited to detecting the incoming ringing state in real time. Thank you for clarifying the supported behavior and limitations.
Replies
0
Boosts
0
Views
32
Activity
4d
Rosetta 2: wrong scalar SSE results after x87 fsqrt/fdiv in translated x86_64 code
I'm seeing translated x86_64 code compute wrong floating-point results under Rosetta 2, with no fault raised. Filed as FB25702862. Posting here in case others hit it, and to ask whether anyone can check other macOS versions. Environment: macOS 27.2.1 (26B131), Apple M4 Max, Apple clang 21.0.0. Reproduce // clang -arch x86_64 -O1 -o repro repro.c && ./repro #include <math.h> #include <stdio.h> __attribute__((noinline)) static double f(float a, double v) { double d = a; // cvtss2sd xmm, xmm double r = (double)sqrtl((long double)v); // x87: fld / fsqrt / fstp return r - d; // subsd reads d } int main(void) { volatile float a = 24.0f; volatile double v = 7.9466; printf("got %.17g\n", f(a, v)); printf("expected %.17g\n", sqrt(v) - 24.0); return 0; }Output under Rosetta: got 2.8189714436297506 expected -21.181028556370251Built with -arch arm64 it prints the expected value. -O1, -O2 and -Os all fail the same way. What triggers it Three things in one basic block: A scalar conversion with a register source, such as cvtss2sd xmm0, xmm0 (also cvtsd2ss, sqrtsd, sqrtss, roundsd), where the destination's upper bits are not known to be zero. An x87 fsqrt, fdiv, fprem, fprem1, fptan or fpatan. For fsqrt, operands that are zero, a power of two, negative, infinite or NaN are harmless. A scalar use of the converted register: addsd, subsd, mulsd, divsd, comisd, ucomisd, cvtsd2ss and similar. The smallest sequence I have: cvtss2sd xmm0, xmm0 movsd [rsp-8], xmm1 fld qword ptr [rsp-8] fsqrt fstp qword ptr [rsp-8] xorpd xmm1, xmm1 addsd xmm1, xmm0 ; sees a tiny denormal instead of the converted valueA store of xmm0 at the same point sees the correct value. Zeroing the destination before the conversion, or any jump or call between the three parts, avoids the problem. VEX-encoded forms behave the same. What seems to be happening In the translated code, the conversion result is held in a scratch vector register and read from there again after the x87 helper calls. The runtime's software square root and divide get their starting estimate from the hardware reciprocal-estimate instructions using that same register and don't restore it. The value the program then reads is exactly that estimate: for fsqrt of 7.9466 the low 32 bits are 0x3fb5a000, which is frsqrte(7.9466 / 16) with FPCR.AH set. Who is affected Code from Mono's x64 JIT, including Unity games running under Rosetta. It emits Math.Sqrt as x87 fsqrt and widens float call results with cvtss2sd reg, reg, so an expression like GetRange() < vector.magnitude can evaluate wrongly. That is how I found it. C and C++ that mix long double arithmetic with float/double conversions. For runtime-generated code the fault also depends on placement: if a 4 KB page boundary falls between the conversion and the use, the result is correct. A JIT-compiled program therefore fails on most runs but not all, which made this hard to pin down. Questions Can anyone reproduce this on an older macOS release? I could only test 27.2.1, so I don't know whether it is a regression. Is there a recommended way to avoid x87 helper calls in translated code, short of changing the code generator?
Replies
0
Boosts
0
Views
182
Activity
5d
Missing entitlement for API HomeKit error
During a test run of my HomeKit application in Xcode, after some time the app did run smoothly, I've started for one characteristic to get a pretty weird error in the readValueWithCompletionHandler: callback block: Error Domain=HMErrorDomain Code=80 "Missing entitlement for API." UserInfo={NSLocalizedFailureReason=Handler does not support background access, NSLocalizedDescription=Missing entitlement for API.} The application was launched just a couple of hours ago and the profile is still OK (though it will expire very inconveniently soon): 1044 ocs /tmp> security cms -D -i /Users/ocs/Library/Developer/Xcode/DerivedData/HomeObserverNA-hkazqlfbeuucvybpdzdgosyhhxnx/Build/Products/Debug-maccatalyst/HomeObserverNA.app/Contents/embedded.provisionprofile -o /tmp/ppp.plist 1045 ocs /tmp> plutil -extract ExpirationDate raw -o - /tmp/ppp.plist 2026-10-15T14:04:02Z 1046 ocs /tmp> Note please that immediately after launch (and for some time after that) the value was read in through the same code without any problem. Strangely enough, when I've switched the device through the Home application, I've got the update planned through enableNotification:completionHandler: all right. and the error stopped occurring, readValueWithCompletionHandler: from that moment on again works as presumed. How can I fix the problem, what's wrong in my app? Thanks!
Replies
26
Boosts
0
Views
1.2k
Activity
5d
AccessoryAccess for a Developer ID virtualization app: can it replace a root daemon for USB storage devices?
I build AVM, the Accessible Virtual Machine, a free, open source Mac app that runs Windows 11 for ARM in QEMU. It's built for blind people who use VoiceOver on the Mac and a screen reader in Windows. It's on GitHub at https://github.com/allisonfm85/accessible-virtual-machine. AVM ships with Developer ID, it's notarized, and it isn't sandboxed. QEMU runs as a child process, signed by the same team, and does the USB work itself through usbredir and libusb. I asked DTS about this (case 23107052), and Quinn pointed me to thread 851767. Today AVM captures USB devices from a root daemon registered with SMAppService. That works for braille displays and microphones. It fails for USB flash drives. Opening interface 0 returns 0xe00002c9. I measured why with a small IOUSBHost tool: Run with sudo from a terminal that has Removable Volumes: works. Same command with Removable Volumes turned off: fails with 0xe00002c9. Run as a launchd daemon in the system domain: fails. Full Disk Access makes no difference. So the block is the Removable Volumes permission, and a daemon has no responsible app to carry it. Granting it to AVM doesn't help the daemon. Thread 851767 shows a flash drive working through AccessoryAccess and IOUSBHostDevice, with interfaces opened through IOUSBLib. That looks like the path I should be on. My questions: Is the Claim USB Accessory capability (com.apple.developer.accessory-access.usb) available to Developer ID apps outside the Mac App Store? Does it require the App Sandbox? Does the user's AccessoryAccess consent cover a USB storage device's interfaces? In other words, would it get past the Removable Volumes check that stops my daemon? Can AVM pass createXPCRepresentation to QEMU, a non-sandboxed child process from the same team, and have QEMU open the accessory there? libusb opens interfaces through IOUSBLib. Given FB25324561, is it reasonable to ship on that path for now? If AccessoryAccess isn't available to Developer ID apps, I'd still welcome guidance on a supported way, such as com.apple.vm.device-access. I'm happy to share my sample project or logs. Thank you, Allison Meloy
Replies
2
Boosts
0
Views
169
Activity
5d
Updating an FSKit module to use the new Handler protocols
I have a file system extension that currently uses the various now-deprecated Operations protocols. I have a few questions about moving to the new Handler protocols. First, my module is going to maintain backwards compatibility with macOS Sequoia for the foreseeable future, but I would also like to be able to take advantage of new FSKit features for users who are on newer OS versions. What approach would you recommend: Having an FSVolume conform to both the various Operations and Handler protocols (e.g. both FSVolumeKernelOffloadedIOOperations and FSVolume.KernelOffloadedIOHandler with the latter tagged with @available) an immediate issue I see trying to do this is I run into the error Method 'activate(options:)' with Objective-C selector 'activateWithOptions:replyHandler:' conflicts with previous declaration with the same Objective-C selector when trying to conform to both FSVolume.Handler and FSVolume.Operations. Having two separate FSVolume implementations, one used for older OS versions with Operations support and one used on newer OS versions with Handler support? Keeping the use of pre-existing Operations protocols while only using the Handlers for newer features (e.g. things like SeekRegionHandler) Second, I see at https://developer.apple.com/documentation/fskit/fsvolumehandlerresult/requestedattributes that I must populate all requested attributes. Does this value only have a meaning if the initializer for the actual concrete result type has an initializer that takes in a FSItem.Attributes instance, or is there some way I’m supposed to populate those? (As a concrete example, FSCheckAccessResult has init(accessAllowed:) which doesn’t take in any attributes.)
Replies
6
Boosts
0
Views
981
Activity
1w
"IOSurface creation failed" drawing to CGContext
(more details on StackOverflow) I'm getting messages like the following, SOMETIMES, when I draw to a CGContext IOSurface creation failed: e00002c2 parentID: 00000000 properties: { IOSurfaceAddress = 5207703552; IOSurfaceAllocSize = 9461418; IOSurfaceCacheMode = 0; IOSurfaceName = CMPhoto; IOSurfacePixelFormat = 1246774599; } call to context.draw(): context.draw(photo.image, in: CGRect(x: 0, y: top, width: width, height: height), byTiling: false) The results are just fine, so the draw seems to be working. It also, most often, draws without producing this error, but it fails pretty often. I'm not sure where to begin looking to sort out what I might need to do differently to avoid this error message in the console. Complete code: import Foundation import SwiftUI func generateSpritesImage(thumbPhotos: [Photo], width: Int, filename: URL) -> [Int] { var indices = [Int]() let totalHeight = thumbPhotos.reduce(0) { $0 + $1.heightOfImage(ofWidth: width) } debugPrint("creating context") let context = CGContext(data: nil, width: width, height: totalHeight, bitsPerComponent: 8, bytesPerRow: 0, space: CGColorSpace(name: CGColorSpace.sRGB)!, bitmapInfo: CGImageAlphaInfo.noneSkipLast.rawValue)! var top = totalHeight for photo in thumbPhotos { let height = photo.heightOfImage(ofWidth: width) indices.append(top - totalHeight) top -= height debugPrint("drawing \(photo.filteredFileURL())") context.draw(photo.image, in: CGRect(x: 0, y: top, width: width, height: height), byTiling: false) } debugPrint("write jpeg") writeJpegFromContext(context: context, filename: filename) return indices } func writeJpegFromContext(context: CGContext, filename: URL) { let cgImage = context.makeImage()! let bitmapRep = NSBitmapImageRep(cgImage: cgImage) let jpegData = bitmapRep.representation(using: NSBitmapImageRep.FileType.jpeg, properties: [:])! try! jpegData.write(to: filename) } sample of output: "drawing 0002-_MG_8542.jpg" "drawing 0003-_MG_8545.jpg" "drawing 0004-_MG_8550.jpg" IOSurface creation failed: e00002c2 parentID: 00000000 properties: { IOSurfaceAddress = 5211357184; IOSurfaceAllocSize = 9983331; IOSurfaceCacheMode = 0; IOSurfaceName = CMPhoto; IOSurfacePixelFormat = 1246774599; } "drawing 0005-_MG_8555.jpg" IOSurface creation failed: e00002c2 parentID: 00000000 properties: { IOSurfaceAddress = 5221351424; IOSurfaceAllocSize = 10041215; IOSurfaceCacheMode = 0; IOSurfaceName = CMPhoto; IOSurfacePixelFormat = 1246774599; } "drawing 0006-_MG_8562.jpg" "drawing 0007-_MG_8563.jpg" IOSurface creation failed: e00002c2 parentID: 00000000 properties: { IOSurfaceAddress = 5376163840; IOSurfaceAllocSize = 10109756; IOSurfaceCacheMode = 0; IOSurfaceName = CMPhoto; IOSurfacePixelFormat = 1246774599; } "drawing 0008-_MG_8584.jpg" "drawing 0009-_MG_8618.jpg" IOSurface creation failed: e00002c2 parentID: 00000000 properties: { IOSurfaceAddress = 5394612224; IOSurfaceAllocSize = 8425564; IOSurfaceCacheMode = 0; IOSurfaceName = CMPhoto; IOSurfacePixelFormat = 1246774599; } "drawing 0010-_MG_8627.jpg" "drawing 0011-_MG_8649.jpg" "drawing 0012-_MG_8658.jpg" "drawing 0013-_MG_8665.jpg" "drawing 0014-_MG_8677.jpg" "drawing 0015-_MG_8675.jpg" "drawing 0016-_MG_8676.jpg" "drawing 0017-IMGP0873.jpg" "drawing 0018-_MG_8719.jpg" "drawing 0019-_MG_8743.jpg" ...
Replies
4
Boosts
1
Views
2.9k
Activity
1w
macOS: pre-established stop mechanism when a VM supervisor stops progressing
I am evaluating a bounded workload host using Virtualization.framework on Apple silicon. This is a question about supported architecture and API contracts, not a report of a reproduced bug. No particular macOS release has yet been qualified for this design; please identify the releases and prerequisites to which an answer applies. I have read the discussions about cleanup after the VM-owning application terminates: https://developer.apple.com/forums/thread/848542 https://developer.apple.com/forums/thread/850709 I understand that this cleanup is different from an externally observable, time-bounded teardown guarantee. I am not asking again for a replacement application's handle to a VM whose owner has already died. The unresolved case is different: A host application owns a VM, but its serial VM-control queue is no longer progressing. A separate supervisor is intended to initiate the fallback stop action against that application. An external stop trigger occurs. The supervisor is then lost or stops progressing before it enters the signal operation; the VM-owning application remains alive. Loss of the supervisor role does not necessarily mean that its process has exited, so a process-exit notification cannot be assumed. Complete host or kernel failure is not part of this scenario. Is there a supported public mechanism that can be established before workload preparation and retain authority to act on the same target application after this loss, without requiring another action by the supervisor or progress on the VM-control queue? For any such mechanism, I would particularly appreciate clarification of: How its authority is bound to the intended target during incomplete setup, including process creation that has begun but has not returned a usable target identity. Assuming an already-running watchdog leaves this setup boundary unanswered. Which actor performs the remaining action when the supervisor cannot, and what lifecycle, privilege and progress assumptions that actor requires. Whether any documented progress bound applies when a required operation does not return. The design requirement is completion of the whole prescribed stop/escalation attempt, including required failure-handling steps, within 10 seconds of the same first external trigger. Starting a timer or entering a signal call is not equivalent to completing that attempt. This is not a request for unconditional successful process or VM termination. A supported narrower mechanism, or an explicit statement that macOS provides no such contract for this case, would also be useful. I am looking for public interfaces and their documented limits, not private helper-process identities or kernel implementation details. Thank you.
Replies
8
Boosts
0
Views
144
Activity
1w
Kernel panic in EXDisplayPipeService.swift:472 (Exclaves) when the mic or camera turns on during Mac Virtual Display on Vision Pro
My MacBook Pro panics and restarts every time an app turns on the microphone or the camera while I am using the Mac through Mac Virtual Display on Apple Vision Pro. It has never happened on the Mac's own screen. Eight panics on November 20, eight out of eight attempts in this setup. Every report has the same string. Only the "actual" number and the type change: panic(cpu 7 caller 0xfffffe004ecb4010): [Exclaves] $JgEXDisplayPipeDriverT605XComponent.EXDisplayPipeComponent.ini:EXDisplayPipeDriverKitT605X/EXDisplayPipeService.swift:472: Fatal error: actual: 1100,expected: 3000,type: MIC,error: 0x2000000 at PC: 0x8021020, LR: 0x8020db8The eight panics: 09:00 type MIC actual 1908 09:06 type MIC actual 2015 09:12 type MIC actual 1114 09:18 type MIC actual 2801 10:04 type CAM actual 77 10:31 type CAM actual 1414 11:12 type CAM actual 2845 11:30 type MIC actual 1100Setup: MacBook Pro (Mac17,10), Apple M5 Max, 128 GB macOS 27.2.1 (26B8132), xnu-13432.41.4~62/RELEASE_ARM64_T6050 Apple Vision Pro, visionOS [VERSION] Lid open. With Mac Virtual Display running the built-in screen goes dark, and System Information lists a single display: "Sidecar Display", 6720 x 2880, AirPlay, virtual, main. The built-in panel is not in the list. Steps: Put on Vision Pro and start Mac Virtual Display. Open anything that uses the microphone or camera. The Mac panics and restarts within a few seconds. The app does not seem to matter. The first four panics came while joining Microsoft Teams calls, and the three CAM panics came when a camera preview started (one was just opening Teams Settings > Devices). The eighth came from a different app that only records audio through AVAudioEngine on the built-in microphone, with no call running on the Mac at all. My guess, and it is only a guess: this driver draws the secure microphone and camera indicator on the built-in panel, the check at line 472 wants the indicator shown for 3000 of something, and with the built-in panel off it cannot get there. I would expect the capture to be refused, or the indicator to move to the active display, before a panic. Filed as FB25658677 with all the panic reports attached. Two questions: Is anyone else seeing this panic string, with or without a Vision Pro? I could not find it anywhere. Does anyone know whether an external microphone (USB or AirPods) takes a different path that avoids this driver? I have not tested it, since a wrong guess costs a restart.
Replies
0
Boosts
0
Views
95
Activity
1w