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

Unable to open ePub file, app crashed.[iOS] #35

Closed
BluePick opened this issue Oct 28, 2014 · 5 comments
Closed

Unable to open ePub file, app crashed.[iOS] #35

BluePick opened this issue Oct 28, 2014 · 5 comments

Comments

@BluePick
Copy link

SDK can not open attacked file , is there anyone have solution??
Here is the link of ePub file:

https://www.dropbox.com/s/xxx/yyy.epub

@BluePick BluePick reopened this Oct 28, 2014
@BluePick BluePick changed the title Unable to open ePub file, app crashed. Unable to open ePub file, app crashed.[iOS] Oct 28, 2014
@danielweck
Copy link
Member

SDKLauncher-OSX crashes as well (I'm investigating).
The Chrome extension and cloud reader seem to handle this EPUB fine.

@BluePick Should the link to this EPUB remain private? (is there any distribution copyright involved?)
In the meantime, I have mangled the DropBox link you posted in this public issue tracker. Feel free to reinstate it if you feel that this ebook can indeed be shared publicly.

@danielweck
Copy link
Member

@BluePick your EPUB is missing crucial metadata (content.opf):

<meta property="rendition:layout">pre-paginated</meta>

and additionally:

<meta property="rendition:spread">auto</meta>
<meta property="rendition:orientation">auto</meta>

Furthermore, the SMIL durations are missing:

<meta property="media:duration" refines="#MANIFEST_ITEM_ID">0:00:00.000</meta>

I have now fixed the ReadiumSDK so that parsing of EPUB3 Media Overlays degrades gracefully in cases where the OPF duration metadata is missing or invalid (will push code to GitHub shortly).

However, you must explicitly specify that your EPUB is fixed layout (pre-paginated), otherwise it defaults to reflowable.

Regards, Dan

@BluePick
Copy link
Author

@danielweck Thank you so much

@danielweck
Copy link
Member

Regarding the "pre-paginated" missing metadata, I have filed a separate issue:
readium/readium-sdk#108
(not sure if readium-sdk should parse iBooks XML...to be determined)

danielweck added a commit to readium/readium-sdk that referenced this issue Oct 28, 2014
…rlays parsing now degrades gracefully when duration metadata is missing or erroneous (edge case with some test EPUBs). Fixes readium/SDKLauncher-iOS#35
@danielweck
Copy link
Member

Fixed here:
readium/readium-sdk@c3f0a7a

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

2 participants