{"action":"created","issue":{"url":"https://api.github.com/repos/realm/realm-java/issues/1863","labels_url":"https://api.github.com/repos/realm/realm-java/issues/1863/labels{/name}","comments_url":"https://api.github.com/repos/realm/realm-java/issues/1863/comments","events_url":"https://api.github.com/repos/realm/realm-java/issues/1863/events","html_url":"https://github.com/realm/realm-java/issues/1863","id":119607542,"number":1863,"title":"Fatal Exception: java.lang.UnsatisfiedLinkError","user":{"login":"lawloretienne","id":311187,"avatar_url":"https://avatars.githubusercontent.com/u/311187?v=3","gravatar_id":"","url":"https://api.github.com/users/lawloretienne","html_url":"https://github.com/lawloretienne","followers_url":"https://api.github.com/users/lawloretienne/followers","following_url":"https://api.github.com/users/lawloretienne/following{/other_user}","gists_url":"https://api.github.com/users/lawloretienne/gists{/gist_id}","starred_url":"https://api.github.com/users/lawloretienne/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/lawloretienne/subscriptions","organizations_url":"https://api.github.com/users/lawloretienne/orgs","repos_url":"https://api.github.com/users/lawloretienne/repos","events_url":"https://api.github.com/users/lawloretienne/events{/privacy}","received_events_url":"https://api.github.com/users/lawloretienne/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/realm/realm-java/labels/Help","name":"Help","color":"cc317c"}],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":4,"created_at":"2015-11-30T23:40:57Z","updated_at":"2015-12-02T09:39:45Z","closed_at":null,"body":"The following crash is happening on \r\nAndroid 4.2.2\r\nAndroid 4.4.2\r\nAndroid 4.4.4\r\n\r\n    Fatal Exception: java.lang.UnsatisfiedLinkError: dlopen failed: empty/missing DT_HASH in \"librealm-jni.so\" (built with --hash-style=gnu?)\r\n           at java.lang.Runtime.loadLibrary(Runtime.java:365)\r\n           at java.lang.System.loadLibrary(System.java:526)\r\n           at io.realm.internal.RealmCore.loadLibrary(RealmCore.java:117)\r\n           at io.realm.internal.SharedGroup.<clinit>(SharedGroup.java:42)\r\n           at io.realm.internal.SharedGroupManager.<init>(SharedGroupManager.java:44)\r\n           at io.realm.BaseRealm.<init>(BaseRealm.java:90)\r\n           at io.realm.Realm.<init>(Realm.java:153)\r\n           at io.realm.Realm.createAndValidate(Realm.java:280)\r\n           at io.realm.Realm.create(Realm.java:244)\r\n           at io.realm.Realm.getInstance(Realm.java:217)\r\n           at io.realm.Realm.getInstance(Realm.java:182)"},"comment":{"url":"https://api.github.com/repos/realm/realm-java/issues/comments/161238248","html_url":"https://github.com/realm/realm-java/issues/1863#issuecomment-161238248","issue_url":"https://api.github.com/repos/realm/realm-java/issues/1863","id":161238248,"user":{"login":"kneth","id":1225363,"avatar_url":"https://avatars.githubusercontent.com/u/1225363?v=3","gravatar_id":"","url":"https://api.github.com/users/kneth","html_url":"https://github.com/kneth","followers_url":"https://api.github.com/users/kneth/followers","following_url":"https://api.github.com/users/kneth/following{/other_user}","gists_url":"https://api.github.com/users/kneth/gists{/gist_id}","starred_url":"https://api.github.com/users/kneth/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/kneth/subscriptions","organizations_url":"https://api.github.com/users/kneth/orgs","repos_url":"https://api.github.com/users/kneth/repos","events_url":"https://api.github.com/users/kneth/events{/privacy}","received_events_url":"https://api.github.com/users/kneth/received_events","type":"User","site_admin":false},"created_at":"2015-12-02T09:39:45Z","updated_at":"2015-12-02T09:39:45Z","body":"I am sure that the default hash-style of NDK is sysv - Android's runtime linker does not support the gnu style. But to be certain, we could add the hash-style to our build files, and set it to both. Android AOSP did that recently (see https://android-review.googlesource.com/#/c/149951/)\r\n\r\n@lawloretienne Is it possible that the users who experience this crash, is using a custom ROM? By reading http://www.windowsxlive.net/compile-xperia-ztablet-z-cm10-2-rom-with-full-linaro-4-8-including-o3-strict-aliasing-optimizations/ I can see that custom ROMs might use another hash style than the default one.\r\n\r\n@beeender Don't you think we should set the hash style to \"both\"?\r\n"}}