我已经尝试将我的应用程序导出到 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/
我需要在客户计算机上运行Ruby应用程序。通常需要几天才能完成(复制大备份文件)。问题是如果启用sleep,它会中断应用程序。否则,计算机将持续运行数周,直到我下次访问为止。有什么方法可以防止执行期间休眠并让Windows在执行后休眠吗?欢迎任何疯狂的想法;-) 最佳答案 Here建议使用SetThreadExecutionStateWinAPI函数,使应用程序能够通知系统它正在使用中,从而防止系统在应用程序运行时进入休眠状态或关闭显示。像这样的东西:require'Win32API'ES_AWAYMODE_REQUIRED=0x0
我正在尝试测试是否存在表单。我是Rails新手。我的new.html.erb_spec.rb文件的内容是:require'spec_helper'describe"messages/new.html.erb"doit"shouldrendertheform"dorender'/messages/new.html.erb'reponse.shouldhave_form_putting_to(@message)with_submit_buttonendendView本身,new.html.erb,有代码:当我运行rspec时,它失败了:1)messages/new.html.erbshou
我在从html页面生成PDF时遇到问题。我正在使用PDFkit。在安装它的过程中,我注意到我需要wkhtmltopdf。所以我也安装了它。我做了PDFkit的文档所说的一切......现在我在尝试加载PDF时遇到了这个错误。这里是错误:commandfailed:"/usr/local/bin/wkhtmltopdf""--margin-right""0.75in""--page-size""Letter""--margin-top""0.75in""--margin-bottom""0.75in""--encoding""UTF-8""--margin-left""0.75in""-
Rackup通过Rack的默认处理程序成功运行任何Rack应用程序。例如:classRackAppdefcall(environment)['200',{'Content-Type'=>'text/html'},["Helloworld"]]endendrunRackApp.new但是当最后一行更改为使用Rack的内置CGI处理程序时,rackup给出“NoMethodErrorat/undefinedmethod`call'fornil:NilClass”:Rack::Handler::CGI.runRackApp.newRack的其他内置处理程序也提出了同样的反对意见。例如Rack
我想用ruby编写一个小的命令行实用程序并将其作为gem分发。我知道安装后,Guard、Sass和Thor等某些gem可以从命令行自行运行。为了让gem像二进制文件一样可用,我需要在我的gemspec中指定什么。 最佳答案 Gem::Specification.newdo|s|...s.executable='name_of_executable'...endhttp://docs.rubygems.org/read/chapter/20 关于ruby-在Ruby中编写命令行实用程序
为了将Cucumber用于命令行脚本,我按照提供的说明安装了arubagem。它在我的Gemfile中,我可以验证是否安装了正确的版本并且我已经包含了require'aruba/cucumber'在'features/env.rb'中为了确保它能正常工作,我写了以下场景:@announceScenario:Testingcucumber/arubaGivenablankslateThentheoutputfrom"ls-la"shouldcontain"drw"假设事情应该失败。它确实失败了,但失败的原因是错误的:@announceScenario:Testingcucumber/ar
我构建了两个需要相互通信和发送文件的Rails应用程序。例如,一个Rails应用程序会发送请求以查看其他应用程序数据库中的表。然后另一个应用程序将呈现该表的json并将其发回。我还希望一个应用程序将存储在其公共(public)目录中的文本文件发送到另一个应用程序的公共(public)目录。我从来没有做过这样的事情,所以我什至不知道从哪里开始。任何帮助,将不胜感激。谢谢! 最佳答案 无论Rails是什么,几乎所有Web应用程序都有您的要求,大多数现代Web应用程序都需要相互通信。但是有一个小小的理解需要你坚持下去,网站不应直接访问彼此
我尝试运行2.x应用程序。我使用rvm并为此应用程序设置其他版本的ruby:$rvmuseree-1.8.7-head我尝试运行服务器,然后出现很多错误:$script/serverNOTE:Gem.source_indexisdeprecated,useSpecification.Itwillberemovedonorafter2011-11-01.Gem.source_indexcalledfrom/Users/serg/rails_projects_terminal/work_proj/spohelp/config/../vendor/rails/railties/lib/r
刚入门rails,开始慢慢理解。有人可以解释或给我一些关于在application_controller中编码的好处或时间和原因的想法吗?有哪些用例。您如何为Rails应用程序使用应用程序Controller?我不想在那里放太多代码,因为据我了解,每个请求都会调用此Controller。这是真的? 最佳答案 ApplicationController实际上是您应用程序中的每个其他Controller都将从中继承的类(尽管这不是强制性的)。我同意不要用太多代码弄乱它并保持干净整洁的态度,尽管在某些情况下ApplicationContr
当我在Rails控制台中按向上或向左箭头时,出现此错误:irb(main):001:0>/Users/me/.rvm/gems/ruby-2.0.0-p247/gems/rb-readline-0.4.2/lib/rbreadline.rb:4269:in`blockin_rl_dispatch_subseq':invalidbytesequenceinUTF-8(ArgumentError)我使用rvm来管理我的ruby安装。我正在使用=>ruby-2.0.0-p247[x86_64]我使用bundle来管理我的gem,并且我有rb-readline(0.4.2)(人们推荐的最少