asciidocfx / AsciidocFX

Asciidoc Editor and Toolchain written with JavaFX 21 (Build PDF, Epub, Mobi and HTML books, documents and slides)
http://www.asciidocfx.com/
Apache License 2.0
1.88k stars 295 forks source link

EPUB generation not working in v1.7.4 #516

Closed Thanatermesis closed 3 years ago

Thanatermesis commented 3 years ago

I just downgraded to 1.7.3 that the EPUB rendering works correctly, it doesn't works on 1.7.4, tested on Debian stable codename Buster

ERROR => Problem occured while packing epub content

rahmanusta commented 3 years ago

Hi, thanks for reporting. We noticed the issue and fix it soon. New release will be provided.

rahmanusta commented 3 years ago

Hi, could you please reinstall https://github.com/asciidocfx/AsciidocFX/releases/tag/v1.7.4 and check?

Thanatermesis commented 3 years ago

Ok, I just tried and the bug is not fixed, but I wanted also to report a few more things found:

Perrmissions issue due to using system files:

ERROR => Problem occured while moving /tmp/epub13349130918117519979/book.epub to /usr/share/AsciidocFX/conf/Support.epub
java.nio.file.AccessDeniedException: /tmp/epub13349130918117519979/book.epub -> /usr/share/AsciidocFX/conf/Support.epub
    at...

this error is not the real cause but I wanted to report it too, so the tarball was installed on the system and by root, these files should not be used in write mode (instead, using user's files or its own cache files) and thus that's why it errors

CopyPaste problem

Epub export issue:


ERROR => Problem occured while converting to Epub
java.util.NoSuchElementException: No value present
    at java.base/java.util.Optional.get(Optional.java:143)
    at com.kodedu.service.convert.ebook.EpubConverter.produceEpub3(EpubConverter.java:83)
    at com.kodedu.service.convert.ebook.EpubConverter.produceEpub3(EpubConverter.java:76)
    at com.kodedu.controller.ApplicationController.lambda$convertEpub$7(ApplicationController.java:466)
    at com.kodedu.controller.ApplicationController$$Lambda$2265/0x0000000083248848.run(Unknown Source)
    at com.kodedu.service.ThreadService$1.call(ThreadService.java:48)
    at javafx.graphics/javafx.concurrent.Task$TaskCallable.call(Task.java:1425)
    at java.base/java.util.concurrent.FutureTask.run(FutureTask.java:264)
    at java.base/java.util.concurrent.ForkJoinTask$AdaptedRunnableAction.exec(ForkJoinTask.java:1414)
    at java.base/java.util.concurrent.ForkJoinTask.doExec(ForkJoinTask.java:295)
    at java.base/java.util.concurrent.ForkJoinPool$WorkQueue.topLevelExec(ForkJoinPool.java:1016)
    at java.base/java.util.concurrent.ForkJoinPool.scan(ForkJoinPool.java:1665)
    at java.base/java.util.concurrent.ForkJoinPool.runWorker(ForkJoinPool.java:1598)
    at java.base/java.util.concurrent.ForkJoinWorkerThread.run(ForkJoinWorkerThread.java:183)

Tested with other exporters (except Mobi, because of lack of kindlegen executable) and all the others worked

Thank you

rahmanusta commented 3 years ago

Can you run epub generation but some other file than Support.adoc like Cheatsheet.adoc? Config folder may not have permission to create.

I fixed the copy file issue, it was exist only for read only files like Support.adoc.

Hi, could you please reinstall https://github.com/asciidocfx/AsciidocFX/releases/tag/v1.7.4 and check ?

Thanatermesis commented 3 years ago

Thanks for the update, the last one CORRECTLY generates the epub files now :)

I did it with Cheatsheet.adoc and it worked, but unfortunately it lacked a few images from the markup in the resulting epub:

image

other images like the Chart / Statistics worked correctly

rahmanusta commented 3 years ago

That’s great, as I remember we didn’t implement admonitions image for epub. Thank you for rising the issue and helping to verify 👍