How can I check why my android app crash without error - android

I am facing the problem where my application randomly crash without error after updating photo in firebase storage and trying to navigate to particular fragment. Last thing i got in log:
I/Process: Sending signal. PID: 8287 SIG: 9
I don't know how to check what makes application act like that. Could anyone give me advice how to check what is wrong or tell me if this log message has any tip what is happening?

It happens that an application breaks without giving a reason, but the reason always exists.
Since you are using Firebase in the project, try connecting Crashlytics to the project (included in the Firebase ecosystem), this is done very quickly and easily and then you will definitely see your error in the Firebase console.
So you can see not only detailed information and error stacktrace for your specific problem, but also crashes of your users including detailed analytical information.
Go to the Firebase console.
Click on the tab "Crashlytics" tab.
Click on the button "Enable Crashlytics".
You should update your google-services.json file.
See details info here

Related

Where does Crashlytics.log(""); go?

I'm trying to set up my app with firebase+crashlytics for having a better error dashboard.
All the firebase stuff is already working and I'm able to access the features
I tested crashlytics with:
Crashlytics.getInstance().crash(); // Force a crash
and i'm able to see the stack trace on my dashboard (inside firebase)
but I'm trying to log non-fatal messages like:
Crashlytics.log("test");
And it doesn't appear anywhere
I followed the whole instructions at:
https://firebase.google.com/docs/crashlytics/customize-crash-reports
Still doesn't find any dashboard with the "test" messages
Where does it go? what am I missing?
Sending non-debug errors (e.g. your test message) logs to Crashlytics locally, but these exceptions are not uploaded until the app restarts.
As the documentation states:
Crashlytics batches logged exceptions together and sends them the next time the app launches.
This is presumably due to the primary Crashlytics functionality (reporting crashes) working in the same way, and non-fatal errors being a secondary concern using the same code flow.
Whilst this is unfortunate, there are many third party log-collating services that can handle the non-fatal errors.
Note: I'm aware you've received an answer in the comments from Crashlytics, I'm providing a more comprehensive answer for future visitors.
It's an old question any way i wanted to share what happens to messages logged using Crashlytics.log(msg); These logs are not immediately shown to dashboard. Crashlytics stores all the logged messages logged using log(msg) method and uploads it to server when a new Crash or Exception occurs.
You can see these messages in Firebase console under logs section as shown in below image
One more thing if you want to log exceptions there is another method for it Crashlytics.logException(exception)
Crashlytics isn't made for develop logging/debug, it is made to cluster hundreds/thousands of logs from different users at runtime, this may cause delays between the time the log message are recorded and when you will really be able to see them at the dashboard making it unusable for development debug.
If you want to use Crashlytics to follow the code workflow and debug during development, you will need to use the trick in this answer.
https://stackoverflow.com/a/69340289/5679560
As mentioned in below link
https://support.crashlytics.com/knowledgebase/articles/120066-how-do-i-use-logging
You can see this crashes on Crashlytics dashboard if you look at the specific crash itself.
The recommended way to add custom logging to your app is:
Crashlytics.log(int priority, String tag, String msg)

How to get logs of app from android without using android studio?

I have given App to my friend but its not working.I want to know the issue so that I want log file of my App.Is there anyway to get logs from android without using android studio or any debugger tool.I want only log file to get solve issue.So What is the way to get log file from android device.
Thanks in advance.
Use Fabric io Crashlytics for reports and errors
for more information visit: https://fabric.io/kits/android/crashlytics
You can use firebase log events.
Best way is to add Firebase inside your app, With the help of Firebase Crashing Report, you can check all the crashes from your app
You can use Firebase Log events. Please check the link below:
Firebase Log events
I have same question about you that's why I built the Clerk.
https://github.com/Jintin/Clerk
Clerk is an Android app can install on your device which collect log information by broadcast receiver.
By using this, you can easily delegate you log to it. And you can view the result by open the app. Leverage on LiveData it's realtime and in same device without send the log online.
Let me know if you have any other input. Thanks.

Get log of Application Crash & ANR?

I found a section Crash & ANR in my Google play account
This list the crashes occurred but this is when user report the crash.
I have well managed application but some times it is being crashed as reported by one user.
What i want to get a log from device for the application crashes and save and send automatically.
Is there any Process to get the details of all or Previous Crash from android systems on Next Application Start up?
You can trap and log it manually, but this is usually solved by integrating crash handling and reporting services like TestFlight, New Relic, and other similar services. There are some self-hosted, open source tools like android-remote-stacktrace too.
The libraries are set to capture any unhandled exception your application, log the exception to a remote server so you can view it without requiring the user to send it to you manually, and will then allow the original exception to be rethrown as normal.
Android Handling the Unexpected also covers the idea in detail with some sample code if you really want to do it yourself. That post also lists several more example external services.

Force Close error description

I've released an application to some people for testing. Some of them are reporting that it works fine, while other say that they are getting Force Close error on the first run. How can I get the error description that happens, so I can fix it?
For now, ask users to install any logcat reading app and send you the stacktrace, if they're running Android 4.0 or below.
In future updates, integrate a library like ACRA that can automatically send you error reports.
Ask a selection of your users to install aLogcat, and to send the logs to you when the problem occurs. After all, assuming they're all suffering from the same problem, you only really need a single user to send you the logs so that you can get a call stack to diagnose it.
Look here:
You can try Application Crash Report for Android.
Second most suitable for error logging BugSense. It upload the error message on dashboard immediately.
Third I have example on github to send the error trace on to developer email.
https://github.com/ajaysaini-sgvu/CrashReport

Android application bug report

Any ideas how can I create a bug report in my application and when application crash to open a dialog and give the user a chance to send us report with files attached to the e-mail and etc. I've already implemented a function which is sending the error message to out server, but I want to be able to let the user to send these errors with some text input, attached files and etc.
Any ideas how should I proceed?
You can find exactly what you're looking for in Instabug. It is a bug & crash reporting SDK that allows for two things:
Allows users to report bugs through a shake gesture in-app
Upon a shake, a screenshot is taken that the user can draw on for visual bug identification.
User can further describe the bug using text, extra screenshots, voice notes, or even screen recordings.
Automatically receive crash reports in the event of a crash
All reports arrive to your Instabug dashboard containing various details such as:
Network and console logs
Complete Device details
Visual reproduction steps
Crash stack trace (In case of a crash report)
It only takes a line of code to integrate.
For full disclosure, I work at Instabug. Let me know if I can help.
See ACRA. It's a solid crash reporting library.
You can get more information than the reports in Google Play, and there are a lot of configuration options detailing just which info you want and how you want it delivered. Default is to upload spreadsheets into Google docs.
Also allows user input at crash time.

Categories

Resources