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

VERIFIED FIXED in Firefox 6

Status

P1
blocker
VERIFIED FIXED
8 years ago
8 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

8 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

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

Updated

8 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
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
No idea why a rotation triggers this, weird
(Assignee)

Updated

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

Comment 8

8 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

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

Updated

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

Comment 9

8 years ago
http://hg.mozilla.org/mozilla-central/rev/24bd5f86695c
Status: NEW → RESOLVED
Last Resolved: 8 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.