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

C/C++ execution error reporting #165

Open
ProxyCausal opened this issue Jun 25, 2024 · 1 comment
Open

C/C++ execution error reporting #165

ProxyCausal opened this issue Jun 25, 2024 · 1 comment

Comments

@ProxyCausal
Copy link

ProxyCausal commented Jun 25, 2024

Is there any way to get the error code back from C/C++?

When running nloptr function R has been crashing for me and upon debugging it seems like the culprit is executing the C code
solution <- .Call(NLoptR_Optimize, ret)

I suspect it's out of memory or numerical overflow issue, but it'd be nice to know for sure

@ProxyCausal ProxyCausal changed the title C/C++ execution error handling C/C++ execution error reporting Jun 25, 2024
@aadler
Copy link
Contributor

aadler commented Jun 25, 2024

Hello, @ProxyCausal. Would you please provide a reprex which demonstrates the same behavior?

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