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

Kriging error in example from tutorial #313

Closed
vikram-s-narayan opened this issue Jan 15, 2022 · 4 comments
Closed

Kriging error in example from tutorial #313

vikram-s-narayan opened this issue Jan 15, 2022 · 4 comments

Comments

@vikram-s-narayan
Copy link
Contributor

Description:
The Kriging code from the tutorial produces a 'ReadOnlyMemory()' error.

To Reproduce:
Run the following code. Error occurs on my system if number of sampling points is greater than 65:

using Surrogates
f = x -> exp(x)*x^2+x^3
lb = 0.0
ub = 10.0
x = sample(100,lb,ub,UniformSample())
y = f.(x)
p = 1.9
my_krig = Kriging(x,y,lb,ub,p=p)

Device information:
MacBook Air (M1, 2020)
Chip Apple M1

@ChrisRackauckas
Copy link
Member

That could be an M1 issue. It runs fine on my laptop. @vchuravy do you know how we can get someone to look into this?

@vchuravy
Copy link

@vikram-s-narayan can you post a full stacktrace?

@ChrisRackauckas We probably need some M1 Macs for the lab, but until after JuliaLang/julia#43664 M1 is known to crash on occasion.

@vikram-s-narayan
Copy link
Contributor Author

vikram-s-narayan commented Jan 17, 2022

@vchuravy - the only message shown is:
ERROR: LoadError: ReadOnlyMemoryError()
in expression starting at Untitled-1:8

Also, when I run these lines from inside a standalone terminal (i.e. not from within VS Code), the error does not show up and it works fine.

@vikram-s-narayan
Copy link
Contributor Author

I'm closing this issue as it is related to the VS Code Julia extension.

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

3 participants