-
Notifications
You must be signed in to change notification settings - Fork 186
How can I debug "The renderer process has crashed"? #195
Comments
This is reproducible with the live demo on https://github.com/arachnys/athenapdf. |
Running with the
|
For debugging purposes, you should be able to get this replicate this error by pointing athena at https://slochower.github.io/smirnoff-host-guest-manuscript/v/5c9b6058fb44adba5c97a646ebccc801d566393e/. See manubot/rootstock#210 (comment). |
@slochower given that Athena was properly converting the document prior to this change, we should be able to narrow down exactly what's breaking it. Sounds like it's struggling with the new PNG? |
@dhimmel That's right. There are a bunch of PNGs now -- about 27, but they are mostly <1 MB (exept for one image at 3.7 MB), so nothing terribly huge. The only other guesses are the number of annotations with hypothesis, but I believe I have eliminated that by building the HTML without any of the plugins. |
I manually removed more than half of the images in the HTML by deleting the
I've attached the |
I have confirmed adding |
Nice debugging @slochower. Where is the 2 GB memory allocation to Docker coming from? Do you want to create a manubot/rootstock PR to specify Also volumes are a potential solution: I see here:
|
In my case, I think the default macOS |
That's interesting. Because I'd assume #186 would fix it, but as I am no longer with the team, I am unsure if it was tested. That said, we have had multiple similar reports in the past: #95 (comment), and in my experience, mounting I'm not sure what your use-case is, but speaking impartially, nowadays, you can often get away with having a serverless converter. That is, a HTML-to-PDF converter running on something like AWS Lambda or Google Cloud Function. Athena is in need of an upgrade, and the existing set-up with Electron adds quite a bit of unnecessary overhead. v3 was supposed to be the way forward, but it is highly unstable, and I do not encourage using it in production. |
Merges #220 Closes arachnys/athenapdf#195 Increase --shm-size from the default value of 64m to 1g when running the athenapdf Docker image. Resolves athena issue: `The renderer process has crashed` Switch to using equal sign to separate Docker arguments and values for consistency. https://stackoverflow.com/q/50319060/4651668
This build is based on 1eb6da8. This commit was created by the following Travis CI build and job: https://travis-ci.com/manubot/rootstock/builds/111628355 https://travis-ci.com/manubot/rootstock/jobs/199786007 [ci skip] The full commit message that triggered this build is copied below: Increase shared memory of athenapdf container Merges #220 Closes arachnys/athenapdf#195 Increase --shm-size from the default value of 64m to 1g when running the athenapdf Docker image. Resolves athena issue: `The renderer process has crashed` Switch to using equal sign to separate Docker arguments and values for consistency. https://stackoverflow.com/q/50319060/4651668
This build is based on 1eb6da8. This commit was created by the following Travis CI build and job: https://travis-ci.com/manubot/rootstock/builds/111628355 https://travis-ci.com/manubot/rootstock/jobs/199786007 [ci skip] The full commit message that triggered this build is copied below: Increase shared memory of athenapdf container Merges #220 Closes arachnys/athenapdf#195 Increase --shm-size from the default value of 64m to 1g when running the athenapdf Docker image. Resolves athena issue: `The renderer process has crashed` Switch to using equal sign to separate Docker arguments and values for consistency. https://stackoverflow.com/q/50319060/4651668
* webpage.py: note to ignore error in versions checkout Merges manubot/rootstock#211 Closes manubot/rootstock#183 * Use Athena to build PDF, if Docker installed Merges manubot/rootstock#210 Closes manubot/rootstock#170 More information about Athena is available at https://github.com/arachnys/athenapdf Based on meta-review commit: greenelab/meta-review@cffcfea * Add meta review link to readme Merges manubot/rootstock#217 Closes manubot/rootstock#216 * Increase shared memory of athenapdf container Merges manubot/rootstock#220 Closes arachnys/athenapdf#195 Increase --shm-size from the default value of 64m to 1g when running the athenapdf Docker image. Resolves athena issue: `The renderer process has crashed` Switch to using equal sign to separate Docker arguments and values for consistency. https://stackoverflow.com/q/50319060/4651668 * CSL author macro: substitute editor/venue Merges manubot/rootstock#219 Ensures there is a newline between the title and venue, when authors are missing. Closes manubot/rootstock#218 Supersedes manubot/rootstock#158 Substitutes editors for authors when authors are missing. Editors are labeled like "Sönke Bartling, Sascha Friesike (editors)".
This build is based on d62afc4. This commit was created by the following Travis CI build and job: https://travis-ci.com/slochower/smirnoff-host-guest-manuscript/builds/532938787 https://travis-ci.com/slochower/smirnoff-host-guest-manuscript/jobs/532938788 [ci skip] The full commit message that triggered this build is copied below: Rootstock 2019 05 15 (#36) * webpage.py: note to ignore error in versions checkout Merges manubot/rootstock#211 Closes manubot/rootstock#183 * Use Athena to build PDF, if Docker installed Merges manubot/rootstock#210 Closes manubot/rootstock#170 More information about Athena is available at https://github.com/arachnys/athenapdf Based on meta-review commit: greenelab/meta-review@cffcfea * Add meta review link to readme Merges manubot/rootstock#217 Closes manubot/rootstock#216 * Increase shared memory of athenapdf container Merges manubot/rootstock#220 Closes arachnys/athenapdf#195 Increase --shm-size from the default value of 64m to 1g when running the athenapdf Docker image. Resolves athena issue: `The renderer process has crashed` Switch to using equal sign to separate Docker arguments and values for consistency. https://stackoverflow.com/q/50319060/4651668 * CSL author macro: substitute editor/venue Merges manubot/rootstock#219 Ensures there is a newline between the title and venue, when authors are missing. Closes manubot/rootstock#218 Supersedes manubot/rootstock#158 Substitutes editors for authors when authors are missing. Editors are labeled like "Sönke Bartling, Sascha Friesike (editors)".
This build is based on d62afc4. This commit was created by the following Travis CI build and job: https://travis-ci.com/slochower/smirnoff-host-guest-manuscript/builds/532938787 https://travis-ci.com/slochower/smirnoff-host-guest-manuscript/jobs/532938788 [ci skip] The full commit message that triggered this build is copied below: Rootstock 2019 05 15 (#36) * webpage.py: note to ignore error in versions checkout Merges manubot/rootstock#211 Closes manubot/rootstock#183 * Use Athena to build PDF, if Docker installed Merges manubot/rootstock#210 Closes manubot/rootstock#170 More information about Athena is available at https://github.com/arachnys/athenapdf Based on meta-review commit: greenelab/meta-review@cffcfea * Add meta review link to readme Merges manubot/rootstock#217 Closes manubot/rootstock#216 * Increase shared memory of athenapdf container Merges manubot/rootstock#220 Closes arachnys/athenapdf#195 Increase --shm-size from the default value of 64m to 1g when running the athenapdf Docker image. Resolves athena issue: `The renderer process has crashed` Switch to using equal sign to separate Docker arguments and values for consistency. https://stackoverflow.com/q/50319060/4651668 * CSL author macro: substitute editor/venue Merges manubot/rootstock#219 Ensures there is a newline between the title and venue, when authors are missing. Closes manubot/rootstock#218 Supersedes manubot/rootstock#158 Substitutes editors for authors when authors are missing. Editors are labeled like "Sönke Bartling, Sascha Friesike (editors)".
Merges manubot/rootstock#220 Closes arachnys/athenapdf#195 Increase --shm-size from the default value of 64m to 1g when running the athenapdf Docker image. Resolves athena issue: `The renderer process has crashed` Switch to using equal sign to separate Docker arguments and values for consistency. https://stackoverflow.com/q/50319060/4651668
Merges manubot/rootstock#220 Closes arachnys/athenapdf#195 Increase --shm-size from the default value of 64m to 1g when running the athenapdf Docker image. Resolves athena issue: `The renderer process has crashed` Switch to using equal sign to separate Docker arguments and values for consistency. https://stackoverflow.com/q/50319060/4651668
I'm consistently getting
The renderer process has crashed
locally and on Travis. I've tried version2.16.0
andlatest
via Docker on macOS and linux hosts. I've tried increasing the delay until20000
. None of these things have prevented the renderer from crashing.I think this may be related to #152 or #131 but I'm not sure how to debug or get further information about what's going on. Is there a way to get verbose output? I do have a bunch of high-ish resolution PNG files, but I don't think this should be a problem and I don't mind if the resulting PDF is large. Prior to this crash, I had a number of separate PNG files that I combined into single images using ImageMagick.
The HTML source is here (although I am not building from URL, I am building from a local copy of that file) and I'm running Athena on Travis here.
The text was updated successfully, but these errors were encountered: