pas_panic_on_out_of_memory_error crash on tvOS 15.4 and 15.4.1

Hi there,

I'm experiencing several crashes on JavaScriptCore pas_panic_on_out_of_memory_error, only on devices with tvOS 15.4 and 15.4.1. This happens with users using the app for several hours as well as 5 seconds after launching the app.

Devices: AppleTV6,2 and AppleTV5,3

Thread 14 —

JavaScriptCore              pas_panic_on_out_of_memory_error (JavaScriptCore)

JavaScriptCore              bmalloc_try_iso_allocate_impl_impl_slow (JavaScriptCore)

JavaScriptCore              bmalloc_heap_config_specialized_local_allocator_try_allocate_small_segregated_slow (JavaScriptCore)

JavaScriptCore              bmalloc_allocate_impl_casual_case (JavaScriptCore)

JavaScriptCore              ***::String::String(char16_t const*, unsigned int) (JavaScriptCore)

JavaScriptCore              JSC::LiteralParser<char16_t>::parsePrimitiveValue(JSC::VM&) (JavaScriptCore)

JavaScriptCore              JSC::LiteralParser<char16_t>::parse(JSC::ParserState) (JavaScriptCore)

JavaScriptCore              JSC::jsonProtoFuncParse(JSC::JSGlobalObject*, JSC::CallFrame*) (JavaScriptCore)

JavaScriptCore              llint_entry (JavaScriptCore)

JavaScriptCore              llint_entry (JavaScriptCore)

JavaScriptCore              llint_entry (JavaScriptCore)

JavaScriptCore              llint_entry (JavaScriptCore)

JavaScriptCore              vmEntryToJavaScript (JavaScriptCore)

JavaScriptCore              JSC::Interpreter::executeCall(JSC::JSGlobalObject*, JSC::JSObject*, JSC::CallData const&, JSC::JSValue, JSC::ArgList const&) (JavaScriptCore)

JavaScriptCore              JSC::boundThisNoArgsFunctionCall(JSC::JSGlobalObject*, JSC::CallFrame*) (JavaScriptCore)

JavaScriptCore              vmEntryToNative (JavaScriptCore)

JavaScriptCore              JSC::Interpreter::executeCall(JSC::JSGlobalObject*, JSC::JSObject*, JSC::CallData const&, JSC::JSValue, JSC::ArgList const&) (JavaScriptCore)

JavaScriptCore              JSC::profiledCall(JSC::JSGlobalObject*, JSC::ProfilingReason, JSC::JSValue, JSC::CallData const&, JSC::JSValue, JSC::ArgList const&) (JavaScriptCore)

JavaScriptCore              JSObjectCallAsFunction (JavaScriptCore)

JavaScriptCore              -[JSValue invokeMethod:withArguments:] (JavaScriptCore)

ITMLKit                     -[IKJSObject invokeMethod:withArguments:] (ITMLKit)

ITMLKit                     -[IKJSEventListenerObject invokeMethod:withArguments:thenDispatchEvent:extraInfo:] (ITMLKit)

ITMLKit                     __43-[IKJSXMLHTTPRequest setRequestReadyState:]_block_invoke (ITMLKit)

ITMLKit                     -[IKAppContext _doEvaluate:] (ITMLKit)

ITMLKit                     -[IKAppContext _evaluate:] (ITMLKit)

ITMLKit                     __41-[IKAppContext evaluate:completionBlock:]_block_invoke (ITMLKit)

ITMLKit                     -[IKAppContext _sourcePerform] (ITMLKit)

ITMLKit                     -[IKConcurrentEvaluator lockSchedulingForEvaluation:] (ITMLKit)

ITMLKit                     IKRunLoopSourcePerformCallBack (ITMLKit)

CoreFoundation              __CFRUNLOOP_IS_CALLING_OUT_TO_A_SOURCE0_PERFORM_FUNCTION__ (CoreFoundation)

CoreFoundation              __CFRunLoopDoSource0 (CoreFoundation)

CoreFoundation              __CFRunLoopDoSources0 (CoreFoundation)

CoreFoundation              __CFRunLoopRun (CoreFoundation)

CoreFoundation              CFRunLoopRunSpecific (CoreFoundation)

ITMLKit                     -[IKAppContext _jsThreadMain] (ITMLKit)

Foundation                  __NSThread__start__ (Foundation)

libsyste...ad.dylib         _pthread_start (libsystem_pthread.dylib)

libsyste...ad.dylib         thread_start (libsystem_pthread.dylib)

This issue seems very similar to this existing thread, although not sure its related

You are right that this does look similar. Two things:

  • Have you seen it on the 15.5 betas that we’re currently seeding?

  • Please post a full crash report. See Posting a Crash Report for details on how to do that.

Share and Enjoy

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

Am unable to validate if it still happens on tvOS 15.5 betas, since this crash still only happened in production with versions 15.4 and 15.4.1.

Unfortunately was unable to get a full symbolicated crash report from the analytics platform being used. For some reason, this same crash is not showing up in Xcode Organiser section. However, if there's a specific info you're looking for, please let me know, since I may still be able to get it.

pas_panic_on_out_of_memory_error crash on tvOS 15.4 and 15.4.1
 
 
Q