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

Incomprehensible error (with vapply) during compilation #259

Open
AntoineBraultChile opened this issue May 6, 2022 · 1 comment
Open

Comments

@AntoineBraultChile
Copy link

Hello,
I wrote a discrete SIR model with odin. When I try to compile it, I get the followiing obscure error:

Generating model in c
Error in vapply(X, FUN, character(1), ...) : values must be length 1,
but FUN(X[[1]]) result is length 0

What is weird is that the line of the error is not indicated. (It could be related to the issue #184)
Do you have any advice to debug the code (the model is around 600 lines long)?

Thank you very much.

@richfitz
Copy link
Member

richfitz commented May 9, 2022

This is most likely an issue where there is a bug in your model but also a bug in odin trying to report this back to you. It's possible that the result of traceback() immediately after the error will be informative, but more likely that I would need your model code to reproduce

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants