Closed gavin-bruce closed 10 months ago
Hi, could you share the contents of the OPF file in the EPUB? (You can unzip it like a regular ZIP archive)
Hi,
Here the OPF file content.zip
I've some further investigation and it appear this line is the opf file is causing the issue
<meta property="rendition:spread">both</meta>
Once this line was removed the ebook loaded without issue in the test app
I built a fake EPUB with the content.opf
you shared but could open it without issue in the Navigator. I also don't see how
<meta property="rendition:spread">both</meta>
could crash the app here:
Would you be able to share this book privately with me? You can send it to my Gmail address (mickael.menu
).
I'm not able to send the ebook, but have sent you a modified copy of the epub version I have removed all the copyrighted images and replace them. I've check this epub file and it still crashes for me.
The email subject is GitHub issue 327
Somehow I can still open this ebook, from the tag 2.5.1. I started the app with the iOS simulator, drag and dropped the book and then tapped on it.
Feel free to close this issue. I have tested the ebook I've sent again the Iphone SE again, and can confirm it does it indeed crash for me. I don't think I'll be able to provide the original ebook so feel to close this as I am not sure what else I can provide.
Bug Report
What happened?
I am experiencing an issue with a specific ebook that crashes app when I try to open it. No errors popup up and return back the iPhone Home Screen after the crash.
I've tried several other ebook and they do not have this issue.
I do not believe it is an issue with the ePub file as the ebook opens without issue in other app
Xcode indicate the app crashes here https://github.com/readium/swift-toolkit/blob/45fde57234e8970fa617946d7b549eca83f263b1/Sources/Shared/Publication/Metadata.swift#L243 with the following error: Thread 1: EXC_BAD_ACCESS (code=2, address=0x16b8a7ff0)
Expected behavior
The TestApp opens the epub file successfully and the ebook content is displayed.
How to reproduce?
I am unable to share the ebook as it contains copyright material.
In the test app import an ebook The ebook imports to the library without any issues Open the ebook - App crashes at this point
The ebook itself consist of images and has a total size around 591.2 MB.
Environment
Development environment
macOS: 13.4 platform: arm64 Xcode 14.3.1 Build version 14E300c
Testing device
Is it an emulator? No
Additional Context
The content of the console in Xcode