android.database.CursorIndexOutOfBoundsException: Index 1 requested, with a size of 1

Bug #738405 reported by pjv
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Collectionista
Incomplete
Medium
Unassigned

Bug Description

monkey found this:

    // Allowing start of Intent { act=android.intent.action.INSERT dat=content://net.lp.collectionista.alpha.products/items/book cmp=net.lp.collectionista.alpha/.ui.activities.items.book.BookItemEditWindow } in package net.lp.collectionista.alpha

:Sending Pointer ACTION_DOWN x=225.0 y=70.0

:Sending Pointer ACTION_UP x=225.0 y=70.0

    // Rejecting start of Intent { act=com.google.zxing.client.android.ENCODE cmp=com.google.zxing.client.android/.encode.EncodeActivity } in package com.google.zxing.client.android

:Sending Pointer ACTION_DOWN x=631.0 y=22.0

:Sending Pointer ACTION_UP x=631.0 y=22.0

:Switch: #Intent;action=android.intent.action.MAIN;category=android.intent.category.LAUNCHER;launchFlags=0x10000000;component=net.lp.collectionista.alpha/.ui.activities.CollectionsListWindow;end

    // Allowing start of Intent { act=android.intent.action.MAIN cat=[android.intent.category.LAUNCHER] cmp=net.lp.collectionista.alpha/.ui.activities.CollectionsListWindow } in package net.lp.collectionista.alpha

:Sending Pointer ACTION_DOWN x=310.0 y=152.0

:Sending Pointer ACTION_UP x=310.0 y=152.0

:Sending Pointer ACTION_DOWN x=455.0 y=390.0

// CRASH: net.lp.collectionista.alpha (pid 22751)

// Short Msg: android.database.CursorIndexOutOfBoundsException

// Long Msg: android.database.CursorIndexOutOfBoundsException: Index 1 requested, with a size of 1

// Build Label: unknown

// Build Changelist: eng.pjv.20100711.192135

// Build Time: 1278868973000

// android.database.CursorIndexOutOfBoundsException: Index 1 requested, with a size of 1

// at android.database.AbstractCursor.checkPosition(AbstractCursor.java:580)

// at android.database.AbstractWindowedCursor.checkPosition(AbstractWindowedCursor.java:214)

// at android.database.AbstractWindowedCursor.getLong(AbstractWindowedCursor.java:99)

// at android.database.CursorWrapper.getLong(CursorWrapper.java:127)

// at android.database.CursorWrapper.getLong(CursorWrapper.java:127)

// at android.database.CursorWrapper.getLong(CursorWrapper.java:127)

// at android.widget.CursorAdapter.getItemId(CursorAdapter.java:156)

// at android.widget.AdapterView.fireOnSelected(AdapterView.java:864)

// at android.widget.AdapterView.access$200(AdapterView.java:42)

// at android.widget.AdapterView$SelectionNotifier.run(AdapterView.java:830)

// at android.os.Handler.handleCallback(Handler.java:587)

// at android.os.Handler.dispatchMessage(Handler.java:92)

// at android.os.Looper.loop(Looper.java:123)

// at android.app.ActivityThread.main(ActivityThread.java:4627)

// at java.lang.reflect.Method.invokeNative(Native Method)

// at java.lang.reflect.Method.invoke(Method.java:521)

// at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:868)

// at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:626)

// at dalvik.system.NativeStart.main(Native Method)

//

Revision history for this message
pjv (pjv) wrote :

Only seen once.

Changed in collectionista:
importance: Undecided → Low
Revision history for this message
pjv (pjv) wrote :

dev con also has one report:

android.database.CursorIndexOutOfBoundsException: Index -1 requested, with a size of 1
at android.database.AbstractCursor.checkPosition(AbstractCursor.java:419)
at android.database.AbstractWindowedCursor.checkPosition(AbstractWindowedCursor.java:117)
at android.database.AbstractWindowedCursor.getLong(AbstractWindowedCursor.java:55)
at android.database.CursorWrapper.getLong(CursorWrapper.java:100)
at android.database.MergeCursor.getLong(MergeCursor.java:116)
at android.database.CursorWrapper.getLong(CursorWrapper.java:100)
at android.widget.CursorAdapter.getItemId(CursorAdapter.java:221)
at android.widget.AdapterView.rememberSyncState(AdapterView.java:1128)
at android.widget.AdapterView$AdapterDataSetObserver.onChanged(AdapterView.java:786)
at android.widget.AbsListView$AdapterDataSetObserver.onChanged(AbsListView.java:5331)
at android.database.DataSetObservable.notifyChanged(DataSetObservable.java:35)
at android.widget.BaseAdapter.notifyDataSetChanged(BaseAdapter.java:50)
at android.widget.CursorAdapter$MyDataSetObserver.onChanged(CursorAdapter.java:468)
at android.database.DataSetObservable.notifyChanged(DataSetObservable.java:35)
at android.database.AbstractCursor.requery(AbstractCursor.java:96)
at android.database.sqlite.SQLiteCursor.requery(SQLiteCursor.java:463)
at android.database.CursorWrapper.requery(CursorWrapper.java:180)
at android.database.MergeCursor.requery(MergeCursor.java:228)
at android.database.CursorWrapper.requery(CursorWrapper.java:180)
at android.widget.CursorAdapter.onContentChanged(CursorAdapter.java:444)
at android.widget.CursorAdapter$ChangeObserver.onChange(CursorAdapter.java:460)
at android.database.ContentObserver$NotificationRunnable.run(ContentObserver.java:43)
at android.os.Handler.handleCallback(Handler.java:587)
at android.os.Handler.dispatchMessage(Handler.java:92)
at android.os.Looper.loop(Looper.java:126)
at android.app.ActivityThread.main(ActivityThread.java:3997)
at java.lang.reflect.Method.invokeNative(Native Method)
at java.lang.reflect.Method.invoke(Method.java:491)
at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:841)
at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:599)
at dalvik.system.NativeStart.main(Native Method)

pjv (pjv)
Changed in collectionista:
importance: Low → Medium
Revision history for this message
pjv (pjv) wrote :

monkey:

// CRASH: net.lp.collectionista (pid 13683)

// Short Msg: android.database.CursorIndexOutOfBoundsException

// Long Msg: android.database.CursorIndexOutOfBoundsException: Index -1 requested, with a size of 5

// Build Label: samsung/GT-P7510/GT-P7510:3.0.1/HRI83/313:user/release-keys

// Build Changelist: 313

// Build Time: 1304525166000

// android.database.CursorIndexOutOfBoundsException: Index -1 requested, with a size of 5

// at android.database.AbstractCursor.checkPosition(AbstractCursor.java:419)

// at android.database.AbstractWindowedCursor.checkPosition(AbstractWindowedCursor.java:117)

// at android.database.AbstractWindowedCursor.getLong(AbstractWindowedCursor.java:55)

// at android.database.CursorWrapper.getLong(CursorWrapper.java:100)

// at android.database.MergeCursor.getLong(MergeCursor.java:116)

// at android.database.CursorWrapper.getLong(CursorWrapper.java:100)

// at android.widget.CursorAdapter.getItemId(CursorAdapter.java:221)

// at android.widget.AdapterView.rememberSyncState(AdapterView.java:1128)

// at android.widget.AdapterView$AdapterDataSetObserver.onChanged(AdapterView.java:786)

// at android.widget.AbsListView$AdapterDataSetObserver.onChanged(AbsListView.java:5331)

// at android.database.DataSetObservable.notifyChanged(DataSetObservable.java:35)

// at android.widget.BaseAdapter.notifyDataSetChanged(BaseAdapter.java:50)

// at android.widget.CursorAdapter$MyDataSetObserver.onChanged(CursorAdapter.java:468)

// at android.database.DataSetObservable.notifyChanged(DataSetObservable.java:35)

// at android.database.AbstractCursor.requery(AbstractCursor.java:96)

// at android.database.sqlite.SQLiteCursor.requery(SQLiteCursor.java:463)

// at android.database.CursorWrapper.requery(CursorWrapper.java:180)

// at android.database.MergeCursor.requery(MergeCursor.java:228)

// at android.database.CursorWrapper.requery(CursorWrapper.java:180)

// at android.widget.CursorAdapter.onContentChanged(CursorAdapter.java:444)

// at android.widget.CursorAdapter$ChangeObserver.onChange(CursorAdapter.java:460)

// at android.database.ContentObserver$NotificationRunnable.run(ContentObserver.java:43)

// at android.os.Handler.handleCallback(Handler.java:587)

// at android.os.Handler.dispatchMessage(Handler.java:92)

// at android.os.Looper.loop(Looper.java:126)

// at android.app.ActivityThread.main(ActivityThread.java:4002)

// at java.lang.reflect.Method.invokeNative(Native Method)

// at java.lang.reflect.Method.invoke(Method.java:491)

// at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:844)

// at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:602)

// at dalvik.system.NativeStart.main(Native Method)

Revision history for this message
pjv (pjv) wrote :

Could have been solved with new CrossProcessCursorWrapper.

Changed in collectionista:
status: New → Incomplete
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.