{"action":"created","issue":{"url":"https://api.github.com/repos/FolioReader/FolioReader-Android/issues/312","repository_url":"https://api.github.com/repos/FolioReader/FolioReader-Android","labels_url":"https://api.github.com/repos/FolioReader/FolioReader-Android/issues/312/labels{/name}","comments_url":"https://api.github.com/repos/FolioReader/FolioReader-Android/issues/312/comments","events_url":"https://api.github.com/repos/FolioReader/FolioReader-Android/issues/312/events","html_url":"https://github.com/FolioReader/FolioReader-Android/issues/312","id":390143594,"node_id":"MDU6SXNzdWUzOTAxNDM1OTQ=","number":312,"title":"App crashes when opening a book","user":{"login":"YadhuIleaf","id":45816541,"node_id":"MDQ6VXNlcjQ1ODE2NTQx","avatar_url":"https://avatars0.githubusercontent.com/u/45816541?v=4","gravatar_id":"","url":"https://api.github.com/users/YadhuIleaf","html_url":"https://github.com/YadhuIleaf","followers_url":"https://api.github.com/users/YadhuIleaf/followers","following_url":"https://api.github.com/users/YadhuIleaf/following{/other_user}","gists_url":"https://api.github.com/users/YadhuIleaf/gists{/gist_id}","starred_url":"https://api.github.com/users/YadhuIleaf/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/YadhuIleaf/subscriptions","organizations_url":"https://api.github.com/users/YadhuIleaf/orgs","repos_url":"https://api.github.com/users/YadhuIleaf/repos","events_url":"https://api.github.com/users/YadhuIleaf/events{/privacy}","received_events_url":"https://api.github.com/users/YadhuIleaf/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":4,"created_at":"2018-12-12T09:47:59Z","updated_at":"2018-12-13T04:51:12Z","closed_at":null,"author_association":"NONE","body":"Error details:\r\njava.util.zip.ZipException: Not a zip archive\r\n        at java.util.zip.ZipFile.readCentralDir(ZipFile.java:397)\r\n        at java.util.zip.ZipFile.<init>(ZipFile.java:175)\r\n        at java.util.zip.ZipFile.<init>(ZipFile.java:142)\r\n        at org.readium.r2.streamer.container.ContainerEpub.<init>(ContainerEpub.kt:48)\r\n        at org.readium.r2.streamer.parser.EpubParser.generateContainerFrom(EpubParser.kt:52)\r\n        at org.readium.r2.streamer.parser.EpubParser.parse(EpubParser.kt:73)\r\n        at com.folioreader.ui.folio.activity.FolioActivity.initBook(FolioActivity.java:458)\r\n        at com.folioreader.ui.folio.activity.FolioActivity.setupBook(FolioActivity.java:432)\r\n        at com.folioreader.ui.folio.activity.FolioActivity.onCreate(FolioActivity.java:283)\r\n        at android.app.Activity.performCreate(Activity.java:6358)\r\n        at android.app.Instrumentation.callActivityOnCreate(Instrumentation.java:1108)\r\n        at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:2438)\r\n        at android.app.ActivityThread.handleLaunchActivity(ActivityThread.java:2545)\r\n        at android.app.ActivityThread.access$1100(ActivityThread.java:151)\r\n        at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1396)\r\n        at android.os.Handler.dispatchMessage(Handler.java:102)\r\n        at android.os.Looper.loop(Looper.java:157)\r\n        at android.app.ActivityThread.main(ActivityThread.java:5602)\r\n        at java.lang.reflect.Method.invoke(Native Method)\r\n        at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:774)\r\n        at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:652)\r\n12-12 14:58:58.854 22578-22578/com.shulph.shulph E/FolioActivity: -> Failed to initialize book\r\n    java.lang.NullPointerException: Attempt to invoke virtual method 'org.readium.r2.shared.Publication org.readium.r2.streamer.parser.PubBox.getPublication()' on a null object reference\r\n        at com.folioreader.ui.folio.activity.FolioActivity.initBook(FolioActivity.java:469)\r\n        at com.folioreader.ui.folio.activity.FolioActivity.setupBook(FolioActivity.java:432)\r\n        at com.folioreader.ui.folio.activity.FolioActivity.onCreate(FolioActivity.java:283)\r\n        at android.app.Activity.performCreate(Activity.java:6358)\r\n        at android.app.Instrumentation.callActivityOnCreate(Instrumentation.java:1108)\r\n        at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:2438)\r\n        at android.app.ActivityThread.handleLaunchActivity(ActivityThread.java:2545)\r\n        at android.app.ActivityThread.access$1100(ActivityThread.java:151)\r\n        at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1396)\r\n        at android.os.Handler.dispatchMessage(Handler.java:102)\r\n        at android.os.Looper.loop(Looper.java:157)\r\n        at android.app.ActivityThread.main(ActivityThread.java:5602)\r\n        at java.lang.reflect.Method.invoke(Native Method)\r\n        at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:774)\r\n        at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:652)\r\n12-12 14:59:01.062 826-959/? E/XTCC-5.1.0.9: [PosMgr] handlePosition failed: 12\r\n12-12 14:59:02.239 22799-22915/? E/SntpClient: request time failed: java.net.SocketTimeoutException\r\n12-12 14:59:02.916 22578-22578/com.shulph.shulph E/CrashlyticsCore: Failed to execute task.\r\n    java.util.concurrent.TimeoutException\r\n        at java.util.concurrent.FutureTask.get(FutureTask.java:177)\r\n        at com.crashlytics.android.core.CrashlyticsBackgroundWorker.submitAndWait(CrashlyticsBackgroundWorker.java:41)\r\n        at com.crashlytics.android.core.CrashlyticsController.handleUncaughtException(CrashlyticsController.java:320)\r\n        at com.crashlytics.android.core.CrashlyticsController$6.onUncaughtException(CrashlyticsController.java:300)\r\n        at com.crashlytics.android.core.CrashlyticsUncaughtExceptionHandler.uncaughtException(CrashlyticsUncaughtExceptionHandler.java:42)\r\n        at java.lang.ThreadGroup.uncaughtException(ThreadGroup.java:693)\r\n        at java.lang.ThreadGroup.uncaughtException(ThreadGroup.java:690)\r\n12-12 14:59:02.917 22578-22578/com.shulph.shulph E/AndroidRuntime: FATAL EXCEPTION: main\r\n    Process: com.shulph.shulph, PID: 22578\r\n    java.lang.NullPointerException: Attempt to invoke interface method 'android.graphics.drawable.Drawable android.view.MenuItem.getIcon()' on a null object reference\r\n        at com.folioreader.ui.folio.activity.FolioActivity.onCreateOptionsMenu(FolioActivity.java:356)\r\n        at android.app.Activity.onCreatePanelMenu(Activity.java:2951)\r\n        at android.support.v4.app.FragmentActivity.onCreatePanelMenu(FragmentActivity.java:378)\r\n        at android.support.v7.view.WindowCallbackWrapper.onCreatePanelMenu(WindowCallbackWrapper.java:94)\r\n        at android.support.v7.app.AppCompatDelegateImpl$AppCompatWindowCallback.onCreatePanelMenu(AppCompatDelegateImpl.java:2549)\r\n        at android.support.v7.view.WindowCallbackWrapper.onCreatePanelMenu(WindowCallbackWrapper.java:94)\r\n        at android.support.v7.app.ToolbarActionBar.populateOptionsMenu(ToolbarActionBar.java:455)\r\n        at android.support.v7.app.ToolbarActionBar$1.run(ToolbarActionBar.java:56)\r\n        at android.os.Handler.handleCallback(Handler.java:742)\r\n        at android.os.Handler.dispatchMessage(Handler.java:95)\r\n        at android.os.Looper.loop(Looper.java:157)\r\n        at android.app.ActivityThread.main(ActivityThread.java:5602)\r\n        at java.lang.reflect.Method.invoke(Native Method)\r\n        at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:774)\r\n        at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:652)"},"comment":{"url":"https://api.github.com/repos/FolioReader/FolioReader-Android/issues/comments/446842052","html_url":"https://github.com/FolioReader/FolioReader-Android/issues/312#issuecomment-446842052","issue_url":"https://api.github.com/repos/FolioReader/FolioReader-Android/issues/312","id":446842052,"node_id":"MDEyOklzc3VlQ29tbWVudDQ0Njg0MjA1Mg==","user":{"login":"YadhuIleaf","id":45816541,"node_id":"MDQ6VXNlcjQ1ODE2NTQx","avatar_url":"https://avatars0.githubusercontent.com/u/45816541?v=4","gravatar_id":"","url":"https://api.github.com/users/YadhuIleaf","html_url":"https://github.com/YadhuIleaf","followers_url":"https://api.github.com/users/YadhuIleaf/followers","following_url":"https://api.github.com/users/YadhuIleaf/following{/other_user}","gists_url":"https://api.github.com/users/YadhuIleaf/gists{/gist_id}","starred_url":"https://api.github.com/users/YadhuIleaf/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/YadhuIleaf/subscriptions","organizations_url":"https://api.github.com/users/YadhuIleaf/orgs","repos_url":"https://api.github.com/users/YadhuIleaf/repos","events_url":"https://api.github.com/users/YadhuIleaf/events{/privacy}","received_events_url":"https://api.github.com/users/YadhuIleaf/received_events","type":"User","site_admin":false},"created_at":"2018-12-13T04:51:12Z","updated_at":"2018-12-13T04:51:12Z","author_association":"NONE","body":"@hrishikesh-kadam This is how we initialise Folio for opening an epub file:\r\nFolioReader.get()\r\n                .setReadPositionListener(thisFragment)\r\n                .setReadPosition(readPosition)\r\n                .setConfig(config, true)\r\n                .openBook(bookPath, String.valueOf(book.bookId));\r\nwhere bookPath is the sd card path of the file"}}
{"actor":{"display_login":"YadhuIleaf"}}