jhelvy / jhelvy/renderthis

Building PDFs: net::ERR_ABORTED

Open
#49 12 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Dominant language
HTML
Stars
178
Forks
13
PR merge metrics
No merged PRs in 30d

Description

I'm having trouble building PDF slides.

  • Ubuntu 22.04
  • R 4.2
  • Tried multiple files, same error
  • It works first time on my colleagues' laptops; except they are using Ubuntu 20.04
  • Not sure what else to provide (I know, vague bug, sorry)
❯ xaringanBuilder::build_pdf("chapter1.Rmd")
✔ Building chapter1.Rmd into chapter1.html ... done
✖ Building chapter1.html into chapter1.pdf ... failed
Error in force(expr) : 
  Failed to generate output. Reason: net::ERR_ABORTED
Run `rlang::last_error()` to see where the error occurred.
✖ [77-support-building-slides-to-pdf*]
❯ last_error()
<error/rlang_error>
Error:
! Failed to generate output. Reason: net::ERR_ABORTED
Caused by error in `force()`:
! Failed to generate output. Reason: net::ERR_ABORTED
---
Backtrace:
 1. xaringanBuilder::build_pdf("chapter1.Rmd")
 2. xaringanBuilder:::build_pdf_simple(step_html, output_file)
      at xaringanBuilder/R/pdf.R:92:8
 3. base::tryCatch(...)
      at xaringanBuilder/R/pdf.R:98:4
 4. base tryCatchList(expr, classes, parentenv, handlers)
 5. base tryCatchOne(expr, names, parentenv, handlers[[1L]])
 6. value[[3L]](cond)
Run `rlang::last_trace()` to see the full context.
✔ [77-support-building-slides-to-pdf*]

❯ sessionInfo()
R version 4.2.0 (2022-04-22)
Platform: x86_64-pc-linux-gnu (64-bit)
Running under: Ubuntu 22.04 LTS

Matrix products: default
BLAS:   /usr/lib/x86_64-linux-gnu/atlas/libblas.so.3.10.3
LAPACK: /usr/lib/x86_64-linux-gnu/atlas/liblapack.so.3.10.3

locale:
 [1] LC_CTYPE=en_GB.UTF-8       LC_NUMERIC=C               LC_TIME=en_GB.UTF-8        LC_COLLATE=en_GB.UTF-8     LC_MONETARY=en_GB.UTF-8    LC_MESSAGES=en_GB.UTF-8    LC_PAPER=en_GB.UTF-8      
 [8] LC_NAME=C                  LC_ADDRESS=C               LC_TELEPHONE=C             LC_MEASUREMENT=en_GB.UTF-8 LC_IDENTIFICATION=C       

attached base packages:
[1] stats     graphics  grDevices datasets  utils     methods   base     

other attached packages:
[1] jrPresentation2_0.3.3

loaded via a namespace (and not attached):
 [1] Rcpp_1.0.8.3          gert_1.6.0            ps_1.7.0              rprojroot_2.0.3       digest_0.6.29         prompt_1.0.1          utf8_1.2.2            prettycode_1.1.0      R6_2.5.1             
[10] xaringanBuilder_0.0.9 sys_3.4               evaluate_0.15         xaringan_0.24         pillar_1.7.0          rlang_1.0.2           lazyeval_0.2.2        callr_3.7.0           jquerylib_0.1.4      
[19] rmarkdown_2.14        config_0.3.1          desc_1.4.1            servr_0.24            stringr_1.4.0         httpuv_1.6.5          compiler_4.2.0        lintr_2.0.1           xfun_0.31            
[28] pkgconfig_2.0.3       askpass_1.1           htmltools_0.5.2       openssl_2.0.0         websocket_1.4.1       tibble_3.1.7          fansi_1.0.3           memuse_4.2-1          crayon_1.5.1         
[37] withr_2.5.0           later_1.3.0           jsonlite_1.8.0        lifecycle_1.0.1       magrittr_2.0.3        credentials_1.3.2     cli_3.3.0             stringi_1.7.6         cachem_1.0.6         
[46] rprofile_0.1.11       fs_1.5.2              promises_1.2.0.1      remotes_2.4.2         rex_1.2.1             xml2_1.3.3            bslib_0.3.1           ellipsis_0.3.2        vctrs_0.4.1          
[55] cyclocomp_1.1.0       tools_4.2.0           glue_1.6.2            rdoc_0.1.0            rsconnect_0.8.25      processx_3.5.3        parallel_4.2.0        fastmap_1.1.0         yaml_2.3.5           
[64] chromote_0.1.0        memoise_2.0.1         knitr_1.39            pagedown_0.18         sass_0.4.1           

Contributor guide

No contributing guide indexed for this repository

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start by reproducing xaringanBuilder::build_pdf("chapter1.Rmd") on Ubuntu 22.04 and compare it with Ubuntu 20.04, then inspect xaringanBuilder/R/pdf.R around lines 92-98. Use the reported net::ERR_ABORTED failure and session information to narrow the PDF-generation step; done means PDF builds successfully on the affected environment or the incompatibility is clearly documented.

Written by the indexing model from the issue text.

Assessment

Tech stack
r
Domain
build-system
Issue type
Bug
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
25/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.