Skip to content

Using an SO object between R sessions crashes R studio #5

@stumoodie

Description

@stumoodie

I was getting the occasional crash related to the SO object and I think I have identified what is causing it. It seems to be that if you use an object that is in your R environment after you restart the R session in R studio then the session crashes. This occurs on the Mac and Windows. To reproduce initialise an So object from a file.

test_so_file <- "UC1_focei_SO.xml"
test_so <- libsoc::so_SO_read(file.path("tests/testthat", test_so_file))

Test is works:

test_so$all_population_estimates()

Restart the R session and try the last command again:

test_so$all_population_estimates()

This crashes the R session. I've attached the R studio screenshot.
rcrash

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions