{"action":"created","issue":{"url":"https://api.github.com/repos/patchthecode/JTAppleCalendar/issues/304","repository_url":"https://api.github.com/repos/patchthecode/JTAppleCalendar","labels_url":"https://api.github.com/repos/patchthecode/JTAppleCalendar/issues/304/labels{/name}","comments_url":"https://api.github.com/repos/patchthecode/JTAppleCalendar/issues/304/comments","events_url":"https://api.github.com/repos/patchthecode/JTAppleCalendar/issues/304/events","html_url":"https://github.com/patchthecode/JTAppleCalendar/issues/304","id":207789746,"number":304,"title":"Crash when switching numberOfRows to 1, then back to 6 and modifying the calendars height","user":{"login":"numen31337","id":5677845,"avatar_url":"https://avatars.githubusercontent.com/u/5677845?v=3","gravatar_id":"","url":"https://api.github.com/users/numen31337","html_url":"https://github.com/numen31337","followers_url":"https://api.github.com/users/numen31337/followers","following_url":"https://api.github.com/users/numen31337/following{/other_user}","gists_url":"https://api.github.com/users/numen31337/gists{/gist_id}","starred_url":"https://api.github.com/users/numen31337/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/numen31337/subscriptions","organizations_url":"https://api.github.com/users/numen31337/orgs","repos_url":"https://api.github.com/users/numen31337/repos","events_url":"https://api.github.com/users/numen31337/events{/privacy}","received_events_url":"https://api.github.com/users/numen31337/received_events","type":"User","site_admin":false},"labels":[{"id":408352799,"url":"https://api.github.com/repos/patchthecode/JTAppleCalendar/labels/Already%20Fixed%20on%20Master%20Branch","name":"Already Fixed on Master Branch","color":"0e8a16","default":false},{"id":342535258,"url":"https://api.github.com/repos/patchthecode/JTAppleCalendar/labels/bug","name":"bug","color":"fc2929","default":true}],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":17,"created_at":"2017-02-15T12:24:48Z","updated_at":"2017-02-16T06:40:56Z","closed_at":null,"body":"When I trying to switch calendar to the week mode and back by setting numberOfRows to 1 and then back to 6, simultaneously modifying the calendars height I have the crash:\r\n\r\n> Terminating app due to uncaught exception 'NSInternalInconsistencyException', reason: 'attempt to delete item 36 from section 0 which only contains 7 items before the update'\r\n\r\nI've attached the sample project where this crash can be reproduced by clicking Jan 31 for 3 times\r\n\r\n![Sample](https://s16.postimg.org/ijvk1yrzp/ezgif_com_fd3c1323f2.gif)\r\n\r\nSample project: https://www.dropbox.com/s/lle6kuf93n8ptbi/CrashTest.zip?dl=0"},"comment":{"url":"https://api.github.com/repos/patchthecode/JTAppleCalendar/issues/comments/280245204","html_url":"https://github.com/patchthecode/JTAppleCalendar/issues/304#issuecomment-280245204","issue_url":"https://api.github.com/repos/patchthecode/JTAppleCalendar/issues/304","id":280245204,"user":{"login":"patchthecode","id":2439146,"avatar_url":"https://avatars.githubusercontent.com/u/2439146?v=3","gravatar_id":"","url":"https://api.github.com/users/patchthecode","html_url":"https://github.com/patchthecode","followers_url":"https://api.github.com/users/patchthecode/followers","following_url":"https://api.github.com/users/patchthecode/following{/other_user}","gists_url":"https://api.github.com/users/patchthecode/gists{/gist_id}","starred_url":"https://api.github.com/users/patchthecode/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/patchthecode/subscriptions","organizations_url":"https://api.github.com/users/patchthecode/orgs","repos_url":"https://api.github.com/users/patchthecode/repos","events_url":"https://api.github.com/users/patchthecode/events{/privacy}","received_events_url":"https://api.github.com/users/patchthecode/received_events","type":"User","site_admin":false},"created_at":"2017-02-16T06:40:56Z","updated_at":"2017-02-16T06:40:56Z","body":"Hey, here is an update code.\r\n[CrashTest.zip](https://github.com/patchthecode/JTAppleCalendar/files/779268/CrashTest.zip)\r\n\r\nLet me know if it is crashing for you.\r\nI have updated the `reload()` logic and removed multithreading. "}}
{"actor":{"display_login":"patchthecode"}}