stan-dev / stan-dev/rstan

Repeatedly loading / unloading rstan hard crashes R on Windows

Open
#998 1 comment 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Dominant language
R
Stars
1.1k
Forks
266
Avg merge
2h 56m
Merged PRs (30d)
1

Description

Summary:

Repeatedly loading / unloading rstan hard crashes R on Windows

Description:

See above.

Reproducible Steps:

library(rstan)

sessionInfo()
for (i in 1:1000)
{
cat(i, "\n")
if (i > 1) {
library(rstan)
}

detach("package:rstan", unload=T, character.only = T);
unloadNamespace("rstan")
}

Current Output:

image
image

Expected Output:

No crash.

RStan Version:

2.26.8

R Version:

R 4.1.3

Operating System:

Windows 10 64 bit

Contributor guide

No contributing guide indexed for this repository

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start by reproducing the reported 1,000-iteration loop using library(rstan), detach(), and unloadNamespace() on Windows 10 with R 4.1.3 and rstan 2.26.8, recording sessionInfo(). The issue mentions no source file or test; done means repeated loading and unloading completes without an R crash.

Written by the indexing model from the issue text.

Assessment

Tech stack
r
Domain
backend, operating-systems
Issue type
Bug
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
30/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.