Skip to content
This repository was archived by the owner on May 7, 2025. It is now read-only.
This repository was archived by the owner on May 7, 2025. It is now read-only.

Blank pages + JS error (getPaginationInfo) #20

@fzaiatz

Description

@fzaiatz

Just cloned the latest versión of the SDK launcher for Android, built it, and everything seems to be working as expected.

ePubs are being loaded (I can see the TOC loaded for a couple of ebooks), but they never show (I'm sending data through Intent to WebViewActivity). All I see is a blank page, the prev and next buttons at the bottom, and when I click on them, this error appear in LogCat:

  • Uncaught TypeError: Cannot call method 'getPaginationInfo' of undefined at file:///android_asset/readium-shared-js/js/views/reader_view.js:192

Before that, here's some output from the logs:

  • Trying to load lib APP_PATH/libepub3.so 0xa641dc80
  • Loading library(version: 3.2.1.43093 RELEASE)... successfully.
  • PointerPool(): pointer pool created
  • Added shared lib APP_PATH/libepub3.so 0xa641dc80
  • INIT_CLASS(): class 'org/readium/sdk/android/EPub3' found
  • looots of INIT_STATIC_METHOD_ID(): static method 'XX' found in class 'org/readium/sdk/android/EPub3'
  • initializeReadiumSDK(): initializing Readium SDK...
  • initializeReadiumSDK(): initialization of Readium SDK finished
  • EPub3.openBook(): path received is 'EPUB_PATH'
  • EPub3.openBook(): _container OK, version: 1.0
  • PointerPool::add(): added pointer FFFFFFFFB8E62CD8(5) container
  • Creating container [ptr:FFFFFFFFB8E62CD8, path:EPUB_PATH]
  • EPub3.openBook(): package type: 0xb8e780d0 PSt10shared_ptrIN5ePub37PackageEE
  • PointerPool::add(): added pointer FFFFFFFFB8E81820(6) package [./../../Platform/Android/jni/epub3.cpp:414]
  • Creating package [ptr:FFFFFFFFB8E81820]
  • looots of PointerPool::get(): got pointer FFFFFFFFB8E81820(5) package [./../../Platform/Android/jni/epub3.cpp:414]
  • EPub3.openBook(): package added
  • onPageFinished: file:///android_asset/readium-shared-js/reader.html
  • openPageRequestData: {"sourceFileHref":"TOC.xhtml","contentRefUrl":"s001-BookTitlePage-01.xhtml"}
  • new EGLContext from framework: b8cc1668
  • Reinit shader
  • Reinit transferQueue

Thanks!

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions