Closed Bug 712627 Opened 14 years ago Closed 14 years ago

Fennec crashes if a long tap is performed in AwesomeBar/History

Categories

(Firefox for Android Graveyard :: General, defect, P1)

ARM
Android
defect

Tracking

(firefox11 verified, firefox12 verified, fennec11+)

VERIFIED FIXED
Firefox 11
Tracking Status
firefox11 --- verified
firefox12 --- verified
fennec 11+ ---

People

(Reporter: xti, Assigned: wesj)

Details

(Keywords: crash, reproducible, Whiteboard: [native-crash])

Crash Data

Attachments

(2 files)

Attached file crash log
Mozilla/5.0 (Android;Linux armv7l;rv:12.0a1)Gecko/20111220 Firefox/12.0a1 Fennec/12.0a1 Devices: Samsung Galaxy S OS: Android 2.2 Steps to reproduce: 1. Open Fennec App 2. Tap on URL Bar 3. Tap on History Tab 4. Long tap on any page from History list Expected result: No crash should occur after step 4. Actual result: After step 4, the app crashes. Please see the attached log. Note: When the crash reporter is displayed, it just freezes. Cancel or Restart Fennec buttons cannot be tapped.
Probably a regression from adding contextual menus to items in bug 708273 --- D/GeckoAwesomeBarTabs( 2043): Creating History tab D/dalvikvm( 155): GC_CONCURRENT freed 841K, 12% free 13780K/15623K, paused 11ms+8ms I/ActivityManager( 155): Displayed org.mozilla.fennec/org.mozilla.gecko.AwesomeBar: +209ms I/GeckoApp( 2043): stop E/GeckoApp( 2043): top level exception E/GeckoApp( 2043): java.lang.ClassCastException: android.widget.ExpandableListView$ExpandableListContextMenuInfo cannot be cast to android.widget.AdapterView$AdapterContextMenuInfo E/GeckoApp( 2043): at org.mozilla.gecko.AwesomeBar.onCreateContextMenu(AwesomeBar.java:388) E/GeckoApp( 2043): at android.view.View.createContextMenu(View.java:6182) E/GeckoApp( 2043): at com.android.internal.view.menu.ContextMenuBuilder.show(ContextMenuBuilder.java:81) E/GeckoApp( 2043): at com.android.internal.policy.impl.PhoneWindow$DecorView.showContextMenuForChild(PhoneWindow.java:2144) E/GeckoApp( 2043): at android.view.ViewGroup.showContextMenuForChild(ViewGroup.java:564) E/GeckoApp( 2043): at android.view.ViewGroup.showContextMenuForChild(ViewGroup.java:564) E/GeckoApp( 2043): at android.view.ViewGroup.showContextMenuForChild(ViewGroup.java:564) E/GeckoApp( 2043): at android.view.ViewGroup.showContextMenuForChild(ViewGroup.java:564) E/GeckoApp( 2043): at android.view.ViewGroup.showContextMenuForChild(ViewGroup.java:564) E/GeckoApp( 2043): at android.view.ViewGroup.showContextMenuForChild(ViewGroup.java:564) E/GeckoApp( 2043): at android.view.ViewGroup.showContextMenuForChild(ViewGroup.java:564) E/GeckoApp( 2043): at android.widget.AbsListView.performLongPress(AbsListView.java:2585) E/GeckoApp( 2043): at android.widget.AbsListView$CheckForLongPress.run(AbsListView.java:2530) E/GeckoApp( 2043): at android.os.Handler.handleCallback(Handler.java:605) E/GeckoApp( 2043): at android.os.Handler.dispatchMessage(Handler.java:92) E/GeckoApp( 2043): at android.os.Looper.loop(Looper.java:137) E/GeckoApp( 2043): at org.mozilla.gecko.GeckoApp$33.run(GeckoApp.java:1512) E/GeckoApp( 2043): at android.os.Handler.handleCallback(Handler.java:605) E/GeckoApp( 2043): at android.os.Handler.dispatchMessage(Handler.java:92) E/GeckoApp( 2043): at android.os.Looper.loop(Looper.java:137) E/GeckoApp( 2043): at android.app.ActivityThread.main(ActivityThread.java:4424) E/GeckoApp( 2043): at java.lang.reflect.Method.invokeNative(Native Method) E/GeckoApp( 2043): at java.lang.reflect.Method.invoke(Method.java:511) E/GeckoApp( 2043): at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:784) E/GeckoApp( 2043): at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:551) E/GeckoApp( 2043): at dalvik.system.NativeStart.main(Native Method) D/Zygote ( 81): Process 2043 exited cleanly (1) I/ActivityManager( 155): Process org.mozilla.fennec (pid 2043) has died. I/WindowManager( 155): WIN DEATH: Window{415f0020 SurfaceView paused=false} I/WindowManager( 155): WIN DEATH: Window{415766b0 org.mozilla.fennec/org.mozilla.fennec.App paused=false} W/ActivityManager( 155): Force removing ActivityRecord{415a8310 org.mozilla.fennec/org.mozilla.gecko.AwesomeBar}: app died, no saved state
Keywords: crash, reproducible
Whiteboard: [native-crash]
Crash Signature: [@ mozalloc_abort | __swrite | dlfree | dlfree | dvmPlatformInvoke ]
Keywords: crash, reproducible
Whiteboard: [native-crash]
Keywords: crash, reproducible
Whiteboard: [native-crash]
Assignee: nobody → wjohnston
Priority: -- → P1
Attached patch PatchSplinter Review
History list is apparently an ExpandedListView and doesn't have a cursor controlling it either. This adapts our code to handle both Cursors and Maps.
Comment on attachment 583652 [details] [diff] [review] Patch Looks like you covered all the listviews. Is this ready for review?
Crash Signature: [@ mozalloc_abort | __swrite | dlfree | dlfree | dvmPlatformInvoke ] → [@ mozalloc_abort | __swrite | dlfree | dlfree | dvmPlatformInvoke ] [@ mozalloc_abort | pthread_mutex_unlock ]
Comment on attachment 583652 [details] [diff] [review] Patch Tested the 3 different listviews - they all work without crashing.
Attachment #583652 - Flags: review+
Status: NEW → RESOLVED
Closed: 14 years ago
Resolution: --- → FIXED
Whiteboard: [native-crash] → [native-crash][fennec-aurora?]
Target Milestone: --- → Firefox 12
Comment on attachment 583652 [details] [diff] [review] Patch Yes, this patch is needed on aurora
Attachment #583652 - Flags: approval-mozilla-aurora?
Comment on attachment 583652 [details] [diff] [review] Patch [triage comment] Approved for aurora. Fixes a crash in native UI.
Attachment #583652 - Flags: approval-mozilla-aurora? → approval-mozilla-aurora+
Samsung Galaxy SII (Android 2.3.4) Mozilla/5.0 (Android; Linux armv7l; rv:12.0a1) Gecko/20111228 Firefox/12.0a1 Fennec/12.0a1 Mozilla/5.0 (Android; Linux armv7l; rv:11.0a2) Gecko/20111228 Firefox/11.0a2 Fennec/11.0a1
Status: RESOLVED → VERIFIED
Whiteboard: [native-crash][fennec-aurora?] → [native-crash][fennec-aurora+]
tracking-fennec: --- → 11+
Whiteboard: [native-crash][fennec-aurora+] → [native-crash]
Product: Firefox for Android → Firefox for Android Graveyard
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: