realm-java icon indicating copy to clipboard operation
realm-java copied to clipboard

ArrayIndexOutOfBoundsException: columnIndex > available columns

Open eboudrant opened this issue 11 years ago • 8 comments

Crash unexplained, there was no schema change, no migration. Crash report say

java.lang.ArrayIndexOutOfBoundsException: columnIndex > available columns.
at io.realm.internal.Row.nativeGetLong(Native Method)
at io.realm.internal.Row.getLong(Row.java:95)
at io.realm.AppInstalledRealmProxy.getVersionCode(AppInstalledRealmProxy.java:94)

Where versionCode is an int. I cannot reproduce it, it has been reported by an user.

Using Realm Android 0.78.0

eboudrant avatar Feb 16 '15 05:02 eboudrant

Hi @eboudrant Without anything more I am afraid there is very little for us to go after.

  • Have you seen the error multiple times?
  • What devices / android version?
  • Where in the app lifecycle does it happen? Startup? During something?

cmelchior avatar Feb 18 '15 14:02 cmelchior

@cmelchior it happened in 2 scenarios :

  • during a delete in a broadcast receiver
  • during a click in the activity

eboudrant avatar Feb 19 '15 18:02 eboudrant

Hi @zsavely Thanks, but your issue is not the same. I think we already have a open bug report on it, but I will split it into another issue just to double check.

https://github.com/realm/realm-java/issues/875

cmelchior avatar Feb 19 '15 18:02 cmelchior

Hi @eboudrant We fixed some issues in 0.79 and 0.80 that could be connected to this. Are you still seeing this issue?

cmelchior avatar Apr 01 '15 11:04 cmelchior

That's good news. I will try this new version but I won't be able to release it because of #982 Thanks

On Wed, Apr 1, 2015 at 4:18 AM, Christian Melchior <[email protected]

wrote:

Hi @eboudrant https://github.com/eboudrant We fixed some issues in 0.79 and 0.80 that could be connected to this. Are you still seeing this issue?

— Reply to this email directly or view it on GitHub https://github.com/realm/realm-java/issues/852#issuecomment-88444539.

eboudrant avatar Apr 01 '15 20:04 eboudrant

@eboudrant Did updating Realm help?

kneth avatar Apr 16 '15 07:04 kneth

@kneth until #982 is fixed I cannot update the realm and publish the app. I never had the issue since, I will re-open if I still have see it using 0.80.x. Thanks

eboudrant avatar May 03 '15 01:05 eboudrant

Hi Realm team. I'm using Realm v0.87.4 and having this exception.

Fatal Exception: java.lang.ArrayIndexOutOfBoundsException: columnIndex > available columns.
   at io.realm.internal.Table.nativeGetLong(Table.java)
   at io.realm.internal.Table.getLong(Table.java:645)
   at io.realm.BaseRealm.getVersion(BaseRealm.java:382)
   at io.realm.Realm.getVersion(Realm.java:108)
   at io.realm.Realm.createAndValidate(Realm.java:247)
   at io.realm.Realm.createInstance(Realm.java:231)
   at io.realm.RealmCache.createRealmOrGetFromCache(RealmCache.java:114)
   at io.realm.Realm.getInstance(Realm.java:197)
   at kr.co.vcnc.android.couple.feature.home.HomeFragment.onLazyLoadTab(HomeFragment.java:143)

This exception is happening only in Android 4.4 like issues #1795 After we start to use independent Realm configuration to specific table(Same table in #1795), this crash is occurring.

screen shot 2016-02-15 at 8 57 27 pm

hohnamkung avatar Feb 15 '16 11:02 hohnamkung