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 Stack Usage Error Installing Large Package #56

Open
feaselkl opened this issue Jan 28, 2020 · 1 comment
Open

C Stack Usage Error Installing Large Package #56

feaselkl opened this issue Jan 28, 2020 · 1 comment

Comments

@feaselkl
Copy link

I'm trying to install a large R package (~65MB) using sqlmlutils onto SQL Server 2019 CU1.  I get the following error when doing so:
Error: Installation of packages failed with error C stack usage  138399847 is too close to the limit

I can run install.packages() and install the package against a local R installation; that works fine. I was also able to run install.packages() within sp_execute_external_script in SQL Server 2017.

It looks like this issue is related to package size. Almost all of the package size is due to a serialized neural network model. If I strip that out, the package size goes from 67MB to 156KB and installation completes successfully. I'd like to keep the neural network model together with this package, so splitting it out is not a great long-term solution for me.

@NelGson
Copy link

NelGson commented Jan 30, 2020

Hi,
We are investigating why this is failing. We do have size limitations, but it should not be the case here. I'll follow up with you offline @feaselkl . Another workaround in the meantime is using TSQL and create external library.
Thanks,
N

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