ios - webthread- java script core crash - ios

getting lots of crashes as below in ios11: any idea what could be reason behind it. its happening in ios11 only. webkit framework is included in project.
Crashed: WebThread
0 JavaScriptCore 0x18d513a2c bmalloc::Heap::allocateLarge(std::__1::lock_guard<bmalloc::StaticMutex>&, unsigned long, unsigned long) + 24
1 JavaScriptCore 0x18d513a20 bmalloc::Heap::allocateLarge(std::__1::lock_guard<bmalloc::StaticMutex>&, unsigned long, unsigned long) + 12
2 JavaScriptCore 0x18d5112a0 bmalloc::Allocator::allocateLarge(unsigned long) + 92
3 JavaScriptCore 0x18cb6bef4 WTF::fastMalloc(unsigned long) + 112
4 JavaScriptCore 0x18d11e6a8 JSC::Heap::addExecutable(JSC::ExecutableBase*) + 352
5 JavaScriptCore 0x18d10a288 JSC::FunctionExecutable::finishCreation(JSC::VM&) + 48
6 JavaScriptCore 0x18d44f7cc JSC::UnlinkedFunctionExecutable::link(JSC::VM&, JSC::SourceCode const&, std::optional<int>, JSC::Intrinsic) + 280
7 JavaScriptCore 0x18d207860 JSC::functionPrototypeApplyCodeGenerator(JSC::VM&) + 64
8 JavaScriptCore 0x18d10d81c JSC::FunctionPrototype::addFunctionProperties(JSC::ExecState*, JSC::JSGlobalObject*, JSC::JSFunction**, JSC::JSFunction**, JSC::JSFunction**) + 156
9 JavaScriptCore 0x18d21a9f8 JSC::JSGlobalObject::init(JSC::VM&) + 1300
10 JavaScriptCore 0x18d224898 JSC::JSGlobalObject::finishCreation(JSC::VM&, JSC::JSObject*) + 144
11 WebCore 0x18e015590 WebCore::JSDOMGlobalObject::finishCreation(JSC::VM&, JSC::JSObject*) + 24
12 WebCore 0x18e850840 WebCore::JSDOMWindowBase::finishCreation(JSC::VM&, WebCore::JSDOMWindowProxy*) + 44
13 WebCore 0x18e7d28ac WebCore::JSDOMWindow::finishCreation(JSC::VM&, WebCore::JSDOMWindowProxy*) + 36
14 WebCore 0x18e8548a4 WebCore::JSDOMWindowProxy::setWindow(WTF::RefPtr<WebCore::DOMWindow>&&) + 516
15 WebCore 0x18eed505c WebCore::ScriptController::setDOMWindowForWindowProxy(WebCore::DOMWindow*) + 360
16 WebCore 0x18dfed904 WebCore::FrameLoader::clear(WebCore::Document*, bool, bool, bool) + 476
17 WebCore 0x18e3a42c8 WebCore::DocumentWriter::begin(WebCore::URL const&, bool, WebCore::Document*) + 368
18 WebCore 0x18dfebb58 WebCore::DocumentLoader::commitData(char const*, unsigned long) + 176
19 WebKitLegacy 0x18f3d3bd8 -[WebHTMLRepresentation receivedData:withDataSource:] + 112
20 WebKitLegacy 0x18f3d3af8 -[WebDataSource(WebInternal) _receivedData:] + 68
21 WebKitLegacy 0x18f3d3a98 WebFrameLoaderClient::committedLoad(WebCore::DocumentLoader*, char const*, int) + 112
22 WebCore 0x18e0099c4 WebCore::DocumentLoader::commitLoad(char const*, int) + 172
23 WebCore 0x18e008bec WebCore::DocumentLoader::continueAfterContentPolicy(WebCore::PolicyAction) + 1796
24 WebCore 0x18e3930a0 WebCore::DocumentLoader::responseReceived(WebCore::ResourceResponse const&) + 1820
25 WebCore 0x18e392004 WebCore::DocumentLoader::handleSubstituteDataLoadNow() + 308
26 WebCore 0x18dfaf000 WebCore::ThreadTimers::sharedTimerFiredInternal() + 172
27 WebCore 0x18dfaef40 WebCore::timerFired(__CFRunLoopTimer*, void*) + 28
28 CoreFoundation 0x186152fc0 __CFRUNLOOP_IS_CALLING_OUT_TO_A_TIMER_CALLBACK_FUNCTION__ + 28
29 CoreFoundation 0x186152ce4 __CFRunLoopDoTimer + 864
30 CoreFoundation 0x1861524e4 __CFRunLoopDoTimers + 248
31 CoreFoundation 0x1861500cc __CFRunLoopRun + 1928
32 CoreFoundation 0x18606fe58 CFRunLoopRunSpecific + 436
33 WebCore 0x18dfe0a34 RunWebThread(void*) + 560
34 libsystem_pthread.dylib 0x185dd02b4 _pthread_body + 308
35 libsystem_pthread.dylib 0x185dd0180 _pthread_body + 310
36 libsystem_pthread.dylib 0x185dceb74 thread_start + 4

