{"action":"created","issue":{"url":"https://api.github.com/repos/realm/realm-java/issues/2459","repository_url":"https://api.github.com/repos/realm/realm-java","labels_url":"https://api.github.com/repos/realm/realm-java/issues/2459/labels{/name}","comments_url":"https://api.github.com/repos/realm/realm-java/issues/2459/comments","events_url":"https://api.github.com/repos/realm/realm-java/issues/2459/events","html_url":"https://github.com/realm/realm-java/issues/2459","id":140848864,"number":2459,"title":"RealmError: Unrecoverable error. Incompatible lock file","user":{"login":"hohnamkung","id":1873136,"avatar_url":"https://avatars.githubusercontent.com/u/1873136?v=3","gravatar_id":"","url":"https://api.github.com/users/hohnamkung","html_url":"https://github.com/hohnamkung","followers_url":"https://api.github.com/users/hohnamkung/followers","following_url":"https://api.github.com/users/hohnamkung/following{/other_user}","gists_url":"https://api.github.com/users/hohnamkung/gists{/gist_id}","starred_url":"https://api.github.com/users/hohnamkung/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/hohnamkung/subscriptions","organizations_url":"https://api.github.com/users/hohnamkung/orgs","repos_url":"https://api.github.com/users/hohnamkung/repos","events_url":"https://api.github.com/users/hohnamkung/events{/privacy}","received_events_url":"https://api.github.com/users/hohnamkung/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/realm/realm-java/labels/T:Help","name":"T:Help","color":"cc317c"}],"state":"open","locked":false,"assignee":{"login":"beeender","id":449296,"avatar_url":"https://avatars.githubusercontent.com/u/449296?v=3","gravatar_id":"","url":"https://api.github.com/users/beeender","html_url":"https://github.com/beeender","followers_url":"https://api.github.com/users/beeender/followers","following_url":"https://api.github.com/users/beeender/following{/other_user}","gists_url":"https://api.github.com/users/beeender/gists{/gist_id}","starred_url":"https://api.github.com/users/beeender/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/beeender/subscriptions","organizations_url":"https://api.github.com/users/beeender/orgs","repos_url":"https://api.github.com/users/beeender/repos","events_url":"https://api.github.com/users/beeender/events{/privacy}","received_events_url":"https://api.github.com/users/beeender/received_events","type":"User","site_admin":false},"milestone":null,"comments":7,"created_at":"2016-03-15T02:01:14Z","updated_at":"2016-03-16T02:42:17Z","closed_at":null,"body":"#### Goal\r\n\r\nTo report specific error after upgrading v0.88.0\r\n\r\n#### Expected Results\r\n\r\nCrash is not occurred.\r\n\r\n#### Actual Results\r\n\r\n    Fatal Exception: io.realm.exceptions.RealmError: Unrecoverable error. Incompatible lock file in io_realm_internal_SharedGroup.cpp line 113\r\n       at io.realm.internal.SharedGroup.createNativeWithImplicitTransactions(SharedGroup.java)\r\n       at io.realm.internal.SharedGroup.(SharedGroup.java:63)\r\n       at io.realm.internal.SharedGroupManager.(SharedGroupManager.java:48)\r\n       at io.realm.BaseRealm.(BaseRealm.java:76)\r\n       at io.realm.Realm.(Realm.java:138)\r\n       at io.realm.Realm.createAndValidate(Realm.java:268)\r\n       at io.realm.Realm.createInstance(Realm.java:248)\r\n       at io.realm.RealmCache.createRealmOrGetFromCache(RealmCache.java:114)\r\n       at io.realm.Realm.getInstance(Realm.java:213)\r\n       at kr.co.vcnc.android.couple.feature.MainTabIndicator.updateHomeBadge(MainTabIndicator.java:138)\r\n       at kr.co.vcnc.android.couple.feature.MainTabIndicator.onAttachedToWindow(MainTabIndicator.java:83)\r\n       at android.view.View.dispatchAttachedToWindow(View.java:12626)\r\n       at android.view.ViewGroup.dispatchAttachedToWindow(ViewGroup.java:2473)\r\n       at android.view.ViewGroup.dispatchAttachedToWindow(ViewGroup.java:2480)\r\n       at android.view.ViewGroup.dispatchAttachedToWindow(ViewGroup.java:2480)\r\n       at android.view.ViewGroup.dispatchAttachedToWindow(ViewGroup.java:2480)\r\n       at android.view.ViewGroup.dispatchAttachedToWindow(ViewGroup.java:2480)\r\n       at android.view.ViewGroup.dispatchAttachedToWindow(ViewGroup.java:2480)\r\n       at android.view.ViewGroup.dispatchAttachedToWindow(ViewGroup.java:2480)\r\n       at android.view.ViewGroup.dispatchAttachedToWindow(ViewGroup.java:2480)\r\n       at android.view.ViewGroup.dispatchAttachedToWindow(ViewGroup.java:2480)\r\n       at android.view.ViewGroup.dispatchAttachedToWindow(ViewGroup.java:2480)\r\n       at android.view.ViewRootImpl.performTraversals(ViewRootImpl.java:1264)\r\n       at android.view.ViewRootImpl.doTraversal(ViewRootImpl.java:1047)\r\n       at android.view.ViewRootImpl$TraversalRunnable.run(ViewRootImpl.java:5896)\r\n       at android.view.Choreographer$CallbackRecord.run(Choreographer.java:761)\r\n       at android.view.Choreographer.doCallbacks(Choreographer.java:574)\r\n       at android.view.Choreographer.doFrame(Choreographer.java:544)\r\n       at android.view.Choreographer$FrameDisplayEventReceiver.run(Choreographer.java:747)\r\n       at android.os.Handler.handleCallback(Handler.java:733)\r\n       at android.os.Handler.dispatchMessage(Handler.java:95)\r\n       at android.os.Looper.loop(Looper.java:136)\r\n       at android.app.ActivityThread.main(ActivityThread.java:5120)\r\n       at java.lang.reflect.Method.invokeNative(Method.java)\r\n       at java.lang.reflect.Method.invoke(Method.java:515)\r\n       at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:792)\r\n       at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:608)\r\n       at dalvik.system.NativeStart.main(NativeStart.java)\r\n\r\n#### Steps & Code to Reproduce\r\n\r\nI got this stack trace from Fabric. I've tested several devices that we have, i can't reproduce it.\r\nInstead, i attached some code that error is happening.\r\n\r\nFYI, at this update (to v0.88.0), we upgraded Realm's schema version. \r\n(We're using `deleteRealmIfMigrationNeeded` option)\r\n\r\n#### Code Sample\r\n\r\n    @Override\r\n    protected void onAttachedToWindow() {\r\n        homeBadgeSubscription = Realm.getInstance(CoupleApplication.getRealmHome())\r\n                    .where(RHomeCardViewView.class)\r\n                    .equalTo(\"closed\", false)\r\n                    .equalTo(\"newIndicator\", true)\r\n                    .findAllAsync()\r\n                    .asObservable()\r\n                    .filter(RealmResults::isLoaded)\r\n                    .observeOn(AndroidSchedulers.mainThread())\r\n                    .subscribe(BasicSubscriber.    <RealmResults<RHomeCardViewView>>create().next(homeCardViewViews -> {\r\n                        int size = homeCardViewViews.size();\r\n                        updateTextView(size);\r\n                    }));\r\n\r\n    @Override\r\n    protected void onDetachedFromWindow() {\r\n        if (homeBadgeSubscription != null) {\r\n            homeBadgeSubscription.unsubscribe();\r\n        }\r\n    }\r\n    \r\n\r\n#### Version of Realm and tooling\r\nRealm version(s): v0.88.0\r\n\r\nWhich Android version and device: \r\nWhen i first saw this crash, i think this is occurred because users are using BlackBerry. \r\nBut now Android users have a crash.\r\n\r\n![screen shot 2016-03-15 at 10 55 28 am](https://cloud.githubusercontent.com/assets/1873136/13765402/811f1c0c-ea9c-11e5-9925-451e7411d39a.png)\r\n![screen shot 2016-03-15 at 10 55 40 am](https://cloud.githubusercontent.com/assets/1873136/13765405/839b1a62-ea9c-11e5-81c2-34cc3181686b.png)\r\n![screen shot 2016-03-15 at 10 55 47 am](https://cloud.githubusercontent.com/assets/1873136/13765407/85bebc68-ea9c-11e5-99a3-104287c4a8a1.png)\r\n\r\n\r\nThe peak point is yesterday. (Realm v0.88.0)\r\n![screen shot 2016-03-15 at 10 59 39 am](https://cloud.githubusercontent.com/assets/1873136/13765472/24e53bf0-ea9d-11e5-898e-daa274ed70e0.png)"},"comment":{"url":"https://api.github.com/repos/realm/realm-java/issues/comments/197121806","html_url":"https://github.com/realm/realm-java/issues/2459#issuecomment-197121806","issue_url":"https://api.github.com/repos/realm/realm-java/issues/2459","id":197121806,"user":{"login":"beeender","id":449296,"avatar_url":"https://avatars.githubusercontent.com/u/449296?v=3","gravatar_id":"","url":"https://api.github.com/users/beeender","html_url":"https://github.com/beeender","followers_url":"https://api.github.com/users/beeender/followers","following_url":"https://api.github.com/users/beeender/following{/other_user}","gists_url":"https://api.github.com/users/beeender/gists{/gist_id}","starred_url":"https://api.github.com/users/beeender/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/beeender/subscriptions","organizations_url":"https://api.github.com/users/beeender/orgs","repos_url":"https://api.github.com/users/beeender/repos","events_url":"https://api.github.com/users/beeender/events{/privacy}","received_events_url":"https://api.github.com/users/beeender/received_events","type":"User","site_admin":false},"created_at":"2016-03-16T02:42:17Z","updated_at":"2016-03-16T02:42:17Z","body":"@hohnamkung We just released 0.88.2, it has a potential fix of this problem (which i am not sure could solve this, but worth a try), and some more information about the exception is added to help us debug if it still happens. And it also has a fix for the bad version problem you have.\r\n\r\nWould you please give it a try? And let us know if this problem is still there. thanks a lot, and sorry for those troubles."}}