Skip to content
This repository has been archived by the owner on Nov 1, 2022. It is now read-only.

Debug UI for seeing past crashes (like about:crashes) #1705

Closed
pocmo opened this issue Jan 11, 2019 · 7 comments
Closed

Debug UI for seeing past crashes (like about:crashes) #1705

pocmo opened this issue Jan 11, 2019 · 7 comments
Assignees
Labels
<crash> Component: lib-crash E8 Estimation points: 8 🌟 feature New functionality and improvements 💡idea Ideas for a new component, feature, change ..

Comments

@pocmo
Copy link
Contributor

pocmo commented Jan 11, 2019

On Fennec we have about:crashes. This works partially for GeckoView for native crashes - but that's more like a lucky coincidence than something we expect.

The only piece that actually knows about all crashes (native crashes vs. uncaught exceptions) is lib-crash. We could provide some UI piece (maybe a fragment) in the library that apps can decide to show (up to them what triggers it).

We would like to see a list of crashes. For native crashes we would like to link to the crash on Socorro. I think for Sentry we can't do that - but we could at least expose parts of the stacktrace so that we can find it on Sentry. Or maybe append a random UUID to the crash report sent to Sentry - we can then expose the same UUID in the UI.

EDIT: Sentry internally already assigns a generated UUID to the event and we can get that via the event builder. Pasting this UUID into the search query field of the web UI directly jumps to the crash report and generates a URL like : [SENTRY SERVER]?query=[UUID]&limit=25&sort=date&statsPeriod=24h&shortIdLookup=1

┆Issue is synchronized with this Jira Task

@pocmo pocmo added 🌟 feature New functionality and improvements 💡idea Ideas for a new component, feature, change .. <crash> Component: lib-crash labels Jan 11, 2019
@cpeterso cpeterso changed the title Debug UI for seeing past crashes Debug UI for seeing past crashes (like about:crashes) Jun 4, 2019
@pocmo pocmo added the E8 Estimation points: 8 label Mar 23, 2020
@tarekziade
Copy link

tarekziade commented Apr 8, 2020

I would also love to have the ability to grab them from the host that runs the test. (maybe via a directory?)

The use case would to automate the collecting of crashes when we're doing tests on the CI in raptor and other places (we can't visit about: pages easily from webdriver).

Also, if we could grab it from a chrome API that would be fantastic, we would just do a webdriver call and would avoid having to read/write on the android file system.

@Dexterp37
Copy link
Contributor

The use case would to automate the collecting of crashes when we're doing tests on the CI in raptor and other places (we can't visit about: pages easily from webdriver).

Fly-by: if the use-case is to capture the number of times something crashes, we could also work for making CI send crash pings to our ingestion (or grab them locally on the CI). Perf has a similar use-case for perf metrics.

@tarekziade
Copy link

Fly-by: if the use-case is to capture the number of times something crashes, we could also work for making CI send crash pings to our ingestion (or grab them locally on the CI). Perf has a similar use-case for perf metrics.

For my use case it's to try to bring Fenix on par with other platforms where we push crash dumps as downloadable artifacts on jobs in Tascluster, so developers can investigate when something goes wrong, right after the test ended.

@Dexterp37
Copy link
Contributor

Fly-by: if the use-case is to capture the number of times something crashes, we could also work for making CI send crash pings to our ingestion (or grab them locally on the CI). Perf has a similar use-case for perf metrics.

For my use case it's to try to bring Fenix on par with other platforms where we push crash dumps as downloadable artifacts on jobs in Tascluster, so developers can investigate when something goes wrong, right after the test ended.

I see, sorry for the noise then, my previous comment cannot help with respect to that!

@tarekziade
Copy link

oh no worries, it's an interesting stuff ot have too

pocmo added a commit to pocmo/android-components that referenced this issue Apr 22, 2020
pocmo added a commit to pocmo/android-components that referenced this issue Apr 22, 2020
pocmo added a commit to pocmo/android-components that referenced this issue Apr 22, 2020
pocmo added a commit to pocmo/android-components that referenced this issue Apr 22, 2020
bors bot pushed a commit that referenced this issue Apr 27, 2020
6738: Issue #1705: Allow CrashReporterService to return a unique identifier for reported crashes. r=rocketsroger a=pocmo

This is one small piece of #1705. I am going to land some pieces independently to avoid ending up with a huge patch.

Here we are allowing a `CrashReporterService` to return an ID that we can later use to lookup that crash. For Socorro we return the crash ID that we get when uploading. We can later use that to create a URL pointing to this crash. For Sentry we return the UUID of the event. We can at least ask Sentry with this UUID for the actual crash URL.

Co-authored-by: Sebastian Kaspari <[email protected]>
pocmo added a commit to pocmo/android-components that referenced this issue Apr 27, 2020
pocmo added a commit to pocmo/android-components that referenced this issue Apr 27, 2020
bors bot pushed a commit that referenced this issue Apr 27, 2020
6739: Issue #1705: Assign UUID to every crash object. r=rocketsroger a=pocmo

Assigning every crash a unique ID so that we can later reference this crash when saving some metadata about it to disk.

6782: Upgrade to Glean 28.0.0 r=mdboom a=mdboom



Co-authored-by: Sebastian Kaspari <[email protected]>
Co-authored-by: Michael Droettboom <[email protected]>
pocmo added a commit to pocmo/android-components that referenced this issue Apr 28, 2020
bors bot pushed a commit that referenced this issue Apr 28, 2020
6777: Issue #1705: Create separate interface for crash telemetry services. r=rocketsroger a=pocmo

In #1705 I am going to add more methods/properties to the `CrashReporterService` interface. Those will not make any sense for a telemetry service. So here I am going to create a separate interface for telemetry service and make glean and the crash reporter class use that instead.

Co-authored-by: Sebastian Kaspari <[email protected]>
pocmo added a commit to pocmo/android-components that referenced this issue May 7, 2020
pocmo added a commit to pocmo/android-components that referenced this issue May 8, 2020
pocmo added a commit to pocmo/android-components that referenced this issue May 8, 2020
pocmo added a commit to pocmo/android-components that referenced this issue May 8, 2020
pocmo added a commit to pocmo/android-components that referenced this issue May 8, 2020
@pocmo
Copy link
Contributor Author

pocmo commented May 11, 2020

Code landed in AC. Fenix integration PR:
mozilla-mobile/fenix#10561

@pocmo
Copy link
Contributor Author

pocmo commented May 12, 2020

It landed in Fenix and is available via "Settings > About > Crashes". For now it also opens if you type about:crashes into the toolbar (but not for other ways of navigating to that URL).

@pocmo pocmo closed this as completed May 12, 2020
mozilla-l10n-automation-bot pushed a commit to mozilla-l10n-automation-bot/android-l10n that referenced this issue Oct 24, 2022
… listing past recorded crashes.

X-Channel-Revision: [main] mozilla-mobile/android-components@cf522a7
X-Channel-Revision: [main] mozilla-mobile/fenix@20b25d7
X-Channel-Revision: [main] mozilla-mobile/focus-android@29486b8
X-Channel-Converted-Revision: [ac-prep] mozilla-mobile/firefox-android@684e92c
mozilla-l10n-automation-bot pushed a commit to mozilla-l10n-automation-bot/android-l10n that referenced this issue Oct 24, 2022
… listing past recorded crashes.

X-Channel-Revision: [main] mozilla-mobile/android-components@cf522a7
X-Channel-Revision: [main] mozilla-mobile/fenix@20b25d7
X-Channel-Revision: [main] mozilla-mobile/focus-android@29486b8
X-Channel-Converted-Revision: [ac-prep] mozilla-mobile/firefox-android@684e92c
JohanLorenzo pushed a commit to JohanLorenzo/android-l10n that referenced this issue Oct 25, 2022
… listing past recorded crashes.

X-Channel-Revision: [main] mozilla-mobile/android-components@cf522a7
X-Channel-Revision: [main] mozilla-mobile/fenix@20b25d7
X-Channel-Revision: [main] mozilla-mobile/focus-android@29486b8
X-Channel-Converted-Revision: [ac-prep] mozilla-mobile/firefox-android@684e92c
JohanLorenzo pushed a commit to JohanLorenzo/android-l10n that referenced this issue Oct 25, 2022
… listing past recorded crashes.

