Closed siddoib closed 3 years ago
Hello, I am surprised that Ace version 1.1.1
exhibits this kind of timeout error, as this problem was first discovered in the "beta" 1.2.x
version of Ace used in the Ace App (GUI) project, due to different libraries running behind the scenes (i.e. both Chromium web browser engine, but via Electron instead of Puppeteer).
Anyway, could you please test your publication with Ace App? https://github.com/daisy/ace-gui/releases/tag/v1.1.2
You may also install the latest "beta" Ace command line tool: npm install -g @daisy/ace@next
(this installs the Ace executable globally), or npx @daisy/ace@next /PATH/TO/BOOK.EPUB
(this runs Ace temporarily without installing it globally).
Thank you very much! Daniel
@danielweck , thank you so much for the reply. I am going to try that in the version 1.1.2 as recommended. I have also strumbled across a simillar ticket and ironically left a comment for you there not knowing that you've already commented here.
@danielweck , using the Ace App version 1.1.2, I am still getting the same timeout error. As already mentioned above, these errors seem to only happen to xhtml pages containing some iframe content.
Thank you, useful troubleshooting information. Could you please privately share an EPUB at daniel.weck@gmail.com Regards, Daniel
That's fantastic - thank you so much for the prompt reply. I will send you one file soon!
Hello, thank you very much for sharing your EPUB. I ran tests with Ace command line (both Puppeteer and Electron "runners"), and I did not experiencing any timeouts. The entire publication is analysed in approximately 4 minutes.
However on several occasions I experienced premature ending of the accessibility evaluation (using the Electron runner), because of an external resource failing to load (I guess this is the iframe URL you mentioned: https://aa.bbb.com/signin?referrer=/embed/access/content/xxx/yyy ). It would seem that this problem does not affect the Puppeteer runner, probably because of different conditions for accessing external web pages.
I will need to investigate this further.
I fixed this issue in the Electron "runner", which is used in Ace App but not in Ace command line (as this program uses Puppeteer by default). In my local tests I am of course able to compare the Electron and Puppeteer "runners" side by side, from the command line: the Electron "runner" is now much faster than the Puppeteer one when external webpages are involved, as the former now skips requests to external URLs, whereas the latter continues to fetch the external webpages. Here is a sample benchmark output from https://github.com/daisy/ace/blob/ace-next/scripts/compareAxeRunners.sh (the Electron "runner" takes 1 minute to evaluate your EPUB, whereas the Puppeteer one takes 4 minutes)
./scripts/compareAxeRunners.sh /PATH/TO/9780197545454_EPUB.epub
ElectronAxeRunner ...
>>> ACE PERF: 59 seconds + 998136614 nanoseconds
PuppeteerAxeRunner ...
>>> ACE PERF: 212 seconds + 689942854 nanoseconds
Fixed via https://github.com/daisy/ace/commit/c1cb9dbcccb1aeee80fbcdf91beea9cc2e107d87 (Electron only, need to fix Puppeteer too)
Fixed via https://github.com/daisy/ace/commit/64439a0a7e081c1a3978f3b9b9f412f4bbfbf4eb (Puppeteer now fixed too, in addition to Electron)
The runtime performance is now roughly equal:
./scripts/compareAxeRunners.sh /PATH/TO/9780197545454_EPUB.epub
ElectronAxeRunner ...
>>> ACE PERF: 60 seconds + 702028831 nanoseconds
PuppeteerAxeRunner ...
>>> ACE PERF: 71 seconds + 424940796 nanoseconds
Hello, I published 1.2.0-beta.13
of Ace command line, under the NPM tag next
. You can install it from your shell with:
sudo npm --global install @daisy/ace@next --unsafe-perm=true
(you may need to remove sudo
in Windows MSDOS / PowerShell, in which case if you get an error message, try to open the shell window with administrator privileges)
Alternatively, you may run Ace directly (without installing it) with:
npx @daisy/ace@next /PATH/TO/BOOK.EPUB
I strongly recommend installing the latest LTS
version of NodeJS (14.15.5
) which comes with NPM 6.14.11
:
https://nodejs.org
Note that I created this wiki page for future reference (choice of Electron vs. Puppeteer "runners"): https://github.com/daisy/ace/wiki/Ace-command-line-with-Electron-(in-addition-to-Puppeteer)
I am closing this issue now. Do not hesitate to post further comments if you still have issues.
Note that Ace 1.1.1
will not be updated with these bug fixes. Please consider Ace 1.2.0
the actively maintained branch of Ace (it will come out of beta
soon)
Thank you so much @danielweck. I have already tried with npx @daisy/ace@next and the publication was processed successful. I will let you know if any question but I think I have all I need for now. Best wishes
Running ACE command line using the following versions:
I keep getting - randomly - the following error message:
The time out keeps happening at different xhtml page each time. The only thing peculiar with our epubs is that they tend to include various external resources (iframes). Strangely as I mentioned the same epub can be processed some times and other times we get this time out.
I believe this is bug with ACE as it seems to be timing out for xhtml pages with external resources. Is there any possibility to increase the max time out?