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

Crashing caused by crayon #5561

Closed
csgillespie opened this issue Oct 16, 2019 · 3 comments · Fixed by #5566
Closed

Crashing caused by crayon #5561

csgillespie opened this issue Oct 16, 2019 · 3 comments · Fixed by #5566

Comments

@csgillespie
Copy link
Contributor

@csgillespie csgillespie commented Oct 16, 2019

System details

RStudio Edition : Desktop
RStudio Version : 1.2.5001 (fresh install) (also tried preview)
OS Version      :  Ubuntu 18.04
R Version       :  3.6.1 (fresh install)

Steps to reproduce the problem

options("crayon.enabled" = TRUE)

Describe the problem in detail

  1. After running the options above, the help tooltip when autocompleting functions didn't work (full of Unicode characters)

  2. RStudio crashed (every 5-10 minutes)

Describe the behaviour you expected

Not crashing ;)

Details

Onscreen error:

R Session aborted
R encountered a fatal error
The session was terminated

From logs

16 Oct 2019 09:27:19 [rsession-ncsg3] ERROR r error 4 (R code execution error) [errormsg=Error in parse(text = capture.output(x)) : <text>:1:1: unexpected input|||1: �|||    ^|||]; OCCURRED AT: rstudio::core::Error rstudio::r::exec::{anonymous}::evaluateExpressionsUnsafe(SEXP, SEXP, SEXPREC**, rstudio::r::sexp::Protect*, rstudio::r::exec::{anonymous}::EvalType) /var/lib/jenkins/workspace/IDE/open-source-pipeline/v1.2-patch/src/cpp/r/RExec.cpp:171; LOGGED FROM: SEXPREC* rstudio::r::sexp::PrimitiveWrappers::operator[](SEXP) /var/lib/jenkins/workspace/IDE/open-source-pipeline/v1.2-patch/src/cpp/r/RSexp.cpp:1633
@kevinushey
Copy link
Contributor

@kevinushey kevinushey commented Oct 16, 2019

Sorry, I wasn't able to reproduce. Are there any other steps that I might be missing?

@csgillespie
Copy link
Contributor Author

@csgillespie csgillespie commented Oct 16, 2019

My Rprofile! I've narrowed it down to running:

options("crayon.enabled" = TRUE)
prettycode::prettycode()

In the screenshot, notice the odd Unicode in the help

2019-10-16-1571246521_screenshot_1920x1080

@kevinushey
Copy link
Contributor

@kevinushey kevinushey commented Oct 16, 2019

Thanks! I can reproduce now.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants