{"action":"created","issue":{"url":"https://api.github.com/repos/realm/realm-cocoa/issues/5966","repository_url":"https://api.github.com/repos/realm/realm-cocoa","labels_url":"https://api.github.com/repos/realm/realm-cocoa/issues/5966/labels{/name}","comments_url":"https://api.github.com/repos/realm/realm-cocoa/issues/5966/comments","events_url":"https://api.github.com/repos/realm/realm-cocoa/issues/5966/events","html_url":"https://github.com/realm/realm-cocoa/issues/5966","id":374883755,"node_id":"MDU6SXNzdWUzNzQ4ODM3NTU=","number":5966,"title":"The Realm cannot be initialized because the Realm file is too large. How to fix this Realm file?","user":{"login":"JJson","id":4606295,"node_id":"MDQ6VXNlcjQ2MDYyOTU=","avatar_url":"https://avatars0.githubusercontent.com/u/4606295?v=4","gravatar_id":"","url":"https://api.github.com/users/JJson","html_url":"https://github.com/JJson","followers_url":"https://api.github.com/users/JJson/followers","following_url":"https://api.github.com/users/JJson/following{/other_user}","gists_url":"https://api.github.com/users/JJson/gists{/gist_id}","starred_url":"https://api.github.com/users/JJson/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/JJson/subscriptions","organizations_url":"https://api.github.com/users/JJson/orgs","repos_url":"https://api.github.com/users/JJson/repos","events_url":"https://api.github.com/users/JJson/events{/privacy}","received_events_url":"https://api.github.com/users/JJson/received_events","type":"User","site_admin":false},"labels":[{"id":643772188,"node_id":"MDU6TGFiZWw2NDM3NzIxODg=","url":"https://api.github.com/repos/realm/realm-cocoa/labels/O:User","name":"O:User","color":"006b75","default":false},{"id":3303146,"node_id":"MDU6TGFiZWwzMzAzMTQ2","url":"https://api.github.com/repos/realm/realm-cocoa/labels/T:Help","name":"T:Help","color":"cc317c","default":false}],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":3,"created_at":"2018-10-29T07:06:10Z","updated_at":"2018-10-29T09:43:02Z","closed_at":null,"author_association":"NONE","body":"When Realm initializes, the following error is thrown:\r\n{NSLocalizedDescription=mmap() failed: Cannot allocate memory size: 1744830464 offset: 0, Error Code=9}\r\n\r\nwe have fixed the problem in my code, but how to fix a file that is too large. The file contains the user's non-renewable data, and we don't want the user's data to be deleted."},"comment":{"url":"https://api.github.com/repos/realm/realm-cocoa/issues/comments/433846403","html_url":"https://github.com/realm/realm-cocoa/issues/5966#issuecomment-433846403","issue_url":"https://api.github.com/repos/realm/realm-cocoa/issues/5966","id":433846403,"node_id":"MDEyOklzc3VlQ29tbWVudDQzMzg0NjQwMw==","user":{"login":"JJson","id":4606295,"node_id":"MDQ6VXNlcjQ2MDYyOTU=","avatar_url":"https://avatars0.githubusercontent.com/u/4606295?v=4","gravatar_id":"","url":"https://api.github.com/users/JJson","html_url":"https://github.com/JJson","followers_url":"https://api.github.com/users/JJson/followers","following_url":"https://api.github.com/users/JJson/following{/other_user}","gists_url":"https://api.github.com/users/JJson/gists{/gist_id}","starred_url":"https://api.github.com/users/JJson/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/JJson/subscriptions","organizations_url":"https://api.github.com/users/JJson/orgs","repos_url":"https://api.github.com/users/JJson/repos","events_url":"https://api.github.com/users/JJson/events{/privacy}","received_events_url":"https://api.github.com/users/JJson/received_events","type":"User","site_admin":false},"created_at":"2018-10-29T09:43:02Z","updated_at":"2018-10-29T09:43:02Z","author_association":"NONE","body":"> Unfortunately if the file is somehow too big to open there is nothing you can do in the app except doing what I outlined programmatically. You don't need to ask your user to do anything. You could send the database to a server that would then return the compressed database. Assuming you know why it was big (you say you fixed the problem) and know how to get it smaller.\r\n\r\nAll right.\r\nAlthough this situation has occurred, most of the time it is the reason for our Realm users. However, whether it is possible to add a remedy for Realm to this situation.\r\nAnyway, thank you for your answer."}}
{"actor":{"display_login":"JJson"}}