mattwarkentin / fidelius

Password Protected HTML Documents

Home Page:https://mattwarkentin.github.io/fidelius/

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Passwords don't work [Solved]

AGSCL opened this issue · comments

I use Microsoft Edge and Google Chrome, but even if I upload it to rpubs, I can't seem to access my HTML. I used "katherine" and "alvaro" and neither work. The former worked until last week. Something happened that it does not longer work.

The .rmd used is attached here:

rds.zip

Hi @AGSCL,

What issue are you running into? On my end, the issue seems to be with the size of the images created in chunk vis_1 and vis_22. Each image is being saved as 24x21 inches with 500 DPI, which is a very large high-res image; each image is >15Mb on disk and this seems to cause a memory segfault when trying to encrypt the HTML file during the rendering process. This is the issue as far as I can tell.

 *** caught segfault ***
address 0x7ffedd5e0028, cause 'memory not mapped'

Traceback:
 1: sodium::bin2hex(msg_enc)
 2: charm(input = output_file, password = password, hint = hint,     style = rlang::inject(stylize(!!!style)), bundle = bundle,     minified = minified)
 3: output_format$post_processor(front_matter, input, output_file,     clean, !quiet)
 4: rmarkdown::render("/Users/Matt/Downloads/rds.Rmd", encoding = "UTF-8")
An irrecoverable exception occurred. R is aborting now ...

Is this the issue you are facing?

I was able to get it to render by reducing the fig.width, fig.height, and dpi in the chunk options until it worked. Once I got it rendered, the password worked fine for me.

Great, glad it works.