You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
obviously, array(1) was not my real data, but when trying to use an array to create a SpatRaster, it tried to use the entire system memory, and the entire pagefile. (128GB x 2)
Interestingly enough, it didn't crash the system, as the memory went down, and then up again.
I am running windows 10, R 4.3.1, and terra 1.7.39
Code to reproduce is simply rast(array(1))
The text was updated successfully, but these errors were encountered:
by looking at the source code of rast, it's obvious that I'm misusing it, as it's supposed to handle mutidimensional arrays.
I was hoping to be able to give rast a list of values, an extent, and optionally a crs, and rast to figure that I want those values arranged uniformly inside the extent.
Instead, it caused an unintended DOS attack on my PC.
andreimirt
added a commit
to andreimirt/terra
that referenced
this issue
Aug 5, 2023
rast has a bug that occupies the entire memory if provided a unidimensional array. This fixes it by actually creating a uniform rast out of a unidimensional array. See rspatial#1254
obviously, array(1) was not my real data, but when trying to use an array to create a SpatRaster, it tried to use the entire system memory, and the entire pagefile. (128GB x 2)
Interestingly enough, it didn't crash the system, as the memory went down, and then up again.
I am running windows 10, R 4.3.1, and terra 1.7.39
Code to reproduce is simply
rast(array(1))
The text was updated successfully, but these errors were encountered: