{"action":"created","issue":{"url":"https://api.github.com/repos/realm/realm-java/issues/727","labels_url":"https://api.github.com/repos/realm/realm-java/issues/727/labels{/name}","comments_url":"https://api.github.com/repos/realm/realm-java/issues/727/comments","events_url":"https://api.github.com/repos/realm/realm-java/issues/727/events","html_url":"https://github.com/realm/realm-java/issues/727","id":53793637,"number":727,"title":"SIGSEGV when using Realm to store heavy data on a thread","user":{"login":"Dexteroo7","id":3148136,"avatar_url":"https://avatars.githubusercontent.com/u/3148136?v=3","gravatar_id":"","url":"https://api.github.com/users/Dexteroo7","html_url":"https://github.com/Dexteroo7","followers_url":"https://api.github.com/users/Dexteroo7/followers","following_url":"https://api.github.com/users/Dexteroo7/following{/other_user}","gists_url":"https://api.github.com/users/Dexteroo7/gists{/gist_id}","starred_url":"https://api.github.com/users/Dexteroo7/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Dexteroo7/subscriptions","organizations_url":"https://api.github.com/users/Dexteroo7/orgs","repos_url":"https://api.github.com/users/Dexteroo7/repos","events_url":"https://api.github.com/users/Dexteroo7/events{/privacy}","received_events_url":"https://api.github.com/users/Dexteroo7/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/realm/realm-java/labels/Investigate","name":"Investigate","color":"eb6420"}],"state":"closed","locked":false,"assignee":null,"milestone":null,"comments":6,"created_at":"2015-01-08T19:57:36Z","updated_at":"2015-01-09T17:45:12Z","closed_at":"2015-01-09T17:43:53Z","body":"Hello,\r\nI encountered : A/libc﹕ Fatal signal 11 (SIGSEGV) at 0x00000000 (code=1), this error when I tried to store a complex RealmObject on a thread. I then tried storing a very simple test object and it worked fine. \r\nActully this error does not occur always. Most of the times when I finally finish committing my transaction, the auto-refresh of my realListener does not get called. In fact after running this operation none of the real listeners work no matter what.\r\n\r\nMy runnable that stores results : \r\nprivate final Runnable findAndAddFriends = new Runnable() {\r\n.\r\n.\r\nfinal List<ReachFriends> received = getUsers(0); //getUsers runs an appengine endpoint to retreive //a list of users.\r\n.\r\n.\r\nRealm realm = Realm.getInstance(getActivity()); // my local realm for the thread\r\nfor (ReachFriends friend : received) {\r\n          realm.beginTransaction();\r\n          Log.i(\"Ayush\", \"Friends found !\");\r\n                    //Update friendDatabase\r\n                    //boiler-plate code to generate and store my RealmObject, no threads are spawned in //this\r\n                    MiscUtils.getInstance().transferFriends(friend, realm);\r\n                    realm.commitTransaction();\r\n                }\r\nrealm.close;\r\n\r\n} // end of runnable\r\n\r\nif instead of running the above operation I create and store a simple object everything runs fine and even my listeners are triggered.\r\n\r\nMy RealmObject that gives trouble has : \r\n5 strings\r\n5 longs\r\n4 realmLists of realmObjects, these realm objects have 3 strings and a realList of a realmObject which has 9 strings.\r\n\r\nI finally gave up and ran the realm part of the code on UI thread (onPostExecute) and everything worked fine. This is weird."},"comment":{"url":"https://api.github.com/repos/realm/realm-java/issues/comments/69370101","html_url":"https://github.com/realm/realm-java/issues/727#issuecomment-69370101","issue_url":"https://api.github.com/repos/realm/realm-java/issues/727","id":69370101,"user":{"login":"Dexteroo7","id":3148136,"avatar_url":"https://avatars.githubusercontent.com/u/3148136?v=3","gravatar_id":"","url":"https://api.github.com/users/Dexteroo7","html_url":"https://github.com/Dexteroo7","followers_url":"https://api.github.com/users/Dexteroo7/followers","following_url":"https://api.github.com/users/Dexteroo7/following{/other_user}","gists_url":"https://api.github.com/users/Dexteroo7/gists{/gist_id}","starred_url":"https://api.github.com/users/Dexteroo7/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Dexteroo7/subscriptions","organizations_url":"https://api.github.com/users/Dexteroo7/orgs","repos_url":"https://api.github.com/users/Dexteroo7/repos","events_url":"https://api.github.com/users/Dexteroo7/events{/privacy}","received_events_url":"https://api.github.com/users/Dexteroo7/received_events","type":"User","site_admin":false},"created_at":"2015-01-09T17:45:12Z","updated_at":"2015-01-09T17:45:12Z","body":"Sorry for the trouble. I made a new application with just the basic functionality of storing my data and displaying it in a list. It works perfectly fine. Everything. I must have messed up the integration in my main app. Closing the issue."}}