ios 错误统计,我程序故意写了错误代码,导致程序崩溃,也打开了错误统计,但是极光后台看不到错误记录

ios
标签: #<Tag:0x00007fb83846bac0>

(栗先森) #1

ios 错误统计,我程序故意写了错误代码,导致程序崩溃,也打开了错误统计,但是极光后台看不到错误记录


#2

1、提供你的AppKey

2、看一下你得到的崩溃信息,将完整日志提供上来,并尝试将 App 关闭再打开,再触发一次上报

3、高峰期会有一点延时。


(栗先森) #3

AppKey:9f5d22a02a21c6d51a8ab3e7
我用真机测试的,崩溃原因是数组越界(故意写的错误代码),完整日志如何提供?
App已经关闭打开好多次了


#4

(栗先森) #5

日志在不停的更新,我该提供你那个部分?
这个是我搜索到的部分.

Dec 21 17:42:33 iphone mDNSResponder[99] <Info>:  15: DNSServiceGetAddrInfo(4000D000, 0, 3, user.jpush.cn.) START PID[1014](DaYuan)
Dec 21 17:42:33 iphone mDNSResponder[99] <Info>: GetServerForQuestion: 0000000101007440 DNS server (000000010031A040) 192.168.1.3:53 (Penalty Time Left 0) (Scope None:0000000000000000:-1) found for name user.jpush.cn. (AAAA)
Dec 21 17:42:33 iphone mDNSResponder[99] <Info>: InitDNSConfig: question 0000000101007440 user.jpush.cn. (AAAA) Timeout 30, DNS Server 192.168.1.3:53
Dec 21 17:42:33 iphone mDNSResponder[99] <Info>: ShouldSuppressUnicastQuery: Query suppressed for user.jpush.cn., qtype AAAA, since DNS Configuration does not allow (req_A is true and req_AAAA is false)
Dec 21 17:42:33 iphone mDNSResponder[99] <Info>: GetServerForQuestion: 00000001010070C8 DNS server (000000010031A040) 192.168.1.3:53 (Penalty Time Left 0) (Scope None:0000000000000000:-1) found for name user.jpush.cn. (Addr)
Dec 21 17:42:33 iphone mDNSResponder[99] <Info>: InitDNSConfig: question 00000001010070C8 user.jpush.cn. (Addr) Timeout 30, DNS Server 192.168.1.3:53
Dec 21 17:42:33 iphone mDNSResponder[99] <Info>: ShouldSuppressUnicastQuery: Query not suppressed for user.jpush.cn., qtype Addr, DNSServer . 192.168.1.3:53 allows A queries
Dec 21 17:42:33 iphone mDNSResponder[99] <Info>:  15: Result code socket 17 closed  00000000 00000001 (0)
Dec 21 17:42:33 iphone mDNSResponder[99] <Info>: GenerateNegativeResponse: Generating negative response for question user.jpush.cn. (AAAA)
Dec 21 17:42:33 iphone mDNSResponder[99] <Info>: queryrecord_result_callback: Suppressed question user.jpush.cn. (AAAA)
Dec 21 17:42:33 iphone mDNSResponder[99] <Info>:  15: DNSServiceGetAddrInfo(user.jpush.cn., AAAA) ADD    0 user.jpush.cn. AAAA
Dec 21 17:42:33 iphone mDNSResponder[99] <Info>:  15: DNSServiceGetAddrInfo(user.jpush.cn., Addr) ADD    4 user.jpush.cn. Addr 113.31.136.60
Dec 21 17:42:33 iphone mDNSResponder[99] <Info>:  15: DNSServiceGetAddrInfo(user.jpush.cn., Addr) ADD    4 user.jpush.cn. Addr 103.40.232.116

#6

你的崩溃信息的那一部分。


