Closed hffmnn closed 6 years ago
Is the output you pasted at the end printed in a scenario where a crash is being sent? If so, it looks like some lines are missing. Can you please try reproducing the scenario and send the logs that appear when the app is restarted (after crashing)? Thanks!
Hi and thanks for the quick answer.
I let the app crash and restarted it without the debugger attached. This are the resulting logs:
2018-11-20 23:07:47.692588+0100 poc[95509:819132] [AppCenterCrashes] VERBOSE: -[MSCrashes channel:didCompleteEnqueueingLog:withInternalId:]/494 Deleting a log from buffer with id 9004B556-384D-4773-B090-3D3CFDBFAB68
2018-11-20 23:07:47.694637+0100 poc[95509:819132] [AppCenter] VERBOSE: -[MSChannelUnitDefault resumeWithIdentifyingObjectSync:]/442 Identifying object <MSAnalytics: 0x600001ca58f0> removed from pause lane for channel Analytics.
2018-11-20 23:07:47.694818+0100 poc[95509:819132] [AppCenter] DEBUG: -[MSChannelUnitDefault resumeWithIdentifyingObjectSync:]/444 Resume channel Analytics.
2018-11-20 23:07:47.695756+0100 poc[95509:819132] [AppCenter] DEBUG: -[MSChannelUnitDefault enqueueItem:]_block_invoke/169 Saving log, type: startSession.
2018-11-20 23:07:47.697956+0100 poc[95509:819132] [AppCenter] DEBUG: -[MSChannelUnitDefault enqueueItem:]_block_invoke/169 Saving log, type: startService.
2018-11-20 23:07:47.699819+0100 poc[95509:819132] [AppCenterCrashes] VERBOSE: -[MSCrashes channel:didCompleteEnqueueingLog:withInternalId:]/494 Deleting a log from buffer with id 59DB6CAD-3E3E-4F74-91B3-D02D0A487BDA
2018-11-20 23:07:47.700047+0100 poc[95509:819132] [AppCenter] VERBOSE: -[MSChannelUnitDefault resumeWithIdentifyingObjectSync:]/442 Identifying object <MSAnalytics: 0x600001ca58f0> removed from pause lane for channel Analytics/one.
2018-11-20 23:07:47.700209+0100 poc[95509:819132] [AppCenter] DEBUG: -[MSChannelUnitDefault resumeWithIdentifyingObjectSync:]/444 Resume channel Analytics/one.
2018-11-20 23:07:48.701419+0100 poc[95509:819142] [AppCenterCrashes] DEBUG: -[MSCrashes startCrashProcessing]/656 Start delayed CrashManager processing
2018-11-20 23:07:48.717733+0100 poc[95509:819142] [AppCenterCrashes] VERBOSE: -[MSCrashes processCrashReports]/715 Crash reports found
2018-11-20 23:07:48.731041+0100 poc[95509:819142] [AppCenterCrashes] DEBUG: -[MSCrashes processCrashReports]/725 shouldProcessErrorReport is not implemented or returned YES, processing the crash report: <MSPLCrashReport: 0x6000013be3a0>
2018-11-20 23:07:48.731184+0100 poc[95509:819142] [AppCenterCrashes] DEBUG: -[MSCrashes sendCrashReportsOrAwaitUserConfirmation]/1056 The user confirmation handler is not implemented or returned NO, continue sending logs
2018-11-20 23:07:48.731299+0100 poc[95509:819142] [AppCenterCrashes] DEBUG: -[MSCrashes notifyWithUserConfirmation:]/1130 attachmentsWithCrashes is not implemented
2018-11-20 23:07:48.731667+0100 poc[95509:819124] [AppCenter] DEBUG: -[MSChannelUnitDefault enqueueItem:]_block_invoke/169 Saving log, type: appleError.
2018-11-20 23:07:48.734014+0100 poc[95509:819142] [AppCenter] DEBUG: +[MSUtility(File) deleteItemForPathComponent:]/56 Couldn't remove item at file:///Users/christian/Library/Developer/CoreSimulator/Devices/6CDE8597-20E5-43AD-8CB8-C31C552BA8A3/data/Containers/Data/Application/20995C43-E1AC-4747-A32A-0FB6630E3E48/Library/Application%20Support/com.microsoft.appcenter/crasheswrapperexceptions/814DDC7A-2951-4C42-8915-16C5253FD8DE: “814DDC7A-2951-4C42-8915-16C5253FD8DE” couldn’t be removed.
2018-11-20 23:07:48.734780+0100 poc[95509:819142] [AppCenter] VERBOSE: -[MSSessionContext clearSessionHistory]/83 Cleared old sessions.
2018-11-20 23:07:48.736851+0100 poc[95509:819137] [AppCenterCrashes] DEBUG: -[MSCrashes sendCrashReportsOrAwaitUserConfirmation]/1056 The user confirmation handler is not implemented or returned NO, continue sending logs
2018-11-20 23:07:48.736977+0100 poc[95509:819137] [AppCenterCrashes] DEBUG: -[MSCrashes notifyWithUserConfirmation:]/1130 attachmentsWithCrashes is not implemented
2018-11-20 23:07:48.737612+0100 poc[95509:819137] [AppCenter] DEBUG: +[MSUtility(File) deleteFileAtURL:]/78 Couldn't remove item at file:///Users/christian/Library/Developer/CoreSimulator/Devices/6CDE8597-20E5-43AD-8CB8-C31C552BA8A3/data/Containers/Data/Application/20995C43-E1AC-4747-A32A-0FB6630E3E48/Library/Application%20Support/com.microsoft.appcenter/crashes/564444468: “564444468” couldn’t be removed.
2018-11-20 23:07:48.737884+0100 poc[95509:819137] [AppCenter] DEBUG: +[MSUtility(File) deleteItemForPathComponent:]/56 Couldn't remove item at file:///Users/christian/Library/Developer/CoreSimulator/Devices/6CDE8597-20E5-43AD-8CB8-C31C552BA8A3/data/Containers/Data/Application/20995C43-E1AC-4747-A32A-0FB6630E3E48/Library/Application%20Support/com.microsoft.appcenter/crasheswrapperexceptions/814DDC7A-2951-4C42-8915-16C5253FD8DE: “814DDC7A-2951-4C42-8915-16C5253FD8DE” couldn’t be removed.
2018-11-20 23:07:48.738084+0100 poc[95509:819137] [AppCenter] VERBOSE: -[MSSessionContext clearSessionHistory]/83 Cleared old sessions.
2018-11-20 23:07:48.738851+0100 poc[95509:819137] [AppCenterCrashes] DEBUG: -[MSCrashes notifyWithUserConfirmation:]/1130 attachmentsWithCrashes is not implemented
2018-11-20 23:07:48.739166+0100 poc[95509:819137] [AppCenter] DEBUG: +[MSUtility(File) deleteFileAtURL:]/78 Couldn't remove item at file:///Users/christian/Library/Developer/CoreSimulator/Devices/6CDE8597-20E5-43AD-8CB8-C31C552BA8A3/data/Containers/Data/Application/20995C43-E1AC-4747-A32A-0FB6630E3E48/Library/Application%20Support/com.microsoft.appcenter/crashes/564444468: “564444468” couldn’t be removed.
2018-11-20 23:07:48.739445+0100 poc[95509:819137] [AppCenter] DEBUG: +[MSUtility(File) deleteItemForPathComponent:]/56 Couldn't remove item at file:///Users/christian/Library/Developer/CoreSimulator/Devices/6CDE8597-20E5-43AD-8CB8-C31C552BA8A3/data/Containers/Data/Application/20995C43-E1AC-4747-A32A-0FB6630E3E48/Library/Application%20Support/com.microsoft.appcenter/crasheswrapperexceptions/814DDC7A-2951-4C42-8915-16C5253FD8DE: “814DDC7A-2951-4C42-8915-16C5253FD8DE” couldn’t be removed.
2018-11-20 23:07:48.739658+0100 poc[95509:819137] [AppCenter] VERBOSE: -[MSSessionContext clearSessionHistory]/83 Cleared old sessions.
2018-11-20 23:07:48.765098+0100 poc[95509:819124] [AppCenter] DEBUG: -[MSChannelUnitDefault flushQueue]_block_invoke/237 Sending 1/1 log, group Id: Crashes, batch Id: 3205790D-BFB1-4687-93D3-E94E917E8434, session Id: EEE67592-2B67-4EA3-9D99-794BD61CAA89, payload:
sdkName: 'appcenter.ios',
sdkName: 'appcenter.ios',
2018-11-20 23:07:48.778852+0100 poc[95509:819124] [AppCenter] VERBOSE: -[MSAppCenterIngestion createRequest:]/90 URL: https://in.appcenter.ms/logs?api-version=1.0.0
2018-11-20 23:07:48.779042+0100 poc[95509:819124] [AppCenter] VERBOSE: -[MSAppCenterIngestion createRequest:]/91 Headers: Content-Encoding = gzip, Install-ID = 7BC5386A-29C2-4E90-A0A1-7DA7B58F8ACA, App-Secret = ****************************01162407, Content-Type = application/json
2018-11-20 23:07:48.779788+0100 poc[95509:819124] [AppCenter] DEBUG: -[MSChannelUnitDefault enqueueItem:]_block_invoke/169 Saving log, type: appleError.
2018-11-20 23:07:48.801462+0100 poc[95509:819124] [AppCenter] DEBUG: -[MSChannelUnitDefault flushQueue]_block_invoke/237 Sending 1/1 log, group Id: Crashes, batch Id: 74F79582-7AB2-497A-8315-B305A3D202DE, session Id: (null), payload:
sdkName: 'appcenter.ios',
sdkName: 'appcenter.ios',
2018-11-20 23:07:48.829836+0100 poc[95509:819124] [AppCenter] VERBOSE: -[MSAppCenterIngestion createRequest:]/90 URL: https://in.appcenter.ms/logs?api-version=1.0.0
2018-11-20 23:07:48.830001+0100 poc[95509:819124] [AppCenter] VERBOSE: -[MSAppCenterIngestion createRequest:]/91 Headers: Content-Encoding = gzip, Install-ID = 7BC5386A-29C2-4E90-A0A1-7DA7B58F8ACA, App-Secret = ****************************01162407, Content-Type = application/json
2018-11-20 23:07:48.830356+0100 poc[95509:819124] [AppCenter] DEBUG: -[MSChannelUnitDefault enqueueItem:]_block_invoke/169 Saving log, type: appleError.
2018-11-20 23:07:48.853003+0100 poc[95509:819124] [AppCenter] DEBUG: -[MSChannelUnitDefault flushQueue]_block_invoke/237 Sending 1/1 log, group Id: Crashes, batch Id: C75B3603-5F77-4256-B12E-EDAC67246FF3, session Id: (null), payload:
sdkName: 'appcenter.ios',
sdkName: 'appcenter.ios',
2018-11-20 23:07:48.865529+0100 poc[95509:819124] [AppCenter] VERBOSE: -[MSAppCenterIngestion createRequest:]/90 URL: https://in.appcenter.ms/logs?api-version=1.0.0
2018-11-20 23:07:48.865676+0100 poc[95509:819124] [AppCenter] VERBOSE: -[MSAppCenterIngestion createRequest:]/91 Headers: Content-Encoding = gzip, Install-ID = 7BC5386A-29C2-4E90-A0A1-7DA7B58F8ACA, App-Secret = ****************************01162407, Content-Type = application/json
2018-11-20 23:07:49.645391+0100 poc[95509:819137] [AppCenter] VERBOSE: -[MSHttpIngestion sendCallAsync:]_block_invoke/234 HTTP response received with status code: 200, payload:
2018-11-20 23:07:49.645716+0100 poc[95509:819142] [AppCenter] DEBUG: -[MSChannelUnitDefault flushQueue]_block_invoke/258 Log(s) sent with success, batch Id:3205790D-BFB1-4687-93D3-E94E917E8434.
2018-11-20 23:07:49.645806+0100 poc[95509:819137] [AppCenter] INFO: -[MSHttpIngestion call:completedWithResult:]/283 Removed call id:3205790D-BFB1-4687-93D3-E94E917E8434 from pending calls:{
sdkName: 'appcenter.ios',
sdkName: 'appcenter.ios',
2018-11-20 23:07:49.654553+0100 poc[95509:819142] [AppCenter] VERBOSE: -[MSLogDBStorage deleteLogsFromDBWithColumnValues:columnName:]/268 Deletion of log(s) by id with value(s) '7' succeeded.
2018-11-20 23:07:50.069974+0100 poc[95509:819137] [AppCenter] VERBOSE: -[MSHttpIngestion sendCallAsync:]_block_invoke/234 HTTP response received with status code: 200, payload:
2018-11-20 23:07:50.070202+0100 poc[95509:819124] [AppCenter] DEBUG: -[MSChannelUnitDefault flushQueue]_block_invoke/258 Log(s) sent with success, batch Id:C75B3603-5F77-4256-B12E-EDAC67246FF3.
2018-11-20 23:07:50.070207+0100 poc[95509:819137] [AppCenter] INFO: -[MSHttpIngestion call:completedWithResult:]/283 Removed call id:C75B3603-5F77-4256-B12E-EDAC67246FF3 from pending calls:{
sdkName: 'appcenter.ios',
sdkName: 'appcenter.ios',
2018-11-20 23:07:50.079514+0100 poc[95509:819124] [AppCenter] VERBOSE: -[MSLogDBStorage deleteLogsFromDBWithColumnValues:columnName:]/268 Deletion of log(s) by id with value(s) '9' succeeded.
2018-11-20 23:07:50.092818+0100 poc[95509:819124] [AppCenter] VERBOSE: -[MSHttpIngestion sendCallAsync:]_block_invoke/234 HTTP response received with status code: 200, payload:
2018-11-20 23:07:50.093011+0100 poc[95509:819124] [AppCenter] INFO: -[MSHttpIngestion call:completedWithResult:]/283 Removed call id:74F79582-7AB2-497A-8315-B305A3D202DE from pending calls:{
2018-11-20 23:07:50.093011+0100 poc[95509:819142] [AppCenter] DEBUG: -[MSChannelUnitDefault flushQueue]_block_invoke/258 Log(s) sent with success, batch Id:74F79582-7AB2-497A-8315-B305A3D202DE.
sdkName: 'appcenter.ios',
sdkName: 'appcenter.ios',
2018-11-20 23:07:50.096415+0100 poc[95509:819142] [AppCenter] VERBOSE: -[MSLogDBStorage deleteLogsFromDBWithColumnValues:columnName:]/268 Deletion of log(s) by id with value(s) '8' succeeded.
2018-11-20 23:07:50.701805+0100 poc[95509:819142] [AppCenter] DEBUG: -[MSChannelUnitDefault flushQueue]_block_invoke/237 Sending 1/1 log, group Id: Analytics, batch Id: A820200B-F282-48DD-B514-D9DC9B8A7669, session Id: B6EED256-45A7-4B4F-B294-2662673D67B8, payload:
"wrapperSdkName" : "appcenter.react-native",
"sdkName" : "appcenter.ios",
2018-11-20 23:07:50.702206+0100 poc[95509:819142] [AppCenter] VERBOSE: -[MSAppCenterIngestion createRequest:]/90 URL: https://in.appcenter.ms/logs?api-version=1.0.0
2018-11-20 23:07:50.702446+0100 poc[95509:819142] [AppCenter] VERBOSE: -[MSAppCenterIngestion createRequest:]/91 Headers: Install-ID = 7BC5386A-29C2-4E90-A0A1-7DA7B58F8ACA, App-Secret = ****************************01162407, Content-Type = application/json
2018-11-20 23:07:50.704203+0100 poc[95509:819142] [AppCenter] DEBUG: -[MSChannelUnitDefault flushQueue]_block_invoke/237 Sending 1/2 log, group Id: AppCenter, batch Id: 9EC2CBC5-9851-4EA1-B1D6-A3687D305495, session Id: (null), payload:
"wrapperSdkName" : "appcenter.react-native",
"sdkName" : "appcenter.ios",
2018-11-20 23:07:50.704433+0100 poc[95509:819142] [AppCenter] DEBUG: -[MSChannelUnitDefault flushQueue]_block_invoke/237 Sending 2/2 log, group Id: AppCenter, batch Id: 9EC2CBC5-9851-4EA1-B1D6-A3687D305495, session Id: (null), payload:
"wrapperSdkName" : "appcenter.react-native",
"sdkName" : "appcenter.ios",
2018-11-20 23:07:50.710478+0100 poc[95509:819142] [AppCenter] VERBOSE: -[MSAppCenterIngestion createRequest:]/90 URL: https://in.appcenter.ms/logs?api-version=1.0.0
2018-11-20 23:07:50.710676+0100 poc[95509:819142] [AppCenter] VERBOSE: -[MSAppCenterIngestion createRequest:]/91 Headers: Install-ID = 7BC5386A-29C2-4E90-A0A1-7DA7B58F8ACA, App-Secret = ****************************01162407, Content-Type = application/json
2018-11-20 23:07:50.840796+0100 poc[95509:819124] [AppCenter] VERBOSE: -[MSHttpIngestion sendCallAsync:]_block_invoke/234 HTTP response received with status code: 200, payload:
2018-11-20 23:07:50.841054+0100 poc[95509:819132] [AppCenter] DEBUG: -[MSChannelUnitDefault flushQueue]_block_invoke/258 Log(s) sent with success, batch Id:9EC2CBC5-9851-4EA1-B1D6-A3687D305495.
2018-11-20 23:07:50.841073+0100 poc[95509:819124] [AppCenter] INFO: -[MSHttpIngestion call:completedWithResult:]/283 Removed call id:9EC2CBC5-9851-4EA1-B1D6-A3687D305495 from pending calls:{
2018-11-20 23:07:50.841311+0100 poc[95509:819137] [AppCenter] VERBOSE: -[MSHttpIngestion sendCallAsync:]_block_invoke/234 HTTP response received with status code: 200, payload:
2018-11-20 23:07:50.841495+0100 poc[95509:819137] [AppCenter] INFO: -[MSHttpIngestion call:completedWithResult:]/283 Removed call id:A820200B-F282-48DD-B514-D9DC9B8A7669 from pending calls:{
2018-11-20 23:07:50.844205+0100 poc[95509:819132] [AppCenter] VERBOSE: -[MSLogDBStorage deleteLogsFromDBWithColumnValues:columnName:]/268 Deletion of log(s) by id with value(s) '4','6' succeeded.
2018-11-20 23:07:50.844363+0100 poc[95509:819132] [AppCenter] DEBUG: -[MSChannelUnitDefault flushQueue]_block_invoke/258 Log(s) sent with success, batch Id:A820200B-F282-48DD-B514-D9DC9B8A7669.
2018-11-20 23:07:50.846101+0100 poc[95509:819132] [AppCenter] VERBOSE: -[MSLogDBStorage deleteLogsFromDBWithColumnValues:columnName:]/268 Deletion of log(s) by id with value(s) '5' succeeded.
Thanks for that! So it's looking like this might be a backend issue rather than SDK side issue, so to make sure the right person helps you out, do you mind moving this conversation to Intercom? To do that, just press the blue button in the lower left corner of the portal and describe your issue in the chat. (And please include the info you provided here! Or just link this issue.) Thanks so much!
Thanks for the info. Will do!
Hi @hffmnn, may I know how did you get this solved..? Thanks
@PaulsonMac Sorry, but I can not remember. As far as I can remember I informed the backend team via Intercom, but can not remember the outcome (mainly because we no longer use RN and AppCenter).
@hffmnn, ok.. not a problem 👍 Thanks!
@PaulsonMac feel free to get in touch with via intercom ticket if you need any assistance. To do so, click support button in the corner of appcenter portal
@PaulsonMac Sorry, but I can not remember. As far as I can remember I informed the backend team via Intercom, but can not remember the outcome (mainly because we no longer use RN and AppCenter).
so you basically resolved by removing the app center from application :)
Description
I would like to use the crash reporting feature of AppCenter-SDK-React-Native on iOS. So I followed the setup description for the SDK and the example on how to trigger a crash, described here.
The problem is, that no crash log appears in the backend.
I sniffed the https traffic with charles and get Status Code 200, basically the same as described here https://github.com/Microsoft/AppCenter-SDK-React-Native/issues/349
I also set a
CrashesListener
andonSendingSucceeded
gets called.Things I also made sure:
Repro Steps
Please list the steps used to reproduce your issue.
Crashes.generateTestCrash()
Details
pod 'AppCenter/Crashes', '~> 1.10.0'
pod 'AppCenter/Analytics', '~> 1.10.0'
pod 'AppCenterReactNativeShared', '~> 1.9.0'
CrashesListener
pod 'Firebase/Core', '~> 5.11.0'
, not used for Crash reportingreact-native info
pod --version
1.5.3
[MSAppCenter setLogLevel: MSLogLevelVerbose];
before your call to[AppCenterReactNative register];
(or any other SDK registration). For Android, useAppCenter.setLogLevel(android.util.Log.VERBOSE);
before yourSoLoader.init
call. Include the logs here:This gives the following error: