Post

Replies

Boosts

Views

Activity

iOS App continually crashing for out of memory errors, anyone got any advice?
I have a hybrid iOS app that continually is crashing, I have posted a crash report for this issue before. It appears to be happening when it is trying to save data to storage, it is taking all the data and attempting to convert a large object to a JSON string with the built in javascript Stringify method. Is there anything that sticks out to anyone? Original app name is redacted. Crash_Report.txt
1
0
654
Oct ’23
Reason for Crash
Can anyone please give me a little more insight on what is causing this application to crash, the app is a hybrid app. It is running on Node 8, Ionic v3, Angular v4. It is being reported that the app is crashing when data is loaded from storage, modified, and then saved to storage again. Here are is the crash report. Anything stick out to anyone? `OS Version: iPhone OS 16.5 (20F66) Exception Type: EXC_BREAKPOINT (SIGTRAP) Exception Codes: 0x0000000000000001, 0x000000019e72a9f8 Termination Reason: SIGNAL 5 Trace/BPT trap: 5 Terminating Process: exc handler [4010] Triggered by Thread: 0 Thread 0 name: Dispatch queue: com.apple.main-thread Thread 0 Crashed: 0 JavaScriptCore 0x19e72a9f8 WTFCrashWithInfo(int, char const*, char const*, int) + 20 1 JavaScriptCore 0x19e775ae4 ***::StringBuilder::reifyString() const + 580 2 JavaScriptCore 0x19f6e6064 JSC::Stringifier::stringify(JSC::JSGlobalObject&, JSC::JSValue, JSC::JSValue, JSC::JSValue) + 1312 3 JavaScriptCore 0x19f719080 JSC::jsonProtoFuncStringify(JSC::JSGlobalObject*, JSC::CallFrame*) + 500 4 JavaScriptCore 0x19eb04e50 llint_entry + 159968 5 JavaScriptCore 0x19eb01f84 llint_entry + 147988 6 JavaScriptCore 0x19eb01f84 llint_entry + 147988 7 JavaScriptCore 0x19eb01f84 llint_entry + 147988 8 JavaScriptCore 0x19eb01f84 llint_entry + 147988 9 JavaScriptCore 0x19eb01f84 llint_entry + 147988 10 JavaScriptCore 0x19eb01ef4 llint_entry + 147844 11 JavaScriptCore 0x19eb01ef4 llint_entry + 147844 12 JavaScriptCore 0x19eb01ef4 llint_entry + 147844 13 JavaScriptCore 0x19eb01ef4 llint_entry + 147844 14 JavaScriptCore 0x19eb01f84 llint_entry + 147988 15 JavaScriptCore 0x19eaddacc vmEntryToJavaScript + 256 16 JavaScriptCore 0x19f2e8210 JSC::Interpreter::executeCall(JSC::JSGlobalObject*, JSC::JSObject*, JSC::CallData const&, JSC::JSValue, JSC::ArgList const&) + 1056 17 JavaScriptCore 0x19f5aa3ac JSC::profiledCall(JSC::JSGlobalObject*, JSC::ProfilingReason, JSC::JSValue, JSC::CallData const&, JSC::JSValue, JSC::ArgList const&, ***::NakedPtr<JSC::Exception>&) + 100 18 WebCore 0x19c6c251c WebCore::JSEventListener::handleEvent(WebCore::ScriptExecutionContext&, WebCore::Event&) + 1040 19 WebCore 0x19ca3cfa0 WebCore::EventTarget::innerInvokeEventListeners(WebCore::Event&, ***::Vector<***::RefPtr<WebCore::RegisteredEventListener, ***::RawPtrTraits<WebCore::RegisteredEventListener>, ***::DefaultRefDerefTraits<WebCore::RegisteredEventListener>>, 1ul, ***::CrashOnOverflow, 2ul, ***::FastMalloc>, WebCore::EventTarget::EventInvokePhase) + 296 20 WebCore 0x19ca36298 WebCore::dispatchEventInDOM(WebCore::Event&, WebCore::EventPath const&) + 2968 21 WebCore 0x19ca34414 WebCore::EventDispatcher::dispatchEvent(WebCore::Node&, WebCore::Event&) + 5012 22 WebCore 0x19bbcc1b4 WebCore::jsEventTargetPrototypeFunction_dispatchEvent(JSC::JSGlobalObject*, JSC::CallFrame*) + 352 23 JavaScriptCore 0x19eb04e50 llint_entry + 159968 24 JavaScriptCore 0x19eb01f84 llint_entry + 147988 25 JavaScriptCore 0x19eb01f84 llint_entry + 147988 26 JavaScriptCore 0x19eaddacc vmEntryToJavaScript + 256 27 JavaScriptCore 0x19f5a9f18 JSC::call(JSC::JSGlobalObject*, JSC::JSValue, JSC::CallData const&, JSC::JSValue, JSC::ArgList const&) + 1252 28 JavaScriptCore 0x19f65ea64 JSC::boundThisNoArgsFunctionCall(JSC::JSGlobalObject*, JSC::CallFrame*) + 748 29 JavaScriptCore 0x19eb04e50 llint_entry + 159968 30 JavaScriptCore 0x19eb01f84 llint_entry + 147988 31 JavaScriptCore 0x19eaddacc vmEntryToJavaScript + 256 32 JavaScriptCore 0x19f5a9f18 JSC::call(JSC::JSGlobalObject*, JSC::JSValue, JSC::CallData const&, JSC::JSValue, JSC::ArgList const&) + 1252 33 JavaScriptCore 0x19f65ea64 JSC::boundThisNoArgsFunctionCall(JSC::JSGlobalObject*, JSC::CallFrame*) + 748 34 JavaScriptCore 0x19eaddc74 vmEntryToNative + 272 35 JavaScriptCore 0x19f2e8298 JSC::Interpreter::executeCall(JSC::JSGlobalObject*, JSC::JSObject*, JSC::CallData const&, JSC::JSValue, JSC::ArgList const&) + 1192 36 JavaScriptCore 0x19f5aa3ac JSC::profiledCall(JSC::JSGlobalObject*, JSC::ProfilingReason, JSC::JSValue, JSC::CallData const&, JSC::JSValue, JSC::ArgList const&, ***::NakedPtr<JSC::Exception>&) + 100 37 WebCore 0x19c6c251c WebCore::JSEventListener::handleEvent(WebCore::ScriptExecutionContext&, WebCore::Event&) + 1040 38 WebCore 0x19ca3cfa0 WebCore::EventTarget::innerInvokeEventListeners(WebCore::Event&, ***::Vector<***::RefPtr<WebCore::RegisteredEventListener, ***::RawPtrTraits<WebCore::RegisteredEventListener>, ***::DefaultRefDerefTraits<WebCore::RegisteredEventListener>>, 1ul, ***::CrashOnOverflow, 2ul, ***::FastMalloc>, WebCore::EventTarget::EventInvokePhase) + 296 39 WebCore 0x19ca36298 WebCore::dispatchEventInDOM(WebCore::Event&, WebCore::EventPath const&) + 2968 40 WebCore 0x19ca34414 WebCore::EventDispatcher::dispatchEvent(WebCore::Node&, WebCore::Event&) + 5012 41 WebCore 0x19bf155dc WebCore::EventHandler::dispatchTouchEvent(WebCore::PlatformTouchEvent const&, ***::AtomString const&, ***::HashMap<***::Ref<WebCore::EventTarget, ***::RawPtrTraits<WebCore::EventTarget>>, std::__1::unique_ptr<***::Vector<***::RefPtr<WebCore::Touch, ***::RawPtrTraits<WebCore::Touch>, ***::DefaultRefDerefTraits<WebCore::Touch>>, 0ul, ***::CrashOnOverflow, 16ul, ***::FastMalloc>, std::__1::default_delete<***::Vector<***::RefPtr<WebCore::Touch, ***::RawPtrTraits<WebCore::Touch>, ***::DefaultRefDerefTraits<WebCore::Touch>>, 0ul, ***::CrashOnOverflow, 16ul, ***::FastMalloc>>>, ***::DefaultHash<***::Ref<WebCore::EventTarget, ***::RawPtrTraits<WebCore::EventTarget>>>, ***::HashTraits<***::Ref<WebCore::EventTarget, ***::RawPtrTraits<WebCore::EventTarget>>>, ***::HashTraits<std::__1::unique_ptr<***::Vector<***::RefPtr<WebCore::Touch, ***::RawPtrTraits<WebCore::Touch>, ***::DefaultRefDerefTraits<WebCore::Touch>>, 0ul, ***::CrashOnOverflow,`
4
0
945
Jun ’23