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)
Tracking
(firefox11 verified, firefox12 verified, fennec11+)
VERIFIED
FIXED
Firefox 11
People
(Reporter: xti, Assigned: wesj)
Details
(Keywords: crash, reproducible, Whiteboard: [native-crash])
Crash Data
Attachments
(2 files)
61.30 KB,
text/plain
|
Details | |
5.70 KB,
patch
|
mfinkle
:
review+
christian
:
approval-mozilla-aurora+
|
Details | Diff | Splinter Review |
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.
Comment 1•14 years ago
|
||
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]
Reporter | ||
Comment 2•14 years ago
|
||
Crash Signature: [@ mozalloc_abort | __swrite | dlfree | dlfree | dvmPlatformInvoke ]
Keywords: crash,
reproducible
Whiteboard: [native-crash]
Reporter | ||
Updated•14 years ago
|
Keywords: crash,
reproducible
Whiteboard: [native-crash]
Updated•14 years ago
|
Assignee: nobody → wjohnston
Priority: -- → P1
Assignee | ||
Comment 3•14 years ago
|
||
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 4•14 years ago
|
||
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 6•14 years ago
|
||
Comment on attachment 583652 [details] [diff] [review]
Patch
Tested the 3 different listviews - they all work without crashing.
Attachment #583652 -
Flags: review+
Comment 7•14 years ago
|
||
Comment 8•14 years ago
|
||
forgot to qref after removing a debugging Log
https://hg.mozilla.org/integration/mozilla-inbound/rev/02f09fcbf282
Comment 9•14 years ago
|
||
https://hg.mozilla.org/mozilla-central/rev/e63189dcf24c
https://hg.mozilla.org/mozilla-central/rev/02f09fcbf282
Is Aurora 11 affected?
Status: NEW → RESOLVED
Closed: 14 years ago
status-firefox12:
--- → fixed
Resolution: --- → FIXED
Whiteboard: [native-crash] → [native-crash][fennec-aurora?]
Target Milestone: --- → Firefox 12
Comment 10•14 years ago
|
||
Comment on attachment 583652 [details] [diff] [review]
Patch
Yes, this patch is needed on aurora
Attachment #583652 -
Flags: approval-mozilla-aurora?
Updated•14 years ago
|
status-firefox11:
--- → affected
Comment 11•14 years ago
|
||
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+
Comment 12•14 years ago
|
||
combined patch:
https://hg.mozilla.org/releases/mozilla-aurora/rev/70ddf5c18897
Target Milestone: Firefox 12 → Firefox 11
Comment 13•14 years ago
|
||
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+]
Updated•14 years ago
|
tracking-fennec: --- → 11+
Updated•14 years ago
|
Whiteboard: [native-crash][fennec-aurora+] → [native-crash]
Updated•5 years ago
|
Product: Firefox for Android → Firefox for Android Graveyard
You need to log in
before you can comment on or make changes to this bug.
Description
•