Closed
Bug 730688
Opened 12 years ago
Closed 12 years ago
java.lang.RuntimeException: Unable to resume activity {org.mozilla.fennec/org.mozilla.fennec.App}: java.lang.RuntimeException: Failure delivering result ResultInfo{who=null, request=2, result=-1, data=Intent { (has extras) }} to activity {org.mozilla.f...
Categories
(Firefox for Android Graveyard :: General, defect, P1)
Tracking
(firefox13 affected, firefox14 unaffected, blocking-fennec1.0 -)
RESOLVED
WORKSFORME
Tracking | Status | |
---|---|---|
firefox13 | --- | affected |
firefox14 | --- | unaffected |
blocking-fennec1.0 | --- | - |
People
(Reporter: scoobidiver, Assigned: sriram)
References
Details
(4 keywords, Whiteboard: [native-crash])
Crash Data
It's #1 top crasher in FennecAndroid 13.0a1.
The crash signature isn't showing for the crash reports. https://crash-stats.mozilla.com/report/list?range_value=7&range_unit=days&date=2012-02-27&signature=java.lang.RuntimeException%3A%20Unable%20to%20resume%20activity%20{org.mozilla.fennec%2Forg.mozilla.fennec.App}%3A%20java.lang.RuntimeException%3A%20Failure%20delivering%20result%20ResultInfo{who%3Dnull%2C%20request%3D2%2C%20result%3D-1%2C%20data%3DIntent%20{%20%28has%20extras%29%20}}%20to%20activity%20{org.mozilla.f...&version=FennecAndroid%3A13.0a1
Comment 2•12 years ago
|
||
There is a Socorro bug on this - bug 724670. Fix should be out this week. KaiRo will work on getting some data that makes this more actionable.
Comment 3•12 years ago
|
||
OK, here's a couple of crash IDs from yesterday on trunk with this signature, I hope the stacks help to move this forward: bp-62ff9bbb-5d43-4d02-940f-727ca2120226 bp-a07b1a4e-977c-4549-b189-8c96d2120226 bp-aab9dc7e-3f77-4126-bf4d-232602120226 bp-359300c9-96b1-4e57-b417-097dc2120226 bp-655d86a3-150f-4793-8ae2-fab792120226 bp-6322d1e9-ef0d-4ac7-9998-3b46d2120226 bp-45faad40-4a22-4f52-9586-2531e2120226 bp-b54b757e-6820-4158-b0b1-a2d902120226 bp-874fe514-94d0-43c6-98ae-c19ee2120226 bp-85116324-31ef-497e-b7b1-eef4b2120226 bp-9011dfc8-09a8-47dd-9930-40aba2120226 bp-73cb3081-aae4-4b84-9f94-5b8b02120226 bp-347e43e4-637c-4850-b6f8-786012120226 bp-a1d661ca-a493-46f9-9609-9dfbc2120226 bp-75082f50-5bcd-458e-a311-ab50c2120226 bp-738ff634-5e19-48a8-bfab-a329b2120226 bp-a621ccd1-8c51-49fb-8a46-74c092120226 bp-fe8feb21-10a3-43ef-9a43-8fc532120226 bp-c6b7cba4-ce5f-425b-8510-599fe2120226 bp-df54940d-3261-4e1b-b77f-3eddc2120226 bp-78e529ca-f403-43ef-b1ed-aeb082120226 bp-558e32e2-991d-4040-ae29-3d8802120226
Reporter | ||
Comment 4•12 years ago
|
||
The Java exception is: java.lang.RuntimeException: Unable to resume activity {org.mozilla.fennec/org.mozilla.fennec.App}: java.lang.RuntimeException: Failure delivering result ResultInfo{who=null, request=2, result=-1, data=Intent { (has extras) }} to activity {org.mozilla.fennec/org.mozilla.fennec.App}: java.lang.NullPointerException at android.app.ActivityThread.performResumeActivity(ActivityThread.java:2444) at android.app.ActivityThread.handleResumeActivity(ActivityThread.java:2472) at android.app.ActivityThread.handleLaunchActivity(ActivityThread.java:1986) at android.app.ActivityThread.access$600(ActivityThread.java:123) at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1147) at android.os.Handler.dispatchMessage(Handler.java:99) at android.os.Looper.loop(Looper.java:137) at org.mozilla.gecko.GeckoApp$35.run(GeckoApp.java:1824) at android.os.Handler.handleCallback(Handler.java:605) at android.os.Handler.dispatchMessage(Handler.java:92) at android.os.Looper.loop(Looper.java:137) at android.app.ActivityThread.main(ActivityThread.java:4424) at java.lang.reflect.Method.invokeNative(Native Method) at java.lang.reflect.Method.invoke(Method.java:511) at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:784) at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:551) at dalvik.system.NativeStart.main(Native Method) Caused by: java.lang.RuntimeException: Failure delivering result ResultInfo{who=null, request=2, result=-1, data=Intent { (has extras) }} to activity {org.mozilla.fennec/org.mozilla.fennec.App}: java.lang.NullPointerException at android.app.ActivityThread.deliverResults(ActivityThread.java:2980) at android.app.ActivityThread.performResumeActivity(ActivityThread.java:2431) ... 16 more Caused by: java.lang.NullPointerException at org.mozilla.gecko.BrowserToolbar.setTitle(BrowserToolbar.java:299) at org.mozilla.gecko.GeckoApp.loadRequest(GeckoApp.java:2613) at org.mozilla.gecko.GeckoApp.onActivityResult(GeckoApp.java:2586) at android.app.Activity.dispatchActivityResult(Activity.java:4649) at android.app.ActivityThread.deliverResults(ActivityThread.java:2976) ... 17 more
No longer depends on: 724670
Comment 5•12 years ago
|
||
The important part of this stack trace is the rethrown exception at the bottom: Caused by: java.lang.NullPointerException at org.mozilla.gecko.BrowserToolbar.setTitle(BrowserToolbar.java:299) at org.mozilla.gecko.GeckoApp.loadRequest(GeckoApp.java:2613) at org.mozilla.gecko.GeckoApp.onActivityResult(GeckoApp.java:2586) at android.app.Activity.dispatchActivityResult(Activity.java:4649) at android.app.ActivityThread.deliverResults(ActivityThread.java:2976) I think I have seen this NullPointerException when enabling "Settings > Developer options > Don't keep activities", then closing and reopening Fennec.
Comment 6•12 years ago
|
||
Most of the reports are on Android 4.0.*, and the first crash appeared on the 17th. bug 727610 sounds suspicious, especially with that NPE on the call to setTitle in BrowserToolbar. CC'ing :sriram
Comment 7•12 years ago
|
||
(In reply to Chris Peterson (:cpeterson) from comment #5) > I think I have seen this NullPointerException when enabling "Settings > > Developer options > Don't keep activities", then closing and reopening > Fennec. Confirming I can reproduce that under ICS (Android 4.0.2) on my Galaxy Nexus. Enable that option, and then visit a site.
Updated•12 years ago
|
blocking-fennec1.0: --- → ?
Reporter | ||
Updated•12 years ago
|
Keywords: regression,
reproducible
Reporter | ||
Comment 8•12 years ago
|
||
There have been no crashes in 13.0a1/20120301 and above. The working range might be: http://hg.mozilla.org/mozilla-central/pushloghtml?fromchange=30b4f99a137c&tochange=1c3b291d0830
Comment 9•12 years ago
|
||
resolving works for me based on the last comment
Status: NEW → RESOLVED
Closed: 12 years ago
Resolution: --- → WORKSFORME
Comment 10•12 years ago
|
||
I can still reproduce this exception and SIGSEGV when I enable "Settings > Developer options > Don't keep activities" and then visit one or two websites: E/GeckoAppShell(10736): java.lang.RuntimeException: Unable to resume activity {org.mozilla.fennec_cpeterson/org.mozilla.fennec_cpeterson.App}: java.lang.RuntimeException: Failure delivering result ResultInfo{who=null, request=2, result=-1, data=Intent { (has extras) }} to activity {org.mozilla.fennec_cpeterson/org.mozilla.fennec_cpeterson.App}: java.lang.NullPointerException ... E/GeckoAppShell(10736): Caused by: java.lang.NullPointerException E/GeckoAppShell(10736): at org.mozilla.gecko.BrowserToolbar.setTitle(BrowserToolbar.java:299) E/GeckoAppShell(10736): at org.mozilla.gecko.GeckoApp.loadRequest(GeckoApp.java:2571) E/GeckoAppShell(10736): at org.mozilla.gecko.GeckoApp.onActivityResult(GeckoApp.java:2544) E/GeckoAppShell(10736): at android.app.Activity.dispatchActivityResult(Activity.java:4649) E/GeckoAppShell(10736): at android.app.ActivityThread.deliverResults(ActivityThread.java:2972) E/GeckoAppShell(10736): ... 17 more F/libc (10736): Fatal signal 11 (SIGSEGV) at 0x00000000 (code=1)
Status: RESOLVED → REOPENED
Resolution: WORKSFORME → ---
Updated•12 years ago
|
Assignee: nobody → jdhaliwal
Comment 11•12 years ago
|
||
There's a number of new crashes with this signature in recent days: https://crash-stats.mozilla.com/report/list?signature=java.lang.RuntimeException%3A%20Unable%20to%20resume%20activity%20%7Borg.mozilla.fennec%2Forg.mozilla.fennec.App%7D%3A%20java.lang.RuntimeException%3A%20Failure%20delivering%20result%20ResultInfo%7Bwho%3Dnull%2C%20request%3D2%2C%20result%3D-1%2C%20data%3DIntent%20%7B%20%28has%20extras%29%20%7D%7D%20to%20activity%20%7Borg.mozilla.f... (And now this correctly lists the crashes in the "Reports" tab - the signature summary not working is bug 731822)
Reporter | ||
Comment 12•12 years ago
|
||
It first appeared in 13.0a1/20120217. The regression range is: http://hg.mozilla.org/mozilla-central/pushloghtml?fromchange=a853f4017192&tochange=2271cb92cc05
Updated•12 years ago
|
Assignee: jdhaliwal → sriram
blocking-fennec1.0: ? → +
Priority: -- → P1
Comment 13•12 years ago
|
||
From what I've figured out from looking at this, if the issue only occurs from the "Don't keep Activities" developer option being enabled, then we shouldn't be concerned with it, since this crash is only because this option is enabled. This removes the Activity stack and makes it so that only one atomic Activity is active at a time. This would cause an issue with any Activity that requires a result from an Activity that has been pushed on top of the current Activity, then subsequently popped. This happens in fennec at least in one spot: when we bring up the awesome bar, input a URL and return to the webpage activity to load the page. We should however look into whether onCreate is called upon returning to the webpage activity. We may be able to "recreate" the webpage activity in order for this error to stop.
blocking-fennec1.0: + → ?
Priority: P1 → --
Comment 14•12 years ago
|
||
Sorry, perhaps "atomic" is confusing wording. The "Don't keep Activities" option makes it so that a singular activity is shown on the stack at a time (one element "stack").
Comment 15•12 years ago
|
||
The "Don't keep Activities" setting makes this exception easier to reproduce, but it is still a valid issue. This is our #1 or #2 topcrash. I doubt all those users have set "Don't keep Activities" setting (which is not exposed in the UI of earlier Android OS versions).
Assignee | ||
Comment 16•12 years ago
|
||
"Intent.FLAG_ACTIVITY_NO_HISTORY" is the culprit :D From what Josh mentioned, the activity is popped out -- say when you open Awesomebar, lock the screen and unlock it -- and hence GeckoApp doesnt get any result. Removing this flag while launching the activity will fix this issue, I guess.
Reporter | ||
Updated•12 years ago
|
Priority: -- → P1
Comment 17•12 years ago
|
||
(In reply to Sriram Ramasubramanian [:sriram] from comment #16) > "Intent.FLAG_ACTIVITY_NO_HISTORY" is the culprit :D > > From what Josh mentioned, the activity is popped out -- say when you open > Awesomebar, lock the screen and unlock it -- and hence GeckoApp doesnt get > any result. > > Removing this flag while launching the activity will fix this issue, I guess. Let's get a patch soon, so we can test the fix by watching for crash counts to get smaller.
blocking-fennec1.0: ? → beta+
Assignee | ||
Comment 18•12 years ago
|
||
The NPE on setTitle() happens due to this: As per the option, once we move to AwesomeBar, GeckoApp is killed. And on returning back, GeckoApp is re-created, at which point BrowserToolbar is accessed before it's member variables are initialized.
Assignee | ||
Comment 19•12 years ago
|
||
I/GeckoAwesomeBarTabs( 3067): Got cursor in 22ms I/ActivityManager( 196): Displayed org.mozilla.fennec_sriramramasubramanian/org.mozilla.gecko.AwesomeBar: +288ms D/OpenGLRenderer( 3067): Flushing caches (mode 0) I/GeckoApp( 3067): stop I/GeckoApp( 3067): destroy D/GeckoFavicons( 3067): Closing Favicons database I/WindowManager( 196): createSurface Window{41d56af8 InputMethod paused=false}: DRAW NOW PENDING D/dalvikvm( 3067): GC_EXPLICIT freed 8497K, 35% free 16645K/25223K, paused 7ms+4ms E/StrictMode( 3067): class org.mozilla.fennec_sriramramasubramanian.App; instances=2; limit=1 E/StrictMode( 3067): android.os.StrictMode$InstanceCountViolation: class org.mozilla.fennec_sriramramasubramanian.App; instances=2; limit=1 E/StrictMode( 3067): at android.os.StrictMode.setClassInstanceLimit(StrictMode.java:1) D/dalvikvm( 418): GC_FOR_ALLOC freed 1672K, 20% free 15325K/18951K, paused 16ms I/dalvikvm-heap( 418): Grow heap (frag case) to 16.263MB for 1278736-byte allocation D/dalvikvm( 418): GC_CONCURRENT freed 43K, 13% free 16529K/18951K, paused 2ms+4ms D/dalvikvm( 3067): Trying to load lib /data/data/org.mozilla.fennec_sriramramasubramanian/lib/libmozglue.so 0x4182fd58 D/dalvikvm( 3067): Shared lib '/data/data/org.mozilla.fennec_sriramramasubramanian/lib/libmozglue.so' already loaded in same CL 0x4182fd58 W/GeckoApp( 3067): zerdatime 8774740 - onCreate W/WindowManager( 196): ActivityRecord{41afce08 org.mozilla.fennec_sriramramasubramanian/.App} failed creating starting window W/WindowManager( 196): android.view.InflateException: Binary XML file line #28: Error inflating class <unknown> The GeckoApp stops, destroyed and get recreated. The static variables persist during this flow. This makes me feel updateTabCountAndAnimate() crash also has similar reasons. The same path is observed when changing a locale too.
Comment 20•12 years ago
|
||
Static variables are difficult to manage in Android's Activity lifecycle. If we must have static variables, I think we should have only one, something like a GeckoAppShell singleton instance that holds non-static references to shared/"global" objects.
Reporter | ||
Updated•12 years ago
|
Crash Signature: data=Intent { (has extras) }} to activity {org.mozilla.f... ] → request=2, result=-1, data=Intent { (has extras) }} to activity ... ] data=Intent { (has extras) }} to activity {org.mozilla.f... ]
[@ java.lang.RuntimeException: Unable to resume activity {org.mozilla.fennec_aurora/org.mozilla.fennec_aurora.App}: java.l…
Reporter | ||
Comment 21•12 years ago
|
||
It's #2 unfixed top crasher in 13.0a2. The latest crash in the trunk happened in 14.0a1/20120321031151. You need to find and back port the patch that fixed it.
Reporter | ||
Updated•12 years ago
|
status-firefox13:
--- → affected
status-firefox14:
--- → unaffected
Reporter | ||
Comment 22•12 years ago
|
||
The latest crash in Aurora took place in 13.0a2/20120324042010. Maybe, it's also fixed in this channel.
Comment 23•12 years ago
|
||
Bug 739789 is the fix for this issue (and others). It is not a simple fix. We might be able to bandaid over the problem for a short-term fix, but I am not confident we'd get the "right & proper" in for Fx13.
Comment 24•12 years ago
|
||
Moving to nom to let the drivers know that this bug won't make it in this release given the required fix. If we want to take on the extra risk to the surrounding parts of the affected code, then we can start hammering away at it, but I don't think that it warrants that at this point.
blocking-fennec1.0: beta+ → ?
Comment 25•12 years ago
|
||
not blocking since this seems to have been fixed by one of the patches that was uplifted to aurora on the 23rd. Please re-nom if it reappears.
blocking-fennec1.0: ? → -
Reporter | ||
Comment 26•12 years ago
|
||
Let's close it as work for me.
Status: REOPENED → RESOLVED
Closed: 12 years ago → 12 years ago
Resolution: --- → WORKSFORME
Updated•3 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
•