-
Notifications
You must be signed in to change notification settings - Fork 536
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Getting error on loading pending reports #149
Comments
Hi! Thanks for getting in touch with us! |
Can't check the code at the moment, so the following is just a guess. If I am not missing anything, the line
may incorrectly be truthy when |
Please check the sample code where I simulated a crash already but Loading data throws the error. |
try crashReporter.loadPendingCrashReportDataAndReturnError() this returns "The file “live_report.plcrash” couldn’t be opened because there is no such file." error. |
Could you please tell me, is there any dashboard where I could see the crash reports? How long it will take to return the pending reports, is there any particular duration? Because I just need to see the logs when crash happens. If you can share any documentation for this also would be great. |
Hi @hemaks123 , thank you for the demo app. I've checked it and found a couple of issues in your code:
Follow the steps to get the crash report data:
Here is a demo application that you can use as an example of how to use the lib. Please, let me know if it works for you.
The PLCrashReporter library doesn't send data over the network, and doesn't provide dashboards or any other user interface for monitoring crashes. If you need a UI for tracking your crashes, you can use MS App Center or create your own tracker based on data from the PLCrashReporter. |
Hi DmitriyKirakosyan , I tried with the latest framework in Xcode 12 and tried your approach as well, it is working now. I really appreciate all of your help on this solution. |
All not caught exceptions/errors falls to mach server or to just unix signal handler. PLCR should catch all of it.
@hemaks123 1.8.0 is not release yet, it will be the next version. It's always available for building from sources if you want to test unreleased changes |
1.8.0 has been released. Good timing :) |
Good to hear that, I will try to integrate the latest release. |
@DmitriyKirakosyan :
|
I've tested v1.8 with your project and it worked for me as expected. I've also tested on a new test app, adding the lib manually and downloading via cocoa pods, on an emulator and a real device. Everything worked as expected. Could you please share more details about your test steps? Here's what I do:
Actually, you should not experience any delay in getting the crash report. It's writing to the file once the crash happens and thus it should be available on the next launch. If you don't get the crash report on the next app launch, let's figure out why it happens :) Please try my steps and let's see if it works for you. The sample code can be found here: https://github.com/microsoft/plcrashreporter/blob/master/Other%20Sources/Crash%20Demo/main.m |
Hello again! Thanks for using App Center! |
Description
I am getting, "The file “live_report.plcrash” couldn’t be opened because there is no such file." error when trying load the pending reports.
Repro Steps
Please list the steps used to reproduce your issue.
Sample code I tried is given below,
On AppLaunch calling's below method -
private func setUpCrashReporter() {
//Crash report Activate
do {
try crashReporter?.enableAndReturnError()
debugPrint("crash report is active")
} catch let error {
// if CrashReporter.Shared.crashReportActivate() == true {
// //Crash repoprt is Active
// debugPrint("crash report is active")
// }
Details
The text was updated successfully, but these errors were encountered: