-
Notifications
You must be signed in to change notification settings - Fork 1.8k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Crash In Android 4.2.1&Android 4.2.2 With Realm 3.0 #4334
Comments
@Zhuinden device is Samsung GT-I9118 and Samsung GT-I8558 and Samsung SM-G3812. another Native crash: |
@shisu250 if you have one of these devices at hand, you can try adding |
@Zhuinden Sorry,I have no devices. I collect crash log from user through the website. Can I use the old version.such as 1.2.0 . |
@shisu250 Realm 1.2.0 cannot open files created by Realm 2.x+, but technically Realm 1.2.0 did not have this problem yet. |
@Zhuinden Have some way to clear before files(2.x created) ? when I use 1.2.0 realm app cover installation 3.0.0 realm. |
It looks a bit like #3651. And it indicates an issue with @shisu250 I don't have access to any of the devices, you mention. But I have at least one other device (SM-T111) where I have seen similar crashes. If possible, please send an APK to help@realm.io so I can see if I can reproduce it on my test device. |
@kneth I am have send apk to help@realm.io , Thank you for your help. |
@kneth ok,thx. I use the old version.such as 1.2.0 . To avoid this problem for the time being. |
@shisu250 good news is that thanks to your stack trace, Realm has finally been able to identify the root cause of the error: memmove() native method is broken on old Samsung devices. While the fix in #4402 is being worked on (not yet merged), soon this error will be fixed! 😄 |
@Zhuinden thx very much,I will update my app's realm on later version. thanks again. |
@shisu250 version 3.1.1 is out with a fix - enjoy! |
@kneth 😁 |
please help me.
I use realm 3.0.
and collect crash in android 4.2.1& android 4.2.2 (level 17) . It looks like only crash in level 17.
This is crash log:
main(1)
SIGSEGV(SEGV_ACCERR)
#00 pc 00018b6c /system/lib/libc.so (memcpy+1324) [armeabi-v7a]
java:
io.realm.internal.SharedRealm.long nativeGetTable(long,java.lang.String)(Native Method)
io.realm.internal.SharedRealm.io.realm.internal.Table getTable(java.lang.String)(ProGuard:271)
io.realm.MasteryRealmBeanRealmProxy.io.realm.internal.Table initTable(io.realm.internal.SharedRealm)(ProGuard:149)
io.realm.PersonSchemaMediator.io.realm.internal.Table createTable(java.lang.Class,io.realm.internal.SharedRealm)(ProGuard:58)
io.realm.Realm.void initializeRealm(io.realm.Realm)(ProGuard:347)
io.realm.Realm.io.realm.Realm createAndValidate(io.realm.RealmConfiguration,io.realm.internal.ColumnIndices[])(ProGuard:314)
io.realm.Realm.io.realm.Realm createInstance(io.realm.RealmConfiguration,io.realm.internal.ColumnIndices[])(ProGuard:265)
io.realm.RealmCache.io.realm.BaseRealm createRealmOrGetFromCache(io.realm.RealmConfiguration,java.lang.Class)(ProGuard:143)
io.realm.Realm.io.realm.Realm getInstance(io.realm.RealmConfiguration)(ProGuard:228)
com.shensz.student.service.storage.StorageService.io.realm.Realm getPersonRealm()(ProGuard:120)
This is my code:
private static final String REALM_NAME_PREFIX = "person.";
private static final String REALM = ".realm";
private RealmConfiguration getPersonRealmConfiguration(String uid) {
Check.notNull(uid);
Check.notEmpty(uid);
String realmName;
if (TextUtils.isEmpty(uid)) {
realmName = REALM_NAME_PREFIX + "unknown" + REALM;
} else {
realmName = REALM_NAME_PREFIX + uid + REALM;
}
return new RealmConfiguration.Builder()
.name(realmName)
.deleteRealmIfMigrationNeeded()
.modules(new PersonSchema())
.schemaVersion(USER_REALM_VERSION)
.build();
}
The text was updated successfully, but these errors were encountered: