arcgisbinding in RStudio, fatal error after update

1175
6
Jump to solution
09-28-2022 10:33 AM
DominicCiolli
New Contributor

Hello everybody, I realize this is very similar in subject line to a post from three years ago but I found that several days ago and still cannot get to fixed.

I recently updated to the most recent version of ArcGIS Pro (3.0.2) and now whenever I try to use arcgisbinding R crashes immediately. The package loads and arc.check_product is able to attach but if I use any functions I get an immediate fatal error. Would love some help.

0 Kudos
1 Solution

Accepted Solutions
ShaunWalbridge
Esri Regular Contributor

What versions of R and RStudio are you working with? If possible, please try upgrading to R 4.2 as there are some known issues with earlier releases of R and the bridge in certain cases. If that doesn't help, post back here and we can dig in further.

Cheers, Shaun

View solution in original post

0 Kudos
6 Replies
ShaunWalbridge
Esri Regular Contributor

What versions of R and RStudio are you working with? If possible, please try upgrading to R 4.2 as there are some known issues with earlier releases of R and the bridge in certain cases. If that doesn't help, post back here and we can dig in further.

Cheers, Shaun

0 Kudos
AndrewPadilla
Occasional Contributor

I have updated to R 4.2.2 with RStudio 2022.07.1+554 and still get the issue. I can run arc.check_product()

product: ArcGIS Pro (13.0.0.36056)
license: Advanced
version: 1.0.1.300 

but RStudio session aborts when I try arc.open():

ozone.path <- system.file("extdata", "ca_ozone_pts.shp",
package="arcgisbinding")
ozone.arc.dataset <- arc.open(ozone.path)

 

Any help would be greatly appreciated.

 

Thanks,

Andy

0 Kudos
ShaunWalbridge
Esri Regular Contributor

Are you able to see if the same code works from a plain RGui 4.2.2 session independently of RStudio? Can you check for any crash dumps in %LOCALAPPDATA%\CrashDumps with names like "rsession*.dmp" and if any of those files exist, send one to me via private message? I can look at what the crash itself says. Finally, could you share what licensing mechanism you're using, and whether opening ArcGIS Pro itself is working OK? Thanks!

0 Kudos
DenisGitau
New Contributor

Hi,

I have followed this topic as it is similar to the problem I am currently encountering. I ran RGui independently and it abruptly terminated the session the moment I used arc.open() function. This was after I had loaded library(arcgisbinding) and arc.check_product() and gotten positive results.

When I run it on R Studio the error message, "R Session Aborted. R encountered a fatal error. The session was terminated" gets displayed. I checked for any crash dumps after but there weren't any.

I am working with R 4.4.0 and ArcGIS Pro 3.2. This is my first installation of R and ArcGIS on my computer. There haven't been any prior installations before for the two programs.

Is there a way you can help me out? 

Thank you.

0 Kudos
ShaunWalbridge
Esri Regular Contributor

What does `arc.check_product()` report when it runs? Are you having crashes with any data source? Does this work?

d <- arc.select(arc.open(system.file("extdata", "ca_ozone_pts.shp", package="arcgisbinding")))

Edit: I tried on 3.2 with R 4.4 and was able at times to get crashes, I will look. For now I would try an earlier R version like 4.2 or 4.3.

0 Kudos
DominicCiolli
New Contributor

Yup, that was it! I've been updating RStudio but not R itself 😐  I got it working, thanks Shaun!