{"action":"created","issue":{"url":"https://api.github.com/repos/realm/realm-java/issues/1442","labels_url":"https://api.github.com/repos/realm/realm-java/issues/1442/labels{/name}","comments_url":"https://api.github.com/repos/realm/realm-java/issues/1442/comments","events_url":"https://api.github.com/repos/realm/realm-java/issues/1442/events","html_url":"https://github.com/realm/realm-java/issues/1442","id":104221761,"number":1442,"title":"Native crash \"Failure when converting short string to UTF-16 error_code = 1\" ","user":{"login":"pavel-mukhanov","id":5321730,"avatar_url":"https://avatars.githubusercontent.com/u/5321730?v=3","gravatar_id":"","url":"https://api.github.com/users/pavel-mukhanov","html_url":"https://github.com/pavel-mukhanov","followers_url":"https://api.github.com/users/pavel-mukhanov/followers","following_url":"https://api.github.com/users/pavel-mukhanov/following{/other_user}","gists_url":"https://api.github.com/users/pavel-mukhanov/gists{/gist_id}","starred_url":"https://api.github.com/users/pavel-mukhanov/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/pavel-mukhanov/subscriptions","organizations_url":"https://api.github.com/users/pavel-mukhanov/orgs","repos_url":"https://api.github.com/users/pavel-mukhanov/repos","events_url":"https://api.github.com/users/pavel-mukhanov/events{/privacy}","received_events_url":"https://api.github.com/users/pavel-mukhanov/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/realm/realm-java/labels/bug","name":"bug","color":"e11d21"},{"url":"https://api.github.com/repos/realm/realm-java/labels/Pending","name":"Pending","color":"ededed"}],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":14,"created_at":"2015-09-01T09:12:20Z","updated_at":"2015-09-21T14:02:18Z","closed_at":null,"body":"Realm version: 0.82.0\r\nEncryption: no\r\nAndroid version: 5.0.2\r\n\r\nWe got native crash:\t\r\n\r\n\tF/libc    (18165): Fatal signal 11 (SIGSEGV), code 1, fault addr 0x0 in tid 14454 (Retrofit-Idle)\r\n\tF/art     (18165): art/runtime/check_jni.cc:65] JNI DETECTED ERROR IN APPLICATION: input is not valid Modified \tUTF-8: illegal continuation byte 0x3b\r\n\tF/art     (18165): art/runtime/check_jni.cc:65]     string: 'Unrecoverable error. Failure when converting short \tstring to UTF-16 error_code = 1; retcode = 0; StringData.size = 15; StringData.data = �; StringData as hex =  \t0xe1 0x00 0xee 0x00 0x12 0x02 0xb8 0x03 0x09 0x06 0xed 0x07 0xe1 0x00 0xee; in_begin = �; in_end = ; out_curr = \t0x96cff2c0; out_end = 0x96cff320; in io_realm_internal_UncheckedRow.cpp line 137'\r\n\tF/art     (18165): art/runtime/check_jni.cc:65]     in call to ThrowNew\r\n\tF/art     (18165): art/runtime/check_jni.cc:65]     from java.lang.String io.realm.internal.UncheckedRow.\tnativeGetString(long, long)\r\n\tF/art     (18165): art/runtime/check_jni.cc:65] \"realm_thread\" prio=5 tid=51 Runnable\r\n\tF/art     (18165): art/runtime/check_jni.cc:65]   | group=\"main\" sCount=0 dsCount=0 obj=0x12c0b400 \tself=0xa1675000\r\n\tF/art     (18165): art/runtime/check_jni.cc:65]   | sysTid=18276 nice=0 cgrp=apps sched=0/0 handle=0xb3bd1000\r\n\tF/art     (18165): art/runtime/check_jni.cc:65]   | state=R schedstat=( 7189801941 1409708139 5564 ) utm=700 \tstm=18 core=2 HZ=100\r\n\tF/art     (18165): art/runtime/check_jni.cc:65]   | stack=0x96bfe000-0x96c00000 stackSize=1036KB\r\n\tF/art     (18165): art/runtime/check_jni.cc:65]   | held mutexes= \"mutator lock\"(shared held)\r\n\tF/art     (18165): art/runtime/check_jni.cc:65]   native: #00 pc 00004640  /system/lib/libbacktrace_libc++.so (\tUnwindCurrent::Unwind(unsigned int, ucontext*)+23)\r\n\tF/art     (18165): art/runtime/check_jni.cc:65]   native: #01 pc 00002e8d  /system/lib/libbacktrace_libc++.so (\tBacktrace::Unwind(unsigned int, ucontext*)+8)\r\n\tF/art     (18165): art/runtime/check_jni.cc:65]   native: #02 pc 0023f09d  /system/lib/libart.so (\tart::DumpNativeStack(std::__1::basic_ostream<char, std::__1::char_traits<char> >&, int, char const*, \tart::mirror::ArtMethod*)+68)\r\n\tF/art     (18165): art/runtime/check_jni.cc:65]   native: #03 pc 002245eb  /system/lib/libart.so (\tart::Thread::Dump(std::__1::basic_ostream<char, std::__1::char_traits<char> >&) const+146)\r\n\tF/art     (18165): art/runtime/check_jni.cc:65]   native: #04 pc 000afafb  /system/lib/libart.so (art::JniAbort(\tchar const*, char const*)+582)\r\n\tF/art     (18165): art/runtime/check_jni.cc:65]   native: #05 pc 000b0235  /system/lib/libart.so (art::JniAbortF(\tchar const*, char const*, ...)+60)\r\n\tF/art     (18165): art/runtime/check_jni.cc:65]   native: #06 pc 000b268f  /system/lib/libart.so (\tart::ScopedCheck::Check(bool, char const*, ...) (.constprop.128)+882)\r\n\tF/art     (18165): art/runtime/check_jni.cc:65]   native: #07 pc 000b435d  /system/lib/libart.so (\tart::CheckJNI::ThrowNew(_JNIEnv*, _jclass*, char const*)+40)\r\n\tF/art     (18165): art/runtime/check_jni.cc:65]   native: #08 pc 0008a18f  /data/app/com.hive.chat.debug-2/lib/\tarm/librealm-jni.so (???)\r\n\tF/art     (18165): art/runtime/check_jni.cc:65]   native: #09 pc 00021fa7  /data/app/com.hive.chat.debug-2/lib/\tarm/librealm-jni.so (???)\r\n\tF/art     (18165): art/runtime/check_jni.cc:65]   native: #10 pc 0005c68f  /data/app/com.hive.chat.debug-2/lib/\tarm/librealm-jni.so (Java_io_realm_internal_UncheckedRow_nativeGetString+90)\r\n\tF/art     (18165): art/runtime/check_jni.cc:65]   native: #11 pc 0068145f  /data/dalvik-cache/arm/data@app@com.\thive.chat.debug-2@base.apk@classes.dex (Java_io_realm_internal_UncheckedRow_nativeGetString__JJ+110)\r\n\tF/art     (18165): art/runtime/check_jni.cc:65]   at io.realm.internal.UncheckedRow.nativeGetString(Native \tmethod)\r\n\tF/art     (18165): art/runtime/check_jni.cc:65]   at io.realm.internal.UncheckedRow.getString(UncheckedRow.\tjava:134)\r\n\tF/art     (18165): art/runtime/check_jni.cc:65]   at io.realm.ServerChatRealmProxy.getType(ServerChatRealmProxy.\tjava:74)\r\n\tF/art     (18165): art/runtime/check_jni.cc:65]   at com.playdayteam.data.mapper.ChatContainerDataMapper.\tgetAuthor(ChatContainerDataMapper.java:119)\r\n\tF/art     (18165): art/runtime/check_jni.cc:65]   at com.playdayteam.data.mapper.ChatContainerDataMapper.\ttransform(ChatContainerDataMapper.java:79)\r\n\tF/art     (18165): art/runtime/check_jni.cc:65]   at com.playdayteam.data.mapper.ChatContainerDataMapper.\ttransform(ChatContainerDataMapper.java:30)\r\n\tF/art     (18165): art/runtime/check_jni.cc:65]   at com.playdayteam.data.mapper.BaseDataMapper.lambda$null$2(\tBaseDataMapper.java:42)\r\n\tF/art     (18165): art/runtime/check_jni.cc:65]   at com.playdayteam.data.mapper.BaseDataMapper.access$lambda$3(\tBaseDataMapper.java:-1)\r\n\tF/art     (18165): art/runtime/check_jni.cc:65]   at com.playdayteam.data.mapper.BaseDataMapper$$Lambda$4.call(\tunavailable:-1)\r\n\tF/art     (18165): art/runtime/check_jni.cc:65]   at rx.internal.operators.OperatorMap$1.onNext(OperatorMap.\tjava:55)\r\n\tF/art     (18165): art/runtime/check_jni.cc:65]   at rx.internal.operators.OperatorDoOnEach$1.onNext(\tOperatorDoOnEach.java:84)\r\n\tF/art     (18165): art/runtime/check_jni.cc:65]   at rx.internal.operators.OperatorMerge$MergeSubscriber.\temitScalar(OperatorMerge.java:363)\r\n\tF/art     (18165): art/runtime/check_jni.cc:65]   at rx.internal.operators.OperatorMerge$MergeSubscriber.tryEmit(\tOperatorMerge.java:325)\r\n\tF/art     (18165): art/runtime/check_jni.cc:65]   at rx.internal.operators.OperatorMerge$InnerSubscriber.onNext(\tOperatorMerge.java:800)\r\n\tF/art     (18165): art/runtime/check_jni.cc:65]   at rx.internal.operators.\tOnSubscribeFromIterable$IterableProducer.request(OnSubscribeFromIterable.java:106)\r\n\tF/art     (18165): art/runtime/check_jni.cc:65]   at rx.Subscriber.setProducer(Subscriber.java:211)\r\n\tF/art     (18165): art/runtime/check_jni.cc:65]   at rx.internal.operators.OnSubscribeFromIterable.call(\tOnSubscribeFromIterable.java:50)\r\n\tF/art     (18165): art/runtime/check_jni.cc:65]   at rx.internal.operators.OnSubscribeFromIterable.call(\tOnSubscribeFromIterable.java:33)\r\n\tF/art     (18165): art/runtime/check_jni.cc:65]   at rx.Observable.unsafeSubscribe(Observable.java:7713)\r\n\tF/art     (18165): art/runtime/check_jni.cc:65]   at rx.internal.operators.OperatorMerge$MergeSubscriber.onNext(\tOperatorMerge.java:231)\r\n\tF/art     (18165): art/runtime/check_jni.cc:65]   at rx.internal.operators.OperatorMerge$MergeSubscriber.onNext(\tOperatorMerge.java:140)\r\n\tF/art     (18165): art/runtime/check_jni.cc:65]   at rx.internal.operators.OperatorMap$1.onNext(OperatorMap.\tjava:55)\r\n\tF/art     (18165): art/runtime/check_jni.cc:65]   at rx.internal.operators.OperatorDoOnEach$1.onNext(\tOperatorDoOnEach.java:84)\r\n\tF/art     (18165): art/runtime/check_jni.cc:65]   at rx.internal.operators.OperatorSubscribeOn$1$1$1.onNext(\tOperatorSubscribeOn.java:76)\r\n\tF/art     (18165): art/runtime/check_jni.cc:65]   at rx.internal.operators.OperatorObserveOn$ObserveOnSubscriber.\tpollQueue(OperatorObserveOn.java:208)\r\n\tF/art     (18165): art/runtime/check_jni.cc:65]   at rx.internal.operators.\tOperatorObserveOn$ObserveOnSubscriber$2.call(OperatorObserveOn.java:170)\r\n\tF/art     (18165): art/runtime/check_jni.cc:65]   at rx.internal.schedulers.ScheduledAction.run(ScheduledAction.\tjava:55)\r\n\tF/art     (18165): art/runtime/check_jni.cc:65]   at android.os.Handler.handleCallback(Handler.java:739)\r\n\tF/art     (18165): art/runtime/check_jni.cc:65]   at android.os.Handler.dispatchMessage(Handler.java:95)\r\n\tF/art     (18165): art/runtime/check_jni.cc:65]   at android.os.Looper.loop(Looper.java:211)\r\n\tF/art     (18165): art/runtime/check_jni.cc:65]   at android.os.HandlerThread.run(HandlerThread.java:61)\r\n\tF/art     (18165): art/runtime/check_jni.cc:65]\r\n\r\nAfter that crash app didn't start and fails with:\r\n\r\n\tI/DEBUG   (  343): *** *** *** *** *** *** *** *** *** *** *** *** *** *** *** ***\r\n\tI/DEBUG   (  343): UUID: e14309d8-5ebe-48f7-85a5-9478375a6220\r\n\tI/DEBUG   (  343): Build fingerprint: 'Sony/D5503/D5503:5.0.2/14.5.A.0.270/3750474323:user/release-keys'\r\n\tI/DEBUG   (  343): Revision: '0'\r\n\tI/DEBUG   (  343): ABI: 'arm'\r\n\tI/DEBUG   (  343): pid: 14815, tid: 14943, name: RxNewThreadSche  >>> com.hive.chat.debug <<<\r\n\tI/DEBUG   (  343): signal 11 (SIGSEGV), code 1 (SEGV_MAPERR), fault addr 0xc\r\n\tI/DEBUG   (  343):     r0 af658e00  r1 00000003  r2 af658900  r3 00000000\r\n\tI/DEBUG   (  343):     r4 af658e00  r5 9c4fc014  r6 0000000e  r7 00000003\r\n\tI/DEBUG   (  343):     r8 af658e00  r9 9ddb0db0  sl a0255e10  fp af66d480\r\n\tI/DEBUG   (  343):     ip a17d4e60  sp a0255d90  lr a17560e1  pc a17820be  cpsr 40070030\r\n\tI/DEBUG   (  343):\r\n\tI/DEBUG   (  343): backtrace:\r\n\tI/DEBUG   (  343):     #00 pc 0007a0be  /data/app/com.hive.chat.debug-2/lib/arm/librealm-jni.so\r\n\tI/DEBUG   (  343):     #01 pc 0004e0dd  /data/app/com.hive.chat.debug-2/lib/arm/librealm-jni.so\r\n\tI/DEBUG   (  343):     #02 pc 0007a017  /data/app/com.hive.chat.debug-2/lib/arm/librealm-jni.so\r\n\tI/DEBUG   (  343):     #03 pc 0004b723  /data/app/com.hive.chat.debug-2/lib/arm/librealm-jni.so\r\n\tI/DEBUG   (  343):     #04 pc 00079f49  /data/app/com.hive.chat.debug-2/lib/arm/librealm-jni.so\r\n\tI/DEBUG   (  343):     #05 pc 0004b723  /data/app/com.hive.chat.debug-2/lib/arm/librealm-jni.so\r\n\tI/DEBUG   (  343):     #06 pc 00079f0b  /data/app/com.hive.chat.debug-2/lib/arm/librealm-jni.so\r\n\tI/DEBUG   (  343):     #07 pc 0004b723  /data/app/com.hive.chat.debug-2/lib/arm/librealm-jni.so\r\n\tI/DEBUG   (  343):     #08 pc 00079f0b  /data/app/com.hive.chat.debug-2/lib/arm/librealm-jni.so\r\n\tI/DEBUG   (  343):     #09 pc 0004b723  /data/app/com.hive.chat.debug-2/lib/arm/librealm-jni.so\r\n\tI/DEBUG   (  343):     #10 pc 00079f0b  /data/app/com.hive.chat.debug-2/lib/arm/librealm-jni.so\r\n\tI/DEBUG   (  343):     #11 pc 0004b723  /data/app/com.hive.chat.debug-2/lib/arm/librealm-jni.so\r\n\tI/DEBUG   (  343):     #12 pc 00079f49  /data/app/com.hive.chat.debug-2/lib/arm/librealm-jni.so\r\n\tI/DEBUG   (  343):     #13 pc 0004b723  /data/app/com.hive.chat.debug-2/lib/arm/librealm-jni.so\r\n\tI/DEBUG   (  343):     #14 pc 000597b5  /data/app/com.hive.chat.debug-2/lib/arm/librealm-jni.so (\tJava_io_realm_internal_Group_nativeGetTableNativePtr+252)\r\n\tI/DEBUG   (  343):     #15 pc 006815c9  /data/dalvik-cache/arm/data@app@com.hive.chat.debug-2@base.apk@classes.dex"},"comment":{"url":"https://api.github.com/repos/realm/realm-java/issues/comments/141990615","html_url":"https://github.com/realm/realm-java/issues/1442#issuecomment-141990615","issue_url":"https://api.github.com/repos/realm/realm-java/issues/1442","id":141990615,"user":{"login":"pavel-mukhanov","id":5321730,"avatar_url":"https://avatars.githubusercontent.com/u/5321730?v=3","gravatar_id":"","url":"https://api.github.com/users/pavel-mukhanov","html_url":"https://github.com/pavel-mukhanov","followers_url":"https://api.github.com/users/pavel-mukhanov/followers","following_url":"https://api.github.com/users/pavel-mukhanov/following{/other_user}","gists_url":"https://api.github.com/users/pavel-mukhanov/gists{/gist_id}","starred_url":"https://api.github.com/users/pavel-mukhanov/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/pavel-mukhanov/subscriptions","organizations_url":"https://api.github.com/users/pavel-mukhanov/orgs","repos_url":"https://api.github.com/users/pavel-mukhanov/repos","events_url":"https://api.github.com/users/pavel-mukhanov/events{/privacy}","received_events_url":"https://api.github.com/users/pavel-mukhanov/received_events","type":"User","site_admin":false},"created_at":"2015-09-21T14:02:18Z","updated_at":"2015-09-21T14:02:18Z","body":"@kneth This is possible, we can create file under 0.80.0 and later update Realm version.\r\nBut i don't remember for sure."}}