{"action":"created","issue":{"url":"https://api.github.com/repos/FolioReader/FolioReaderKit/issues/73","repository_url":"https://api.github.com/repos/FolioReader/FolioReaderKit","labels_url":"https://api.github.com/repos/FolioReader/FolioReaderKit/issues/73/labels{/name}","comments_url":"https://api.github.com/repos/FolioReader/FolioReaderKit/issues/73/comments","events_url":"https://api.github.com/repos/FolioReader/FolioReaderKit/issues/73/events","html_url":"https://github.com/FolioReader/FolioReaderKit/issues/73","id":158036718,"number":73,"title":"Table of Contents Uncaught Exception","user":{"login":"alexpopov","id":903856,"avatar_url":"https://avatars.githubusercontent.com/u/903856?v=3","gravatar_id":"","url":"https://api.github.com/users/alexpopov","html_url":"https://github.com/alexpopov","followers_url":"https://api.github.com/users/alexpopov/followers","following_url":"https://api.github.com/users/alexpopov/following{/other_user}","gists_url":"https://api.github.com/users/alexpopov/gists{/gist_id}","starred_url":"https://api.github.com/users/alexpopov/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/alexpopov/subscriptions","organizations_url":"https://api.github.com/users/alexpopov/orgs","repos_url":"https://api.github.com/users/alexpopov/repos","events_url":"https://api.github.com/users/alexpopov/events{/privacy}","received_events_url":"https://api.github.com/users/alexpopov/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":1,"created_at":"2016-06-02T00:36:46Z","updated_at":"2016-06-02T13:27:04Z","closed_at":null,"body":"In some EPUBs tapping the Table of Contents in the book itself throws a WebView exception:\r\n`WebKit discarded an uncaught exception in the webView:decidePolicyForNavigationAction:request:frame:decisionListener: delegate: <NSInvalidArgumentException> attempt to scroll to invalid index path: <NSIndexPath: 0xc000000000e00016> {length = 2, path = 0 - 7}`\r\nAfter which the app is permanently in a UI funk with animations where there shouldn't any, and really sluggish user interaction.\r\n\r\nI've got [a video](https://cloudup.com/chBRUAcOBc6) of the kind of UI weirdery that happens. \r\nAnd an EPUB that has this issue. \r\n[A Princess of Mars.epub.zip](https://github.com/FolioReader/FolioReaderKit/files/294598/A.Princess.of.Mars.epub.zip)\r\n\r\nIt's not a very common issue, but it's appalling how many EPUBs have some issues, presumably because they're not properly made. "},"comment":{"url":"https://api.github.com/repos/FolioReader/FolioReaderKit/issues/comments/223290733","html_url":"https://github.com/FolioReader/FolioReaderKit/issues/73#issuecomment-223290733","issue_url":"https://api.github.com/repos/FolioReader/FolioReaderKit/issues/73","id":223290733,"user":{"login":"hebertialmeida","id":103670,"avatar_url":"https://avatars.githubusercontent.com/u/103670?v=3","gravatar_id":"","url":"https://api.github.com/users/hebertialmeida","html_url":"https://github.com/hebertialmeida","followers_url":"https://api.github.com/users/hebertialmeida/followers","following_url":"https://api.github.com/users/hebertialmeida/following{/other_user}","gists_url":"https://api.github.com/users/hebertialmeida/gists{/gist_id}","starred_url":"https://api.github.com/users/hebertialmeida/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/hebertialmeida/subscriptions","organizations_url":"https://api.github.com/users/hebertialmeida/orgs","repos_url":"https://api.github.com/users/hebertialmeida/repos","events_url":"https://api.github.com/users/hebertialmeida/events{/privacy}","received_events_url":"https://api.github.com/users/hebertialmeida/received_events","type":"User","site_admin":false},"created_at":"2016-06-02T13:27:04Z","updated_at":"2016-06-02T13:27:04Z","body":"I have checked and this is not a reader problem, the main problem is the ePub standards. \r\n\r\nLike this crazy file names -> `@public@vhost@g@gutenberg@html@files@62@62-h@62-h-0.htm.html`\r\n\r\nAbout the UI it was really crazy bug 😄. What is causing this is that the can not find the right file to point and there is a UIView animation with competition block, so the index path do not exists and the animation never finish 😭. Now I am validating the indexPath before enter on animation block, if not valid print a error."}}
{"actor":{"display_login":"hebertialmeida"}}