I’ve found that GMIC crashes if you try to rotate an image under certain conditions. Here is the log
Resize image  to 1536x115x1x3, with nearest-neighbor interpolation, dirichlet boundary conditions and alignment (0,0,0,0).
Rotate image  of 36.87 deg., with cubic interpolation and periodic boundary conditions.
Rotating the image by 36.8698 degrees or 36.88 works fine.