xeus-r icon indicating copy to clipboard operation
xeus-r copied to clipboard

Consistent Errors in startup and running xeus-r.ipynb

Open MRYingLEE opened this issue 8 months ago • 2 comments

Many tests have been done in https://jupyter-xeus.github.io/xeus-r/lab/index.html and the errors happened every time.

The console output is as follows: Image

It happened in both MS Edge browser (Version 135.0.3179.41 (Official build) stable app, beta channel (64-bit)) and Google Chrome (Version 134.0.6998.178 (Official Build) (64-bit)) in startup and running xeus-r.ipynb.

For your convenience, the most related error calling stacks are as follows:

78.718705ad6298f4b6a335.js?v=718705ad6298f4b6a335:1  Failed to load dynlib /lib/R/library/dplyr/libs/dplyr.so Error: memory access out of bounds
    at qI (https://jupyter-xeus.github.io/xeus-r/extensions/@jupyterlite/xeus-kernels-extension/static/78.718705ad6298f4b6a335.js?v=718705ad6298f4b6a335:1:86321)
    at async LI (https://jupyter-xeus.github.io/xeus-r/extensions/@jupyterlite/xeus-kernels-extension/static/78.718705ad6298f4b6a335.js?v=718705ad6298f4b6a335:1:85162)
    at async Promise.all (index 7)
    at async WB (https://jupyter-xeus.github.io/xeus-r/extensions/@jupyterlite/xeus-kernels-extension/static/78.718705ad6298f4b6a335.js?v=718705ad6298f4b6a335:1:4034283)
    at async i.initialize (https://jupyter-xeus.github.io/xeus-r/extensions/@jupyterlite/xeus-kernels-extension/static/78.718705ad6298f4b6a335.js?v=718705ad6298f4b6a335:1:4069621)

and

factory.js:46 Failed to update the table of contents. TypeError: this.buffer.charCodeAt is not a function
    at e.parse (Tokenizer.js:745:33)
    at e.write (Tokenizer.js:159:14)
    at e.write (Parser.js:459:28)
    at m (index.js:604:10)
    at oe.sanitize (sanitizer.js:931:16)
    at get headings (widget.js:982:102)
    at ye.getHeadings (toc.js:176:83)
    at ye.refresh (model.js:130:44)
    at i (factory.js:45:19)
    at d (index.es6.js:555:18)

Please check.

Thanks.

MRYingLEE avatar Apr 01 '25 02:04 MRYingLEE

I see the same errors. @IsabelParedes might be able to help

DerThorsten avatar Apr 01 '25 07:04 DerThorsten

Hi @MRYingLEE ! Thanks for opening this issue.

  • Regarding the Failed to update the table of contents error, this is coming from JupyterLab <=v3.4.4

    • Issue: https://github.com/jupyterlab/jupyterlab/issues/16856
    • Fix: https://github.com/jupyterlab/jupyterlab/pull/17114
    • So in JupyterLite, this will be fixed in v0.6.0
  • For r-dplyr, I've looked into this error before but there doesn't seem to be anything in particular that stands out. The dplyr package seems to work well regardless.

Image

Or if you have other issues when using the dplyr package or cases where it fails, please let me know.

  • The 'which' was not found warning is expected because there's no system which on JupyterLite (as of now).

  • The fontconfig error, I was not able to replicate. I updated all the packages for the JupyterLite deployment, feel free to check and let me know if the issue persists.

Thanks!

IsabelParedes avatar Apr 02 '25 15:04 IsabelParedes