(栗先森) #7
Dec 21 17:50:17 iphone DaYuan[1021] <Notice>:  | JIGUANG | D - [JIGUANGReport] send report:(
	{
		type = crash_log;
		itime = 1513849817;
		crashlogs = (
			{
				networktype = ReachableViaWWAN;
				versioncode = 2.3.1;
				crashtime = 1513849817;
				count = 1;
				message = *** -[__NSArrayM objectAtIndex:]: index 3 beyond bounds [0 .. 2];
				versionname = 2.3.1;
				device_info = {
					model = iPhone7,1;
					os_version = 10.2.1;
					timezone = +8;
					language = zh-Hans-CN;
					type = device_info;
					itime = 1513849817;
					resolution = 640x1136;
				};
				stacktrace = (
	0   CoreFoundation                      0x000000018a5a11d0 <redacted> + 148
	1   libobjc.A.dylib                     0x0000000188fd855c objc_exception_throw + 56
	2   CoreFoundation                      0x000000018a47c71c <redacted> + 0
	3   DaYuan                              0x0000000100115e78 -[DyHomeLeftViewController tableView:cellForRowAtIndexPath:] + 424
	4   UIKit                               0x0000000190799b58 <redacted> + 716
	5   UIKit
Dec 21 17:50:17 iphone SpringBoard(KeyboardArbiter)[57] <Info>: HW kbd: currently com.clovt.DaYuanService ((null) < (null))
Dec 21 17:50:17 iphone SpringBoard(KeyboardArbiter)[57] <Error>: HW kbd: Failed to set (null) as keyboard focus
Dec 21 17:50:17 iphone mediaserverd(AudioToolbox)[30] <Notice>: 94: sid:0x1ead5, DaYuan(1021), 'prim'
Dec 21 17:50:17 iphone CommCenter[77] <Notice>: #I CTServerConnection from pid 1021 has closed (conn=0x1043a64c0)
Dec 21 17:50:17 iphone mediaserverd(CoreMedia)[30] <Notice>: -CMSessionMgr- cmsSetDiscoveryMode: CMSession: 'sid:0x1ead5, DaYuan(1021), 'prim'' com.clovt.DaYuanService(pid = 1021) requesting to set the discovery mode to DiscoveryMode_None
Dec 21 17:50:17 iphone mediaserverd(CoreMedia)[30] <Notice>: -CMRoutingMgr- CMRoutingMgr_SetDiscoveryMode: CMSession: Session requesting to set the discovery mode to DiscoveryMode_None
Dec 21 17:50:17 iphone SpringBoard(UserNotificationsServer)[57] <Notice>: UNSUserNotificationServerConnectionListener connection invalidated
Dec 21 17:50:17 iphone CommCenter[77] <Notice>: #I CTServerConnection from pid 1021 has closed (conn=0x10439a070)
Dec 21 17:50:17 iphone locationd[63] <Notice>: Client com.clovt.DaYuanService disconnected
Dec 21 17:50:17 iphone locationd[63] <Info>: CLGyroBiasEstimator unknown client instance <private>
Dec 21 17:50:17 iphone locationd[63] <Info>: CLGyroBiasEstimator,SPUEnabled,<private>,BuildingGYTT,<private>,NumClients,<private>
Dec 21 17:50:17 iphone CommCenter[77] <Notice>: #I CTServerConnection from pid 1021 has closed (conn=0x105148350)
Dec 21 17:50:17 iphone mDNSResponder[99] <Info>:  15: DNSServiceCreateConnection STOP PID[1021](DaYuan)
Dec 21 17:50:17 iphone mDNSResponder[99] <Info>:  15: DNSServiceQueryRecord(pingma.qq.com., Addr) STOP PID[1021](DaYuan)
Dec 21 17:50:17 iphone mDNSResponder[99] <Info>:  15: DNSServiceQueryRecord(pingma.qq.com., AAAA) STOP PID[1021](DaYuan)
Dec 21 17:50:17 iphone mDNSResponder[99] <Info>:  15: Removing FD
Dec 21 17:50:17 iphone backboardd[60] <Notice>: Turning off orientation events.
Dec 21 17:50:17 iphone backboardd(CoreMotion)[60] <Info>: Stopping orientation updates
Dec 21 17:50:17 iphone backboardd(CoreMotion)[60] <Info>: IOHIDServiceClientSetProperty() successfully set property for event <private>
Dec 21 17:50:17 iphone backboardd(CoreMotion)[60] <Info>: Property for usage pair {<private>,<private>}: {<private> = <private>} was set <private>
Dec 21 17:50:17 iphone backboardd(CoreMotion)[60] <Info>: IOHIDServiceClientSetProperty() successfully set property for event <private>
Dec 21 17:50:17 iphone backboardd(CoreMotion)[60] <Info>: Property for usage pair {<private>,<private>}: {<private> = <private>} was set <private>
Dec 21 17:50:17 iphone backboardd(CoreMotion)[60] <Notice>: Stopping orientation detection.
Dec 21 17:50:17 iphone backboardd(BaseBoard)[60] <Error>: Unable to get short BSD proc info for 1021: No such process
Dec 21 17:50:17 iphone backboardd(BaseBoard)[60] <Error>: Unable to get proc info for 1021: No such process
Dec 21 17:50:17 iphone ReportCrash(CrashReporterSupport)[1022] <Notice>: cr_update: <private>
Dec 21 17:50:17 iphone ReportCrash(CrashReporterSupport)[1022] <Notice>: cr_update: <private>
Dec 21 17:50:17 iphone ReportCrash[1022] <Notice>: __crash_info: '(null)'
Dec 21 17:50:17 iphone ReportCrash[1022] <Notice>: __crash_info: '<private>'
Dec 21 17:50:17 iphone ReportCrash[1022] <Notice>: Formulating report for corpse[1021] <private>
Dec 21 17:50:17 iphone ReportCrash(MobileCoreServices)[1022] <Notice>: notify_register_check() failed with error 1000000
Dec 21 17:50:17 iphone SpringBoard[57] <Notice>: Process exited: <FBApplicationProcess: 0x106eae570; DaYuan; pid: -1> -> <FBApplicationProcessExitContext: 0x1700538f0; exitReason: (none); terminationReason: (none)>
Dec 21 17:50:17 iphone SpringBoard(FrontBoard)[57] <Info>: setting object for key=SBDefaultStatusBarStyleKey bundleID=<private> object=(null)
Dec 21 17:50:17 iphone SpringBoard(FrontBoard)[57] <Info>: updating cache key=SBDefaultStatusBarStyleKey bundleID=<private> object=(null)
Dec 21 17:50:17 iphone SpringBoard(FrontBoard)[57] <Info>: setting object for key=SBDefaultStatusBarHiddenKey bundleID=<private> object=(null)
Dec 21 17:50:17 iphone SpringBoard(FrontBoard)[57] <Info>: updating cache key=SBDefaultStatusBarHiddenKey bundleID=<private> object=(null)
Dec 21 17:50:17 iphone SpringBoard[57] <Info>: The top thing is com.apple.springboard (fallback) and he wants orientation events: YES _wantsOrientationEvents: YES
Dec 21 17:50:17 iphone SpringBoard[57] <Notice>: Running <SBAppExitedWorkspaceTransaction: 0x106dec7d0> for transition request:
<SBMainWorkspaceTransitionRequest: 0x174ce2500; display: Main; source: Unspecified> {
    applicationContext = <SBWorkspaceApplicationTransitionContext: 0x174accd30; background: NO> entities = {
        SBLayoutPrimaryRole = <SBWorkspaceHomeScreenEntity: 0x175241440; ID: com.apple.SpringBoard.builtin.HomeScreen; layoutRole: primary>;
    };
}

#8

你是只集成了 JPush SDK,然后打开了 JPush的崩溃上报 [JPUSHService crashLogON]; 是吧


(栗先森) #9

是的,我刚刚又看极光后台忽然有了崩溃日志,但是代码没有变过,有两条崩溃统计


#10

那现在数据是否正常了?有两条崩溃统计,还少不少?


(栗先森) #11

统计还是少,因为代码没变的情况下我测试的崩溃情况肯定多余两条的.