Closed
Bug 1476315
Opened 7 years ago
Closed 7 years ago
java-exception android.app.RemoteServiceException: Context.startForegroundService did not then call Service.startForeground() at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1778)
Categories
(Firefox for Android Graveyard :: General, defect, P5)
Firefox for Android Graveyard
General
Tracking
(firefox61 unaffected, firefox62 unaffected, firefox63 fixed)
RESOLVED
FIXED
Firefox 63
Tracking | Status | |
---|---|---|
firefox61 | --- | unaffected |
firefox62 | --- | unaffected |
firefox63 | --- | fixed |
People
(Reporter: bc, Assigned: vlad.baicu)
References
Details
(Keywords: crash, regression, Whiteboard: [fixed-by-bug-1477041])
Beginning with Bug 1474961 - Change StumblerService to a foreground service when targeting Android Oreo mda1 and mda3 began perma failing on Android Hardware Pixel 2 running Android 8.0.
https://treeherder.mozilla.org/#/jobs?repo=mozilla-inbound&revision=c6763cfa891a86b897a214a14e7c226361650bb4&filter-tier=1&filter-tier=2&filter-tier=3&filter-searchStr=android-hw
PROCESS-CRASH | dom/media/test/test_autoplay_policy.html | java-exception android.app.RemoteServiceException: Context.startForegroundService() did not then call Service.startForeground() at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1778)
among other similar errors
Assignee | ||
Updated•7 years ago
|
Assignee: nobody → vlad.baicu
Reporter | ||
Comment 1•7 years ago
|
||
Note mda2 occasionally fails with the java-exception as well.
Comment hidden (Intermittent Failures Robot) |
Comment 3•7 years ago
|
||
There has been a total of 230 tier 3 failures since the failure has started appearing, on Android 8.0 Pixel2 opt & debug.
Recent failure log: https://treeherder.mozilla.org/logviewer.html#?job_id=188827317&repo=mozilla-inbound&lineNumber=2740
22:13:43 INFO - 63 INFO TEST-UNEXPECTED-ERROR | dom/media/tests/mochitest/test_getUserMedia_basicVideoAudio.html | unexpected-crash-dump-found - This test left crash dumps behind, but we weren't expecting it to!
22:13:43 INFO - 64 INFO Found unexpected crash dump file /storage/emulated/0/tests/profile/minidumps/246709c7-b51a-b40b-6453-6140d9c6e422.dmp.
22:14:04 INFO - INFO | automation.py | Application ran for: 0:00:53.299469
22:14:04 INFO - INFO | zombiecheck | Reading PID log: /tmp/tmpDxFzAupidlog
22:14:06 INFO - /data/tombstones does not exist; tombstone check skipped
22:14:06 WARNING - PROCESS-CRASH | dom/media/tests/mochitest/test_getUserMedia_basicVideoAudio.html | java-exception android.app.RemoteServiceException: Context.startForegroundService() did not then call Service.startForeground() at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1778)
22:14:06 INFO - Stopping web server
22:14:06 INFO - Stopping web socket server
22:14:06 INFO - Stopping ssltunnel
22:14:06 INFO - websocket/process bridge listening on port 8191
22:14:06 INFO - Stopping websocket/process bridge
22:14:06 INFO - leakcheck | refcount logging is off, so leaks can't be detected!
22:14:06 INFO - runtests.py | Running tests: end.
22:14:07 INFO - Buffered messages finished
22:14:08 INFO - 0 INFO TEST-START | Shutdown
22:14:08 INFO - 1 INFO Passed: 0
22:14:08 INFO - 2 INFO Failed: 0
22:14:08 INFO - 3 INFO Todo: 0
22:14:08 INFO - 4 INFO Mode: non-e10s
22:14:08 INFO - 5 INFO SimpleTest FINISHED
22:14:08 INFO - --------- beginning of system
22:14:08 INFO - 07-18 15:12:52.875 I/ActivityManager( 1173): Force stopping org.mozilla.fennec_aurora appid=10120 user=0: from pid 5438
22:14:08 INFO - 07-18 15:12:54.694 D/NetlinkEvent( 711): Unknown ND option type 31
22:14:08 INFO - 07-18 15:13:00.555 I/ActivityManager( 1173): Killing 4193:com.google.android.gm/u0a89 (adj 906): empty #17
22:14:08 INFO - 07-18 15:13:00.631 D/NetlinkEvent( 711): Unknown ND option type 31
22:14:08 INFO - 07-18 15:13:04.931 I/ActivityManager( 1173): Killing 4380:com.google.android.videos/u0a77 (adj 906): empty #17
22:14:08 INFO - 07-18 15:13:10.151 D/NetlinkEvent( 711): Unknown ND option type 31
22:14:08 INFO - 07-18 15:13:11.663 I/ActivityManager( 1173): START u0 {act=android.intent.action.VIEW dat=http://mochi.test:8888/... flg=0x10000000 cmp=org.mozilla.fennec_aurora/org.mozilla.gecko.BrowserApp (has extras)} from uid 2000
22:14:08 INFO - 07-18 15:13:11.685 I/ActivityManager( 1173): Start proc 5506:org.mozilla.fennec_aurora/u0a120 for activity org.mozilla.fennec_aurora/org.mozilla.gecko.BrowserApp
22:14:08 INFO - 07-18 15:13:14.457 D/NetlinkEvent( 711): Unknown ND option type 31
22:14:08 INFO - 07-18 15:13:16.236 W/ActivityManager( 1173): Permission Denial: Accessing service ComponentInfo{com.google.android.music/com.google.android.music.dial.DialMediaRouteProviderService} from pid=5506, uid=10120 that is not exported from uid 10087
22:14:08 INFO - 07-18 15:13:21.344 E/NotificationService( 1173): Muting recently noisy 0|org.mozilla.fennec_aurora|2131296516|null|10120
22:14:08 INFO - 07-18 15:13:23.129 E/NotificationService( 1173): Muting recently noisy 0|org.mozilla.fennec_aurora|2131296516|null|10120
22:14:08 INFO - 07-18 15:13:23.152 D/NetlinkEvent( 711): Unknown ND option type 31
22:14:08 INFO - 07-18 15:13:27.288 E/NotificationService( 1173): Muting recently noisy 0|org.mozilla.fennec_aurora|2131296516|null|10120
Whiteboard: [stockwell disable-recommended] → [stockwell disable-recommended][stockwell needswork]
Comment hidden (Intermittent Failures Robot) |
Assignee | ||
Comment 5•7 years ago
|
||
It appears that this issue is caused because the service is stopped too fast (couple of millis) before it has a chance to start and call startForeground. Looking into fixes
Comment hidden (Intermittent Failures Robot) |
Comment hidden (Intermittent Failures Robot) |
Comment hidden (Intermittent Failures Robot) |
Assignee | ||
Comment 10•7 years ago
|
||
Currently working on a patch for it, should be up for review soon
Flags: needinfo?(vlad.baicu)
Assignee | ||
Comment 11•7 years ago
|
||
Submitted a patch on https://bugzilla.mozilla.org/show_bug.cgi?id=1477041 which also fixes these tests, tracking there for now.
https://treeherder.mozilla.org/#/jobs?repo=try&revision=aea5d4da4a9ba9dafc72d3ea41a5116812b97a69
Reporter | ||
Comment 12•7 years ago
|
||
Vlad: You need to view the Tier 3 jobs to see the Android Hardware tests. I see lots of ava-exception java.lang.NullPointerException: Attempt to invoke virtual method 'android.content.pm.ApplicationInfo android.content.Context.getApplicationInfo()' on a null object reference at android.content.ContextWrapper.getApplicationInfo(ContextWrapper.java:151) errors in your try run for Android hardware and the mda tests.
Comment hidden (Intermittent Failures Robot) |
Assignee | ||
Comment 14•7 years ago
|
||
I've caught those before pushing that review and modified it, this is try result for mda jobs on the latest revision
https://treeherder.mozilla.org/#/jobs?repo=try&revision=10c7249a2b6844ff3876400144de12ea958c4adb&filter-tier=1&filter-tier=2&filter-tier=3
Reporter | ||
Comment 15•7 years ago
|
||
\o/
Comment hidden (Intermittent Failures Robot) |
Comment 17•7 years ago
|
||
Re-triaging per https://bugzilla.mozilla.org/show_bug.cgi?id=1473195
Needinfo :susheel if you think this bug should be re-triaged.
Priority: -- → P5
Comment hidden (Intermittent Failures Robot) |
Comment hidden (Intermittent Failures Robot) |
Comment hidden (Intermittent Failures Robot) |
Comment hidden (Intermittent Failures Robot) |
Reporter | ||
Comment 22•7 years ago
|
||
all green now. thanks.
Status: NEW → RESOLVED
Closed: 7 years ago
Resolution: --- → FIXED
Whiteboard: [stockwell disable-recommended][stockwell needswork] → [fixed-by-bug-1477041]
Comment hidden (Intermittent Failures Robot) |
Reporter | ||
Updated•7 years ago
|
Whiteboard: [fixed-by-bug-1477041][stockwell disable-recommended] → [fixed-by-bug-1477041]
Updated•7 years ago
|
status-firefox61:
--- → unaffected
status-firefox62:
--- → unaffected
Depends on: 1477041
Target Milestone: --- → Firefox 63
Updated•5 years ago
|
Product: Firefox for Android → Firefox for Android Graveyard
You need to log in
before you can comment on or make changes to this bug.
Description
•