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,` 

Anything stick out to anyone?

Can you post a full Apple crash report for this? See Posting a Crash Report for advice on how to do that.

Share and Enjoy

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

@eskimo here is the full crash report with redacted app name, etc. Thank you

@eskimo thinking it is a JSON.Stringify() call based on the report but not sure if it my code or the framework's code.

Hmmm, that crash report got munged somewhere along the way. Consider line 31, which should be:

0   libsystem_kernel.dylib        	       0x1e29f8c84 mach_msg2_trap + 8

But something inserted hard line breaks [1], so I got:

0   libsystem_kernel.dylib        	       0x1e29f8c84 mach_msg2_trap 
+ 8

Can you check whether these hard line breaks are in the original crash report? Or perhaps your redaction introduced them?

Share and Enjoy

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

[1] Normally my first suspect would be DevForums itself, but I ran a quick test and DevForums seems to be doing the right thing here (for once :-).

Reason for Crash
 
 
Q