Closed Bug 920684 Opened 11 years ago Closed 6 years ago

crash in java.lang.IllegalStateException: Couldn''t move cursor to position -1 at org.mozilla.gecko.home.MultiTypeCursorAdapter.getCursor(MultiTypeCursorAdapter.java)

Categories

(Firefox for Android Graveyard :: Awesomescreen, defect)

27 Branch
All
Android
defect
Not set
critical

Tracking

(firefox30 affected, firefox43 affected)

RESOLVED INCOMPLETE
Tracking Status
firefox30 --- affected
firefox43 --- affected

People

(Reporter: aaronmt, Unassigned)

References

Details

(Keywords: crash)

Crash Data

This bug was filed from the Socorro interface and is 
report bp-ce9fa20c-505b-422e-8503-39cb52130925.
=============================================================

I hit this while monkey fuzzing, not sure what the steps are manually. Thought this was fixed with bug 911828 :/

--
Nightly (09/25) | LG Nexus 4 (Android 4.3)
java.lang.IllegalStateException: Couldn't move cursor to position -1
	at org.mozilla.gecko.home.MultiTypeCursorAdapter.getCursor(MultiTypeCursorAdapter.java:49)
	at org.mozilla.gecko.home.MostRecentPage$1.onItemClick(MostRecentPage.java:108)
	at org.mozilla.gecko.home.HomeListView$1.onItemClick(HomeListView.java:112)
	at android.widget.AdapterView.performItemClick(AdapterView.java:298)
	at android.widget.AbsListView.performItemClick(AbsListView.java:1100)
	at android.widget.AbsListView.onKeyUp(AbsListView.java:2929)
	at android.widget.ListView.commonKey(ListView.java:2267)
	at android.widget.ListView.onKeyUp(ListView.java:2122)
	at android.view.KeyEvent.dispatch(KeyEvent.java:2647)
Can consistently hit this multiple times with just doing '$ monkey -p org.mozilla.fennec -v 3000'
I don't think I have this monkey fuzzing tool... where do I get it? Also, can you watch Fennec in action while this is happening? Maybe that would give some hint as to manual steps to reproduce.
(In reply to :Margaret Leibovic from comment #3)
> I don't think I have this monkey fuzzing tool... where do I get it? Also,
> can you watch Fennec in action while this is happening? Maybe that would
> give some hint as to manual steps to reproduce.

$ adb shell monkey -p org.mozilla.fennec -v <number> - where number is the number of pseudo-random number of events to send the the package supplied on command line.

You can watch but it's really fast and random each time.

If you click the crash report and go to reports it looks like I'm not the only one hitting this so far. It is low volume though.
I've reproduced this crash 14 times in an hour interval, performing monkey testing on a Motorola RAZR XT910 (Android 2.3.5) / Aurora 26.0a2 (2013-10-03)
Thanks!
This crash continues to frequently comes up on my devices during UI fuzzing.

https://crash-stats.mozilla.com/report/index/5db85d5e-f4ac-45de-8207-8f07b2140218
Playing with Monkey, I had the same crash with nightly
// CRASH: org.mozilla.fennec_sylvestre (pid 280)
// Short Msg: java.lang.IllegalStateException
// Long Msg: java.lang.IllegalStateException: Couldn't move cursor to position -1
// Build Label: generic/sdk/generic:2.3.7/GINGERBREAD/eng.ubuntu.20140123.014351:eng/test-keys
// Build Changelist: eng.ubuntu.20140123.014351
// Build Time: 1390441494000
// java.lang.IllegalStateException: Couldn't move cursor to position -1
//      at org.mozilla.gecko.home.MultiTypeCursorAdapter.getCursor(MultiTypeCursorAdapter.java:49)
//      at org.mozilla.gecko.home.HistoryPanel$1.onItemClick(HistoryPanel.java:97)
//      at org.mozilla.gecko.home.HomeListView$1.onItemClick(HomeListView.java:122)
Crash Signature: [@ java.lang.IllegalStateException: Couldn''t move cursor to position -1 at org.mozilla.gecko.home.MultiTypeCursorAdapter.getCursor(MultiTypeCursorAdapter.java)] → [@ java.lang.IllegalStateException: Couldn''t move cursor to position -1 at org.mozilla.gecko.home.MultiTypeCursorAdapter.getCursor(MultiTypeCursorAdapter.java)] [@ java.lang.IllegalStateException: Couldn''t move cursor to position -1 at org.mozilla.geck…
No recent crashes in crash stats.
Status: NEW → RESOLVED
Closed: 6 years ago
Resolution: --- → INCOMPLETE
Product: Firefox for Android → Firefox for Android Graveyard

Removing steps-wanted keyword because this bug has been resolved.

Keywords: steps-wanted

Removing steps-wanted keyword because this bug has been resolved.

You need to log in before you can comment on or make changes to this bug.