realm-java: ArrayIndexOutOfBoundsException: rowIndex is less than 0
Goal (what do you want to achieve?)
I am changing status of a field in realm table continuously
Expected Results
The status should change in the database
Actual Results (e.g. full stack trace with exception)
03-10 17:27:50.122 28586-28586/com.workoutguru.workoutcash E/AndroidRuntime: FATAL EXCEPTION: main
03-10 17:27:50.122 28586-28586/com.workoutguru.workoutcash E/AndroidRuntime: Process: com.workoutguru.workoutcash, PID: 28586
03-10 17:27:50.122 28586-28586/com.workoutguru.workoutcash E/AndroidRuntime: java.lang.ArrayIndexOutOfBoundsException: rowIndex is less than 0.
03-10 17:27:50.122 28586-28586/com.workoutguru.workoutcash E/AndroidRuntime: at io.realm.internal.TableView.nativeGetSourceRowIndex(Native Method)
03-10 17:27:50.122 28586-28586/com.workoutguru.workoutcash E/AndroidRuntime: at io.realm.internal.TableView.getSourceRowIndex(TableView.java:158)
03-10 17:27:50.122 28586-28586/com.workoutguru.workoutcash E/AndroidRuntime: at io.realm.RealmResults.get(RealmResults.java:174)
03-10 17:27:50.122 28586-28586/com.workoutguru.workoutcash E/AndroidRuntime: at com.workoutguru.workoutcash.CompanyGoals_AllGoals_Fragment$CompanyAllGoalsAdapter$CompanyAllGoalsAdapterViewHolder$1$1.onResponse(CompanyGoals_AllGoals_Fragment.java:668)
03-10 17:27:50.122 28586-28586/com.workoutguru.workoutcash E/AndroidRuntime: at retrofit.ExecutorCallAdapterFactory$ExecutorCallback$1.run(ExecutorCallAdapterFactory.java:86)
03-10 17:27:50.122 28586-28586/com.workoutguru.workoutcash E/AndroidRuntime: at android.os.Handler.handleCallback(Handler.java:739)
03-10 17:27:50.122 28586-28586/com.workoutguru.workoutcash E/AndroidRuntime: at android.os.Handler.dispatchMessage(Handler.java:95)
03-10 17:27:50.122 28586-28586/com.workoutguru.workoutcash E/AndroidRuntime: at android.os.Looper.loop(Looper.java:135)
03-10 17:27:50.122 28586-28586/com.workoutguru.workoutcash E/AndroidRuntime: at android.app.ActivityThread.main(ActivityThread.java:5343)
03-10 17:27:50.122 28586-28586/com.workoutguru.workoutcash E/AndroidRuntime: at java.lang.reflect.Method.invoke(Native Method)
03-10 17:27:50.122 28586-28586/com.workoutguru.workoutcash E/AndroidRuntime: at java.lang.reflect.Method.invoke(Method.java:372)
03-10 17:27:50.122 28586-28586/com.workoutguru.workoutcash E/AndroidRuntime: at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:905)
03-10 17:27:50.122 28586-28586/com.workoutguru.workoutcash E/AndroidRuntime: at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:700)
Version of Realm and tooling
Realm version(s): compile ‘io.realm:realm-android:0.87.5’
Android Studio version: android 1.4
Android version(s) on device/simulator: Device version 5.1,API:22
About this issue
- Original URL
- State: closed
- Created 8 years ago
- Comments: 26 (14 by maintainers)
Commits related to this issue
- RealResults is not synced in globla listener Close #2408 RealmResults are synced when calling its listener, since we need to check the table version before calling the listener. So sync it just afte... — committed to realm/realm-java by beeender 8 years ago
- RealResults is not synced in global listener Close #2408 RealmResults are synced when calling its listener, since we need to check the table version before calling the listener. So sync it just afte... — committed to realm/realm-java by beeender 8 years ago
- RealmResults is not synced in global listener (#2926) Close #2408 RealmResults are synced when calling its listener, since we need to check the table version before calling the listener. So sync ... — committed to realm/realm-java by beeender 8 years ago
#2753 is reporting the similar issue, i will try to reproduce it with clues from there.