{"action":"created","issue":{"url":"https://api.github.com/repos/mupen64plus-ae/mupen64plus-ae/issues/540","labels_url":"https://api.github.com/repos/mupen64plus-ae/mupen64plus-ae/issues/540/labels{/name}","comments_url":"https://api.github.com/repos/mupen64plus-ae/mupen64plus-ae/issues/540/comments","events_url":"https://api.github.com/repos/mupen64plus-ae/mupen64plus-ae/issues/540/events","html_url":"https://github.com/mupen64plus-ae/mupen64plus-ae/issues/540","id":126096517,"number":540,"title":"\"Failed to attach core library\" on Marshmallow","user":{"login":"nicklauslittle","id":16421431,"avatar_url":"https://avatars.githubusercontent.com/u/16421431?v=3","gravatar_id":"","url":"https://api.github.com/users/nicklauslittle","html_url":"https://github.com/nicklauslittle","followers_url":"https://api.github.com/users/nicklauslittle/followers","following_url":"https://api.github.com/users/nicklauslittle/following{/other_user}","gists_url":"https://api.github.com/users/nicklauslittle/gists{/gist_id}","starred_url":"https://api.github.com/users/nicklauslittle/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/nicklauslittle/subscriptions","organizations_url":"https://api.github.com/users/nicklauslittle/orgs","repos_url":"https://api.github.com/users/nicklauslittle/repos","events_url":"https://api.github.com/users/nicklauslittle/events{/privacy}","received_events_url":"https://api.github.com/users/nicklauslittle/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":9,"created_at":"2016-01-12T04:42:10Z","updated_at":"2016-01-16T22:16:17Z","closed_at":null,"body":"I get a \"Failed to attach core library\" on my Nexus Player running Marshmallow on all builds after 12/09. I think this is just a generic marshmallow issue, but I could be wrong.\r\n\r\nI did a little bit of digging, and I think I know what the problem is. (No guarantees.) It looks like the mupen64plus-ui-console library is failing to load the mupen64plus core library. I did a quick search and found that on apps that target pre-Marshmallow versions attempting to load a library with text relocations would issue a warning but still succeed. When targeting Marshmallow, this fails with an error. To attempt to verify this I built two apks based off commit 33036d5f. The first targeted version 23 (AndroidManifest.xml:18) of the SDK and issued the error above. The second targeted version 22 and it loaded the core and worked just fine.\r\n\r\nI don't have a clear view of how to fix this. My guess would be that it would require modifying some of the core source or some compile options, or both. I do plan on looking into it at some point, but I figured I would post it here in case someone knows what needs to be done."},"comment":{"url":"https://api.github.com/repos/mupen64plus-ae/mupen64plus-ae/issues/comments/172263309","html_url":"https://github.com/mupen64plus-ae/mupen64plus-ae/issues/540#issuecomment-172263309","issue_url":"https://api.github.com/repos/mupen64plus-ae/mupen64plus-ae/issues/540","id":172263309,"user":{"login":"nicklauslittle","id":16421431,"avatar_url":"https://avatars.githubusercontent.com/u/16421431?v=3","gravatar_id":"","url":"https://api.github.com/users/nicklauslittle","html_url":"https://github.com/nicklauslittle","followers_url":"https://api.github.com/users/nicklauslittle/followers","following_url":"https://api.github.com/users/nicklauslittle/following{/other_user}","gists_url":"https://api.github.com/users/nicklauslittle/gists{/gist_id}","starred_url":"https://api.github.com/users/nicklauslittle/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/nicklauslittle/subscriptions","organizations_url":"https://api.github.com/users/nicklauslittle/orgs","repos_url":"https://api.github.com/users/nicklauslittle/repos","events_url":"https://api.github.com/users/nicklauslittle/events{/privacy}","received_events_url":"https://api.github.com/users/nicklauslittle/received_events","type":"User","site_admin":false},"created_at":"2016-01-16T22:16:17Z","updated_at":"2016-01-16T22:16:17Z","body":"Yeah, based on what I read, I think the SE Linux issue might have something to do with it. All I had to do to build it was change the target API from 23 to 22. All the other changes should be fine to stay in until somebody can figure this one out.\r\n\r\nI think some of my initial analysis regarding the sections might be incorrect. (But I still think the rest of it is accurate.) I'm thinking about trying to follow the guide here: https://wiki.gentoo.org/wiki/Hardened/Textrels_Guide (This is what the Android Development Team recommends on http://developer.android.com/about/versions/marshmallow/android-6.0-changes.html). Maybe I can isolate the exact assembly code (assuming the problem is with the assembly code) causing the issue."}}