The default bug view has changed. See this FAQ.

Crash when changing the orientation from portrait to landscape or vice versa

VERIFIED FIXED in Firefox 6

Status

Fennec Graveyard
General
P1
blocker
VERIFIED FIXED
6 years ago
6 years ago

People

(Reporter: Andreea Pod, Assigned: mbrubeck)

Tracking

({crash, regression})

Trunk
Firefox 6
ARM
Android
crash, regression

Details

(Whiteboard: [has patch])

Attachments

(4 attachments)

(Reporter)

Description

6 years ago
Created attachment 531308 [details]
crash message

Mozilla /5.0 (Android;Linux armv7l;rv:6.0a1) Gecko/201105010 Firefox/6.0a1 Fennec/6.0a1 
Device: LG Optimus 2X (Android 2.2)

Steps to reproduce:
1. Open Fennec 
2. Change the orientation

Expected result:
The application should work with no problem

Actual result:
Fennec crashes "The application Fennec(process org.mozilla.fennec) has stopped unexpectedly. Please try again."

Note: 
You can see the attached screenshot and log.
(Reporter)

Comment 1

6 years ago
Created attachment 531309 [details]
crash log
(Reporter)

Updated

6 years ago
Severity: normal → blocker
Priority: -- → P1
(In reply to comment #1)
> Created attachment 531309 [details]
> crash log

I don't see a crash in the log. Does the crash happen for other phones too?
Keywords: crash
Able to reproduce with same build, Nexus One

http://hg.mozilla.org/mozilla-central/pushloghtml?fromchange=dfcfa00eb188&tochange=e0f6db50231f

Updated

6 years ago
Keywords: regression
05-10 09:23:43.070: ERROR/AndroidRuntime(4485): java.lang.RuntimeException: Unable to resume activity {org.mozilla.fennec/org.mozilla.fennec.App}: java.lang.NullPointerException
Created attachment 531313 [details]
Null pointer crash log
http://mxr.mozilla.org/mozilla-central/source/embedding/android/GeckoApp.java#373

Looks like bug 643032 with changeset http://hg.mozilla.org/mozilla-central/rev/33992b8ef80e
No idea why a rotation triggers this, weird
(Assignee)

Updated

6 years ago
Assignee: nobody → mbrubeck
Blocks: 643032
tracking-fennec: --- → ?
tracking-fennec: ? → 5+
tracking-firefox5: --- → ?
(Assignee)

Comment 8

6 years ago
Created attachment 531326 [details] [diff] [review]
patch

Oops, we need to move the initialization *above* the early return in onCreate, so it's re-created whenever the activity is.
Attachment #531326 - Flags: review?(blassey.bugs)
(Assignee)

Updated

6 years ago
Whiteboard: [has patch]
(Assignee)

Updated

6 years ago
tracking-fennec: 5+ → ?
status-firefox5: --- → unaffected
tracking-firefox5: ? → ---
Attachment #531326 - Flags: review?(blassey.bugs) → review+
(Assignee)

Comment 9

6 years ago
http://hg.mozilla.org/mozilla-central/rev/24bd5f86695c
Status: NEW → RESOLVED
Last Resolved: 6 years ago
Resolution: --- → FIXED
Verified fixed:
Mozilla/5.0 (Android; Linux armv7l; rv:6.0a1) Gecko/20110511 Firefox/6.0a1 Fennec/6.0a1
Status: RESOLVED → VERIFIED
Duplicate of this bug: 656291
Target Milestone: --- → Firefox 6
tracking-fennec: ? → 6+
status-firefox6: --- → fixed
You need to log in before you can comment on or make changes to this bug.