好的,所以进入后台我隐藏了所有内容。当我切换回来时,我仍然遇到未能及时恢复错误。如果所有内容都被隐藏,为什么它会在 drawRect 中崩溃?关于如何处理此类“恢复失败”错误的任何想法?
Incident Identifier: 0E5ADFDF-1EB1-4ECC-9F02-57B37F1BBBA1
CrashReporter Key: 17186e938075dd5907223199eccdc85176f18698
Hardware Model: iPad1,1
Process: hexProto [2162]
Path: /var/mobile/Applications/31D43A9F-0EF3-4D03-89AC-243B68F75D91/hexProto.app/hexProto
Identifier: hexProto
Version: ??? (???)
Code Type: ARM (Native)
Parent Process: launchd [1]
Date/Time: 2010-12-10 15:56:11.615 -0800
OS Version: iPhone OS 4.2 (8C134)
Report Version: 104
Exception Type: 00000020
Exception Codes: 0x8badf00d
Highlighted Thread: 0
Application Specific Information:
Annexation failed to resume in time
Elapsed total CPU time (seconds): 9.880 (user 7.320, system 2.560), 97% CPU
Elapsed application CPU time (seconds): 7.650, 75% CPU
Thread 0:
0 ImageIO 0x00009740 ImageIO_ABGR_TO_ARGB_8Bit + 44
1 ImageIO 0x00006ade ImageProviderCopyImageBlockSetCallback + 210
2 CoreGraphics 0x00009052 CGImageProviderCopyImageBlockSetWithOptions + 226
3 CoreGraphics 0x00008f5c CGImageProviderCopyImageBlockSet + 32
4 CoreGraphics 0x00008c8a img_blocks_create + 182
5 CoreGraphics 0x00025e1a img_blocks_extent + 42
6 CoreGraphics 0x00025d06 img_interpolate_extent + 70
7 CoreGraphics 0x00004e90 img_data_lock + 4376
8 CoreGraphics 0x00003668 CGSImageDataLock + 104
9 libRIP.A.dylib 0x0000c658 ripc_AcquireImage + 2676
10 libRIP.A.dylib 0x00009c6e ripc_DrawImage + 462
11 CoreGraphics 0x00003520 CGContextDelegateDrawImage + 44
12 CoreGraphics 0x000033de CGContextDrawImage + 250
13 UIKit 0x000148aa -[UIImage drawInRect:blendMode:alpha:] + 1182
14 UIKit 0x0003affe -[UIImage drawInRect:] + 50
15 hexProto 0x00047782 -[NormalButton drawRect:] (NormalButton.m:48)
16 UIKit 0x000132d2 -[UIView(CALayerDelegate) drawLayer:inContext:] + 258
17 QuartzCore 0x000152fe -[CALayer drawInContext:] + 86
18 QuartzCore 0x0001507c backing_callback(CGContext*, void*) + 32
19 QuartzCore 0x00014af2 CABackingStoreUpdate + 1226
20 QuartzCore 0x0001435c -[CALayer _display] + 724
21 QuartzCore 0x0001406a -[CALayer display] + 134
22 QuartzCore 0x00013fb0 CALayerDisplayIfNeeded + 176
23 QuartzCore 0x0000956e CA::Context::commit_transaction(CA::Transaction*) + 214
24 QuartzCore 0x0000937c CA::Transaction::commit() + 184
25 QuartzCore 0x000092bc CA::Transaction::pop() + 120
26 QuartzCore 0x0000923a +[CATransaction commit] + 18
最佳答案
使用 Instruments(特别是 Shark)找出发生了什么。
Springboard 杀死您的应用程序的原因是因为您接近超过允许的 10 秒(Apple 似乎从未公布确切的数字是多少,但普遍的看法似乎将其固定在 10 秒)。
Elapsed total CPU time (seconds): 9.880 (user 7.320, system 2.560), 97% CPU
当程序崩溃时,它可能正在做一些绘图 - 你怎么知道它在 8 秒内没有执行其他任务然后在 1.5 秒内进行绘图?这就是我使用 Shark 找出占用 CPU 时间百分比最多的地方。
然后,对其进行分析,看看可以采取哪些措施。
关于iphone - "failed to resume in time"从后台崩溃恢复,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/4414467/
我正在尝试测试是否存在表单。我是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""-
为了将Cucumber用于命令行脚本,我按照提供的说明安装了arubagem。它在我的Gemfile中,我可以验证是否安装了正确的版本并且我已经包含了require'aruba/cucumber'在'features/env.rb'中为了确保它能正常工作,我写了以下场景:@announceScenario:Testingcucumber/arubaGivenablankslateThentheoutputfrom"ls-la"shouldcontain"drw"假设事情应该失败。它确实失败了,但失败的原因是错误的:@announceScenario:Testingcucumber/ar
当我在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)(人们推荐的最少
我遵循MichaelHartl的“RubyonRails教程:学习Web开发”,并创建了检查用户名和电子邮件长度有效性的测试(名称最多50个字符,电子邮件最多255个字符)。test/helpers/application_helper_test.rb的内容是:require'test_helper'classApplicationHelperTest在运行bundleexecraketest时,所有测试都通过了,但我看到以下消息在最后被标记为错误:ERROR["test_full_title_helper",ApplicationHelperTest,1.820016791]test
我正在尝试从Postgresql表(table1)中获取数据,该表由另一个相关表(property)的字段(table2)过滤。在纯SQL中,我会这样编写查询:SELECT*FROMtable1JOINtable2USING(table2_id)WHEREtable2.propertyLIKE'query%'这工作正常:scope:my_scope,->(query){includes(:table2).where("table2.property":query)}但我真正需要的是使用LIKE运算符进行过滤,而不是严格相等。然而,这是行不通的:scope:my_scope,->(que
我正在尝试编写一个将文件上传到AWS并公开该文件的Ruby脚本。我做了以下事情:s3=Aws::S3::Resource.new(credentials:Aws::Credentials.new(KEY,SECRET),region:'us-west-2')obj=s3.bucket('stg-db').object('key')obj.upload_file(filename)这似乎工作正常,除了该文件不是公开可用的,而且我无法获得它的公共(public)URL。但是当我登录到S3时,我可以正常查看我的文件。为了使其公开可用,我将最后一行更改为obj.upload_file(file
当我尝试安装Ruby时遇到此错误。我试过查看this和this但无济于事➜~brewinstallrubyWarning:YouareusingOSX10.12.Wedonotprovidesupportforthispre-releaseversion.Youmayencounterbuildfailuresorotherbreakages.Pleasecreatepull-requestsinsteadoffilingissues.==>Installingdependenciesforruby:readline,libyaml,makedepend==>Installingrub
我在新的Debian6VirtualBoxVM上安装RVM时遇到问题。我已经安装了所有需要的包并使用下载了安装脚本(curl-shttps://rvm.beginrescueend.com/install/rvm)>rvm,但以单个用户身份运行时bashrvm我收到以下错误消息:ERROR:Unabletocheckoutbranch.安装在这里停止,并且(据我所知)没有安装RVM的任何文件。如果我以root身份运行脚本(对于多用户安装),我会收到另一条消息:Successfullycheckedoutbranch''安装程序继续并指示成功,但未添加.rvm目录,甚至在修改我的.bas
下面的代码在我第一次运行它时就可以正常工作:require'rubygems'require'spreadsheet'book=Spreadsheet.open'/Users/me/myruby/Mywks.xls'sheet=book.worksheet0row=sheet.row(1)putsrow[1]book.write'/Users/me/myruby/Mywks.xls'当我再次运行它时,我会收到更多消息,例如:/Library/Ruby/Gems/1.8/gems/spreadsheet-0.6.5.9/lib/spreadsheet/excel/reader.rb:11