X-Channel-Revision: [main] mozilla-mobile/android-components@cf522a7
X-Channel-Revision: [main] mozilla-mobile/fenix@20b25d7
X-Channel-Revision: [main] mozilla-mobile/focus-android@29486b8
X-Channel-Converted-Revision: [ac-prep] mozilla-mobile/firefox-android@684e92c
JohanLorenzo pushed a commit to JohanLorenzo/android-l10n that referenced this issue Oct 25, 2022
… listing past recorded crashes.

X-Channel-Revision: [main] mozilla-mobile/android-components@cf522a7
X-Channel-Revision: [main] mozilla-mobile/fenix@20b25d7
X-Channel-Revision: [main] mozilla-mobile/focus-android@29486b8
X-Channel-Converted-Revision: [ac-prep] mozilla-mobile/firefox-android@684e92c
JohanLorenzo pushed a commit to JohanLorenzo/android-l10n that referenced this issue Oct 25, 2022
… listing past recorded crashes.

X-Channel-Revision: [main] mozilla-mobile/android-components@cf522a7
X-Channel-Revision: [main] mozilla-mobile/fenix@20b25d7
X-Channel-Revision: [main] mozilla-mobile/focus-android@29486b8
X-Channel-Converted-Revision: [ac-prep] mozilla-mobile/firefox-android@684e92c
mozilla-l10n-automation-bot pushed a commit to mozilla-l10n-automation-bot/android-l10n that referenced this issue Oct 25, 2022
… listing past recorded crashes.

X-Channel-Revision: [main] mozilla-mobile/android-components@cf522a7
X-Channel-Revision: [main] mozilla-mobile/fenix@20b25d7
X-Channel-Revision: [main] mozilla-mobile/focus-android@29486b8
X-Channel-Converted-Revision: [ac-prep] mozilla-mobile/firefox-android@684e92c
mozilla-l10n-automation-bot pushed a commit to mozilla-l10n-automation-bot/android-l10n that referenced this issue Oct 26, 2022
… listing past recorded crashes.

X-Channel-Revision: [main] mozilla-mobile/android-components@cf522a7
X-Channel-Revision: [main] mozilla-mobile/fenix@20b25d7
X-Channel-Revision: [main] mozilla-mobile/focus-android@29486b8
X-Channel-Converted-Revision: [ac-prep] mozilla-mobile/firefox-android@684e92c
mozilla-l10n-automation-bot pushed a commit to mozilla-l10n-automation-bot/android-l10n that referenced this issue Oct 27, 2022
… listing past recorded crashes.

X-Channel-Revision: [main] mozilla-mobile/android-components@cf522a7
X-Channel-Revision: [main] mozilla-mobile/fenix@20b25d7
X-Channel-Revision: [main] mozilla-mobile/focus-android@29486b8
X-Channel-Converted-Revision: [ac-prep] mozilla-mobile/firefox-android@684e92c
mozilla-l10n-automation-bot pushed a commit to mozilla-l10n-automation-bot/android-l10n that referenced this issue Oct 27, 2022
… listing past recorded crashes.

X-Channel-Revision: [main] mozilla-mobile/android-components@cf522a7
X-Channel-Revision: [main] mozilla-mobile/fenix@20b25d7
X-Channel-Revision: [main] mozilla-mobile/focus-android@29486b8
X-Channel-Converted-Revision: [ac-prep] mozilla-mobile/firefox-android@684e92c
mozilla-l10n-automation-bot pushed a commit to mozilla-l10n-automation-bot/android-l10n that referenced this issue Oct 27, 2022
… listing past recorded crashes.

X-Channel-Revision: [main] mozilla-mobile/android-components@cf522a7
X-Channel-Revision: [main] mozilla-mobile/fenix@20b25d7
X-Channel-Revision: [main] mozilla-mobile/focus-android@29486b8
X-Channel-Converted-Revision: [ac-prep] mozilla-mobile/firefox-android@684e92c
mozilla-l10n-automation-bot pushed a commit to mozilla-l10n-automation-bot/android-l10n that referenced this issue Oct 27, 2022
… listing past recorded crashes.

X-Channel-Revision: [main] mozilla-mobile/android-components@cf522a7
X-Channel-Revision: [main] mozilla-mobile/fenix@20b25d7
X-Channel-Revision: [main] mozilla-mobile/focus-android@29486b8
X-Channel-Converted-Revision: [ac-prep] mozilla-mobile/firefox-android@684e92c
mozilla-l10n-automation-bot pushed a commit to mozilla-l10n-automation-bot/android-l10n that referenced this issue Oct 28, 2022
… listing past recorded crashes.

X-Channel-Revision: [main] mozilla-mobile/android-components@cf522a7
X-Channel-Revision: [main] mozilla-mobile/fenix@20b25d7
X-Channel-Revision: [main] mozilla-mobile/focus-android@29486b8
X-Channel-Converted-Revision: [ac-prep] mozilla-mobile/firefox-android@684e92c
mozilla-l10n-automation-bot pushed a commit to mozilla-l10n-automation-bot/android-l10n that referenced this issue Oct 28, 2022
… listing past recorded crashes.

X-Channel-Revision: [main] mozilla-mobile/android-components@cf522a7
X-Channel-Revision: [main] mozilla-mobile/fenix@20b25d7
X-Channel-Revision: [main] mozilla-mobile/focus-android@29486b8
X-Channel-Converted-Revision: [ac-prep] mozilla-mobile/firefox-android@684e92c
mozilla-l10n-automation-bot pushed a commit to mozilla-l10n-automation-bot/android-l10n that referenced this issue Oct 28, 2022
… listing past recorded crashes.

X-Channel-Revision: [main] mozilla-mobile/android-components@cf522a7
X-Channel-Revision: [main] mozilla-mobile/fenix@20b25d7
X-Channel-Revision: [main] mozilla-mobile/focus-android@29486b8
X-Channel-Converted-Revision: [ac-prep] mozilla-mobile/firefox-android@684e92c
mozilla-l10n-automation-bot pushed a commit to mozilla-l10n-automation-bot/android-l10n that referenced this issue Oct 29, 2022
… listing past recorded crashes.

X-Channel-Revision: [main] mozilla-mobile/android-components@cf522a7
X-Channel-Revision: [main] mozilla-mobile/fenix@20b25d7
X-Channel-Revision: [main] mozilla-mobile/focus-android@29486b8
X-Channel-Converted-Revision: [ac-prep] mozilla-mobile/firefox-android@684e92c
mozilla-l10n-automation-bot pushed a commit to mozilla-l10n-automation-bot/android-l10n that referenced this issue Oct 30, 2022
… listing past recorded crashes.

X-Channel-Revision: [main] mozilla-mobile/android-components@cf522a7
X-Channel-Revision: [main] mozilla-mobile/fenix@20b25d7
X-Channel-Revision: [main] mozilla-mobile/focus-android@29486b8
X-Channel-Converted-Revision: [ac-prep] mozilla-mobile/firefox-android@684e92c
mozilla-l10n-automation-bot pushed a commit to mozilla-l10n-automation-bot/android-l10n that referenced this issue Oct 30, 2022
… listing past recorded crashes.

X-Channel-Revision: [main] mozilla-mobile/android-components@cf522a7
X-Channel-Revision: [main] mozilla-mobile/fenix@20b25d7
X-Channel-Revision: [main] mozilla-mobile/focus-android@29486b8
X-Channel-Converted-Revision: [ac-prep] mozilla-mobile/firefox-android@684e92c
mozilla-l10n-automation-bot pushed a commit to mozilla-l10n-automation-bot/android-l10n that referenced this issue Oct 31, 2022
… listing past recorded crashes.

X-Channel-Revision: [main] mozilla-mobile/android-components@cf522a7
X-Channel-Revision: [main] mozilla-mobile/fenix@20b25d7
X-Channel-Revision: [main] mozilla-mobile/focus-android@29486b8
X-Channel-Converted-Revision: [ac-prep] mozilla-mobile/firefox-android@684e92c
mozilla-l10n-automation-bot pushed a commit to mozilla-l10n-automation-bot/android-l10n that referenced this issue Oct 31, 2022
… listing past recorded crashes.

X-Channel-Revision: [main] mozilla-mobile/android-components@cf522a7
X-Channel-Revision: [main] mozilla-mobile/fenix@20b25d7
X-Channel-Revision: [main] mozilla-mobile/focus-android@29486b8
X-Channel-Converted-Revision: [ac-prep] mozilla-mobile/firefox-android@684e92c
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
<crash> Component: lib-crash E8 Estimation points: 8 🌟 feature New functionality and improvements 💡idea Ideas for a new component, feature, change ..
Projects
None yet
Development

No branches or pull requests

3 participants