Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Long chunk render issue : Warning: A runtime exception has occured while executing JavaScript #324

Open
Dix1976 opened this issue Apr 4, 2024 · 2 comments
Labels
reprex needs a minimal reproducible example

Comments

@Dix1976
Copy link

Dix1976 commented Apr 4, 2024

I have the issue that the rendering process stops with the error message below. This happens only when i am not interested in the results and want to render the code only, e.g to demonstrate the logic of a model development. The error occurs only , when the chunk needs more than 1 HTML page. Any ideas highly appreciated
"```{r base-model-placebo, echo = T, tidy = 'formatR', results = 'hide'}"

Warning: A runtime exception has occured while executing JavaScript
Runtime exception message:
TypeError: Cannot read properties of null (reading 'parentElement')
at findPage (http://127.0.0.1:6444/CPMX50131-ER-model-HFsev-v3_QC2.html:100:15)
at tocEntriesInfos (http://127.0.0.1:6444/CPMX50131-ER-model-HFsev-v3_QC2.html:130:20)
at tocEntriesInfos (http://127.0.0.1:6444/CPMX50131-ER-model-HFsev-v3_QC2.html:133:18)
at window.PagedConfig.after (http://127.0.0.1:6444/CPMX50131-ER-model-HFsev-v3_QC2.html:160:24)
at http://127.0.0.1:6444/CPMX50131-ER-model-HFsev-v3_QC2.html:31281:17
Error in force(expr) : Failed to generate output in 30 seconds (timeout).

@cderv
Copy link
Collaborator

cderv commented Apr 4, 2024

Hi ! Thanks for the report.

Can you share a reproducible example of this ?

This will help us investigate. It seem this specific usage triggers unexpected DOM in the HTML.

Thank you

@cderv cderv added the reprex needs a minimal reproducible example label Apr 4, 2024
@Dix1976
Copy link
Author

Dix1976 commented Apr 5, 2024

Hi,
I provided a zip with a test file and a css. The bug is reproduceable, in the chunk are two identical (!) codes, If you take one code part out is is running again. However meanwhile i narrowed it down ... Seems to be an issue with the css file but could not figure the reason out. .. Therefore it is likely not a package problem, but i would be of course more than happy if you could have a look ;-)
Many thanks
Dirk
Testpagedownbug.zip

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
reprex needs a minimal reproducible example
Projects
None yet
Development

No branches or pull requests

2 participants