- iOS/Objective-C 元类和类别
- objective-c - -1001 错误,当 NSURLSession 通过 httpproxy 和/etc/hosts
- java - 使用网络类获取 url 地址
- ios - 推送通知中不播放声音
我已经尝试将我的应用程序导出到 iOS10.2,它运行良好。但是当我将它导出到 iOS11.3 并打开某个 WebView 时,它会在一段时间后崩溃。
我尝试过将同一个 WebView 与另一个 URL 一起使用,但效果很好。
请告诉我如何修改布局使其不会在 iOS11.3 或更高版本上崩溃?
Incident Identifier: 288A0B32-02D3-4293-A60B-C705FC3C0265
CrashReporter
Key:
Hardware Model: iPhone9,1
Process: HealthCheck [506]
Path: /private/var/containers/Bundle/Application/CC8E784E-60FA-4008-A129-418DD95248E7/HealthCheck.app/HealthCheck
Identifier:
Version: 1 (1.0)
Code Type: ARM-64 (Native)
Role: Foreground
Parent Process: launchd [1]
Coalition: [615]
Date/Time: 2018-04-13 10:51:33.2295 +0800
Launch Time: 2018-04-13 10:36:20.1999 +0800
OS Version: iPhone OS 11.3 (15E216)
Baseband Version: 3.66.00
Report Version: 104
Exception Type: EXC_BREAKPOINT (SIGTRAP)
Exception Codes: 0x0000000000000001, 0x000000018afb0d3c
Termination Signal: Trace/BPT trap: 5
Termination Reason: Namespace SIGNAL, Code 0x5
Terminating Process: exc handler [0]
Triggered by Thread: 4
Filtered syslog:
None found
Thread 0 name: Dispatch queue: com.apple.main-thread
Thread 0:
0 libsystem_kernel.dylib 0x00000001816c3e08 mach_msg_trap + 8
1 libsystem_kernel.dylib 0x00000001816c3c80 mach_msg + 72
2 CoreFoundation 0x0000000181c06e40 __CFRunLoopServiceMachPort + 196
3 CoreFoundation 0x0000000181c04908 __CFRunLoopRun + 1568
4 CoreFoundation 0x0000000181b24da8 CFRunLoopRunSpecific + 552
5 GraphicsServices 0x0000000183b07020 GSEventRunModal + 100
6 UIKit 0x000000018bb0578c UIApplicationMain + 236
7 HealthCheck 0x0000000104fcede8 main + 28136 (__hidden#17_:16)
8 libdyld.dylib 0x00000001815b5fc0 start + 4
Thread 1 name: com.apple.uikit.eventfetch-thread
Thread 1:
0 libsystem_kernel.dylib 0x00000001816c3e08 mach_msg_trap + 8
1 libsystem_kernel.dylib 0x00000001816c3c80 mach_msg + 72
2 CoreFoundation 0x0000000181c06e40 __CFRunLoopServiceMachPort + 196
3 CoreFoundation 0x0000000181c04908 __CFRunLoopRun + 1568
4 CoreFoundation 0x0000000181b24da8 CFRunLoopRunSpecific + 552
5 Foundation 0x0000000182599674 -[NSRunLoop+ 34420 (NSRunLoop) runMode:beforeDate:] + 304
6 Foundation 0x000000018259951c -[NSRunLoop+ 34076 (NSRunLoop) runUntilDate:] + 148
7 UIKit 0x000000018b7ea7e4 -[UIEventFetcher threadMain] + 136
8 Foundation 0x00000001826a9efc __NSThread__start__ + 1040
9 libsystem_pthread.dylib 0x0000000181885220 _pthread_body + 272
10 libsystem_pthread.dylib 0x0000000181885110 _pthread_body + 0
11 libsystem_pthread.dylib 0x0000000181883b10 thread_start + 4
Thread 2 name: com.facebook.react.JavaScript
Thread 2:
0 libsystem_kernel.dylib 0x00000001816c3e08 mach_msg_trap + 8
1 libsystem_kernel.dylib 0x00000001816c3c80 mach_msg + 72
2 CoreFoundation 0x0000000181c06e40 __CFRunLoopServiceMachPort + 196
3 CoreFoundation 0x0000000181c04908 __CFRunLoopRun + 1568
4 CoreFoundation 0x0000000181b24da8 CFRunLoopRunSpecific + 552
5 HealthCheck 0x0000000104fdf7b0 _hidden#984_ + 96176 (__hidden#1374_:248)
6 Foundation 0x00000001826a9efc __NSThread__start__ + 1040
7 libsystem_pthread.dylib 0x0000000181885220 _pthread_body + 272
8 libsystem_pthread.dylib 0x0000000181885110 _pthread_body + 0
9 libsystem_pthread.dylib 0x0000000181883b10 thread_start + 4
Thread 3:
0 libsystem_kernel.dylib 0x00000001816e50f4 __psynch_cvwait + 8
1 libsystem_pthread.dylib 0x0000000181887c90 _pthread_cond_wait$VARIANT$mp + 644
2 libc++.1.dylib 0x0000000180d9c2ec std::__1::condition_variable::__do_timed_wait+ 29420 (std::__1::unique_lock<std::__1::mutex>&, std::__1::chrono::time_point<std::__1::chrono::system_clock, std::__1::chrono::duration<long long, std::__1::ratio<1l, 1000000000l> > >) + 96
3 JavaScriptCore 0x000000018927b430 std::__1::cv_status std::__1::condition_variable::wait_until<std::__1::chrono::steady_clock, std::__1::chrono::duration<long long, std::__1::ratio<1l, 1000000000l> > >+ 11252784 (std::__1::unique_lock<std::__1::mutex>&, std::__1::chrono::time_point<std::__1::chrono::steady_clock, std::__1::chrono::duration<long long, std::__1::ratio<1l, 1000000000l> > > const&) + 124
4 JavaScriptCore 0x000000018927b2e0 std::__1::cv_status std::__1::condition_variable_any::wait_until<std::__1::unique_lock<bmalloc::Mutex>, std::__1::chrono::steady_clock, std::__1::chrono::duration<long long, std::__1::ratio<1l, 1000000000l> > >+ 11252448 (std::__1::unique_lock<bmalloc::Mutex>&, std::__1::chrono::time_point<std::__1::chrono::steady_clock, std::__1::chrono::duration<long long, std::__1::ratio<1l, 1000000000l> > > const&) + 112
5 JavaScriptCore 0x000000018927ae24 bmalloc::Scavenger::threadRunLoop+ 11251236 () + 272
6 JavaScriptCore 0x000000018927ab60 bmalloc::Scavenger::Scavenger+ 11250528 (std::__1::lock_guard<bmalloc::StaticMutex>&) + 0
7 JavaScriptCore 0x000000018927af7c void* std::__1::__thread_proxy<std::__1::tuple<std::__1::unique_ptr<std::__1::__thread_struct, std::__1::default_delete<std::__1::__thread_struct> >, void (*)(bmalloc::Scavenger*), bmalloc::Scavenger*> >+ 11251580 (void*) + 44
8 libsystem_pthread.dylib 0x0000000181885220 _pthread_body + 272
9 libsystem_pthread.dylib 0x0000000181885110 _pthread_body + 0
10 libsystem_pthread.dylib 0x0000000181883b10 thread_start + 4
Thread 4 name: WebThread
Thread 4 Crashed:
0 WebCore 0x000000018afb0d3c bmalloc::IsoAllocator<bmalloc::IsoConfig<232u> >::allocateSlow+ 19135804 (bool) + 264
1 WebCore 0x000000018afb0c7c bmalloc::IsoAllocator<bmalloc::IsoConfig<232u> >::allocateSlow+ 19135612 (bool) + 72
2 WebCore 0x000000018afb1bb0 WebCore::RenderElement::createFor+ 19139504 (WebCore::Element&, WebCore::RenderStyle&&, WebCore::RenderElement::RendererCreationType) + 772
3 WebCore 0x000000018b0f8774 WebCore::RenderTreeUpdater::createRenderer+ 20477812 (WebCore::Element&, WebCore::RenderStyle&&) + 644
4 WebCore 0x000000018b0f6c68 WebCore::RenderTreeUpdater::updateElementRenderer+ 20470888 (WebCore::Element&, WebCore::Style::ElementUpdate const&) + 656
5 WebCore 0x000000018b0f5cc0 WebCore::RenderTreeUpdater::updateRenderTree+ 20466880 (WebCore::ContainerNode&) + 1164
6 WebCore 0x000000018b0f5754 WebCore::RenderTreeUpdater::commit+ 20465492 (std::__1::unique_ptr<WebCore::Style::Update const, std::__1::default_delete<WebCore::Style::Update const> >) + 584
7 WebCore 0x000000018a9aa9c4 WebCore::Document::resolveStyle+ 12818884 (WebCore::Document::ResolveStyleType) + 796
8 WebCore 0x0000000189dc8580 WebCore::Document::updateStyleIfNeeded+ 357760 () + 228
9 WebCore 0x000000018ad454e4 WebCore::LayoutContext::layout+ 16598244 () + 792
10 WebCore 0x0000000189d7fff0 WebCore::ThreadTimers::sharedTimerFiredInternal+ 61424 () + 352
11 WebCore 0x0000000189d7fe7c WebCore::timerFired+ 61052 (__CFRunLoopTimer*, void*) + 28
12 CoreFoundation 0x0000000181c07aa8 __CFRUNLOOP_IS_CALLING_OUT_TO_A_TIMER_CALLBACK_FUNCTION__ + 28
13 CoreFoundation 0x0000000181c0776c __CFRunLoopDoTimer + 864
14 CoreFoundation 0x0000000181c07010 __CFRunLoopDoTimers + 248
15 CoreFoundation 0x0000000181c04b60 __CFRunLoopRun + 2168
16 CoreFoundation 0x0000000181b24da8 CFRunLoopRunSpecific + 552
17 WebCore 0x0000000189db1dcc RunWebThread+ 265676 (void*) + 592
18 libsystem_pthread.dylib 0x0000000181885220 _pthread_body + 272
19 libsystem_pthread.dylib 0x0000000181885110 _pthread_body + 0
20 libsystem_pthread.dylib 0x0000000181883b10 thread_start + 4
Thread 5 name: com.apple.NSURLConnectionLoader
Thread 5:
0 libsystem_kernel.dylib 0x00000001816c3e08 mach_msg_trap + 8
1 libsystem_kernel.dylib 0x00000001816c3c80 mach_msg + 72
2 CoreFoundation 0x0000000181c06e40 __CFRunLoopServiceMachPort + 196
3 CoreFoundation 0x0000000181c04908 __CFRunLoopRun + 1568
4 CoreFoundation 0x0000000181b24da8 CFRunLoopRunSpecific + 552
5 CFNetwork 0x00000001824324b0 -[__CoreSchedulingSetRunnable runForever] + 220
6 Foundation 0x00000001826a9efc __NSThread__start__ + 1040
7 libsystem_pthread.dylib 0x0000000181885220 _pthread_body + 272
8 libsystem_pthread.dylib 0x0000000181885110 _pthread_body + 0
9 libsystem_pthread.dylib 0x0000000181883b10 thread_start + 4
Thread 6:
0 libsystem_kernel.dylib 0x00000001816e5d84 __workq_kernreturn + 8
1 libsystem_pthread.dylib 0x0000000181883eb4 _pthread_wqthread + 928
2 libsystem_pthread.dylib 0x0000000181883b08 start_wqthread + 4
Thread 7:
0 libsystem_pthread.dylib 0x0000000181883b04 start_wqthread + 0
Thread 8:
0 libsystem_kernel.dylib 0x00000001816e5d84 __workq_kernreturn + 8
1 libsystem_pthread.dylib 0x00000001818840a0 _pthread_wqthread + 1420
2 libsystem_pthread.dylib 0x0000000181883b08 start_wqthread + 4
Thread 9:
0 libsystem_kernel.dylib 0x00000001816c3e5c semaphore_timedwait_trap + 8
1 libdispatch.dylib 0x00000001815530b0 _dispatch_sema4_timedwait$VARIANT$mp + 60
2 libdispatch.dylib 0x0000000181553924 _dispatch_semaphore_wait_slow + 72
3 libdispatch.dylib 0x000000018155f23c _dispatch_worker_thread + 256
4 libsystem_pthread.dylib 0x0000000181885220 _pthread_body + 272
5 libsystem_pthread.dylib 0x0000000181885110 _pthread_body + 0
6 libsystem_pthread.dylib 0x0000000181883b10 thread_start + 4
Thread 10:
0 libsystem_pthread.dylib 0x0000000181883b04 start_wqthread + 0
Thread 11:
0 libsystem_kernel.dylib 0x00000001816c3e5c semaphore_timedwait_trap + 8
1 libdispatch.dylib 0x00000001815530b0 _dispatch_sema4_timedwait$VARIANT$mp + 60
2 libdispatch.dylib 0x0000000181553924 _dispatch_semaphore_wait_slow + 72
3 libdispatch.dylib 0x000000018155f23c _dispatch_worker_thread + 256
4 libsystem_pthread.dylib 0x0000000181885220 _pthread_body + 272
5 libsystem_pthread.dylib 0x0000000181885110 _pthread_body + 0
6 libsystem_pthread.dylib 0x0000000181883b10 thread_start + 4
Thread 12 name: WTF::AutomaticThread
Thread 12:
0 libsystem_kernel.dylib 0x00000001816e50f4 __psynch_cvwait + 8
1 libsystem_pthread.dylib 0x0000000181887c90 _pthread_cond_wait$VARIANT$mp + 644
2 JavaScriptCore 0x00000001887cf310 WTF::ThreadCondition::timedWait+ 62224 (WTF::Mutex&, double) + 148
3 JavaScriptCore 0x000000018926073c WTF::ParkingLot::parkConditionallyImpl(void const*, WTF::ScopedLambda<bool ()> const&, WTF::ScopedLambda<void + 11142972 ()> const&, WTF::TimeWithDynamicClockType const&) + 2252
4 JavaScriptCore 0x0000000188d2124c bool WTF::Condition::waitUntil<WTF::Lock>+ 5640780 (WTF::Lock&, WTF::TimeWithDynamicClockType const&) + 184
5 JavaScriptCore 0x0000000189245d18 WTF::Function<void ()>::CallableWrapper<WTF::AutomaticThread::start(WTF::AbstractLocker const&)::$_0>::call+ 11033880 () + 212
6 JavaScriptCore 0x0000000189272024 WTF::Thread::entryPoint+ 11214884 (WTF::Thread::NewThreadContext*) + 224
7 JavaScriptCore 0x00000001887ca9d4 WTF::wtfThreadEntryPoint+ 43476 (void*) + 12
8 libsystem_pthread.dylib 0x0000000181885220 _pthread_body + 272
9 libsystem_pthread.dylib 0x0000000181885110 _pthread_body + 0
10 libsystem_pthread.dylib 0x0000000181883b10 thread_start + 4
Thread 13 name: WTF::AutomaticThread
Thread 13:
0 libsystem_kernel.dylib 0x00000001816e50f4 __psynch_cvwait + 8
1 libsystem_pthread.dylib 0x0000000181887c90 _pthread_cond_wait$VARIANT$mp + 644
2 JavaScriptCore 0x00000001887cf310 WTF::ThreadCondition::timedWait+ 62224 (WTF::Mutex&, double) + 148
3 JavaScriptCore 0x000000018926073c WTF::ParkingLot::parkConditionallyImpl(void const*, WTF::ScopedLambda<bool ()> const&, WTF::ScopedLambda<void + 11142972 ()> const&, WTF::TimeWithDynamicClockType const&) + 2252
4 JavaScriptCore 0x0000000188d2124c bool WTF::Condition::waitUntil<WTF::Lock>+ 5640780 (WTF::Lock&, WTF::TimeWithDynamicClockType const&) + 184
5 JavaScriptCore 0x0000000189245d18 WTF::Function<void ()>::CallableWrapper<WTF::AutomaticThread::start(WTF::AbstractLocker const&)::$_0>::call+ 11033880 () + 212
6 JavaScriptCore 0x0000000189272024 WTF::Thread::entryPoint+ 11214884 (WTF::Thread::NewThreadContext*) + 224
7 JavaScriptCore 0x00000001887ca9d4 WTF::wtfThreadEntryPoint+ 43476 (void*) + 12
8 libsystem_pthread.dylib 0x0000000181885220 _pthread_body + 272
9 libsystem_pthread.dylib 0x0000000181885110 _pthread_body + 0
10 libsystem_pthread.dylib 0x0000000181883b10 thread_start + 4
Thread 14:
0 libsystem_kernel.dylib 0x00000001816c3e5c semaphore_timedwait_trap + 8
1 libdispatch.dylib 0x00000001815530b0 _dispatch_sema4_timedwait$VARIANT$mp + 60
2 libdispatch.dylib 0x0000000181553924 _dispatch_semaphore_wait_slow + 72
3 libdispatch.dylib 0x000000018155f23c _dispatch_worker_thread + 256
4 libsystem_pthread.dylib 0x0000000181885220 _pthread_body + 272
5 libsystem_pthread.dylib 0x0000000181885110 _pthread_body + 0
6 libsystem_pthread.dylib 0x0000000181883b10 thread_start + 4
Thread 4 crashed with ARM Thread State (64-bit):
x0: 0x0000000000000002 x1: 0x0000000000000000 x2: 0x0000000000000003 x3: 0x0000000000001002
x4: 0x0000000035000000 x5: 0x0000000000000000 x6: 0x0000000100000000 x7: 0x0000000000000010
x8: 0x0000000000000000 x9: 0x0000000000000000 x10: 0x0000000000000000 x11: 0x00000000000fffff
x12: 0x000000000000000b x13: 0x0000000000000001 x14: 0x0000000215dcf900 x15: 0x00000000e5952e6b
x16: 0x00000000000000c5 x17: 0x000000000000006c x18: 0x0000000000000000 x19: 0x00000001b40e4930
x20: 0x000000010b4991b0 x21: 0x0000000000000001 x22: 0x0000000000000000 x23: 0x0000000000000000
x24: 0x000000020d9b9d68 x25: 0x0000000000000005 x26: 0x6d3a06d3a06d3a07 x27: 0x0000000000000001
x28: 0x0000000000000258 fp: 0x000000016b47a010 lr: 0x000000018afb0c7c
sp: 0x000000016b479fb0 pc: 0x000000018afb0d3c cpsr: 0x60000000
最佳答案
你知道网址是什么吗?我们的应用程序也遇到了同样的崩溃,当人们解压缩文件然后打开里面的本地 html 时发生。
关于ios - 使用 xcode 9.0 在 iOS 11.3 上 React Native iOS 应用程序崩溃 "EXC_BREAKPOINT (SIGTRAP)",我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/49808782/
在这种情况下,我们在应用程序中同时使用react-native-gesture-handler Touchable和react-native Touchable。 (通过Touchables,我的意思
我有一个 MainFooter包含页脚和迷你播放器的组件,单击时动画显示为全 View 。我有一个问题,每当我们点击一个页脚选项卡时,播放器最大化然后卡在那里,没有响应。 此外,播放器内部的向下箭
我在 native react 之上使用 native 基础组件,我想知道如何在 UI 中使卡片呈圆形而不是矩形。有圆形的 Prop 吗? 最佳答案 好吧,实际上没有人能回答这个问题,但幸运的是我在
我在 native react 之上使用 native 基础组件,我想知道如何在 UI 中使卡片呈圆形而不是矩形。有圆形的 Prop 吗? 最佳答案 好吧,实际上没有人能回答这个问题,但幸运的是我在
我是 react-native 的新手,所以我认为“HTML”而不是“native”可能有点太多了,所以我的问题看起来很愚蠢。 我使用 react-native-router-flux 进行路由,并使
当我使用这个例子在我的应用程序上实现 Image-slider 时,我遇到了这个错误。 import React,{Component} from 'react' import {View,T
我正在为我们的产品使用“Native Base”组件,并且效果很好, 但我有一点被卡住了,它是关于将 Items 放入 Nativebase Picker 的问题。我的代码是这样的 渲染方法代码 -
正如文档中所建议的,我将一些长的数据获取代码移动到 native 模块中以释放 JS 线程,但我观察到这仍然阻塞了 UI。为什么会这样,我能做些什么来避免这种情况? 从 JS 调用 native 模块
我正在使用一个名为 react-native-svg 的框架在 React Native View 中绘制 SVG 元素。 我的目标是,当我点击 View 时(我在全局 View 上使用 PanRes
在 IOS 中发现错误 Native Module cannot be null 我不使用 react-native-push-notification 最佳答案 这通常发生在您未能将第三个库链接到您
当应用程序关闭时,我可以获得由 Linking.getInitialURL() 点击的深层链接网址。 .当应用程序处于后台状态时,则不会安装任何内容。所以,我什至无法通过 Linking.addEve
1) 说原生库是什么意思?什么样的图书馆?那些将用作 gradle 依赖项? 2)如何链接这些?我在使用 link 或 rnpm 时遇到了麻烦。 最佳答案 链接 native 库意味着您要将已经实现的
我需要帮助来构建我的 react 原生项目。我尝试过react-native run-android,但出现以下错误: react-native : The term 'react-native' i
我需要帮助来构建我的 react 原生项目。我尝试过react-native run-android,但出现以下错误: react-native : The term 'react-native' i
我是 React-Native 的新手,到目前为止我很喜欢它。我正在尝试创建一个屏幕(用于跨平台应用程序),右上角有一个菜单图标,单击时,我想打开一个菜单,希望使用 react-native-menu
RN doco 和其他示例展示了如何从 native iOS View Controller 启动 React-Native View ,但反之则不然。谁能解释一下我该怎么做? 最佳答案 我能够弄清楚
对于 react-native - WebStorm 用户: 我正在使用 Jet Brains IDE WebStorm 开始一个带有 React Native 的项目。 在项目 => node_mo
在升级过去的 react-native 0.60 之后......我被警告我应该取消链接所有手动链接的第 3 方库(因为 RN 现在通过自动链接处理它)。 但是,当我运行 react-native u
你可以使用像 https://github.com/tolu360/react-native-google-places 这样的库吗?在世博项目中?我假设任何 npm 库都可以添加,但是像这个 goo
我主要喜欢 React Native。自 0.22 以来一直在使用它。目前为 0.35。 但是为什么链接原生库就像抽奖一样呢?我很少在第一次拍摄时让它发挥作用,而破裂的东西通常是完全不同的东西。 每个
我是一名优秀的程序员,十分优秀!