Closed Bug 1131985 Opened 9 years ago Closed 9 years ago

Crash when jumping to Firefox/Android from another app

Categories

(Firefox for Android Graveyard :: General, defect)

35 Branch
ARM
Android
defect
Not set
normal

Tracking

(Not tracked)

RESOLVED DUPLICATE of bug 1072529

People

(Reporter: dave, Unassigned)

Details

User Agent: Mozilla/5.0 (X11; Linux i686; rv:35.0) Gecko/20100101 Firefox/35.0
Build ID: 2015010900
Firefox for Android

Steps to reproduce:

This bug is for Firefox for Android 35.0.1 running under Android 5.0.2

Since updating this Nexus 7 from Android 4.4.4 to 5.0.2 I have experienced Fx getting 'stuck' many times. I've worked out a repeatable procedure that can produce this effect - and  crashes it.

It happens when I jump from my RSS reader to Fx to view a post, and then back to the RSS reader. The newsreader is rather old, which may be relevant, but the problem it causes is in Fx. The newsreader is SparseRSS from https://code.google.com/p/sparserss/

What I did:

1 I load Fx and view a page.
2 I go to SparseRSS (via the icon on the Android home screen) and view a blog post - I tested with Planet Moz.
3 On the blog post I tap the 'view' eye at the bottom which displays the blog post.
4 I tap the Android 'back' button (triangle). 
This usually returns to SparseRSS (I'm pretty sure it used to) but now it goes to the Android home screen.
5 I tap the Fx icon and re-enter Fx.
This correctly shows 1 tab but the viewport is blank.
6 I have a console addon. That shows about:console but the viewport is still blank.
If I pull down the tabs the thumbnails do display (original site & console).
7 If I enter a URL and tap Go it crashes. Here are the crashes during these tests:

bp-8f457b05-bb66-4f8a-80f6-435b02150211	02/11/15	10:23
bp-061ce0d7-2d34-4e80-bbdc-62e192150211	02/11/15	10:19
bp-4e62792a-4779-4c92-a1e3-f12922150211	02/11/15	10:07
bp-d2101062-2fa5-4a9d-8083-7f54b2150211	02/11/15	10:03
bp-1f68a6bf-06d3-4c5f-bc1c-3aad22150211	02/11/15	09:33
bp-d3e2f487-8ded-4920-8f77-247192150206	02/06/15	20:46
bp-b147f258-2f7d-4158-ba04-4215a2141218	12/18/14	08:35
bp-08fcba08-2a34-4628-823f-b07a32141120	11/20/14	20:01
bp-63748705-d200-442c-bb5d-ee8bc2141104	11/04/14	19:38
bp-5258a9a8-804f-4668-b55f-493df2140723	07/23/14	22:01

8 I wondered if addons were involved - I have several. (Is there a safe mode equivalent?) I tried it with a guest session with the same result.
9 I wondered if the same happened with other apps. I tried jumping into Fx from my newsreader (Newsreader app by Piao Hong). If I click a link in a message it correctly jumps to FX and the back triangle returns to the newsreader. Firefox subsequently works normally.

So maybe this is caused by outdated code in SparseRSS interacting with Android 5 jumping into Fx in such a way that it can't jump back. Maybe this is rare.

I took screenshots and can attach them if required but the above explains it adequately I think.
Component: Untriaged → General
OS: Linux → Android
Product: Firefox → Firefox for Android
Hardware: x86 → ARM
Version: 35 Branch → Firefox 35
I should have only listed the crashes today - 02/11/15
Thanks for the report. Majority of those are bug 1072529. I will dupe over.
Status: UNCONFIRMED → RESOLVED
Closed: 9 years ago
Resolution: --- → DUPLICATE
Further experience of trying to work round this bug:

I swapped the version of SparseRSS to an updated supported version, SparseRSS Mod in the appstore. Same problem. But no other app I have gives this problem and that app WFM with Chrome.

The dev of SparseRSS Mod tells me the call to the browser is:
startActivityForResult(new Intent(Intent.ACTION_VIEW, Uri.parse(link)), 0); - "nothing special" he says.

He can't repeat it - suggests it's my config. I have several addons; is there are way of running Fx with addons disabled, like on desktop? Is it worth deleting and reloading Fx?

It doesn't always - or even usually - crash. I can force it to as in step 7. What usually happens is that Fx appears to work normally except the viewport it blank. I can see the page thumbnails. So I have to quit.

When it gets in that state - viewport blank on every tab - I can get the viewport back by returning to SparseRSS Mod and repeating step 2, sending another page to Fx, which appears normally. And all the other tabs now display. All appears OK EXCEPT that some UI features added by addons - Quit menu item, console and source viewers - have disappeared. Page mod addons seem to work OK. So it's usable provided I don't hit the back triangle when it loses the viewport on all tabs again. 

I tried remote debugging. From the time I hit the back triangle at step 4 I see nothing. Reconnecting remote debug after step 5 shows nothing unusual.

I've decided to revert to Android 4.4.4 in a few days - for this reason and some other apps don't work in Android 5.
Further analysis erroneously posted here:
https://bugzilla.mozilla.org/show_bug.cgi?id=1072529#c4
Product: Firefox for Android → Firefox for Android Graveyard
You need to log in before you can comment on or make changes to this bug.