React Native IOS 11.3-11.4错误:JavaScriptCore JSC :: JSLock :: DropAllLocks :: DropAllLocks

时间:2018-07-23 08:19:30

标签: ios react-native webview

react-native-cli: 2.0.1
react-native: 0.53.3
ios 11.3.0 - 11.4.1

enter image description here

Crashed: WebThread
0  JavaScriptCore                 0x18a929464 JSC::JSLock::DropAllLocks::DropAllLocks(JSC::VM&) + 176
1  JavaScriptCore                 0x18a929438 JSC::JSLock::DropAllLocks::DropAllLocks(JSC::VM&) + 132
2  WebCore                        0x18b671cec SendDelegateMessage(NSInvocation*) + 360
3  WebKitLegacy                   0x18cd96c68 CallDelegate(void (*)(), WebView*, objc_object*, objc_selector*, objc_object*, objc_object*, objc_object*) + 144
4  WebKitLegacy                   0x18cd0a8d0 WebFrameLoaderClient::dispatchDidFailLoading(WebCore::DocumentLoader*, unsigned long, WebCore::ResourceError const&) + 276
5  WebCore                        0x18b6a0df0 WebCore::ResourceLoadNotifier::didFailToLoad(WebCore::ResourceLoader*, WebCore::ResourceError const&) + 128
6  WebCore                        0x18b6a08a8 WebCore::ResourceLoader::cancel(WebCore::ResourceError const&) + 464
7  WebCore                        0x18b6a0634 WebCore::ResourceLoader::cancel() + 64
8  WebCore                        0x18c5aa474 WebCore::CachedResource::removeClient(WebCore::CachedResourceClient&) + 264
9  WebCore                        0x18c56ea94 WebCore::MediaResource::~MediaResource() + 64
10 WebCore                        0x18c56eb44 WebCore::MediaResource::~MediaResource() + 12
11 libobjc.A.dylib                0x18268aef4 object_cxxDestructFromClass(objc_object*, objc_class*) + 148
12 libobjc.A.dylib                0x182698990 objc_destructInstance + 68
13 libobjc.A.dylib                0x1826989f8 object_dispose + 16
14 WebCore                        0x18caed6d0 -[WebCoreNSURLSessionDataTask dealloc] + 320
15 CoreFoundation                 0x1833a24e4 -[__NSDictionaryM dealloc] + 164
16 AVFoundation                   0x188ff7448 -[AVAssetCustomURLBridgeForNSURLSession dealloc] + 68
17 AVFoundation                   0x189043580 -[AVAssetResourceLoader dealloc] + 356
18 AVFoundation                   0x188f26214 -[AVURLAsset dealloc] + 248
19 WebCore                        0x18b823464 WebCore::MediaPlayerPrivateAVFoundationObjC::cancelLoad() + 240
20 WebCore                        0x18b82283c WebCore::MediaPlayerPrivateAVFoundationObjC::~MediaPlayerPrivateAVFoundationObjC() + 336
21 WebCore                        0x18b82333c WebCore::MediaPlayerPrivateAVFoundationObjC::~MediaPlayerPrivateAVFoundationObjC() + 12
22 WebCore                        0x18c709c00 WebCore::MediaPlayer::~MediaPlayer() + 244
23 WebCore                        0x18c709c68 WebCore::MediaPlayer::~MediaPlayer() + 12
24 WebCore                        0x18c3f0394 WebCore::HTMLMediaElement::~HTMLMediaElement() + 1336
25 WebCore                        0x18c44f2a0 WebCore::HTMLVideoElement::~HTMLVideoElement() + 176
26 JavaScriptCore                 0x18a905a5c void JSC::MarkedBlock::Handle::specializedSweep<true, (JSC::MarkedBlock::Handle::EmptyMode)1, (JSC::MarkedBlock::Handle::SweepMode)0, (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&) + 196
27 JavaScriptCore                 0x18a90446c void JSC::MarkedBlock::Handle::finishSweepKnowingHeapCellType<JSC::JSDestructibleObjectDestroyFunc>(JSC::FreeList*, JSC::JSDestructibleObjectDestroyFunc const&)::'lambda'()::operator()() const + 348
28 JavaScriptCore                 0x18a903fa4 void JSC::MarkedBlock::Handle::finishSweepKnowingHeapCellType<JSC::JSDestructibleObjectDestroyFunc>(JSC::FreeList*, JSC::JSDestructibleObjectDestroyFunc const&) + 320
29 JavaScriptCore                 0x18a903e58 JSC::JSDestructibleObjectHeapCellType::finishSweep(JSC::MarkedBlock::Handle&, JSC::FreeList*) + 32
30 JavaScriptCore                 0x18a68597c JSC::MarkedBlock::Handle::sweep(JSC::FreeList*) + 372
31 JavaScriptCore                 0x18a67c064 JSC::IncrementalSweeper::sweepNextBlock() + 132
32 JavaScriptCore                 0x18a05e7fc JSC::IncrementalSweeper::doWork() + 72
33 JavaScriptCore                 0x18a949864 JSC::JSRunLoopTimer::timerDidFireCallback(__CFRunLoopTimer*, void*) + 76
34 CoreFoundation                 0x18347baa8 __CFRUNLOOP_IS_CALLING_OUT_TO_A_TIMER_CALLBACK_FUNCTION__ + 28
35 CoreFoundation                 0x18347b76c __CFRunLoopDoTimer + 864
36 CoreFoundation                 0x18347b010 __CFRunLoopDoTimers + 248
37 CoreFoundation                 0x183478b60 __CFRunLoopRun + 2168
38 CoreFoundation                 0x183398da8 CFRunLoopRunSpecific + 552
39 WebCore                        0x18b65c2d4 RunWebThread(void*) + 592
40 libsystem_pthread.dylib        0x1830f9220 _pthread_body + 272
41 libsystem_pthread.dylib        0x1830f9110 _pthread_body + 290
42 libsystem_pthread.dylib        0x1830f7b10 thread_start + 4

该应用程序在WebView中显示一些html内容。我只知道这次崩溃是因为它可能与嵌入式视频小部件有关:

https://forums.developer.apple.com/thread/101477

此错误与React Native平台有关吗? RN的更新是否可以解决此问题?

此问题可能与Javascript core crash when using YouTube iframe player in UIWebView in iOS 11.3有关 由于有React Native WebView ...

在网络视图中显示的应用内容可以是普通的html文本或instagram,facebook或youtube脚本/ iframe。

该应用程序还会显示广告。

0 个答案:

没有答案