Add one small file to your app: every crash arrives in uBugtrack, grouped and counted, with its probable origin and a readable stack trace. One click turns it into a ticket.
ExceptionIllegalStateExceptioncaused by NullPointerExceptionCoupon.kt:31
Checkout failed
java.lang.IllegalStateException: Checkout failed
at com.example.shop.CartActivity.onPay(CartActivity.kt:88)
5 framework frames
at android.view.View.performClick(View.java:7659)
at android.view.View.performClickInternal(View.java:7636)
at android.view.View$PerformClick.run(View.java:30156)
at android.os.Handler.handleCallback(Handler.java:958)
at android.os.Looper.loop(Looper.java:222)
Caused by:java.lang.NullPointerException: Attempt to invoke virtual method 'int java.lang.String.length()' on a null object reference
at com.example.shop.cart.Coupon.apply(Coupon.kt:31)probable origin
at com.example.shop.CartActivity.onPay(CartActivity.kt:84)
... 5 more
How it works
Add the library of your platform to your app (one file, no dependency) with the crash key of your project.
Your app sends its crashes by itself: uncaught exceptions, fatal errors, unhandled promise rejections, warnings. A crash that could not be sent is sent at the next launch.
Read them in the Crash Reporter: grouped by error, device and version, with the kind, the probable origin and a readable stack trace. Fix them, or turn them into tickets.
Every crash, automatically
Uncaught exceptions, fatal errors, warnings and promise rejections, sent by a small file in your app. No SDK, no dependency.
Grouped and counted
The same error on the same device and version is one line with its number of reports, the last one first.
Kind and origin at a glance
Fatal, exception or warning, the root cause, and the first line of your own code where it went wrong.
Readable stack traces
Colored like in your editor, the frames of Android, iOS, npm or vendor packages folded away.
Search and filters
Find a crash by message, class, file, device or version, keep only the fatal ones or the warnings.
One click to a ticket
Turn a crash into a ticket with the full report, from the website or the iPhone app.
Your crash key
Each project has its own crash key: the apps put it in their reports so that uBugtrack knows the project of a crash. It only allows to send crashes.
Not a secret, but not for everyone. The key is inside your apps and web pages. If someone sends you fake crashes with it, create a new key and update your apps: the old one stops working at once.
Reported: the uncaught exceptions of every thread, with their "Caused by". A crash is saved before it is sent: without network, it is sent at the next launch. Then the app ends as usual, so the crash still appears in the Play Console and in your other crash tools.
Reported: Objective-C exceptions and crashes (fatalError, force unwrap of nil, index out of range, bad memory access). The crash is saved when it happens and sent at the next launch; iOS still writes its own crash report. The version comes from your Info.plist.
Release builds strip the names of your functions: set Strip Style to Debugging Symbols in the build settings to keep them in the reports.
Reported: uncaught errors and unhandled promise rejections, with the browser and the page (without its query string, which can hold tokens). The same error is sent once per page, and the errors of browser extensions are ignored.
The scripts of another site only give details with crossorigin="anonymous" on their tag. A Content Security Policy must allow https://ubugtrack.com in connect-src.
Reported: uncaught exceptions, unhandled promise rejections and warnings. The crash is sent before the process exits, like Node.js does it. An error you caught: ubugtrackCrashReport.report(error, 'what failed').
Reported: warnings, uncaught exceptions and fatal errors (memory, time limit), with the URL or the script. PHP still logs and displays them as before, and the same error is sent once per request. An exception you caught: ubugtrack_report_exception($e).
from ubugtrack_crashreport import init_crash_reporter
init_crash_reporter('YOUR_CRASH_KEY', '1.0.0')
For a web app, wrap it too, so the errors come with their URL:
Flask
from ubugtrack_crashreport import UbugtrackWSGIMiddleware
app.wsgi_app = UbugtrackWSGIMiddleware(app.wsgi_app)
Django, wsgi.py
from ubugtrack_crashreport import UbugtrackWSGIMiddleware
application = UbugtrackWSGIMiddleware(
get_wsgi_application())
FastAPI
from ubugtrack_crashreport import UbugtrackASGIMiddleware
app.add_middleware(UbugtrackASGIMiddleware)
Reported: uncaught exceptions of the program and of its threads, and the errors of your web requests, with their chained exceptions. Python still prints them as before. An exception you caught: report_exception() inside except.
Questions
What is sent?
The error, its stack trace, the version of your app, the model of the device or the browser, its system, and the page or request that failed. Nothing about your users.
How are crashes grouped?
By error, device and version: the same crash again only adds to its counter and keeps the last log. Clear the old versions from the Crash Reporter once they are fixed.
How long are they kept?
A crash that was not reported again for 90 days is deleted. The log of a crash is cut at 2 KB.
Can I report an error I caught myself?
Yes: every library has a function for it, written in its section above.
How do I update a library?
Download its file again from this page and replace the one in your project. Each library is a single file with no dependency: there is no package manager to go through.