Closed Bug 1335110 Opened 7 years ago Closed 6 years ago
Crash in java
.lang .Security Exception: at android .app .Context Impl .start Service Common(Context Impl .java)
This bug was filed from the Socorro interface and is report bp-0e7e0890-770e-49b6-ac54-b3c482170130. ============================================================= Number 12 top-crash on 51 The necessary permission appears to be requested on 51, so it's unclear why this should be happening: https://hg.mozilla.org/releases/mozilla-release/file/3d46ed7cc6a8/mobile/android/base/GcmAndroidManifest_permissions.xml.in
[Tracking Requested - why for this release]: 12th top crasher on release. (Isn't visible on any other channels, presumably because gcm isn't enabled elsewhere?)
I've only done a tiny bit of research - there's a possibility this is only happening on devices that don't have google play services installed. Bug 1300230 touched push, and landed in 51, so could be related.
See Also: → 1300230
CC grisha, since I think you're somewhat familiar with push?
The Note 3 is 45% of the crashes. All of the Note 3 users are running https://forum.xda-developers.com/galaxy-note-3/development/android-7-0-cm14-trader418-unofficial-t3459973 so it seems to be a bug in the rom?
tracking-fennec: ? → 51+
Priority: -- → P1
similar crash on fennec 50.0. crash ID: 803a788c-498b-4921-b46e-55e6b2161125 crash stats: https://crash-stats.mozilla.com/report/index/803a788c-498b-4921-b46e-55e6b2161125
This is a P1 bug without an assignee. P1 are bugs which are being worked on for the current release cycle/iteration/sprint. If the bug is not assigned by Monday, 28 August, the bug's priority will be reset to '--'.
From the crash logs: While obtaining a GCM token, we end up crashing because supposedly we don't have a com.google.android.c2dm.permission.RECEIVE permission.
Comment on attachment 8906045 [details] Bug 1335110 - Catch security exceptions while getting a GCM token to fail gracefully https://reviewboard.mozilla.org/r/177800/#review182858 :shipit:
Attachment #8906045 - Flags: review?(eoger) → review+
hg error in cmd: hg push -r tip ssh://hg.mozilla.org/integration/autoland: pushing to ssh://hg.mozilla.org/integration/autoland searching for changes abort: push failed: 'repository changed while pushing - please try again'
Pushed by email@example.com: https://hg.mozilla.org/integration/autoland/rev/33804f5a3451 Catch security exceptions while getting a GCM token to fail gracefully r=eoger
This grafts cleanly to Beta. Please request approval when you get a chance.
Approval Request Comment [Feature/Bug causing the regression]: Likely dates back to when GCM registration first landed in 47, e.g. Bug 1207714. [User impact if declined]: Browser crashes while trying to sync, or after signing in. Behaviour after this landed: instead of crashing, push functionality won't work. But, we'll retry again on next sync, and if user fixes permissions on their device, things will get back to normal. Bug 1398293 tracks adding UI for this error state. [Is this code covered by automated tests?]: No [Has the fix been verified in Nightly?]: It's on current Nightlies, and there are no crashes recorded with this signature after this landed (but nightly crash volume for this is rather low). [Needs manual test from QE? If yes, steps to reproduce]: Not necessary. [List of other uplifts needed for the feature/fix]: N/A [Is the change risky?]: No. [Why is the change risky/not risky?]: Instead of crashing, we throw an exception which is caught upstream. This operation is already considered as one that might fail, and so there's proper exception handling upstream in place already. [String changes made/needed]: N/A
Attachment #8906751 - Flags: approval-mozilla-beta?
Comment on attachment 8906751 [details] [diff] [review] fxa_push_security_exception.patch Fix a crash. Beta56+.
Attachment #8906751 - Flags: approval-mozilla-beta? → approval-mozilla-beta+
Could not reproduce any crash in today's testing session for 56.0b13. Leaving this issue open until we have more crash-stats data available.
You need to log in before you can comment on or make changes to this bug.