<!--
{
  "documentType" : "article",
  "framework" : "Xcode",
  "identifier" : "/documentation/Xcode/EXC_RESOURCE",
  "metadataVersion" : "0.1.0",
  "role" : "article",
  "title" : "EXC_RESOURCE"
}
-->

# EXC_RESOURCE

The operating system stopped the process
because the process exceeded a limit on resource consumption,
like CPU time or memory.

## Discussion

If the `Exception Note` field contains `NON-FATAL CONDITION`,
this means the operating system generated a crash report
without actually terminating the process.
The `Exception Message` field describes the amount of resources consumed
over a specific time interval.

The crash report lists the specific resource in the `Exception Subtype` field:

- `CPU` and `CPU_FATAL`: A thread in the process used too much CPU over a short period
  of time.
- `MEMORY`: The process crossed a memory limit imposed by the system. This may be
  a precursor to termination for excess memory usage.
- `IO`: The process caused an excessive amount of disk writes over a short period
  of time.
- `WAKEUPS`: Threads in the process woke up too many times per second, which consumes
  battery life.

Excessive wake-ups can come from
calling thread-to-thread communication APIs more often than expected;
these APIs include
<doc://com.apple.documentation/documentation/ObjectiveC/NSObject-swift.class/perform(_:on:with:waitUntilDone:)>,
<doc://com.apple.documentation/documentation/Dispatch/DispatchQueue/async(execute:)>,
and <doc://com.apple.documentation/documentation/Dispatch/dispatch_async>.
Because the communication that triggers this exception is happening so frequently,
crash reports usually include multiple background threads with very similar backtraces
that indicate the origin of the thread communication.
See [Modernizing Grand Central Dispatch Usage](https://developer.apple.com/videos/play/wwdc2017/706/)
for how to manage concurrent workloads more efficiently.

---

Copyright &copy; 2026 Apple Inc. All rights reserved. | [Terms of Use](https://www.apple.com/legal/internet-services/terms/site.html) | [Privacy Policy](https://www.apple.com/privacy/privacy-policy)