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

External pointer is not valid #121

ghost opened this issue Sep 9, 2016 · 0 comments

External pointer is not valid #121

ghost opened this issue Sep 9, 2016 · 0 comments


Copy link

ghost commented Sep 9, 2016

Fell into this today:

xml2::read_html("<!DOCTYPE html>")
Rscript -e 'xml2::read_html("<!DOCTYPE html>")' # to ensure it's not RStudio or R GUI causing the issue
Error in eval(substitute(expr), envir, enclos) :
  external pointer is not valid
Calls: <Anonymous> ... xml_attrs -> xml_attrs.xml_node -> node_attrs -> .Call
Execution halted

That's with the github version of xml2. With the CRAN version of xml2 it hard crashes R.

Of note:

Rscript -e 'XML::htmlParse("<!DOCTYPE html>")'

works fine.

I'm trying to put together some small reproducible examples that also break both xml2 and XML but I suspect I'll be filing those bugs with the libxml2 folks.

Rscript -e "library(xml2); library(XML); devtools::session_info()"
Loading required package: methods
Session info -------------------------------------------------------------------
 setting  value
 version  R version 3.3.1 Patched (2016-06-22 r70818)
 system   x86_64, darwin13.4.0
 ui       X11
 language (EN)
 collate  en_US.UTF-8
 tz       America/New_York
 date     2016-09-09

Packages -----------------------------------------------------------------------
 package  * version     date       source
 devtools 2016-06-01 Github (hadley/devtools@75b7d12)
 digest     0.6.10      2016-08-02 cran (@0.6.10)
 memoise    1.0.0       2016-01-29 CRAN (R 3.3.0)
 Rcpp       0.12.7      2016-09-05 cran (@0.12.7)
 withr      1.0.1       2016-02-04 CRAN (R 3.3.0)
 XML      * 3.98-1.4    2016-03-01 CRAN (R 3.3.0)
 xml2     *  2016-09-09 Github (hadley/xml2@1a75d4a)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
None yet
None yet

No branches or pull requests

0 participants