stan-dev / stan-dev/rstan

Error in sampler$call_sampler(args_list[[i]]) : c++ exception (unknown reason)

Open
#973 3 comments 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:

model <- brm(formula = Y ~ X, data = dfTemq, seed = 123)
Compiling Stan program...
Start sampling

SAMPLING FOR MODEL 'anon_model' NOW (CHAIN 1).
Chain 1:
Chain 1: Gradient evaluation took 2.7e-05 seconds
Chain 1: 1000 transitions using 10 leapfrog steps per transition would take 0.27 seconds.
Chain 1: Adjust your expectations accordingly!
Chain 1:
Chain 1:
[1] "Error in sampler$call_sampler(args_list[[i]]) : "
[2] " c++ exception (unknown reason)"
error occurred during calling the sampler; sampling not done

Description:

See above

Reproducible Steps:

See above. I am on

R version 4.1.1 (2021-08-10) -- "Kick Things"
Copyright (C) 2021 The R Foundation for Statistical Computing
Platform: x86_64-apple-darwin20.4.0 (64-bit)
System Version:	macOS 11.5.1 (20G80)
Kernel Version:	Darwin 20.6.0
Current Output:

See above

Expected Output:
> model <- brm(formula = Y ~ X, data = dfTemq, seed = 123)
Compiling Stan program...
Start sampling
RStan Version:
> packageVersion("rstan")
[1] ‘2.26.3’
R Version:
> R.version.string
[1] "R version 4.1.1 (2021-08-10)"
Operating System:
macOS 11.5.1

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

Begin with the reported brm(formula = Y ~ X, data = dfTemq, seed = 123) call and the sampler$call_sampler(args_list[[i]]) failure. Reproduce it on the stated R 4.1.1, RStan 2.26.3, and macOS 11.5.1 environment, then trace the sampler failure until its cause is identified. Done means sampling completes or the issue has a documented, reproducible diagnosis.

Written by the indexing model from the issue text.

Assessment

Tech stack
cpp, r
Domain
data
Issue type
Bug
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
20/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.