Related

Crashed: WebThread

I am getting a lot of reports on Crashlytics of this WebThread crash, mostly for iPads (~80%) on iOS 12 (~96%). Not sure exactly what it means aside from being a timer / timing issue - any ideas? I have Amazon Ads, Google AdMob and use a WkWebView for the main app.
Crashed: WebThread
0 libGPUSupportMercury.dylib 0x1d0eb5fe4 gpus_ReturnNotPermittedKillClient
1 AGXGLDriver 0x1d54e5ed8 (Missing)
2 libGPUSupportMercury.dylib 0x1d0eb6fac gpusSubmitDataBuffers
3 AGXGLDriver 0x1d54e7404 (Missing)
4 WebCore 0x1beb39e30 WebCore::GraphicsContext3D::reshape(int, int) + 580
5 WebCore 0x1bf001758 WebCore::WebGLRenderingContextBase::initializeNewContext() + 936
6 WebCore 0x1bf001048 WebCore::WebGLRenderingContextBase::WebGLRenderingContextBase(WebCore::CanvasBase&, WTF::Ref<WebCore::GraphicsContext3D, WTF::DumbPtrTraits<WebCore::GraphicsContext3D> >&&, WebCore::GraphicsContext3DAttributes) + 640
7 WebCore 0x1beff7c3c WebCore::WebGLRenderingContext::create(WebCore::CanvasBase&, WTF::Ref<WebCore::GraphicsContext3D, WTF::DumbPtrTraits<WebCore::GraphicsContext3D> >&&, WebCore::GraphicsContext3DAttributes) + 84
8 WebCore 0x1bf0003fc WebCore::WebGLRenderingContextBase::create(WebCore::CanvasBase&, WebCore::GraphicsContext3DAttributes&, WTF::String const&) + 1416
9 WebCore 0x1be6cfd6c WebCore::HTMLCanvasElement::getContext(JSC::ExecState&, WTF::String const&, WTF::Vector<JSC::Strong<JSC::Unknown>, 0ul, WTF::CrashOnOverflow, 16ul>&&) + 904
10 WebCore 0x1bdc59194 WebCore::jsHTMLCanvasElementPrototypeFunctionGetContext(JSC::ExecState*) + 416
11 JavaScriptCore 0x1bc33073c llint_entry + 89260
12 JavaScriptCore 0x1bc32ecb4 llint_entry + 82468
13 JavaScriptCore 0x1bc32ed54 llint_entry + 82628
14 JavaScriptCore 0x1bc32ed54 llint_entry + 82628
15 JavaScriptCore 0x1bc31a7fc vmEntryToJavaScript + 268
16 JavaScriptCore 0x1bc84b32c JSC::Interpreter::executeProgram(JSC::SourceCode const&, JSC::ExecState*, JSC::JSObject*) + 9816
17 JavaScriptCore 0x1bca546dc JSC::evaluate(JSC::ExecState*, JSC::SourceCode const&, JSC::JSValue, WTF::NakedPtr<JSC::Exception>&) + 320
18 WebCore 0x1be30d4bc WebCore::JSExecState::profiledEvaluate(JSC::ExecState*, JSC::ProfilingReason, JSC::SourceCode const&, JSC::JSValue, WTF::NakedPtr<JSC::Exception>&) + 108
19 WebCore 0x1be30d2f8 WebCore::ScriptController::evaluateInWorld(WebCore::ScriptSourceCode const&, WebCore::DOMWrapperWorld&, WebCore::ExceptionDetails*) + 232
20 WebCore 0x1be5af98c WebCore::ScriptElement::executeClassicScript(WebCore::ScriptSourceCode const&) + 640
21 WebCore 0x1be5774c8 WebCore::LoadableClassicScript::execute(WebCore::ScriptElement&) + 140
22 WebCore 0x1be5afc30 WebCore::ScriptElement::executeScriptAndDispatchEvent(WebCore::LoadableScript&) + 224
23 WebCore 0x1be5b2f40 WebCore::ScriptRunner::timerFired() + 508
24 WebCore 0x1bea5a20c WebCore::ThreadTimers::sharedTimerFiredInternal() + 216
25 WebCore 0x1bea7a258 WebCore::timerFired(__CFRunLoopTimer*, void*) + 28
26 CoreFoundation 0x1b4f92650 __CFRUNLOOP_IS_CALLING_OUT_TO_A_TIMER_CALLBACK_FUNCTION__ + 28
27 CoreFoundation 0x1b4f92380 __CFRunLoopDoTimer + 864
28 CoreFoundation 0x1b4f91bb4 __CFRunLoopDoTimers + 248
29 CoreFoundation 0x1b4f8cb04 __CFRunLoopRun + 1844
30 CoreFoundation 0x1b4f8c0b0 CFRunLoopRunSpecific + 436
31 WebCore 0x1bdc1cbd8 RunWebThread(void*) + 600
32 libsystem_pthread.dylib 0x1b4c1f2c0 _pthread_body + 128
33 libsystem_pthread.dylib 0x1b4c1f220 _pthread_start + 44
34 libsystem_pthread.dylib 0x1b4c22cdc thread_start + 4
https://groups.google.com/forum/#!msg/google-admob-ads-sdk/MOaVw22zUgY/sOCFi3TuBgAJ had a workaround but it was fixed in Admob iOS 7.45.0 https://developers.google.com/admob/ios/rel-notes
Fixed a crash that occurs on rare occasions when dismissing video ads.
I faced these crashes, then switch to using WKWebView. WKWebViews run in another process, so even if this issue still occurs it may crash only the web view instead of the entire application.
put this key in your infor.plist should do it
<key>gad_preferred_webview</key>
<string>wkwebview</string>

Javascript core crash when using YouTube iframe player in UIWebView in iOS 11.3

We have an iOS app with a UIWebView that loads YouTube iframe player to play youtube videos. After iOS 11.3 released we found that there are a lot of javascript core crashes. On Fabric crashlytics the crash stcktrace looks like this
Crashed: WebThread
0 JavaScriptCore 0x18aa48298 JSC::JSLock::DropAllLocks::DropAllLocks(JSC::VM&) + 176
1 JavaScriptCore 0x18aa4826c JSC::JSLock::DropAllLocks::DropAllLocks(JSC::VM&) + 132
2 WebCore 0x18b78b794 SendDelegateMessage(NSInvocation*) + 360
3 WebKitLegacy 0x18cea7c68 CallDelegate(void (*)(), WebView*, objc_object*, objc_selector*, objc_object*, objc_object*, objc_object*) + 144
4 WebKitLegacy 0x18ce1b8d0 WebFrameLoaderClient::dispatchDidFailLoading(WebCore::DocumentLoader*, unsigned long, WebCore::ResourceError const&) + 276
5 WebCore 0x18b7ba660 WebCore::ResourceLoadNotifier::didFailToLoad(WebCore::ResourceLoader*, WebCore::ResourceError const&) + 128
6 WebCore 0x18b7ba118 WebCore::ResourceLoader::cancel(WebCore::ResourceError const&) + 464
7 WebCore 0x18b7b9ea4 WebCore::ResourceLoader::cancel() + 64
8 WebCore 0x18c6bbe90 WebCore::CachedResource::removeClient(WebCore::CachedResourceClient&) + 264
9 WebCore 0x18c680558 WebCore::MediaResource::~MediaResource() + 64
10 WebCore 0x18c680608 WebCore::MediaResource::~MediaResource() + 12
11 libobjc.A.dylib 0x1827daef4 object_cxxDestructFromClass(objc_object*, objc_class*) + 148
12 libobjc.A.dylib 0x1827e8990 objc_destructInstance + 68
13 libobjc.A.dylib 0x1827e89f8 object_dispose + 16
14 WebCore 0x18cbff8f0 -[WebCoreNSURLSessionDataTask dealloc] + 320
15 CoreFoundation 0x1834f24e4 -[__NSDictionaryM dealloc] + 164
16 AVFoundation 0x189130cf8 -[AVAssetCustomURLBridgeForNSURLSession dealloc] + 68
17 AVFoundation 0x18917ce54 -[AVAssetResourceLoader dealloc] + 356
18 AVFoundation 0x189060460 -[AVURLAsset dealloc] + 248
19 AVFoundation 0x189097c34 -[AVPlayerItemTrack dealloc] + 192
20 WebCore 0x18b8a9fac WebCore::AVTrackPrivateAVFObjCImpl::~AVTrackPrivateAVFObjCImpl() + 92
21 WebCore 0x18cbf09dc WebCore::VideoTrackPrivateAVFObjC::~VideoTrackPrivateAVFObjC() + 48
22 WebCore 0x18cbefc7c WebCore::VideoTrack::~VideoTrack() + 96
23 WebCore 0x18b982390 WebCore::TrackEvent::~TrackEvent() + 72
24 JavaScriptCore 0x18aa26228 void JSC::MarkedBlock::Handle::specializedSweep<true, (JSC::MarkedBlock::Handle::EmptyMode)1, (JSC::MarkedBlock::Handle::SweepMode)1, (JSC::MarkedBlock::Handle::SweepDestructionMode)1, (JSC::MarkedBlock::Handle::ScribbleMode)0, (JSC::MarkedBlock::Handle::NewlyAllocatedMode)1, (JSC::MarkedBlock::Handle::MarksMode)1, JSC::JSDestructibleObjectDestroyFunc>(JSC::FreeList*, JSC::MarkedBlock::Handle::EmptyMode, JSC::MarkedBlock::Handle::SweepMode, JSC::MarkedBlock::Handle::SweepDestructionMode, JSC::MarkedBlock::Handle::ScribbleMode, JSC::MarkedBlock::Handle::NewlyAllocatedMode, JSC::MarkedBlock::Handle::MarksMode, JSC::JSDestructibleObjectDestroyFunc const&) + 212
25 JavaScriptCore 0x18aa24950 void JSC::MarkedBlock::Handle::finishSweepKnowingHeapCellType<JSC::JSDestructibleObjectDestroyFunc>(JSC::FreeList*, JSC::JSDestructibleObjectDestroyFunc const&)::'lambda'()::operator()() const + 408
26 JavaScriptCore 0x18aa2444c void JSC::MarkedBlock::Handle::finishSweepKnowingHeapCellType<JSC::JSDestructibleObjectDestroyFunc>(JSC::FreeList*, JSC::JSDestructibleObjectDestroyFunc const&) + 320
27 JavaScriptCore 0x18aa24300 JSC::JSDestructibleObjectHeapCellType::finishSweep(JSC::MarkedBlock::Handle&, JSC::FreeList*) + 32
28 JavaScriptCore 0x18a7ac538 JSC::MarkedBlock::Handle::sweep(JSC::FreeList*) + 372
29 JavaScriptCore 0x18a7aa6fc JSC::LocalAllocator::tryAllocateIn(JSC::MarkedBlock::Handle*) + 40
30 JavaScriptCore 0x18a7aa608 JSC::LocalAllocator::tryAllocateWithoutCollecting() + 48
31 JavaScriptCore 0x18a7aa4c8 JSC::LocalAllocator::allocateSlowCase(JSC::GCDeferralContext*, JSC::AllocationFailureMode) + 292
32 JavaScriptCore 0x18a78f4b8 JSC::CompleteSubspace::allocateNonVirtual(JSC::VM&, unsigned long, JSC::GCDeferralContext*, JSC::AllocationFailureMode) + 216
33 WebCore 0x18c171e3c std::__1::enable_if<std::is_same<WebCore::Event, WebCore::Event>::value, WebCore::JSDOMWrapperConverterTraits<WebCore::Event>::WrapperClass*>::type WebCore::createWrapper<WebCore::Event, WebCore::Event>(WebCore::JSDOMGlobalObject*, WTF::Ref<WebCore::Event, WTF::DumbPtrTraits<WebCore::Event> >&&) + 216
34 WebCore 0x18c170be0 WebCore::toJSNewlyCreated(JSC::ExecState*, WebCore::JSDOMGlobalObject*, WTF::Ref<WebCore::Event, WTF::DumbPtrTraits<WebCore::Event> >&&) + 100
35 WebCore 0x18c170444 WebCore::JSEventListener::handleEvent(WebCore::ScriptExecutionContext&, WebCore::Event&) + 872
36 WebCore 0x18c3acbe0 WebCore::EventTarget::fireEventListeners(WebCore::Event&, WTF::Vector<WTF::RefPtr<WebCore::RegisteredEventListener, WTF::DumbPtrTraits<WebCore::RegisteredEventListener> >, 1ul, WTF::CrashOnOverflow, 16ul, WTF::FastMalloc>) + 760
37 WebCore 0x18c3a8798 WebCore::EventTarget::fireEventListeners(WebCore::Event&) + 596
38 WebCore 0x18c3a8524 WebCore::EventContext::handleLocalEvents(WebCore::Event&) const + 120
39 WebCore 0x18c3a9a24 WebCore::dispatchEventInDOM(WebCore::Event&, WebCore::EventPath const&) + 164
40 WebCore 0x18c3a96e8 WebCore::EventDispatcher::dispatchEvent(WebCore::Node&, WebCore::Event&) + 700
41 WebCore 0x18b7cce50 WebCore::HTMLImageLoader::dispatchLoadEvent() + 248
42 WebCore 0x18b7ccd1c WebCore::ImageLoader::dispatchPendingEvent(WebCore::EventSender<WebCore::ImageLoader>*) + 144
43 WebCore 0x18b7ccb94 WebCore::EventSender<WebCore::ImageLoader>::dispatchPendingEvents() + 128
44 WebCore 0x18b743ff0 WebCore::ThreadTimers::sharedTimerFiredInternal() + 352
45 WebCore 0x18b743e7c WebCore::timerFired(__CFRunLoopTimer*, void*) + 28
46 CoreFoundation 0x1835cbaa8 __CFRUNLOOP_IS_CALLING_OUT_TO_A_TIMER_CALLBACK_FUNCTION__ + 28
47 CoreFoundation 0x1835cb76c __CFRunLoopDoTimer + 864
48 CoreFoundation 0x1835cb010 __CFRunLoopDoTimers + 248
49 CoreFoundation 0x1835c8b60 __CFRunLoopRun + 2168
50 CoreFoundation 0x1834e8da8 CFRunLoopRunSpecific + 552
51 WebCore 0x18b775dcc RunWebThread(void*) + 592
52 libsystem_pthread.dylib 0x183249220 _pthread_body + 272
53 libsystem_pthread.dylib 0x183249110 _pthread_body + 290
54 libsystem_pthread.dylib 0x183247b10 thread_start + 4## Heading ##
Any ideas? Is this a YouTube iframe player issue or UIWebView issue?
Thanks.

iOS Crash related to javascript core, web thread

getting lots of crashes in ios11 as below: webkit framework is included in project. any idea what could be reason for this crash ?
Crashed: WebThread
0 JavaScriptCore 0x18bdbeebc bmalloc::Heap::allocateSmallChunk(std::__1::lock_guard<bmalloc::StaticMutex>&, unsigned long) + 680
1 JavaScriptCore 0x18bdbec70 bmalloc::Heap::allocateSmallChunk(std::__1::lock_guard<bmalloc::StaticMutex>&, unsigned long) + 92
2 JavaScriptCore 0x18bdbef58 bmalloc::Heap::allocateSmallPage(std::__1::lock_guard<bmalloc::StaticMutex>&, unsigned long, std::__1::array<bmalloc::List<bmalloc::SmallPage>, 112ul>&) + 152
3 JavaScriptCore 0x18bdbf45c bmalloc::Heap::allocateSmallBumpRangesByObject(std::__1::lock_guard<bmalloc::StaticMutex>&, unsigned long, bmalloc::BumpAllocator&, bmalloc::FixedVector<bmalloc::BumpRange, 3ul>&, std::__1::array<bmalloc::List<bmalloc::SmallPage>, 112ul>&) + 52
4 JavaScriptCore 0x18bdbd228 bmalloc::Allocator::refillAllocatorSlowCase(bmalloc::BumpAllocator&, unsigned long) + 160
5 JavaScriptCore 0x18bdbd358 bmalloc::Allocator::allocateLogSizeClass(unsigned long) + 160
6 JavaScriptCore 0x18bba1cec JSC::MarkedBlock::tryCreate(JSC::Heap&) + 36
7 JavaScriptCore 0x18bba10c0 JSC::MarkedAllocator::allocateSlowCaseImpl(JSC::GCDeferralContext*, bool) + 368
8 JavaScriptCore 0x18bce69d0 JSC::Subspace::allocate(unsigned long) + 152
9 JavaScriptCore 0x18bcfb7a0 JSC::UnlinkedFunctionExecutable::link(JSC::VM&, JSC::SourceCode const&, std::optional<int>, JSC::Intrinsic) + 236
10 JavaScriptCore 0x18b6c9b98 JSC::CodeBlock::finishCreation(JSC::VM&, JSC::ScriptExecutable*, JSC::UnlinkedCodeBlock*, JSC::JSScope*) + 1964
11 JavaScriptCore 0x18bcb9f64 JSC::ScriptExecutable::newCodeBlockFor(JSC::CodeSpecializationKind, JSC::JSFunction*, JSC::JSScope*, JSC::JSObject*&) + 1088
12 JavaScriptCore 0x18bcba384 JSC::ScriptExecutable::prepareForExecutionImpl(JSC::VM&, JSC::JSFunction*, JSC::JSScope*, JSC::CodeSpecializationKind, JSC::CodeBlock*&) + 240
13 JavaScriptCore 0x18b454718 JSC::LLInt::setUpCall(JSC::ExecState*, JSC::Instruction*, JSC::CodeSpecializationKind, JSC::JSValue, JSC::LLIntCallLinkInfo*) + 672
14 JavaScriptCore 0x18bb9b444 llint_entry + 26996
15 JavaScriptCore 0x18bb94900 vmEntryToJavaScript + 272
16 JavaScriptCore 0x18ba73190 JSC::JITCode::execute(JSC::VM*, JSC::ProtoCallFrame*) + 184
17 JavaScriptCore 0x18ba47af4 JSC::Interpreter::executeProgram(JSC::SourceCode const&, JSC::ExecState*, JSC::JSObject*) + 12168
18 JavaScriptCore 0x18b7108e8 JSC::evaluate(JSC::ExecState*, JSC::SourceCode const&, JSC::JSValue, WTF::NakedPtr<JSC::Exception>&) + 340
19 WebCore 0x18d77fe4c WebCore::ScriptController::evaluateInWorld(WebCore::ScriptSourceCode const&, WebCore::DOMWrapperWorld&, WebCore::ExceptionDetails*) + 324
20 WebCore 0x18d786458 WebCore::ScriptElement::executeClassicScript(WebCore::ScriptSourceCode const&) + 584
21 WebCore 0x18d4c5750 WebCore::LoadableClassicScript::execute(WebCore::ScriptElement&) + 164
22 WebCore 0x18d7866fc WebCore::ScriptElement::executeScriptAndDispatchEvent(WebCore::LoadableScript&) + 216
23 WebCore 0x18d78ce0c WebCore::ScriptRunner::timerFired() + 456
24 WebCore 0x18c85b000 WebCore::ThreadTimers::sharedTimerFiredInternal() + 172
25 WebCore 0x18c85af40 WebCore::timerFired(__CFRunLoopTimer*, void*) + 28
26 CoreFoundation 0x1849fefc0 __CFRUNLOOP_IS_CALLING_OUT_TO_A_TIMER_CALLBACK_FUNCTION__ + 28
27 CoreFoundation 0x1849fece4 __CFRunLoopDoTimer + 864
28 CoreFoundation 0x1849fe4e4 __CFRunLoopDoTimers + 248
29 CoreFoundation 0x1849fc0cc __CFRunLoopRun + 1928
30 CoreFoundation 0x18491be58 CFRunLoopRunSpecific + 436
31 WebCore 0x18c88ca34 RunWebThread(void*) + 560
32 libsystem_pthread.dylib 0x18467c2b4 _pthread_body + 308
33 libsystem_pthread.dylib 0x18467c180 _pthread_body + 310
34 libsystem_pthread.dylib 0x18467ab74 thread_start + 4

App crash, no idea why and how to fix it

I'm trying to fix the crash issue of a mac app. It's using the web view.
I got the report from fabric but I have no idea how to fix it.
Any suggestion?
Crashed: com.apple.main-thread
EXC_BAD_ACCESS KERN_INVALID_ADDRESS 0x00000000bbadbeef
Crashed: com.apple.main-thread
0 JavaScriptCore 0x7fff8d7a232e WTFCrash + 62
1 WebCore 0x7fff879ca13d WebCore::DocumentLoader::detachFromFrame() + 269
2 WebKitLegacy 0x7fff866f1f7e WebDocumentLoaderMac::detachFromFrame() + 14
3 WebCore 0x7fff87945178 WebCore::FrameLoader::setDocumentLoader(WebCore::DocumentLoader*) + 104
4 WebCore 0x7fff87ed90a0 WebCore::FrameLoader::transitionToCommitted(WebCore::CachedPage*) + 208
5 WebCore 0x7fff87944a3d WebCore::FrameLoader::commitProvisionalLoad() + 397
6 WebCore 0x7fff879e568d WebCore::DocumentLoader::commitLoad(char const*, int) + 77
7 WebCore 0x7fff879e5254 WebCore::DocumentLoader::dataReceived(WebCore::CachedResource*, char const*, int) + 292
8 WebCore 0x7fff879e4f51 WebCore::CachedRawResource::notifyClientsDataWasReceived(char const*, unsigned int) + 177
9 WebCore 0x7fff879e4b2a WebCore::CachedRawResource::addDataBuffer(WebCore::ResourceBuffer*) + 170
10 WebCore 0x7fff879e4802 WebCore::SubresourceLoader::didReceiveDataOrBuffer(char const*, int, WTF::PassRefPtr<WebCore::SharedBuffer>, long long, WebCore::DataPayloadType) + 210
11 WebCore 0x7fff87a08b0c WebCore::SubresourceLoader::didReceiveBuffer(WTF::PassRefPtr<WebCore::SharedBuffer>, long long, WebCore::DataPayloadType) + 44
12 WebCore 0x7fff87a08a4a WebCore::ResourceLoader::didReceiveBuffer(WebCore::ResourceHandle*, WTF::PassRefPtr<WebCore::SharedBuffer>, int) + 90
13 WebCore 0x7fff87a08985 -[WebCoreResourceHandleAsDelegate connection:didReceiveData:lengthReceived:] + 101
14 CFNetwork 0x7fff8552c81d __65-[NSURLConnectionInternal _withConnectionAndDelegate:onlyActive:]_block_invoke + 69
15 CFNetwork 0x7fff8552c681 -[NSURLConnectionInternal _withConnectionAndDelegate:onlyActive:] + 232
16 CFNetwork 0x7fff8552c587 -[NSURLConnectionInternal _withActiveConnectionAndDelegate:] + 48
17 CFNetwork 0x7fff85538f74 _NSURLConnectionDidReceiveData_LengthReceived(_CFURLConnection*, __CFData const*, long, void const*) + 83
18 CFNetwork 0x7fff8552cf3b ___ZN27URLConnectionClient_Classic29_delegate_didReceiveDataArrayEv_block_invoke + 297
19 CFNetwork 0x7fff855e14a3 ___ZN27URLConnectionClient_Classic18_withDelegateAsyncEPKcU13block_pointerFvP16_CFURLConnectionPK33CFURLConnectionClientCurrent_VMaxE_block_invoke_2 + 94
20 CFNetwork 0x7fff8547feec RunloopBlockContext::_invoke_block(void const*, void*) + 72
21 CoreFoundation 0x7fff9122c664 CFArrayApplyFunction + 68
22 CFNetwork 0x7fff8547fdad RunloopBlockContext::perform() + 133
23 CFNetwork 0x7fff8547fb98 MultiplexerSource::perform() + 282
24 CFNetwork 0x7fff8547f9ba MultiplexerSource::_perform(void*) + 72
25 CoreFoundation 0x7fff91260a01 __CFRUNLOOP_IS_CALLING_OUT_TO_A_SOURCE0_PERFORM_FUNCTION__ + 17
26 CoreFoundation 0x7fff91252b8d __CFRunLoopDoSources0 + 269
27 CoreFoundation 0x7fff912521bf __CFRunLoopRun + 927
28 CoreFoundation 0x7fff91251bd8 CFRunLoopRunSpecific + 296
29 HIToolbox 0x7fff82b9356f RunCurrentEventLoopInMode + 235
30 HIToolbox 0x7fff82b932ea ReceiveNextEventCommon + 431
31 HIToolbox 0x7fff82b9312b _BlockUntilNextEventMatchingListInModeWithFilter + 71
32 AppKit 0x7fff8acc88ab _DPSNextEvent + 978
33 AppKit 0x7fff8acc7e58 -[NSApplication nextEventMatchingMask:untilDate:inMode:dequeue:] + 346
34 AppKit 0x7fff8acbdaf3 -[NSApplication run] + 594
35 AppKit 0x7fff8ac3a244 NSApplicationMain + 1832
36 libdyld.dylib 0x7fff896af5c9 start + 1
above is the log. Any idea why it happens and how to fix it?

