OpenCycleCompass / ocyco-app-android

Android App for OpenCycleCompass
GNU General Public License v3.0
6 stars 1 forks source link

Index out of bound exception in tracking database #87

Closed rleh closed 9 years ago

rleh commented 9 years ago

https://acra.mytfg.de/acralyzer/_design/acralyzer/index.html#/report-details/ibis/8f21fcbb-24b7-424d-9e3c-74725caa8cf8

java.lang.RuntimeException: Unable to stop service de.mytfg.jufo.ibis.Tracking@39dd5dc0: android.database.CursorIndexOutOfBoundsException: Index 1 requested, with a size of 1
at android.app.ActivityThread.handleStopService(ActivityThread.java:2943)
at android.app.ActivityThread.access$2200(ActivityThread.java:148)
at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1395)
at android.os.Handler.dispatchMessage(Handler.java:102)
at android.os.Looper.loop(Looper.java:135)
at android.app.ActivityThread.main(ActivityThread.java:5312)
at java.lang.reflect.Method.invoke(Native Method)
at java.lang.reflect.Method.invoke(Method.java:372)
at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:901)
at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:696)
Caused by: android.database.CursorIndexOutOfBoundsException: Index 1 requested, with a size of 1
at android.database.AbstractCursor.checkPosition(AbstractCursor.java:426)
at android.database.AbstractWindowedCursor.checkPosition(AbstractWindowedCursor.java:136)
at android.database.AbstractWindowedCursor.getDouble(AbstractWindowedCursor.java:86)
at de.mytfg.jufo.ibis.GPSDatabase.sendToServer(GPSDatabase.java:109)
at de.mytfg.jufo.ibis.Tracking.stopOnlineTracking(Tracking.java:218)
at de.mytfg.jufo.ibis.Tracking.disconnect(Tracking.java:249)
at de.mytfg.jufo.ibis.Tracking.onDestroy(Tracking.java:243)
at android.app.ActivityThread.handleStopService(ActivityThread.java:2926)
... 9 more
android.database.CursorIndexOutOfBoundsException: Index 1 requested, with a size of 1
at android.database.AbstractCursor.checkPosition(AbstractCursor.java:426)
at android.database.AbstractWindowedCursor.checkPosition(AbstractWindowedCursor.java:136)
at android.database.AbstractWindowedCursor.getDouble(AbstractWindowedCursor.java:86)
at de.mytfg.jufo.ibis.GPSDatabase.sendToServer(GPSDatabase.java:109)
at de.mytfg.jufo.ibis.Tracking.stopOnlineTracking(Tracking.java:218)
at de.mytfg.jufo.ibis.Tracking.disconnect(Tracking.java:249)
at de.mytfg.jufo.ibis.Tracking.onDestroy(Tracking.java:243)
at android.app.ActivityThread.handleStopService(ActivityThread.java:2926)
at android.app.ActivityThread.access$2200(ActivityThread.java:148)
at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1395)
at android.os.Handler.dispatchMessage(Handler.java:102)
at android.os.Looper.loop(Looper.java:135)
at android.app.ActivityThread.main(ActivityThread.java:5312)
at java.lang.reflect.Method.invoke(Native Method)
at java.lang.reflect.Method.invoke(Method.java:372)
at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:901)
at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:696)
rleh commented 9 years ago

Könnte an der genannten Zeile 109 liegen: while(true) { /* ...*/ } :sob: :boom:

Harry-R commented 9 years ago

Offensichtlich nicht gefixt...
https://acra.mytfg.de/acralyzer/_design/acralyzer/index.html#/report-details/ibis/02f5234e-15b9-4328-ba9f-fb7d5244c35d