crash logs indicate resource shortage...

According to AppStoreConnect, one of my apps is benchmarking above the 75% percentile for crashes - at 1.89%.

Using Xcode’s Organizer window, I’m able to see that 98% of them are identified as:

SwiftUI: EnvironmentObject.error() + 236

Cntl-Click / Show in Finder / Cntl-Click / Show Package Contents / Logs reveals the following:

Termination Reason: SIGNAL 5 Trace/BPT trap: 5
Terminating Process: exc handler [5454]

…and in some of the crash logs, I find this:

Kernel Triage:
VM - (arg = 0x0) pmap_enter retried due to resource shortage
VM - (arg = 0x0) pmap_enter retried due to resource shortage

What is the graceful way to handle a “resource shortage” when the crash logs show that the error occurs immediately upon app launch - ie, while still declaring .environmentObject()s upon the main ContentView()?

Any help?

VM - (arg = 0x0) pmap_enter retried due to resource shortage

This is almost certainly a red herring.

As to what’s actually going on, it’s hard to say without more context. Please post an example crash report, using the process described in Posting a Crash Report.

Share and Enjoy

Quinn “The Eskimo!” @ Developer Technical Support @ Apple
let myEmail = "eskimo" + "1" + "@" + "apple.com"

crash logs indicate resource shortage...
 
 
Q