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
i.rotate increases the number of rows and columns in https://github.com/OSGeo/grass-addons/blob/grass8/src/imagery/i.rotate/main.c#L86 ff but should instead increase the current region's extents for the output raster. Thus the workflow would be to use the current region as input window, calculate the output window extents and set the output window accordingly, load the input raster using the input window, do the rotation by translating current input window row/col to coordinates, convert translated coordinates to output window row/col, update output matrix with a test that output row/col are within the allowed range, write output matrix to output raster.
Name of the addon
i.rotate
Describe the bug
The program crashes with a Segmentation fault (core dumped).
With larger maps, the out-of-memory-kill (OOM-killer) is activated by Linux.
To Reproduce
Debugging:
Expected behavior
No crash :)
It happens here:
grass-addons/src/imagery/i.rotate/main.c
Line 142 in ee8fbcb
As far as I can see, the allocated memory in
grass-addons/src/imagery/i.rotate/main.c
Line 32 in ee8fbcb
is never freed.
Screenshots
If applicable, add screenshots to help explain your problem.
System description (please complete the following information):
The text was updated successfully, but these errors were encountered: