X
Tap here to go to the mobile version of the site.

منتدى الدعم

Firefox crashes directly after start on LG P970 with ICS

Posted

Since two or three updates Firefox crashes always 1 or 2 seconds after starting the app.

I've tested it also with the beta 20.0b7 apk... it's always the same... start the app - 1 or 2 seconds later I'm back on the home screen.

I have the LG P970 Optimus Black phone with ICS 4.0.4

Is a fix for this problem on this phone in sight? Cause I really like the firefox browser and really dislike to use some of the other browsers in the store...

Since two or three updates Firefox crashes always 1 or 2 seconds after starting the app. I've tested it also with the beta 20.0b7 apk... it's always the same... start the app - 1 or 2 seconds later I'm back on the home screen. I have the LG P970 Optimus Black phone with ICS 4.0.4 Is a fix for this problem on this phone in sight? Cause I really like the firefox browser and really dislike to use some of the other browsers in the store...

Additional System Details

Application

  • User Agent: Mozilla/5.0 (X11; Ubuntu; Linux x86_64; rv:19.0) Gecko/20100101 Firefox/19.0

More Information

Andrew
  • Moderator
321 solutions 4037 answers

Helpful Reply

When do the crash start? Right on startup? Mid way through?

When do the crash start? Right on startup? Mid way through?

Question owner

some seconds after the startup... if I start the app I see some seconds the firefox frontpage and then the app close without any error or something like that and then I'm back on the android homescreen.

some seconds after the startup... if I start the app I see some seconds the firefox frontpage and then the app close without any error or something like that and then I'm back on the android homescreen.
aldonogueira 0 solutions 2 answers

Helpful Reply

The problem started with Firefox 19. I have just checked with Firefox 20 and it is still happens. The workaround for me was to manually install this build: https://ftp.mozilla.org/pub/mozilla.org/mobile/releases/18.0.2/android/ So sad, since 19 is much faster and 20 has new features.

The crash only happens in LG's ICS 4.0.4. I have an Cyanogen 10 installed on this same device. There Firefox 19 worked fine.

The problem started with Firefox 19. I have just checked with Firefox 20 and it is still happens. The workaround for me was to manually install this build: https://ftp.mozilla.org/pub/mozilla.org/mobile/releases/18.0.2/android/ So sad, since 19 is much faster and 20 has new features. The crash only happens in LG's ICS 4.0.4. I have an Cyanogen 10 installed on this same device. There Firefox 19 worked fine.

Question owner

(

Thanks for the answer! I hope someone at mozilla can fix this 'cause I'm sure LG won't fix it -.-'

:( Thanks for the answer! I hope someone at mozilla can fix this 'cause I'm sure LG won't fix it -.-'
Andrew
  • Moderator
321 solutions 4037 answers

Could you try clearing data? Could you try uninstall - reboot - install ?

Could you try clearing data? Could you try uninstall - reboot - install ?

Question owner

yeah... dosn't help! everything newer then 18.0.2 crashes on startup...

yeah... dosn't help! everything newer then 18.0.2 crashes on startup...
kbrosnan
  • Moderator
581 solutions 3841 answers

Would you provide a crash id? Type about:crashes in the address bar. There should be some crash ids listed.

Would you provide a crash id? Type about:crashes in the address bar. There should be some crash ids listed.
Andrew
  • Moderator
321 solutions 4037 answers

kbrosnan: I think Firefox crashes once tapped on to be opened therefore not giving enough time to type in about:crashes.

kbrosnan: I think Firefox crashes once tapped on to be opened therefore not giving enough time to type in about:crashes.

Question owner

Right! not enough time to type anything in the address bar ;)

but I found the cause of the crash with logcat. The problem is that Fennec/Firefox requires READ_PHONE_STATE permission...

04-06 22:50:52.317: W/System.err(24209): Caused by: java.lang.SecurityException: Requires READ_PHONE_STATE: Neither user 10147 nor current process has android.permission.READ_PHONE_STATE.

I tried to build Fennec from source with this permission added in the AndroidManifest.xml and it works... no more crashes.

But the big question now is why does Fennec need permission to read the phone state only on LGs 4.0.4 for this device?

Right! not enough time to type anything in the address bar ;) but I found the cause of the crash with logcat. The problem is that Fennec/Firefox requires READ_PHONE_STATE permission... 04-06 22:50:52.317: W/System.err(24209): Caused by: java.lang.SecurityException: Requires READ_PHONE_STATE: Neither user 10147 nor current process has android.permission.READ_PHONE_STATE. I tried to build Fennec from source with this permission added in the AndroidManifest.xml and it works... no more crashes. But the big question now is why does Fennec need permission to read the phone state only on LGs 4.0.4 for this device?
Roland Tanglao
  • Administrator
71 solutions 782 answers

Hi Kauraiko:

This sounds like a bug. I suggest filing a bug at bugzilla.mozilla.org if you haven't already.

Cheers!

...Roland

Hi Kauraiko: This sounds like a bug. I suggest filing a bug at bugzilla.mozilla.org if you haven't already. Cheers! ...Roland

Modified by Roland Tanglao

kbrosnan
  • Moderator
581 solutions 3841 answers

READ_PHONE_STATE is not set by Mozilla. Are you using a Mozilla binary? The only place in the Mozilla source READ_PHONE_STATE is used is a tool called SUTAgent. This is not distributed with Firefox. It is only used for testing.

https://mxr.mozilla.org/mozilla-central/source/build/mobile/sutagent/android/AndroidManifest.xml#38

READ_PHONE_STATE is not set by Mozilla. Are you using a Mozilla binary? The only place in the Mozilla source READ_PHONE_STATE is used is a tool called [https://wiki.mozilla.org/Auto-tools/Projects/SUTAgent SUTAgent]. This is not distributed with Firefox. It is only used for testing. https://mxr.mozilla.org/mozilla-central/source/build/mobile/sutagent/android/AndroidManifest.xml#38

Question owner

Right, READ_PHONE_STATE is not set by Mozilla and that is the problem on LG's ICS build for LG P970... the offiziell Firefox build from the Play store crashes on startup after this exception: 04-06 22:50:52.317: W/System.err(24209): Caused by: java.lang.SecurityException: Requires READ_PHONE_STATE: Neither user 10147 nor current process has android.permission.READ_PHONE_STATE.

as you can see it need the permission for READ_PHONE_STATE but android doesn't grant it 'cause it's not set by Mozilla in the AndroidManifest.xml...

I build my own apk from the offizial source code (mercurial repo) and added this permission to the AndroidManifest.xml the result is that this build runs without crashes on my phone.

and btw I think the problem is LGs Android build and not on Mozilla's side...

Right, READ_PHONE_STATE is not set by Mozilla and that is the problem on LG's ICS build for LG P970... the offiziell Firefox build from the Play store crashes on startup after this exception: 04-06 22:50:52.317: W/System.err(24209): Caused by: java.lang.SecurityException: Requires READ_PHONE_STATE: Neither user 10147 nor current process has android.permission.READ_PHONE_STATE. as you can see it need the permission for READ_PHONE_STATE but android doesn't grant it 'cause it's not set by Mozilla in the AndroidManifest.xml... I build my own apk from the offizial source code (mercurial repo) and added this permission to the AndroidManifest.xml the result is that this build runs without crashes on my phone. and btw I think the problem is LGs Android build and not on Mozilla's side...
kbrosnan
  • Moderator
581 solutions 3841 answers

Ah OK I understand now. I think we are tracking this as part of https://bugzilla.mozilla.org/show_bug.cgi?id=856445

Ah OK I understand now. I think we are tracking this as part of https://bugzilla.mozilla.org/show_bug.cgi?id=856445

Question owner

Sorry for my bad english ;)

yeah looks right even if they think the problem is something else.

Sorry for my bad english ;) yeah looks right even if they think the problem is something else.
zubacho54 0 solutions 2 answers

I have this problem too on my LG p970 ICS 4.0.4 using version 21 stable and 22 beta. It's almost 2 months now since a user found a solution and until now Mozilla team can't fix it.

I have this problem too on my LG p970 ICS 4.0.4 using version 21 stable and 22 beta. It's almost 2 months now since a user found a solution and until now Mozilla team can't fix it.
Andrew
  • Moderator
321 solutions 4037 answers

zubacho54: We are working on this issue and reading the bug, we are close to a patch for it.

zubacho54: We are working on this issue and reading the bug, we are close to a patch for it.
zubacho54 0 solutions 2 answers

It's good to know that this issue has been fixed according to the changelog. Too bad, I can't even try it because my optimus black has just died 3 weeks ago. But, thanks anyway to Mozilla team.

It's good to know that this issue has been fixed according to the changelog. Too bad, I can't even try it because my optimus black has just died 3 weeks ago. But, thanks anyway to Mozilla team.

Modified by zubacho54

Andrew
  • Moderator
321 solutions 4037 answers

Aww!! That's is just too sad to hear :(

Aww!! That's is just too sad to hear :(
Roland Tanglao
  • Administrator
71 solutions 782 answers

hi zubacho54

yup fixed in firefox 22 for android which was released today.

sorry to hear about your phone!

...Roland

hi zubacho54 yup fixed in firefox 22 for android which was released today. sorry to hear about your phone! ...Roland
aldonogueira 0 solutions 2 answers

It works now with Firefox 22. Tested with LG's Android 4.0.4. Now going back to Cyanogen 10.1 nightly build. :)

It works now with Firefox 22. Tested with LG's Android 4.0.4. Now going back to Cyanogen 10.1 nightly build. :)