Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Crash on Android 10 when trying to open a book #464

Open
dr-Fade opened this issue Jul 14, 2020 · 9 comments
Open

Crash on Android 10 when trying to open a book #464

dr-Fade opened this issue Jul 14, 2020 · 9 comments

Comments

@dr-Fade
Copy link

dr-Fade commented Jul 14, 2020

Issue / Feature - Issue
FolioReader version - 0.5.4
FolioReader Stock / Modified - Stock
Android SDK - 29
Mobile / Tablet / Emulator Info - emulator + tablet
Crash / Error - Crash

Steps to reproduce / Describe in detail -

  1. Install the reader app.
  2. Pass a file to it,
  3. App crashed with an error:
2020-07-14 14:56:33.207 7353-7353/test.app E/Error: Could not generate container
    java.io.FileNotFoundException: /storage/emulated/0/Download/book.epub (Permission denied)
        at java.util.zip.ZipFile.open(Native Method)
        at java.util.zip.ZipFile.<init>(ZipFile.java:265)
        at java.util.zip.ZipFile.<init>(ZipFile.java:187)
        at java.util.zip.ZipFile.<init>(ZipFile.java:158)
        at org.readium.r2.streamer.container.ContainerEpub.<init>(ContainerEpub.kt:56)
        at org.readium.r2.streamer.parser.EpubParser.generateContainerFrom(EpubParser.kt:55)
        at org.readium.r2.streamer.parser.EpubParser.parse(EpubParser.kt:71)
        at com.folioreader.ui.activity.FolioActivity.initBook(FolioActivity.kt:477)
        at com.folioreader.ui.activity.FolioActivity.setupBook(FolioActivity.kt:447)
        at com.folioreader.ui.activity.FolioActivity.onCreate(FolioActivity.kt:296)
        at android.app.Activity.performCreate(Activity.java:7802)
        at android.app.Activity.performCreate(Activity.java:7791)
        at android.app.Instrumentation.callActivityOnCreate(Instrumentation.java:1299)
        at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:3245)
        at android.app.ActivityThread.handleLaunchActivity(ActivityThread.java:3409)
        at android.app.servertransaction.LaunchActivityItem.execute(LaunchActivityItem.java:83)
        at android.app.servertransaction.TransactionExecutor.executeCallbacks(TransactionExecutor.java:135)
        at android.app.servertransaction.TransactionExecutor.execute(TransactionExecutor.java:95)
        at android.app.ActivityThread$H.handleMessage(ActivityThread.java:2016)
        at android.os.Handler.dispatchMessage(Handler.java:107)
        at android.os.Looper.loop(Looper.java:214)
        at android.app.ActivityThread.main(ActivityThread.java:7356)
        at java.lang.reflect.Method.invoke(Native Method)
        at com.android.internal.os.RuntimeInit$MethodAndArgsCaller.run(RuntimeInit.java:492)
        at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:930)

Adding and granting it using the adb shell pm grant ... command does not solve the problem. Maybe the permission should be added to the Folio's manifest.

@adityajoshi12
Copy link

Make sure you have given storage read permission to your app.

@yashdevelops
Copy link

Did you get a fix to it ? I'm getting the same problem opening up EPUB files ! It opens PDF perfectly.

@Magby1
Copy link

Magby1 commented Oct 4, 2020

Yeah, I'm getting the same problem when trying to open from Assets.

@Magby1
Copy link

Magby1 commented Oct 4, 2020

Make sure you have given storage read permission to your app.

Yes i did

@Nikki-Gunani
Copy link

Did yo guys find any solution ?

@Magby1
Copy link

Magby1 commented May 24, 2021 via email

@Nikki-Gunani
Copy link

Are you using any other ePub reader ? Something better than this and is updated ?

@Magby1
Copy link

Magby1 commented May 25, 2021 via email

@awaisabbasaa11
Copy link

I had the same problem, finally I have solved this issue for more information check this comment

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

6 participants