V2EX = way to explore
V2EX 是一个关于分享和探索的地方
现在注册
已注册用户请  登录
iOS 开发实用技术导航
NSHipster 中文版
http://nshipster.cn/
cocos2d 开源 2D 游戏引擎
http://www.cocos2d-iphone.org/
CocoaPods
http://cocoapods.org/
Google Analytics for Mobile 统计解决方案
http://code.google.com/mobile/analytics/
WWDC
https://developer.apple.com/wwdc/
Design Guides and Resources
https://developer.apple.com/design/
Transcripts of WWDC sessions
http://asciiwwdc.com
Cocoa with Love
http://cocoawithlove.com/
Cocoa Dev Central
http://cocoadevcentral.com/
NSHipster
http://nshipster.com/
Style Guides
Google Objective-C Style Guide
NYTimes Objective-C Style Guide
Useful Tools and Services
Charles Web Debugging Proxy
Smore
Dean
V2EX  ›  iDev

iOS App 遇到 App 异常崩溃后启动一直奔溃的问题,通过 Xcode Devices 实时记录了 log,但是并没有看懂日志文件,现在贴出来请教高人

  •  
  •   Dean · 2016-09-23 16:59:49 +08:00 · 6267 次点击
    这是一个创建于 2743 天前的主题,其中的信息可能已经有所发展或是发生改变。
    Sep 23 16:48:26 iPhone-6-white SpringBoard[58] <Error>:  SecTrustEvaluate  [leaf IssuerCommonName SubjectCommonName]
    Sep 23 16:48:26 iPhone-6-white SpringBoard[58] <Error>:  SecTrustEvaluate  [leaf IssuerCommonName SubjectCommonName]
    Sep 23 16:48:30 iPhone-6-white backboardd[60] <Warning>: CoreAnimation: timed out fence 34def
    Sep 23 16:48:40 iPhone-6-white SpringBoard[58] <Warning>: Forcing crash report of <FBApplicationProcess: 0x127362170; Liaoba; pid: 291> (reason: 1, description: com.weiling.liaoba.mosheng failed to scene-create after 19.89s (launch took 0.11s of total time limit 20.00s))
    Sep 23 16:48:40 iPhone-6-white diagnosticd[83] <Error>: unable to find offset 0x822eb98c in shared cache for arch 'arm64'
    Sep 23 16:48:40 iPhone-6-white SpringBoard[58] <Warning>: Finished crash reporting.
    Sep 23 16:48:40 iPhone-6-white SpringBoard[58] <Warning>: BSXPCMessage received error for message: Connection invalid
    Sep 23 16:48:40 iPhone-6-white SpringBoard[58] <Warning>: BSXPCMessage received error for message: Connection invalid
    Sep 23 16:48:40 iPhone-6-white SpringBoard[58] <Warning>: BSXPCMessage received error for message: Connection invalid
    Sep 23 16:48:40 iPhone-6-white com.apple.xpc.launchd[1] (UIKitApplication:com.weiling.liaoba.mosheng[0xc0df][291]) <Notice>: Service exited due to signal: Killed: 9
    Sep 23 16:48:40 iPhone-6-white ReportCrash[292] <Warning>: Report of type '109(109_Liaoba)' not saved because the limit of 25 logs has been reached
    Sep 23 16:48:40 iPhone-6-white ReportCrash[292] <Error>: Notice: This report is abbreviated for syslog inclusion because it could not be saved to disk.
    	Symbolication may be possible by manually cleaning up and including the Binary Image section of a full report from this same device -- good luck!
    Sep 23 16:48:40 iPhone-6-white ReportCrash[292] <Error>: Process:             Liaoba [291]
    	Path:                /var/containers/Bundle/Application/296B1307-FBC4-4D43-94D1-E3B67D765924/Liaoba.app/Liaoba
    	OS Version:          iOS 9.3.4 (13G35)
    Sep 23 16:48:40 iPhone-6-white ReportCrash[292] <Error>: Exception Type:  00000020
    	Exception Codes: 0x000000008badf00d
    	Exception Note:  SIMULATED (this is NOT a crash)
    	Highlighted by Thread:  0
    Sep 23 16:48:40 iPhone-6-white ReportCrash[292] <Error>: Application Specific Information:
    	com.weiling.liaoba.mosheng failed to scene-create after 19.89s (launch took 0.11s of total time limit 20.00s)
    	
    	Elapsed total CPU time (seconds): 1.410 (user 1.410, system 0.000), 5% CPU 
    	Elapsed application CPU time (seconds): 0.019, 0% CPU
    Sep 23 16:48:40 iPhone-6-white ReportCrash[292] <Error>: Thread 0 name:  Dispatch queue: com.apple.main-thread
    	Thread 0:
    	0   libsystem_kernel.dylib        	0x00000001823f9014 0x1823f8000 + 4116
    	1   libsystem_platform.dylib      	0x00000001824d697c 0x1824d4000 + 10620
    	2   libdispatch.dylib             	0x00000001822c63c4 0x1822c4000 + 9156
    	3   Liaoba                        	0x00000001006e892c 0x100028000 + 7080236
    	4   Liaoba                        	0x00000001006ead28 0x100028000 + 7089448
    	5   Liaoba                        	0x00000001006eaf84 0x100028000 + 7090052
    	6   Liaoba                        	0x00000001006eadbc 0x100028000 + 7089596
    	7   Liaoba                        	0x00000001006e88a8 0x100028000 + 7080104
    	8   Liaoba                        	0x00000001006e84bc 0x100028000 + 7079100
    	9   Liaoba                        	0x00000001006e8990 0x100028000 + 7080336
    	10  libdispatch.dylib             	0x00000001822c547c 0x1822c4000 + 5244
    	11  libdispatch.dylib             	0x00000001822c62c0 0x1822c4000 + 8896
    	12  Liaoba                        	0x00000001006e892c 0x100028000 + 7080236
    	13  Liaoba                        	0x00000001006ea540 0x100028000 + 7087424
    	14  Liaoba                        	0x00000001006ea49c 0x100028000 + 7087260
    	15  UIKit                         	0x00000001879d2ed4 0x1879c4000 + 61140
    	16  UIKit                         	0x00000001879d2ba8 0x1879c4000 + 60328
    	17  UIKit                         	0x00000001879e0678 0x1879c4000 + 116344
    	18  UIKit                         	0x000000018804ded4 0x1879c4000 + 6856404
    	19  UIKit                         	0x000000018804ced0 0x1879c4000 + 6852304
    	20  UIKit                         	0x000000018804cb04 0x1879c4000 + 6851332
    	21  UIKit                         	0x0000000187a65240 0x1879c4000 + 660032
    	22  UIKit                         	0x0000000187a65158 0x1879c4000 + 659800
    	23  Liaoba                        	0x00000001002b7eec 0x100028000 + 2686700
    	24  UIKit                         	0x0000000187a4e9c0 0x1879c4000 + 567744
    	25  UIKit                         	0x0000000187c7e184 0x1879c4000 + 2859396
    	26  UIKit                         	0x0000000187c825f0 0x1879c4000 + 2876912
    	27  UIKit                         	0x0000000187c7f764 0x1879c4000 + 2864996
    	28  FrontBoardServices            	0x000000018421b7ac 0x1841f4000 + 161708
    	29  FrontBoardServices            	0x000000018421b618 0x1841f4000 + 161304
    	30  FrontBoardServices            	0x000000018421b9c8 0x1841f4000 + 162248
    	31  CoreFoundation                	0x000000018283109c 0x182750000 + 921756
    	32  CoreFoundation                	0x0000000182830b30 0x182750000 + 920368
    	33  CoreFoundation                	0x000000018282e830 0x182750000 + 911408
    	34  CoreFoundation                	0x0000000182758c50 0x182750000 + 35920
    	35  UIKit                         	0x0000000187a4794c 0x1879c4000 + 538956
    	36  UIKit                         	0x0000000187a42088 0x1879c4000 + 516232
    	37  Liaoba                        	0x00000001002cb2dc 0x100028000 + 2765532
    	38  libdyld.dylib                 	0x00000001822f68b8 0x1822f4000 + 10424
    Sep 23 16:48:40 iPhone-6-white ReportCrash[292] <Error>: Thread 1 name:  Dispatch queue: com.apple.libdispatch-manager
    	Thread 1:
    	0   libsystem_kernel.dylib        	0x00000001824154d8 0x1823f8000 + 120024
    	1   libdispatch.dylib             	0x00000001822d87d8 0x1822c4000 + 83928
    	2   libdispatch.dylib             	0x00000001822c7648 0x1822c4000 + 13896
    Sep 23 16:48:40 iPhone-6-white ReportCrash[292] <Error>: Thread 2:
    	0   libsystem_kernel.dylib        	0x0000000182414b48 0x1823f8000 + 117576
    	1   libsystem_pthread.dylib       	0x00000001824dd530 0x1824dc000 + 5424
    	2   libsystem_pthread.dylib       	0x00000001824dd020 0x1824dc000 + 4128
    Sep 23 16:48:40 iPhone-6-white ReportCrash[292] <Error>: Thread 3:
    	0   libsystem_kernel.dylib        	0x0000000182414b48 0x1823f8000 + 117576
    	1   libsystem_pthread.dylib       	0x00000001824dd530 0x1824dc000 + 5424
    	2   libsystem_pthread.dylib       	0x00000001824dd020 0x1824dc000 + 4128
    Sep 23 16:48:40 iPhone-6-white ReportCrash[292] <Error>: Thread 4 name:  com.apple.NSURLConnectionLoader
    	Thread 4:
    	0   libsystem_kernel.dylib        	0x00000001823f8fd8 0x1823f8000 + 4056
    	1   libsystem_kernel.dylib        	0x00000001823f8e54 0x1823f8000 + 3668
    	2   CoreFoundation                	0x0000000182830c60 0x182750000 + 920672
    	3   CoreFoundation                	0x000000018282e964 0x182750000 + 911716
    	4   CoreFoundation                	0x0000000182758c50 0x182750000 + 35920
    	5   CFNetwork                     	0x0000000182ed9bcc 0x182e2c000 + 711628
    	6   Foundation                    	0x000000018324fe4c 0x18315c000 + 998988
    	7   libsystem_pthread.dylib       	0x00000001824dfb28 0x1824dc000 + 15144
    	8   libsystem_pthread.dylib       	0x00000001824dfa8c 0x1824dc000 + 14988
    	9   libsystem_pthread.dylib       	0x00000001824dd028 0x1824dc000 + 4136
    Sep 23 16:48:40 iPhone-6-white ReportCrash[292] <Error>: Thread 5 name:  com.apple.CFSocket.private
    	Thread 5:
    	0   libsystem_kernel.dylib        	0x0000000182414344 0x1823f8000 + 115524
    	1   CoreFoundation                	0x00000001828371c8 0x182750000 + 946632
    	2   libsystem_pthread.dylib       	0x00000001824dfb28 0x1824dc000 + 15144
    	3   libsystem_pthread.dylib       	0x00000001824dfa8c 0x1824dc000 + 14988
    	4   libsystem_pthread.dylib       	0x00000001824dd028 0x1824dc000 + 4136
    Sep 23 16:48:40 iPhone-6-white ReportCrash[292] <Error>: No thread state (register information) available
    Sep 23 16:48:40 iPhone-6-white SpringBoard[58] <Warning>: Application 'UIKitApplication:com.weiling.liaoba.mosheng[0xc0df]' exited abnormally via signal.
    Sep 23 16:48:40 iPhone-6-white UserEventAgent[26] <Warning>: 71448629925: id=com.weiling.liaoba.mosheng pid=291, state=0
    Sep 23 16:48:40 iPhone-6-white SpringBoard[58] <Error>:  SecTrustEvaluate  [leaf IssuerCommonName SubjectCommonName]
    Sep 23 16:48:40 iPhone-6-white kernel[0] <Notice>: xpcproxy[293] Container: /private/var/mobile/Containers/Data/Application/D1FD1537-0B1C-49EB-A53F-1C0AC52003A8 (sandbox)
    Sep 23 16:48:40 iPhone-6-white com.apple.xpc.launchd[1] <Error>: assertion failed: 13G35: launchd + 116796 [9F6284CF-8A17-36CC-9DB5-85D510A21F14]: 0x3
    Sep 23 16:48:40 iPhone-6-white Liaoba[293] <Warning>: Reachability Flag Status: -R ------- networkStatusForFlags
    
    
    14 条回复    2016-09-29 16:16:21 +08:00
    Dean
        1
    Dean  
    OP
       2016-09-23 17:04:27 +08:00
    类似问题在 iOS 7 的设备崩溃后 App 能正常启动,目前测试发现崩溃后不能正常启动发生在 iOS 9
    angryapes
        2
    angryapes  
       2016-09-23 17:10:31 +08:00
    你就不能使用 DSYM 把这个 crash 日志解析出来吗,这谁能看懂!
    kitalphaj
        3
    kitalphaj  
       2016-09-23 17:11:32 +08:00
    启动超时?看看 AppDelegate 里面的 didFinishLaunch 里面是不是死循环了?
    Dean
        4
    Dean  
    OP
       2016-09-23 17:31:45 +08:00
    @kitalphaj 仔细看了看是启动时间接近 20s 了,被系统干掉了,估计 iOS 9 的机制,目前还在寻找费时的地方
    Dean
        5
    Dean  
    OP
       2016-09-23 17:34:16 +08:00
    @angryapes 天真了,就是没有奔溃异常被捕捉到,不然就 不会提问,
    shenfu1991
        6
    shenfu1991  
       2016-09-23 18:07:37 +08:00
    装个 fabric ,捕获比较容易
    Dean
        7
    Dean  
    OP
       2016-09-23 18:14:39 +08:00
    @shenfu1991 目前是用的友盟统计,没有成功记录崩溃信息,因为项目中混合很多 C++的静态库与代码实现, fabric 有什么特别?
    jackisnotspirate
        8
    jackisnotspirate  
       2016-09-23 18:46:59 +08:00
    Exception Codes: 0x000000008badf00d

    ate bad food

    内存吃紧了。
    jackisnotspirate
        9
    jackisnotspirate  
       2016-09-23 18:48:49 +08:00
    08badf00d
    DingSoung
        10
    DingSoung  
       2016-09-23 19:02:18 +08:00
    第三方库装多了吧
    shenfu1991
        11
    shenfu1991  
       2016-09-24 02:06:12 +08:00 via iPhone
    @Dean 友盟当然不能和这个专业的比
    cute
        12
    cute  
       2016-09-27 11:32:55 +08:00
    Exception Note: SIMULATED (this is NOT a crash)
    应该是是超时被干掉了。
    可以用 hopper disassembler 打开你的二进制文件 go to fileo ffset : 7080236
    就可以看到是什么问题了
    Dean
        13
    Dean  
    OP
       2016-09-27 14:57:21 +08:00
    @cute 只能是最后一招试试了,正向的问题都需要逆向方案去解决了😭
    Dean
        14
    Dean  
    OP
       2016-09-29 16:16:21 +08:00
    此处收楼了,最后比对 commit 发现是 cocoapods pod 'MMPlaceHolder', '~> 1.9',代码中没有使用该库,迷之 BUG 告一段落了
    关于   ·   帮助文档   ·   博客   ·   API   ·   FAQ   ·   我们的愿景   ·   实用小工具   ·   5361 人在线   最高记录 6543   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 39ms · UTC 09:14 · PVG 17:14 · LAX 02:14 · JFK 05:14
    Developed with CodeLauncher
    ♥ Do have faith in what you're doing.