Closed Bug 2048011 Opened 5 months ago Closed 5 months ago

[macOS 27] Crashes [@ __cxxabiv1::failed_throw | objc_exception_throw | -[__NSPlaceholderArray initWithObjects:count:] ]

Categories

(Core :: Audio/Video, defect)

ARM64
macOS
defect

Tracking

()

RESOLVED WORKSFORME

People

(Reporter: smichaud, Unassigned)

References

(Blocks 1 open bug)

Details

Crash Data

These only happen on macOS 27, whose first beta (build 26A5353q) was released a week ago (2026-06-08). They're already a Mac topcrasher.

They happen deep in system code, are almost certainly an Apple bug. Early betas of new macOS major releases are a bit flaky. Apple knows this, and will likely fix this bug soon. But since there are so many of them, we should open a bug to keep track of them.

Typical crash stack:

Crashing Thread (56)
Frame  Module  Signature  Source  Trust
0  XUL  MOZ_CrashSequence(void*, long)  mfbt/Assertions.h:266  inlined
0  XUL  CrashReporter::TerminateHandler()  toolkit/crashreporter/nsExceptionHandler.cpp:1821  context
1  libc++abi.dylib  std::__terminate(void (*)())   cfi
2  libc++abi.dylib  __cxxabiv1::failed_throw(__cxxabiv1::__cxa_exception*)   cfi
3  libc++abi.dylib  __cxa_throw   cfi
4  libobjc.A.dylib  objc_exception_throw   cfi
5  CoreFoundation  -[__NSPlaceholderArray initWithObjects:count:]   cfi
6  CoreFoundation  +[NSArray arrayWithObjects:count:]   cfi
7  MediaRemote  MRMediaRemotePlaybackQueueDataSourceContentItemChangedWithRequestForPlayer   cfi
8  MediaRemote  MRMediaRemoteSetNowPlayingInfoForPlayer   cfi
9  MediaPlayer  -[MPNowPlayingInfoCenter(NowPlayingInfo) _onQueue_pushNowPlayingInfoAndRetry:]   cfi
10  libdispatch.dylib  _dispatch_call_block_and_release   cfi
11  libdispatch.dylib  _dispatch_client_callout   cfi
12  libdispatch.dylib  _dispatch_lane_serial_drain   cfi
13  libdispatch.dylib  _dispatch_lane_invoke   cfi
14  libdispatch.dylib  _dispatch_root_queue_drain_deferred_wlh   cfi
15  libdispatch.dylib  _dispatch_workloop_worker_thread   cfi
16  libsystem_pthread.dylib  _pthread_wqthread   cfi
17  libsystem_pthread.dylib  start_wqthread   cfi

The following mac_crash_info appears in some of this bug's crash reports:

{
  "num_records": 1,
  "records": [
    {
      "abort_cause": null,
      "backtrace": null,
      "dialog_mode": null,
      "message": "To allow you to easily send and receive messages with your contacts, Messages will securely access sensors and your data such as your SMS data, contacts, and phone number. It may also access your call records if your device supports Dual SIM.",
      "message2": null,
      "module": "/System/Library/PrivateFrameworks/CoreUI.framework/Versions/A/CoreUI",
      "signature_string": null,
      "thread": null
    }
  ]
}
Severity: -- → S3

Looking at the assembly code for -[__NSPlaceholderArray initWithObjects:count:] in the CoreFoundation framework, the exception that gets thrown is an NSInvalidArgumentException with the message "*** %s: attempt to insert nil object from objects[%lu]".

Crash Signature: [@ __cxxabiv1::failed_throw | objc_exception_throw | -[__NSPlaceholderArray initWithObjects:count:] ]

(In reply to Steven Michaud [:smichaud] (Retired) from comment #2)

Looking at the assembly code for -[__NSPlaceholderArray initWithObjects:count:] in the CoreFoundation framework, the exception that gets thrown is an NSInvalidArgumentException with the message "*** %s: attempt to insert nil object from objects[%lu]".

Actually this is wrong. The "message" might be any of the following:

"*** %s: attempt to insert nil object from objects[%lu]"
"*** %s: pointer to objects array is NULL but length is %lu"
"*** %s: count (%lu) of objects array is ridiculous"

None of these is new with macOS 27. All three possible NSInvalidArgumentException messages also appear in the assembly code for this function in macOS 26.5.1 and macOS 15.7.7.

I can exercise some of the MediaRemote module's code (from the crash stacks) by running YouTube videos in Firefox's built-in Media Player. So I suppose this bug fits better under "Core : Audio/Video".

I still can't exercise the code that crashes. Someone please look at the crash reports for interesting URLs and/or comments. Not being a Mozilla employee, I don't have permission to do that myself.

Component: Widget: Cocoa → Audio/Video

There is nothing that jumps out from the URLs, with the majority being on about:newtab. There are very few comments, one pointing to this probably being a macOS 27 beta issue, one noting a crash after updating and one crash when clicking "x" to close another tab.

:jimm, could you consider increasing the severity of this top-crash bug?

For more information, please visit BugBot documentation.

Flags: needinfo?(jmathies)

Based on the topcrash criteria, the crash signature linked to this bug is not a topcrash signature anymore.

For more information, please visit BugBot documentation.

Keywords: topcrash

macOS 27 Beta 2 (build 26A5368g) was released on Monday (five days ago), and there haven't been any of these crashes reported in it. I think Apple must have fixed this bug.

Status: NEW → RESOLVED
Closed: 5 months ago
Resolution: --- → WORKSFORME
Flags: needinfo?(jmathies)
You need to log in before you can comment on or make changes to this bug.