iOS 7 Web Core issus loadPendingImages

I have this crash log, but I don't understand how to find what causes an issue.
Thread : Crashed: WebThread
0 WebCore 954995104 WebCore::StyleResolver::loadPendingImages() + 1135
1 WebCore 955192507 WebCore::ResourceRequestBase::~ResourceRequestBase() + 106
2 WebCore 954966933 WebCore::StyleResolver::applyMatchedProperties(WebCore::StyleResolver::MatchResult const&, WebCore::Element const*) + 792
3 WebCore 955009301 WebCore::StyleResolver::styleForElement(WebCore::Element*, WebCore::RenderStyle*, WebCore::StyleSharingBehavior, WebCore::RuleMatchingBehavior, WebCore::RenderRegion*) + 952
4 WebCore 956072077 WebCore::Document::styleForElementIgnoringPendingStylesheets(WebCore::Element*) + 96
5 WebCore 956071899 WebCore::Element::computedStyle(WebCore::PseudoId) + 142
6 WebCore 956433467 WebCore::ComputedStyleExtractor::propertyValue(WebCore::CSSPropertyID, WebCore::EUpdateLayout) const + 466
7 WebCore 957126027 WebCore::CSSComputedStyleDeclaration::getPropertyValue(WebCore::CSSPropertyID) const + 42
8 WebCore 957125931 WebCore::CSSComputedStyleDeclaration::getPropertyValue(WTF::String const&) + 26
9 WebCore 957459107 WebCore::jsCSSStyleDeclarationPrototypeFunctionGetPropertyValue(JSC::ExecState*) + 258
10 JavaScriptCore 838902235 llint_native_call_trampoline + 64
11 JavaScriptCore 838939999 JSC::call(JSC::ExecState*, JSC::JSValue, JSC::CallType, JSC::CallData const&, JSC::JSValue, JSC::ArgList const&) + 70
12 WebCore 955098071 WebCore::JSMainThreadExecState::call(JSC::ExecState*, JSC::JSValue, JSC::CallType, JSC::CallData const&, JSC::JSValue, JSC::ArgList const&) + 146
13 WebCore 957106929 WebCore::JSEventListener::handleEvent(WebCore::ScriptExecutionContext*, WebCore::Event*) + 520
14 WebCore 956836797 WebCore::EventTarget::fireEventListeners(WebCore::Event*, WebCore::EventTargetData*, WTF::Vector<WebCore::RegisteredEventListener, 1ul, WTF::CrashOnOverflow>&) + 484
15 WebCore 955783727 WebCore::EventTarget::fireEventListeners(WebCore::Event*) + 178
16 WebCore 955784069 WebCore::EventContext::handleLocalEvents(WebCore::Event*) const + 60
17 WebCore 955783067 WebCore::EventDispatcher::dispatch() + 546
18 WebCore 955782519 WebCore::EventDispatchMediator::dispatchEvent(WebCore::EventDispatcher*) const + 10
19 WebCore 955780731 WebCore::EventDispatcher::dispatchEvent(WebCore::Node*, WTF::PassRefPtr<WebCore::EventDispatchMediator>) + 154
20 WebCore 955780413 WebCore::Node::dispatchEvent(WTF::PassRefPtr<WebCore::Event>) + 100
21 WebCore 955830855 WebCore::Document::finishedParsing() + 102
22 WebCore 955791991 WebCore::HTMLDocumentParser::prepareToStopParsing() + 122
23 WebCore 956118393 WebCore::HTMLDocumentParser::notifyFinished(WebCore::CachedResource*) + 68
24 WebCore 956102527 WebCore::CachedResource::checkNotify() + 42
25 WebCore 956102065 WebCore::SubresourceLoader::didFinishLoading(double) + 112
26 WebCore 956101909 WebCore::didFinishLoading(_CFURLConnection*, void const*) + 132
27 CFNetwork 818745231 ___ZN27URLConnectionClient_Classic26_delegate_didFinishLoadingEU13block_pointerFvvE_block_invoke + 74
28 CFNetwork 818740111 ___ZN27URLConnectionClient_Classic18_withDelegateAsyncEPKcU13block_pointerFvP16_CFURLConnectionPK33CFURLConnectionClientCurrent_VMaxE_block_invoke_2 + 54
29 CFNetwork 818942775 ___ZNK17CoreSchedulingSet13_performAsyncEPKcU13block_pointerFvvE_block_invoke + 18
30 CoreFoundation 821665441 CFArrayApplyFunction + 36
31 CFNetwork 818314757 RunloopBlockContext::perform() + 164
32 CFNetwork 818314453 MultiplexerSource::perform() + 220
33 CFNetwork 818314085 MultiplexerSource::_perform(void*) + 48
34 CoreFoundation 822288159 __CFRUNLOOP_IS_CALLING_OUT_TO_A_SOURCE0_PERFORM_FUNCTION__ + 14
35 CoreFoundation 822285287 __CFRunLoopDoSources0 + 206
36 CoreFoundation 822279127 __CFRunLoopRun + 630
37 CoreFoundation 821666929 CFRunLoopRunSpecific + 524
38 CoreFoundation 821666387 CFRunLoopRunInMode + 106
39 WebCore 955674821 RunWebThread(void*) + 420
40 libsystem_pthread.dylib 1000184925 _pthread_body + 140
41 libsystem_pthread.dylib 1000184783 _pthread_start + 102
42 libsystem_pthread.dylib 1000176848 thread_start + 8

Resources