{"action":"created","issue":{"url":"https://api.github.com/repos/realm/realm-java/issues/1403","labels_url":"https://api.github.com/repos/realm/realm-java/issues/1403/labels{/name}","comments_url":"https://api.github.com/repos/realm/realm-java/issues/1403/comments","events_url":"https://api.github.com/repos/realm/realm-java/issues/1403/events","html_url":"https://github.com/realm/realm-java/issues/1403","id":101908104,"number":1403,"title":"Memory violation on Samsung Galaxy S6 with encrypted Realm 0.82.1","user":{"login":"benjaminburzan","id":1159333,"avatar_url":"https://avatars.githubusercontent.com/u/1159333?v=3","gravatar_id":"","url":"https://api.github.com/users/benjaminburzan","html_url":"https://github.com/benjaminburzan","followers_url":"https://api.github.com/users/benjaminburzan/followers","following_url":"https://api.github.com/users/benjaminburzan/following{/other_user}","gists_url":"https://api.github.com/users/benjaminburzan/gists{/gist_id}","starred_url":"https://api.github.com/users/benjaminburzan/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/benjaminburzan/subscriptions","organizations_url":"https://api.github.com/users/benjaminburzan/orgs","repos_url":"https://api.github.com/users/benjaminburzan/repos","events_url":"https://api.github.com/users/benjaminburzan/events{/privacy}","received_events_url":"https://api.github.com/users/benjaminburzan/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":6,"created_at":"2015-08-19T14:32:22Z","updated_at":"2015-08-20T15:18:32Z","closed_at":null,"body":"\r\n\r\nI have an issue which could be related to #1037 and #1357.\r\n\r\nEach time I write data in a `encrypted Realm` using `realm.commitTransaction();` on a `Samsung Galaxy S6 (Android 5.1.1)` I get the following error:\r\n```\r\n08-19 15:42:40.651    4018-4018/? E/audit﹕ type=1701 msg=audit(1439991760.651:232): auid=4294967295 uid=10208 gid=10208 ses=4294967295 subj=u:r:untrusted_app:s0 pid=8542 comm=\"roid.<app_name>\" reason=\"memory violation\" sig=11\r\n```   \r\n\r\nI traced down the crash to `nativeCommitAndContinueAsRead(nativePtr);` in class `SharedGroup`. On execution of this method the error occurs and our app crashes.\r\n\r\nWe are using `0.82.1` and getting the same error on `0.83.0-SNAPSHOT` as well. \r\n\r\nThe problem is, I was trying to reproduce this error in a Hello World project, but I could not. Writing and reading data works fine. It just does not function in context with our app. I cannot even find a big difference to the Hello World project though. The error happens in the very beginning where things are not that complex. \r\n\r\nDo you have any suggestions on how this `memory violation` error might be reproduced? I have an S6 here to test anything that is needed to sort out this issue.\r\n\r\nYour help is much appreciated\r\nThanks\r\nBen\r\n\r\nHello World project that does some things randomly to try to crash the app:\r\n\r\n```\r\npublic class ExampleActivity extends AppCompatActivity {\r\n\r\n    @Override\r\n    protected void onCreate(Bundle savedInstanceState) {\r\n        super.onCreate(savedInstanceState);\r\n        setContentView(R.layout.activity_main);\r\n\r\n        Realm newRealm = Realm.getInstance(this, \"aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa\".getBytes());\r\n\r\n        TestObject TestObject2 = newRealm.where(TestObject.class).findFirst();\r\n\r\n        TestObject testObject = new TestObject();\r\n        testObject.setId(23);\r\n        testObject.setName(\"Example\");\r\n\r\n        newRealm.beginTransaction();\r\n        newRealm.copyToRealm(testObject);\r\n        newRealm.commitTransaction();\r\n        newRealm.refresh();\r\n        \r\n        TestObject testObject2 = newRealm.where(TestObject.class).findFirst();\r\n        newRealm.beginTransaction();\r\n        if (testObject2 != null) {\r\n            testObject2.setName(\"yo yo\");\r\n            testObject2.setId(42);\r\n        }\r\n        newRealm.commitTransaction();\r\n    }\r\n}    \r\n```\r\n"},"comment":{"url":"https://api.github.com/repos/realm/realm-java/issues/comments/133046201","html_url":"https://github.com/realm/realm-java/issues/1403#issuecomment-133046201","issue_url":"https://api.github.com/repos/realm/realm-java/issues/1403","id":133046201,"user":{"login":"benjaminburzan","id":1159333,"avatar_url":"https://avatars.githubusercontent.com/u/1159333?v=3","gravatar_id":"","url":"https://api.github.com/users/benjaminburzan","html_url":"https://github.com/benjaminburzan","followers_url":"https://api.github.com/users/benjaminburzan/followers","following_url":"https://api.github.com/users/benjaminburzan/following{/other_user}","gists_url":"https://api.github.com/users/benjaminburzan/gists{/gist_id}","starred_url":"https://api.github.com/users/benjaminburzan/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/benjaminburzan/subscriptions","organizations_url":"https://api.github.com/users/benjaminburzan/orgs","repos_url":"https://api.github.com/users/benjaminburzan/repos","events_url":"https://api.github.com/users/benjaminburzan/events{/privacy}","received_events_url":"https://api.github.com/users/benjaminburzan/received_events","type":"User","site_admin":false},"created_at":"2015-08-20T15:18:32Z","updated_at":"2015-08-20T15:18:32Z","body":"Alright, I slimmed down our project and will send it to you @cmelchior . Thank you for you help!"}}